proguard-rules.pro 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Add project specific ProGuard rules here.
  2. # You can control the set of applied configuration files using the
  3. # proguardFiles setting in build.gradle.
  4. #
  5. # For more details, see
  6. # http://developer.android.com/guide/developing/tools/proguard.html
  7. # If your project uses WebView with JS, uncomment the following
  8. # and specify the fully qualified class name to the JavaScript interface
  9. # class:
  10. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  11. # public *;
  12. #}
  13. # Uncomment this to preserve the line number information for
  14. # debugging stack traces.
  15. #-keepattributes SourceFile,LineNumberTable
  16. # If you keep the line number information, uncomment this to
  17. # hide the original source file name.
  18. #-renamesourcefileattribute SourceFile
  19. # Retain generic type information for use by reflection by converters and adapters.
  20. -keepattributes Signature
  21. # Retain service method parameters when optimizing.
  22. -keepclassmembers,allowshrinking,allowobfuscation interface * {
  23. @retrofit2.http.* <methods>;
  24. }
  25. # Ignore annotation used for build tooling.
  26. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  27. # Ignore JSR 305 annotations for embedding nullability information.
  28. -dontwarn javax.annotation.**
  29. ## https://github.com/CarGuo/GSYVideoPlayer混淆代码
  30. -keep class com.shuyu.gsyvideoplayer.video.** { *; }
  31. -dontwarn com.shuyu.gsyvideoplayer.video.**
  32. -keep class com.shuyu.gsyvideoplayer.video.base.** { *; }
  33. -dontwarn com.shuyu.gsyvideoplayer.video.base.**
  34. -keep class com.shuyu.gsyvideoplayer.utils.** { *; }
  35. -dontwarn com.shuyu.gsyvideoplayer.utils.**
  36. -keep class tv.danmaku.ijk.** { *; }
  37. -dontwarn tv.danmaku.ijk.**
  38. -keep public class * extends android.view.View{
  39. *** get*();
  40. void set*(***);
  41. public <init>(android.content.Context);
  42. public <init>(android.content.Context, android.util.AttributeSet);
  43. public <init>(android.content.Context, android.util.AttributeSet, int);
  44. }
  45. ## end