Wednesday, 30 January 2013

Parse Android SDK, Facebook and ProGuard

If you're logging into Facebook via the Parse Android SDK and are building your application package (apk) with ProGuard enabled, here's what you'll need to add to your proguard-project.txt file:

# need this for Facebook SDK
-keepattributes Signature

-dontwarn com.facebook.**
-dontwarn com.parse.**

-keep class com.facebook.** { *; }
-keep class com.parse.** { *; }

6 comments:

Berglind Ósk said...

Thanks so much!! I spent all day yesterday trying to figure this out with the new Facebook API and finally found this solution this morning and it worked! :)

Anonymous said...

I have the same problem but cant figure out how to fix it

Anonymous said...

I have the same problem but cant figure out how to fix it

Anonymous said...

Can any help me im dumb when it comes to this stuff

Anonymous said...

What if you don't use proguard?

adil said...

If you don't use proguard, then you don't need to add anything to your 'proguard-project.txt' file and it's irrelevant for your purposes.