What should my proguard-rules.pro file look like so that minifyEnabled true works with Cloud Endpoints v2?
When I release my app to Google Play and I have minifyEnabled true in my gradle, I get class not found or nulls for the Cloud Endpoints library classes.
Is there any guide or information on how to configure proguard-rules.pro in Android so proguard works with the Cloud Endpoints V2 libraries?
Or is there some other way to make it work?
If you are using
minifyEnabled = truealong with ProGuard, you should add this in your proguard-rules.pro fileif your dependencies for cloud endpoints start with
com.google.cloudorif your dependencies for cloud endpoints start with
com.google.endpointsor add both (depending on the dependencies you add).