Skip to content

Commit

Permalink
Fix proguard rules #2
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickfav committed Jun 14, 2020
1 parent 58ebf0b commit af0e6ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
5 changes: 1 addition & 4 deletions BlurBenchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ android {
debug {
applicationIdSuffix '.debug'
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt")
proguardFiles 'proguard-rules.txt'
//jniDebuggable true
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt")
proguardFiles 'proguard-rules.txt'
proguardFiles getDefaultProguardFile("proguard-android.txt"), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@
# public *;
#}

-keepattributes EnclosingMethod, Signature

#Keep classes that are referenced on the AndroidManifest
-keepnames public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class com.android.vending.licensing.ILicensingService

-keep class !android.support.v7.internal.view.menu.*MenuBuilder*, android.support.v7.** { *; }

#keep jackson
-keepnames class com.fasterxml.jackson.** { *; }
Expand All @@ -42,14 +31,10 @@
-dontwarn com.squareup.okhttp.**

#keep renderscript
-keepclasseswithmembers class androidx.renderscript.** {
-keep class androidx.renderscript.** {
native <methods>;
}

#keep systembartint
-keep class com.readystatesoftware.** { *; }
-keep interface com.readystatesoftware.** { *; }

-keep class at.favre.app.blurbenchmark.models.** {*;}
-keep class at.favre.app.blurbenchmark.blur.** {*;}

Expand All @@ -62,7 +47,4 @@
public static int d(...);
}

-keep class android.support.design.widget.AppBarLayout {*;}
-keep class android.support.design.widget.AppBarLayout$* {*;}

-keep public class at.favre.app.blurbenchmark.BuildConfig {public static *;}

0 comments on commit af0e6ef

Please sign in to comment.