Bubble android client. Fork of https://git.zx2c4.com/wireguard-android/
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

94 строки
3.1 KiB

  1. -allowaccessmodification
  2. -dontpreverify
  3. -dontusemixedcaseclassnames
  4. -dontskipnonpubliclibraryclasses
  5. -verbose
  6. -keepclasseswithmembernames class * {
  7. native <methods>;
  8. }
  9. -keepclassmembers enum * {
  10. public static **[] values();
  11. public static ** valueOf(java.lang.String);
  12. }
  13. -keepclassmembers class * implements android.os.Parcelable {
  14. public static final ** CREATOR;
  15. }
  16. -keep class androidx.annotation.Keep
  17. -keep @androidx.annotation.Keep class * {*;}
  18. -keepclasseswithmembers class * {
  19. @androidx.annotation.Keep <methods>;
  20. }
  21. -keepclasseswithmembers class * {
  22. @androidx.annotation.Keep <fields>;
  23. }
  24. -keepclasseswithmembers class * {
  25. @androidx.annotation.Keep <init>(...);
  26. }
  27. ##---------------Begin: proguard configuration for Gson and Retrofit ----------
  28. # based on:
  29. # https://github.com/google/gson/blob/master/examples/android-proguard-example/proguard.cfg
  30. # https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro
  31. # Gson uses generic type information stored in a class file when working with fields. Proguard
  32. # removes such information by default, so configure it to keep all of it.
  33. # Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
  34. # EnclosingMethod is required to use InnerClasses.
  35. -keepattributes Signature, InnerClasses, EnclosingMethod
  36. # For using GSON @Expose annotation
  37. # Retrofit does reflection on method and parameter annotations.
  38. -keepattributes *Annotation*
  39. # Application classes that will be serialized/deserialized over Gson
  40. -keep class com.getbubblenow.android.model.* { <fields>; }
  41. # Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory,
  42. # JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
  43. -keep class * extends com.google.gson.TypeAdapter
  44. -keep class * implements com.google.gson.TypeAdapterFactory
  45. -keep class * implements com.google.gson.JsonSerializer
  46. -keep class * implements com.google.gson.JsonDeserializer
  47. # Prevent R8 from leaving Data object members always null
  48. -keepclassmembers,allowobfuscation class * {
  49. @com.google.gson.annotations.SerializedName <fields>;
  50. }
  51. # Retain service method parameters when optimizing.
  52. -keepclassmembers,allowshrinking,allowobfuscation interface * {
  53. @retrofit2.http.* <methods>;
  54. }
  55. # With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
  56. # and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
  57. -if interface * { @retrofit2.http.* <methods>; }
  58. -keep,allowobfuscation interface <1>
  59. # Gson specific classes
  60. -dontwarn sun.misc.**
  61. # Ignore annotation used for build tooling.
  62. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  63. # Ignore JSR 305 annotations for embedding nullability information.
  64. -dontwarn javax.annotation.**
  65. # Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
  66. -dontwarn kotlin.Unit
  67. # Top-level functions that can only be used by Kotlin.
  68. -dontwarn retrofit2.KotlinExtensions
  69. -dontwarn retrofit2.KotlinExtensions$*
  70. ##---------------End: proguard configuration for Gson and Retrofit ----------