Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Update R8 config
Browse files Browse the repository at this point in the history
Removes a load of unnecessary and ignored rules
  • Loading branch information
chrisbanes committed Jun 10, 2020
1 parent 48e377b commit 2bd162e
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
# This is a configuration file for R8

-verbose
-dontpreverify
-allowaccessmodification
-repackageclasses ''
-repackageclasses 'tivi'

# Note that you cannot just include these flags in your own
# configuration file; if you are including this file, optimization
Expand All @@ -20,10 +17,7 @@
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgent
-keep public class * extends android.preference.Preference
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends androidx.fragment.app.Fragment
-keep public class * extends android.app.Fragment
-keep public class com.android.vending.licensing.ILicensingService

# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
Expand Down Expand Up @@ -71,31 +65,17 @@
-keepattributes *Annotation*
-renamesourcefileattribute SourceFile

# Fabric/Crashlytics
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**

-dontwarn org.conscrypt.**

# Dagger
-dontwarn com.google.errorprone.annotations.*

# Keep Trakt-java Entity names (for GSON)
-keepclassmembers class com.uwetrottmann.trakt5.entities.** {
<fields>;
<init>(...);
}
-keepclassmembers class com.uwetrottmann.trakt5.enums.** {
<fields>;
<init>(...);
}

# Keep TMDb Entity names (for GSON)
-keepclassmembers class com.uwetrottmann.tmdb2.entities.** {
# Keep trakt-java and tmdb-java entity names (for GSON)
-keepclassmembers class com.uwetrottmann.*.entities.** {
<fields>;
<init>(...);
}
-keepclassmembers class com.uwetrottmann.tmdb2.enums.** {
-keepclassmembers class com.uwetrottmann.*.enums.** {
<fields>;
<init>(...);
}
Expand Down

0 comments on commit 2bd162e

Please sign in to comment.