proguard-rules.pro 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #基线包使用,生成mapping.txt
  20. -printmapping mapping.txt
  21. #生成的mapping.txt在app/build/outputs/mapping/release路径下,移动到/app路径下
  22. #修复后的项目使用,保证混淆结果一致
  23. #-applymapping mapping.txt
  24. #hotfix
  25. -keep class com.taobao.sophix.**{*;}
  26. -keep class com.ta.utdid2.device.**{*;}
  27. #防止inline
  28. -dontoptimize
  29. -keepclassmembers class com.yihucha.hbyhc.application.MyApplication {
  30. public <init>();
  31. }
  32. #-keep class com.yihucha.hbyhc.application.SophixStubApplication$RealApplicationStub