Advertisement
Guest User

proguard

a guest
Jul 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in /Users/pratama/Documents/SDK/tools/proguard/proguard-android.txt
  4. # You can edit the include path and order by changing the proguardFiles
  5. # directive in build.gradle.
  6. #
  7. # For more details, see
  8. # http://developer.android.com/guide/developing/tools/proguard.html
  9.  
  10. # Add any project specific keep options here:
  11.  
  12. # If your project uses WebView with JS, uncomment the following
  13. # and specify the fully qualified class name to the JavaScript interface
  14. # class:
  15. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  16. # public *;
  17. #}
  18.  
  19. # Uncomment this to preserve the line number information for
  20. # debugging stack traces.
  21. #-keepattributes SourceFile,LineNumberTable
  22.  
  23. # If you keep the line number information, uncomment this to
  24. # hide the original source file name.
  25. #-renamesourcefileattribute SourceFile
  26.  
  27. -dontwarn com.squareup.picasso.**
  28. -dontwarn com.google.errorprone.annotations.*
  29. -dontwarn okio.**
  30. -dontwarn retrofit2.**
  31. -keepclasseswithmembernames class * {
  32. native <methods>;
  33. }
  34.  
  35. -keep class com.squareup.okhttp.** { *; }
  36. -keep interface com.squareup.okhttp.** { *; }
  37. -dontwarn com.squareup.okhttp.**
  38.  
  39. -keepattributes Signature
  40. -keepattributes *Annotation*
  41. -keep class okhttp3.** { *; }
  42. -keep interface okhttp3.** { *; }
  43.  
  44. -dontwarn okhttp3.**
  45.  
  46. -keepattributes Signature
  47.  
  48. # For using GSON @Expose annotation
  49. -keepattributes *Annotation*
  50.  
  51. # Gson specific classes
  52. -dontwarn sun.misc.**
  53. #-keep class com.google.gson.stream.** { *; }
  54.  
  55. # Application classes that will be serialized/deserialized over Gson
  56. -keep class com.google.gson.examples.android.model.** { <fields>; }
  57.  
  58. # Prevent proguard from stripping interface information from TypeAdapterFactory,
  59. # JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
  60. -keep class * implements com.google.gson.TypeAdapterFactory
  61. -keep class * implements com.google.gson.JsonSerializer
  62. -keep class * implements com.google.gson.JsonDeserializer
  63.  
  64. # Prevent R8 from leaving Data object members always null
  65. -keepclassmembers,allowobfuscation class * {
  66. @com.google.gson.annotations.SerializedName <fields>;
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement