0

Before installing Crashlytics the project.properties file was used to enable ProGuard by uncommenting this line:

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

After installing Crashlytics the project.properties file now has a comment saying that the project.properties file is managed by Fabric and the ProGuard line is no longer there.

I’ve tried researching how to enable ProGuard and have not found an answer yet. I’m using Eclipse and I exported my project using the following:

File -> Export -> Android -> Export Crashlytics-enabled Android Application

I also tried adding these lines to proguard-project.txt:

-keep class com.crashlytics.** { *; }
-keep class com.crashlytics.android.**
-keepattributes SourceFile,LineNumberTable *Annotation*

I used dex2jar to obtain the source code from the APK and the code wasn’t obfuscated.

Any help in getting ProGuard to work with Crashlytics would be greatly appreciated. Thanks!

1 Answer 1

0

Try This ProGuard rules

# Crashlytics
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**
-keepattributes SourceFile,LineNumberTable,*Annotation*
-keep class com.crashlytics.android.**

According with this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.