question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SQLCipher proguard rule

See original GitHub issue

DBFlow Version:

    apt "com.github.Raizlabs.DBFlow:dbflow-processor:3.1.1"
    compile "com.github.Raizlabs.DBFlow:dbflow-core:3.1.1"
    compile "com.github.Raizlabs.DBFlow:dbflow:3.1.1"
    compile "com.github.Raizlabs.DBFlow:dbflow-sqlcipher:3.1.1@aar"

Question What are recommended proguard rules for SQLCipher

Description: When I use it with proguard I already use some rules

-keep class info.max.db.model.** { *; }
-keep class * extends com.raizlabs.android.dbflow.config.DatabaseHolder { *; }
-keep class com.raizlabs.android.dbflow.** { *; }
-keep class * extends com.raizlabs.android.dbflow.config.BaseDatabaseDefinition { *; }
-keep class net.sqlcipher.** { *; }
-dontwarn net.sqlcipher.**

but I receive this too, any clue how to solve it ?

Warning: com.raizlabs.dbflow.android.sqlcipher.SQLCipherOpenHelper: can't find referenced method 'net.sqlcipher.database.SQLiteDatabase getWritableDatabase(java.lang.String)' in program class com.raizlabs.dbflow.android.sqlcipher.SQLCipherOpenHelper
Warning: com.raizlabs.dbflow.android.sqlcipher.SQLCipherOpenHelper$BackupHelper: can't find referenced method 'net.sqlcipher.database.SQLiteDatabase getWritableDatabase(java.lang.String)' in program class com.raizlabs.dbflow.android.sqlcipher.SQLCipherOpenHelper$BackupHelper

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hannesa2commented, Oct 3, 2016

I can confirm with gradle build tools 2.1.3 it works perfect. Does anyone has a clue, what’s wrong with 2.2.0. We all have to go to 2.2.0 sooner or later

0reactions
ghost1980commented, Oct 3, 2016

Do you have tons of errors on gradle 2.2.0? Try downgrade gradle to 2.1.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ProGuard with SQLCipher for Android
No, that is not required, however ProGuard does provide other useful features such as file shrinking and optimization. I will remove the -dontobfuscate...
Read more >
Android Proguard SqlCipher NoClassDefFoundError
Have been battling with Proguard all day and have tried many examples and solutions on the official Proguard site as well as StackOverflow....
Read more >
SQLCipher encrypted error in android release version.
I am trying to encrypt database using SQLCipher. ... I even tried proguard rules mentioned in every possible site. Here is my progaurd...
Read more >
SQLCipher - DBFlow - GitBook
As of 3.0.0-beta2+, DBFlow now supports SQLCipher fairly easily. To add the library add the library to your ... You also need to...
Read more >
ProGuard Android obfuscation
Hi Emery, I'm glad to hear you were able to get ProGuard working with SQLCipher for Android. Based on the -keep documentation [1]...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found