Advertisement
Guest User

Proguard log file

a guest
Feb 20th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.38 KB | None | 0 0
  1. # This is a configuration file for ProGuard.
  2. # http://proguard.sourceforge.net/index.html#manual/usage.html
  3. -dontusemixedcaseclassnames
  4. -dontskipnonpubliclibraryclasses
  5. -verbose
  6.  
  7. # Optimization is turned off by default. Dex does not like code run
  8. # through the ProGuard optimize and preverify steps (and performs some
  9. # of these optimizations on its own).
  10. #-dontoptimize
  11. #-dontpreverify
  12.  
  13. # If you want to enable optimization, you should include the
  14. # following:
  15. -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
  16. -optimizationpasses 5
  17. -allowaccessmodification
  18. #
  19. # Note that you cannot just include these flags in your own
  20. # configuration file; if you are including this file, optimization
  21. # will be turned off. You'll need to either edit this file, or
  22. # duplicate the contents of this file and remove the include of this
  23. # file from your project's proguard.config path property.
  24.  
  25. -keep public class * extends android.app.Application
  26. -keep public class * extends android.app.Service
  27. -keep public class * extends android.content.BroadcastReceiver
  28. -keep public class * extends android.content.ContentProvider
  29. -keep public class * extends android.app.backup.BackupAgent
  30. -keep public class * extends android.preference.Preference
  31. -keep public class * extends android.support.v4.app.Fragment
  32. -keep public class * extends android.support.v4.app.DialogFragment
  33. -keep public class * extends android.app.Fragment
  34.  
  35. -dontwarn android.app.Activity
  36. -dontwarn android.app.AppCompatActivity
  37.  
  38. # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
  39. -keepclasseswithmembernames class * {
  40. native <methods>;
  41. }
  42.  
  43. -keep public class * extends android.view.View {
  44. public <init>(android.content.Context);
  45. public <init>(android.content.Context, android.util.AttributeSet);
  46. public <init>(android.content.Context, android.util.AttributeSet, int);
  47. public void set*(...);
  48. }
  49.  
  50. -keepclasseswithmembers class * {
  51. public <init>(android.content.Context, android.util.AttributeSet);
  52. }
  53.  
  54. -keepclasseswithmembers class * {
  55. public <init>(android.content.Context, android.util.AttributeSet, int);
  56. }
  57.  
  58. -keepclassmembers class * extends android.app.Activity {
  59. public void *(android.view.View);
  60. }
  61.  
  62. # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
  63. -keepclassmembers enum * {
  64. public static **[] values();
  65. public static ** valueOf(java.lang.String);
  66. }
  67.  
  68. -keep class * implements android.os.Parcelable {
  69. public static final android.os.Parcelable$Creator *;
  70. }
  71.  
  72. -keepclassmembers class **.R$* {
  73. public static <fields>;
  74. }
  75.  
  76. -keep class com.google.android.gms.** { *; }
  77. -keepattributes SourceFile,LineNumberTable,InnerClasses,Signature,Exceptions
  78.  
  79. -keep class android.support.v4.**
  80. -dontwarn android.support.v4.**
  81.  
  82. -dontwarn android.support.**
  83. -dontwarn com.github.barteksc.**
  84. -dontwarn okio.**
  85.  
  86. -dontwarn com.github.bumptech.glide.**
  87. -dontwarn io.github.douglasjunior.androidSimpleTooltip.**
  88.  
  89. # JSR 305 annotations are for embedding nullability information.
  90. -dontwarn javax.annotation.**
  91.  
  92. # A resource is loaded with a relative path so the package of this class must be preserved.
  93. -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
  94.  
  95. # Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
  96. -dontwarn org.codehaus.mojo.animal_sniffer.*
  97.  
  98. # OkHttp platform used only on JVM and when Conscrypt dependency is available.
  99. -dontwarn okhttp3.internal.platform.ConscryptPlatform
  100.  
  101. -keep public class * implements com.bumptech.glide.module.GlideModule
  102. -keep public class * extends com.bumptech.glide.module.AppGlideModule
  103. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  104. **[] $VALUES;
  105. public *;
  106. }
  107. -dontwarn com.bumptech.glide.load.resource.bitmap.VideoDecoder
  108. #firebase
  109. -keepattributes Signature
  110. -keep class com.firebase.** { *; }
  111. -keep class org.apache.** { *; }
  112. -keepnames class com.fasterxml.jackson.** { *; }
  113. -keepnames class javax.servlet.** { *; }
  114. -keepnames class org.ietf.jgss.** { *; }
  115. -dontwarn org.apache.**
  116. -dontwarn org.w3c.dom.**
  117.  
  118. -dontwarn android.support.v4.**
  119. -dontwarn com.google.android.gms.**
  120. -dontwarn com.google.firebase.**
  121.  
  122. -keep class * extends com.myCompany.package.flavor.Flavor { *; }
  123. -keep class com.myCompany.** { *; }
  124. #realm
  125. -keep class io.realm.annotations.RealmModule
  126. -keep @io.realm.annotations.RealmModule class *
  127. -keep class io.realm.internal.Keep
  128. -keep @io.realm.internal.Keep class *
  129. -dontwarn javax.**
  130. -dontwarn io.realm.**
  131. #
  132. -dontwarn com.android.vending.expansion.zipfile.**, jcifs.smb.SmbFile, jcifs.http.*, com.google.android.gms.cast.CastDevice
  133. #retrofit
  134. # Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
  135. # EnclosingMethod is required to use InnerClasses.
  136. -keepattributes Signature, InnerClasses, EnclosingMethod
  137.  
  138. # Retrofit does reflection on method and parameter annotations.
  139. -keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
  140.  
  141. # Retain service method parameters when optimizing.
  142. -keepclassmembers,allowshrinking,allowobfuscation interface * {
  143. @retrofit2.http.* <methods>;
  144. }
  145.  
  146. # Ignore annotation used for build tooling.
  147. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  148.  
  149. # Ignore JSR 305 annotations for embedding nullability information.
  150. -dontwarn javax.annotation.**
  151.  
  152. # Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
  153. -dontwarn kotlin.Unit
  154.  
  155. # Top-level functions that can only be used by Kotlin.
  156. -dontwarn retrofit2.KotlinExtensions
  157.  
  158. # With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
  159. # and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
  160. #-if interface * { @retrofit2.http.* <methods>; }
  161. -keep,allowobfuscation interface <1>
  162.  
  163. #appcompat
  164. -keep public class android.support.v7.widget.** { *; }
  165. -keep public class android.support.v7.internal.widget.** { *; }
  166. -keep public class android.support.v7.internal.view.menu.** { *; }
  167.  
  168. -keep public class * extends android.support.v4.view.ActionProvider {
  169. public <init>(android.content.Context);
  170. }
  171.  
  172. -keep class io.realm.annotations.RealmModule
  173. -keep @io.realm.annotations.RealmModule class *
  174. -keep class io.realm.internal.Keep
  175. -keep @io.realm.internal.Keep class *
  176. -dontwarn javax.**
  177. -dontwarn io.realm.**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement