Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# For more details, see
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
-dontwarn org.codehaus.jackson.**
-dontwarn ch.qos.logback.**
-dontwarn org.apache.http**
-dontwarn org.joda.time.**
# provide for stack traces
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-keep public class * extends
-keep public class * extends
-keep public class * extends
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends
-keep public class * extends android.preference.Preference
-keepattributes Signature
-keepattributes InnerClasses
-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet);
-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
#Note: accesses a declared field 'theUnsafe' dynamically
-keep class { java.lang.reflect.Field theUnsafe; }
#Resulting Note: the configuration refers to the unknown field 'java.lang.reflect.Field theUnsafe' in class ''
-keep class sun.misc.Unsafe { *; }
# OrmLite uses reflection
-keep class com.j256.**
-keepclassmembers class com.j256.** { *; }
-keep enum com.j256.**
-keepclassmembers enum com.j256.** { *; }
-keep interface com.j256.**
-keepclassmembers interface com.j256.** { *; }
# Keep the helper class and its constructor
-keep class * extends
-keepclassmembers class * extends {
public <init>(android.content.Context);
# Keep all model classes that are used by OrmLite
# Also keep their field names and the constructor
-keep @com.j256.ormlite.table.DatabaseTable class * {
@com.j256.ormlite.field.DatabaseField <fields>;
@com.j256.ormlite.field.ForeignCollectionField <fields>;
# Add the ormlite field annotations that your model uses here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment