Created
July 3, 2012 15:47
-
-
Save developernotes/3040592 to your computer and use it in GitHub Desktop.
ProGuard with SQLCipher for Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-libraryjars libs/commons-codec.jar | |
-libraryjars libs/guava-r09.jar | |
-libraryjars libs/sqlcipher.jar | |
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontskipnonpubliclibraryclassmembers | |
-dontpreverify | |
-dontobfuscate | |
-verbose | |
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable | |
-keep public class * extends android.app.Activity | |
-keep public class * extends android.app.Application | |
-dontwarn javax.annotation.** | |
-dontwarn android.app.** | |
-dontwarn android.support.** | |
-dontwarn android.view.** | |
-dontwarn android.widget.** | |
-dontwarn com.google.common.primitives.** | |
-dontwarn **CompatHoneycomb | |
-dontwarn **CompatHoneycombMR2 | |
-dontwarn **CompatCreatorHoneycombMR2 | |
-keepclasseswithmembernames class * { | |
native <methods>; | |
} | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet); | |
} | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
-keepclassmembers class * extends android.app.Activity { | |
public void *(android.view.View); | |
} | |
-keepclassmembers enum * { | |
public static **[] values(); | |
public static ** valueOf(java.lang.String); | |
} | |
-keep class * implements android.os.Parcelable { | |
public static final android.os.Parcelable$Creator *; | |
} | |
-keepclassmembers class **.R$* { | |
public static <fields>; | |
} | |
-keep public class net.sqlcipher.** { | |
*; | |
} | |
-keep public class net.sqlcipher.database.** { | |
*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@carloxavier
this
-keep class net.zetetic.database.sqlcipher.* { ; }
-keep class net.zetetic.database.* { *; }
still gives me
No pending exception expected: java.lang.NoSuchFieldError: no "J" field "mNativeHandle" in class "Lnet/sqlcipher/database/SQLiteDatabase;" or its superclasses