Skip to content

Commit

Permalink
Merge branch 'proguard-rules' of https://github.com/eygraber/sqlciphe…
Browse files Browse the repository at this point in the history
…r-android into eygraber-proguard-rules
  • Loading branch information
developernotes committed Nov 10, 2023
2 parents d3dc1ef + b5b6c6e commit 02d5ff1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqlcipher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ android {
versionName "${rootProject.ext.libraryVersion}"
project.archivesBaseName = "sqlcipher-android-${versionName}"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
consumerProguardFile 'consumer-rules.pro'
}

buildTypes {
Expand Down
18 changes: 18 additions & 0 deletions sqlcipher/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-keep class net.zetetic.** {
native <methods>;
private native <methods>;
public <init>(...);
long mNativeHandle;
}

-keepclassmembers class net.zetetic.database.sqlcipher.SQLiteCustomFunction {
public java.lang.String name;
public int numArgs;
private void dispatchCallback(java.lang.String[]);
}

-keepclassmembers class net.zetetic.database.sqlcipher.SQLiteDebug$PagerStats {
public int largestMemAlloc;
public int memoryUsed;
public int pageCacheOverflow;
}

0 comments on commit 02d5ff1

Please sign in to comment.