Android ProGuard settings for Facebook

后端 未结 2 422
渐次进展
渐次进展 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 { 
        ; 
    }
    

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

提交回复
热议问题