From 371649b8ca0d916c951c782be601d8bf49479400 Mon Sep 17 00:00:00 2001 From: opyale Date: Tue, 26 Jan 2021 15:08:55 +0100 Subject: [PATCH] Adding ProGuard rules to improve performance on low-spec devices. (#808) Fixing failing build. Bumping dependencies. Adding ProGuard rules to improve performance on low-spec devices. Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/808 Reviewed-by: M M Arif Co-Authored-By: opyale Co-Committed-By: opyale --- app/build.gradle | 4 ++-- app/proguard-rules.pro | 2 ++ build.gradle | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1c8913b3..4e1a1157 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -60,8 +60,8 @@ dependencies { def acra = "5.7.0" implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' - implementation 'com.google.android.material:material:1.3.0-alpha03' + implementation 'androidx.appcompat:appcompat:1.3.0-beta01' + implementation 'com.google.android.material:material:1.3.0-alpha03' // Upgrading to rc01 results in failing builds implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation "androidx.legacy:legacy-support-v4:1.0.0" implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version" diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f1b42451..297c21a1 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -19,3 +19,5 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile +-optimizationpasses 30 +-allowaccessmodification diff --git a/build.gradle b/build.gradle index 13ea7bad..6bdfda9e 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.1' + classpath 'com.android.tools.build:gradle:4.1.2' } }