Skip to content

Commit

Permalink
Fixed #1425: Full application crash at startup on version 0.8.7 (F-dr…
Browse files Browse the repository at this point in the history
…oid) (#1426)

* fixed crash

* added keeping of Android Support Library to proguard
  • Loading branch information
Vlad authored and teolemon committed Apr 9, 2018
1 parent 0cf84b1 commit 720a77e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions app/proguard-rules.pro
Expand Up @@ -20,9 +20,16 @@
-keep @com.bluelinelabs.logansquare.annotation.JsonObject class *
-keep class **$$JsonObjectMapper { *; }
-keep class openfoodfacts.github.scrachx.openfood.models.** { *; }
-ignorewarnings
-keep class openfoodfacts.github.scrachx.openfood.network.deserializers.** { *; }

#Keep Jackson classes ( https://sourceforge.net/p/proguard/discussion/182456/thread/e4d73acf/ )
-keepnames class org.codehaus.jackson.** {
*;
}
-keepnames class org.codehaus.jackson.** { *; }
-keepnames class com.fasterxml.jackson.** { *; }
-keepnames interface com.fasterxml.jackson.** { *; }

#Keep Android Support Library
-keep public class android.support.v7.widget.** { *; }
-keep public class android.support.v7.internal.widget.** { *; }
-keep public class android.support.v7.internal.view.menu.** { *; }

-ignorewarnings

0 comments on commit 720a77e

Please sign in to comment.