Reduce the size of android facebook SDK

后端 未结 1 1544
无人共我
无人共我 2021-02-10 05:54

We are using facebook sdk to login the users to our app. But the SDK is pretty large hence it is increasing our apk size. Since we use only the login feature we do

相关标签:
1条回答
  • 2021-02-10 06:33

    I see some possible ways :

    1. There are some Facebook sdk alternatives on GitHub like: https://github.com/greenhalolabs/facebooklogin https://github.com/sromku/android-simple-facebook So try to find the best fitted library for your needs

    2. You can try to use older Facebook library, which would be lighter, but also lack of some functions.

    Before you do this point read some articles like this: Facebook authentication without login button

    1. Finally, try to exclude unnecessary libs like in this example:

      dependencies {compile('com.facebook.android:facebook-android-sdk:4.3.0') { exclude module: 'support-v4' } }

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