Using Proguard to remove unused classes in Google Play Services library

前端 未结 1 1022
天命终不由人
天命终不由人 2021-01-05 14:39

I\'m trying to get rid of unused classes from Google Play Services library. I\'ve created brand new android project with single empty activity. The project

相关标签:
1条回答
  • 2021-01-05 15:15

    From Google Play Services version 6.5 and beyond you can select which individual APIs you want to use, and import just those ones. Maybe that will help you decrease the APK size a little bit. Here's a list:

    Google+                         com.google.android.gms:play-services-plus:6.5.+
    Google Account Login            com.google.android.gms:play-services-identity:6.5.+
    Google Activity Recognition     com.google.android.gms:play-services-location:6.5.+
    Google App Indexing             com.google.android.gms:play-services-appindexing:6.5.+
    Google Cast                     com.google.android.gms:play-services-cast:6.5.+
    Google Drive                    com.google.android.gms:play-services-drive:6.5.+
    Google Fit                      com.google.android.gms:play-services-fitness:6.5.+
    Google Maps                     com.google.android.gms:play-services-maps:6.5.+
    Google Mobile Ads               com.google.android.gms:play-services-ads:6.5.+
    Google Panorama Viewer          com.google.android.gms:play-services-panorama:6.5.+
    Google Play Game services       com.google.android.gms:play-services-games:6.5.+
    Google Wallet                   com.google.android.gms:play-services-wallet:6.5.+
    Android Wear                    com.google.android.gms:play-services-wearable:6.5.+
    Google Actions
    Google Analytics
    Google Cloud Messaging          com.google.android.gms:play-services-base:6.5.+
    

    You can see more about this here.

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