I'm trying to obfuscate google play services jar with proguard. I tried two versions of the proguard config file.
First one contains
-keep class ** { public protected *; }
And the jar stays not obfuscated. It looks ok.
Second one contains
-keep class com.** { public protected *; }
And proguard deletes everithing. I get an error:
Error: The output jar is empty. Did you specify the proper '-keep' options?
Why is it empty, as the main google play services package is com.google.android.gms?
The following ProGuard configuration shrinks the Google Play Services jar, without optimization or obfuscation, keeping only the ads-related API:
It reduces the original jar from 2819 classes to 409 classes (2.7M to 476K). I haven't tested the result yet. If any removed classes are accessed by reflection, they need to be kept in the configuration as well.