Skip to content

Commit 25dda31

Browse files
committed
Enable R8 optimizations for debug builds
1 parent ba1be98 commit 25dda31

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ android {
3535
}
3636
debug {
3737
debuggable true
38+
minifyEnabled true
39+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro'
3840
versionNameSuffix "-beta"
3941
}
4042
}
@@ -106,7 +108,7 @@ dependencies {
106108
implementation "androidx.appcompat:appcompat:1.0.2"
107109
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
108110
implementation "androidx.browser:browser:1.0.0"
109-
implementation "com.google.android.material:material:1.1.0-alpha01"
111+
implementation "com.google.android.material:material:1.1.0-alpha02"
110112
implementation "androidx.gridlayout:gridlayout:1.0.0"
111113
implementation "androidx.recyclerview:recyclerview:1.1.0-alpha01"
112114
/* includes all other support-v4 libraries */

app/proguard-rules-debug.pro

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-dontobfuscate
2+
3+
-keepclassmembers class ** {
4+
void <init>(android.content.Context);
5+
}
6+
7+
-assumevalues class android.os.Build$VERSION {
8+
int SDK_INT return 21..2147483647;
9+
}

app/proguard-rules.pro

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
-dontwarn **
22

3+
-keepclassmembers class ** {
4+
void <init>(android.content.Context);
5+
}
6+
37
-keep class de.Maxr1998.xposed.maxlock.hooks.** {*;}
48

59
-keep class de.Maxr1998.xposed.maxlock.ui.actions.ActionsHelper {
@@ -15,8 +19,6 @@
1519
private int mSuccessColor;
1620
}
1721

18-
-keep class android.support.v7.widget.SearchView { *; }
19-
20-
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
21-
static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
22+
-assumevalues class android.os.Build$VERSION {
23+
int SDK_INT return 21..2147483647;
2224
}

0 commit comments

Comments
 (0)