You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a release build with the latest version (1.18.0) and AGP 8.1.1, and after adding the missing rules needed starting from 1.17.0, we now get this:
Task :android:app:minifyReleaseWithR8 FAILED
AGPBI: {"kind":"error","text":"Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/fred/Repositories/app/android/app/build/outputs/mapping/release/missing_rules.txt.","sources":[{}]}
AGPBI: {"kind":"error","text":"Missing class net.sqlcipher.Cursor (referenced from: boolean com.rudderstack.android.sdk.core.persistence.DefaultPersistenceProvider.checkIfEncryptionIsValid(java.io.File) and 1 other context)\nMissing class net.sqlcipher.database.SQLiteDatabase$CursorFactory (referenced from: boolean com.rudderstack.android.sdk.core.persistence.DefaultPersistenceProvider.checkIfEncryptionIsValid(java.io.File) and 4 other contexts)\nMissing class net.sqlcipher.database.SQLiteDatabase (referenced from: net.sqlcipher.database.SQLiteDatabase com.rudderstack.android.sdk.core.persistence.EncryptedPersistence.initialDatabase and 11 other contexts)\nMissing class net.sqlcipher.database.SQLiteOpenHelper (referenced from: void com.rudderstack.android.sdk.core.persistence.EncryptedPersistence.<init>(android.app.Application, com.rudderstack.android.sdk.core.persistence.EncryptedPersistence$DbParams, com.rudderstack.android.sdk.core.persistence.Persistence$DbCreateListener) and 2 other contexts)","sources":[{}],"tool":"R8"}
Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/fred/Repositories/app/android/app/build/outputs/mapping/release/missing_rules.txt.
Missing class net.sqlcipher.Cursor (referenced from: boolean com.rudderstack.android.sdk.core.persistence.DefaultPersistenceProvider.checkIfEncryptionIsValid(java.io.File) and 1 other context)
Missing class net.sqlcipher.database.SQLiteDatabase$CursorFactory (referenced from: boolean com.rudderstack.android.sdk.core.persistence.DefaultPersistenceProvider.checkIfEncryptionIsValid(java.io.File) and 4 other contexts)
Missing class net.sqlcipher.database.SQLiteDatabase (referenced from: net.sqlcipher.database.SQLiteDatabase com.rudderstack.android.sdk.core.persistence.EncryptedPersistence.initialDatabase and 11 other contexts)
Missing class net.sqlcipher.database.SQLiteOpenHelper (referenced from: void com.rudderstack.android.sdk.core.persistence.EncryptedPersistence.<init>(android.app.Application, com.rudderstack.android.sdk.core.persistence.EncryptedPersistence$DbParams, com.rudderstack.android.sdk.core.persistence.Persistence$DbCreateListener) and 2 other contexts)
The missing_rules.txt file has this:
# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
-dontwarn net.sqlcipher.Cursor
-dontwarn net.sqlcipher.database.SQLiteDatabase$CursorFactory
-dontwarn net.sqlcipher.database.SQLiteDatabase
-dontwarn net.sqlcipher.database.SQLiteOpenHelper
For now we can add those rules ourselves like before, but it would make more sense if the library can already include them.
The text was updated successfully, but these errors were encountered:
It does, we've added the rules we got from the generated missing_rules.txt file I mentioned, but we would expect the library to bundle its own rules like most other libraries do.
Same as #280, but for new missing rules
When building a release build with the latest version (1.18.0) and AGP 8.1.1, and after adding the missing rules needed starting from 1.17.0, we now get this:
The
missing_rules.txt
file has this:For now we can add those rules ourselves like before, but it would make more sense if the library can already include them.
The text was updated successfully, but these errors were encountered: