Skip to content

Commit

Permalink
fix: add missing proguard rules for the sqlcipher dependency (#432)
Browse files Browse the repository at this point in the history
* fix: add missing proguard rules for the sqlcipher dependency

* chore: remove the unrequired sqlchipher rules

* Revert "chore: remove the unrequired sqlchipher rules"

This reverts commit 0c18a83.

* chore: remove the unrequired sqlchipher rules
  • Loading branch information
1abhishekpandey authored May 28, 2024
1 parent 7176a68 commit 98cacc1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 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 @@ -56,5 +51,8 @@
-keepclassmembers class com.rudderstack.android.sdk.core.RudderTraits { java.util.Map extras; }

# Required for DBEncryption feature using SQLCipher
-keep class net.sqlcipher.** { *; }
-keep class net.sqlcipher.database.* { *; }
-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 98cacc1

Please sign in to comment.