diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-05-26 21:43:41 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 21:43:41 +0530 |
commit | eb936e1f36d308fe210fdfa4a34a5df66fc1a70b (patch) | |
tree | 99ce5103eb6a3c789e4a9632d0185f41e855130a /app/proguard-android-optimize.txt | |
parent | 96ed53206e62421e7e7e375ce921c24a85053a13 (diff) |
Introduce better R8 optimizations (#796)
Diffstat (limited to 'app/proguard-android-optimize.txt')
-rw-r--r-- | app/proguard-android-optimize.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/proguard-android-optimize.txt b/app/proguard-android-optimize.txt new file mode 100644 index 00000000..e2095ad6 --- /dev/null +++ b/app/proguard-android-optimize.txt @@ -0,0 +1,36 @@ +-allowaccessmodification +-dontpreverify +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses +-verbose + +-keepattributes *Annotation* + +-keepclasseswithmembernames class * { + native <methods>; +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keepclassmembers class * implements android.os.Parcelable { + public static final ** CREATOR; +} + +-keep class androidx.annotation.Keep + +-keep @androidx.annotation.Keep class * {*;} + +-keepclasseswithmembers class * { + @androidx.annotation.Keep <methods>; +} + +-keepclasseswithmembers class * { + @androidx.annotation.Keep <fields>; +} + +-keepclasseswithmembers class * { + @androidx.annotation.Keep <init>(...); +} |