proguard-rules.pro 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in C:\Users\Administrator\AppData\Local\Android\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. # Add any project specific keep options here:
  10. # If your project uses WebView with JS, uncomment the following
  11. # and specify the fully qualified class name to the JavaScript interface
  12. # class:
  13. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  14. # public *;
  15. #}
  16. #打印混淆信息
  17. -verbose
  18. #代码优化选项,不加该行会将没有用到的类删除,这里为了验证时间结果而使用,在实际生产环境中可根据实际需要选择是否使用
  19. -dontshrink
  20. -dontwarn android.support.annotation.Keep
  21. #保留注解,如果不添加改行会导致我们的@Keep注解失效
  22. -keepattributes *Annotation*
  23. -keep @android.support.annotation.Keep class **
  24. -keep class Jni.** { *; }
  25. -keep class VideoHandle.** { *; }