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):

Warning ... referenced squared can not be found ... Warning: There ... Unsolved context for classes or interfaces ... You may need to specify additional library jars (using '-libraryjars') . Unfortunately, there is no official document about its use with the proguan of Firebase.

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 -keepnames class com.my.package.beans. ** {*; } If you are using custom objects in your firebase, i.e. beans or pozzo

Firebase SDK 1.0.18:

  -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 **   

Firebase SDK 1.1.1:

  -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 **   

Firebase SDK 2.0.0:

  -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 ** {*; }   

Last resort:

  -keep class! Com.my.package ** {*; }  Notes:   

Any official guideline will be welcomed. - 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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -