Lowering method count

The new Google Play 5.0 is a monster… it has 20k methods. That’s 1/3 of the 64 methods available GONE… in one shot!

Here is how to repackage it using jarjar:

Here’s a concrete example of repackaging Google Play Services with jarjar, for using only Analytics, Google Cast and Ads APIS:

google-play-services.rules

keep com.google.android.gms.analytics.*
keep com.google.android.gms.auth.*
keep com.google.android.gms.common.*
keep com.google.android.gms.cast.*
keep com.google.android.gms.ads.*
keep com.google.ads.*

////

java -jar -jarjar.jar process google-play-services.rules google-play-services.jar google-play-services-stripped.jar

You can thank me later when you run into this problem and remember this post :slight_smile: