benjtupas
benjtupas

Reputation: 610

Facebook Account Kit conflicts with ProGuard

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.

enter image description here

Hope you can help us find the right ProGuard rules to resolve this conflict.

Thanks for the help guys!

Upvotes: 1

Views: 368

Answers (1)

Rakesh Kalashetti
Rakesh Kalashetti

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

Related Questions