Skip to content

ant ProGuard fail #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liufsd opened this issue Dec 15, 2014 · 6 comments
Closed

ant ProGuard fail #146

liufsd opened this issue Dec 15, 2014 · 6 comments

Comments

@liufsd
Copy link

liufsd commented Dec 15, 2014

[proguard] Initializing...
[proguard] Warning: net.sqlcipher.DatabaseUtils: can't find referenced class org.apache.commons.codec.binary.Hex
[proguard] Warning: net.sqlcipher.DatabaseUtils: can't find referenced class org.apache.commons.codec.binary.Hex

@developernotes
Copy link
Member

Hi @79144876

What version of SQLCipher for Android are you using? We removed the commons codec dependency in the 3.2.0 release.

@liufsd
Copy link
Author

liufsd commented Dec 16, 2014

ok.maybe i can fix it by myself . i will test it again .
Thanks.

@Virthuss
Copy link

I have exactly the same error, did you manage to fix it?

@developernotes
Copy link
Member

@Virthuss what version of SQLCipher for Android are you using? Can you reproduce it with the SQLCipher for Android test suite?

@Virthuss
Copy link

I finally succeed to use it without having any error.

I used proguard, with the following, configuration, may it help someone.

                                             ____

-dontwarn com.google.android.gms.**
-dontwarn com.google.common.**
-dontwarn com.google.common.**
-dontwarn net.sqlcipher.**

-allowaccessmodification
-optimizations !code/simplification/arithmetic
-keepattributes Annotation

-keep public class com.google.android.gms.** { public *; }

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}

-keep class net.sqlcipher.* {
;
}
-dontwarn android.support.v7.

-keep class android.support.v7.** { ; }
-keep interface android.support.v7.
* { *; }

@developernotes
Copy link
Member

@Virthuss we are glad to hear it is working well for you, thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants