What ProGuard configuration do I need for Firebase on Android? -
When using the SDK for the Android app, I keep getting warnings and errors (like Eclipse):
What instructions were asked of the successful instructions for releasing me with a firebase when ProGuard was ambiguous? Based on my personal tests, it is necessary with these lines some firefighter-enhanced Android apps, To compile with Progress
In any case, you must add the Firebase SDK 1.0.18: Firebase SDK 1.1.1: Firebase SDK 2.0.0: Last resort: Any official guideline will be welcomed. -keepnames class com.my.package.beans. ** {*; } If you are using custom objects in your firebase, i.e. beans or pozzo
-keepnames class com.firebase. ** {*; } -keepnames class com.shaded.fasterxml.jackson ** {*; } -keepnames class org.shaded.apache ** {*; } -keepnames class javax.servlet. ** {*; } -Dondwarn organization.way 3.com ** -Dondworn org. Jada.time ** -Dondon.org ORG.shide.pech.com.mons.lagging.imp **
-keep class com.firebase. ** {*; } -keep class org.shaded.apache. ** {*; } -keepnames class com.shaded.fasterxml.jackson ** {*; } -keepnames class javax.servlet. ** {*; } -keepnames class org.ietf.jgss ** {*; } -Dondorn organization Oz.way 3.dom ** - Daydream Org. Jada.time ** -Dondworn org. Shade aphe ache. ** - Dunkiran.org.at.jsgss **
-keep class com.firebase. ** {*; } -keep class org.apache ** {*; } -keepnames class com.fasterxml.jackson ** {*; } -keepnames class javax.servlet. ** {*; } -keepnames class org.ietf.jgss ** {*; } -Dantwarn Org. Wiscadidum ** - Daydream Org. Jada.time ** - Dentworm Org. Shadowpash ** -Dr tonnour org.at.jsgss ** # Only if SDK jar instead of Maven -keep class com.shaded.fasterxml.jackson ** {*; }
-keep class! Com.my.package ** {*; } Notes:
- DoDWORD The instructions are obviously dangerous, the code that I have not checked can break the code. In addition, the above rules are quite approved and other rules can better optimize your APK.
Comments
Post a Comment