proguard.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Proguard flags for consumers of the Google Play services SDK
  2. # https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project
  3. # Keep SafeParcelable value, needed for reflection. This is required to support backwards
  4. # compatibility of some classes.
  5. -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
  6. public static final *** NULL;
  7. }
  8. # Needed for Parcelable/SafeParcelable classes & their creators to not get renamed, as they are
  9. # found via reflection.
  10. -keepnames class * implements android.os.Parcelable
  11. -keepclassmembers class * implements android.os.Parcelable {
  12. public static final *** CREATOR;
  13. }
  14. # Keep the classes/members we need for client functionality.
  15. -keep @interface android.support.annotation.Keep
  16. -keep @android.support.annotation.Keep class *
  17. -keepclasseswithmembers class * {
  18. @android.support.annotation.Keep <fields>;
  19. }
  20. -keepclasseswithmembers class * {
  21. @android.support.annotation.Keep <methods>;
  22. }
  23. # Keep the names of classes/members we need for client functionality.
  24. -keep @interface com.google.android.gms.common.annotation.KeepName
  25. -keepnames @com.google.android.gms.common.annotation.KeepName class *
  26. -keepclassmembernames class * {
  27. @com.google.android.gms.common.annotation.KeepName *;
  28. }
  29. # Keep Dynamite API entry points
  30. -keep @interface com.google.android.gms.common.util.DynamiteApi
  31. -keep @com.google.android.gms.common.util.DynamiteApi public class * {
  32. public <fields>;
  33. public <methods>;
  34. }
  35. # Needed when building against pre-Marshmallow SDK.
  36. -dontwarn android.security.NetworkSecurityPolicy
  37. # Needed when building against Marshmallow SDK.
  38. -dontwarn android.app.Notification
  39. # Needed for isDeviceProtectedStorage when building against a pre-Nougat SDK.
  40. -dontwarn android.content.Context