Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
No Issue - Adds proguard rules for Lifecycle component
Browse files Browse the repository at this point in the history
  • Loading branch information
boek committed Nov 15, 2019
1 parent 7173bdf commit b8b5765
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/proguard-rules.pro
Expand Up @@ -107,4 +107,15 @@
java.lang.String getId();
boolean isLimitAdTrackingEnabled();
}
-keep public class com.android.installreferrer.** { *; }
-keep public class com.android.installreferrer.** { *; }

# Keep Android Lifecycle methods
# https://bugzilla.mozilla.org/show_bug.cgi?id=1596302
# https://twitter.com/rakshakhegde/status/875107392198856706
-keep public class android.arch.lifecycle.** {
public protected *;
}

-keepclassmembers class ** {
@android.arch.lifecycle.OnLifecycleEvent public *;
}

0 comments on commit b8b5765

Please sign in to comment.