diff --git a/android-database-sqlcipher/build.gradle b/android-database-sqlcipher/build.gradle index 748fceb2..5fb5f643 100644 --- a/android-database-sqlcipher/build.gradle +++ b/android-database-sqlcipher/build.gradle @@ -13,6 +13,10 @@ android { targetSdkVersion "${targetAndroidSdkVersion}" versionCode 1 versionName "${clientVersionNumber}" + + defaultConfig { + consumerProguardFiles 'proguard-project.txt' + } } buildTypes { diff --git a/android-database-sqlcipher/proguard-project.txt b/android-database-sqlcipher/proguard-project.txt new file mode 100644 index 00000000..496fbbe5 --- /dev/null +++ b/android-database-sqlcipher/proguard-project.txt @@ -0,0 +1,26 @@ +-optimizationpasses 5 +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses +-dontskipnonpubliclibraryclassmembers +-dontpreverify +-verbose +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable + +-dontwarn javax.annotation.** + +-keepclasseswithmembernames class * { + native ; +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} + +-keep class net.sqlcipher.** { + *; +}