Android ProGuard settings for Facebook

后端 未结 2 406
渐次进展
渐次进展 2020-12-03 06:48

I finally found out why my app crashes built for release. ProGuard was indeed stripping code from my application but i prevented this by manually adding the classes with the

相关标签:
2条回答
  • 2020-12-03 07:25

    fixed:

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

    instead of:

    -keepattributes Signature
    -keep class com.facebook.android.*
    -keep class android.webkit.WebViewClient
    -keep class * extends android.webkit.WebViewClient
    -keepclassmembers class * extends android.webkit.WebViewClient { 
        <methods>; 
    }
    

    Also be sure to check your hash key in your facebook app settings.

    0 讨论(0)
  • 2020-12-03 07:29

    In my case your solution

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

    works, but I had to keep

    -keepattributes Signature
    

    In order to get everything working.

    0 讨论(0)
提交回复
热议问题