Skip to content

Commit

Permalink
fix: add missing proguard rules for the sqlcipher dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
1abhishekpandey committed May 21, 2024
1 parent 7176a68 commit e926849
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions core/proguard-consumer-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
-keep class * extends com.rudderstack.rudderjsonadapter.RudderTypeAdapter

# Required to ensure the DefaultPersistenceProviderFactory is not removed by Proguard
# and works as expected even when the customer is not using encryption feature.
-dontwarn net.sqlcipher.Cursor
-dontwarn net.sqlcipher.database.SQLiteDatabase$CursorFactory
-dontwarn net.sqlcipher.database.SQLiteDatabase
-dontwarn net.sqlcipher.database.SQLiteOpenHelper
-keep class com.rudderstack.android.sdk.core.persistence.DefaultPersistenceProviderFactory { *; }

# Required for Device Mode Transformations
Expand All @@ -57,4 +52,11 @@

# Required for DBEncryption feature using SQLCipher
-keep class net.sqlcipher.** { *; }
-keep class net.sqlcipher.database.* { *; }
-keep class net.sqlcipher.database.* { *; }

# Suppress warnings for SQLCipher classes
-dontwarn net.zetetic.database.DatabaseErrorHandler
-dontwarn net.zetetic.database.sqlcipher.SQLiteDatabase$CursorFactory
-dontwarn net.zetetic.database.sqlcipher.SQLiteDatabase
-dontwarn net.zetetic.database.sqlcipher.SQLiteDatabaseHook
-dontwarn net.zetetic.database.sqlcipher.SQLiteOpenHelper

0 comments on commit e926849

Please sign in to comment.