Reputation: 610
We're developing an app where we're using Facebook's Account Kit.
It's been working for quite some time now but after we used ProGuard, it stopped working.
We've tried adding these lines to our proguard-rules.pro:
-keep class com.facebook.** { *; }
-keep class com.facebook.accountkit.** { *; }
Upon searching the web, most articles say that our token might be minified by ProGuard. We logged our Facebook ID and token on the release build. It seems to be okay.
Hope you can help us find the right ProGuard rules to resolve this conflict.
Thanks for the help guys!
Upvotes: 1
Views: 368
Reputation: 1059
-keep class com.facebook.FacebookSdk {
boolean isInitialized();
}
-keep class com.facebook.appevents.AppEventsLogger {
com.facebook.appevents.AppEventsLogger newLogger(android.content.Context);
void logSdkEvent(java.lang.String, java.lang.Double, android.os.Bundle);
}
Add to ProGuard file
for more info check this URL
Upvotes: 0