uni_android_plugin_project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
4.6 KiB

  1. -optimizationpasses 5
  2. -dontusemixedcaseclassnames
  3. -dontskipnonpubliclibraryclasses
  4. -dontpreverify
  5. -verbose
  6. #-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  7. -dontoptimize
  8. -keep public class * extends android.app.Activity
  9. -keep public class * extends android.app.Application
  10. -keep public class * extends android.app.Service
  11. -keep public class * extends android.content.BroadcastReceiver
  12. -keep public class * extends android.content.ContentProvider
  13. -keep public class * extends android.app.backup.BackupAgentHelper
  14. -keep public class * extends android.preference.Preference
  15. -keep public class * extends io.dcloud.common.DHInterface.IPlugin
  16. -keep public class * extends io.dcloud.common.DHInterface.IFeature
  17. -keep public class * extends io.dcloud.common.DHInterface.IBoot
  18. -keep public class * extends io.dcloud.common.DHInterface.IReflectAble
  19. -keep class io.dcloud.feature.speech.** {*;}
  20. -keep class io.dcloud.net.** {*;}
  21. -keep class io.dcloud.common.constant.** {*;}
  22. -keep class io.dcloud.common.sonic.** {*;}
  23. -keep class io.dcloud.common.DHInterface.** {*;}
  24. -keep class io.dcloud.common.util.** {*;}
  25. -keep class io.dcloud.common.adapter.** {*;}
  26. -keep class io.dcloud.feature.internal.reflect.** {*;}
  27. -keep class io.dcloud.feature.internal.sdk.** {*;}
  28. -keep class io.dcloud.feature.payment.** {*;}
  29. -keep class io.dcloud.sdk.** {*;}
  30. -keep class com.** {*;}
  31. -keep class io.dcloud.nineoldandroids.** {*;}
  32. -keep class vi.com.gdi.** {*;}
  33. -keep class androidx.** {*;}
  34. -dontwarn pl.droidsonroids.gif.**
  35. -keepclasseswithmembers class * extends io.dcloud.js.geolocation.GeoManagerBase {
  36. <methods>;
  37. }
  38. -keep class io.dcloud.share.AbsWebviewClient
  39. -keepclasseswithmembers class io.dcloud.share.AbsWebviewClient {
  40. <methods>;
  41. }
  42. -keep class io.dcloud.share.ShareAuthorizeView
  43. -keepclasseswithmembers class io.dcloud.share.ShareAuthorizeView {
  44. <methods>;
  45. }
  46. -keep class io.dcloud.share.IFShareApi
  47. -keep public class * extends io.dcloud.share.IFShareApi
  48. -keepclasseswithmembers class io.dcloud.share.IFShareApi {
  49. <methods>;
  50. }
  51. -keepattributes Exceptions,InnerClasses,Signature,Deprecated, SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
  52. -keep class io.dcloud.appstream.StreamAppManager
  53. -keepclasseswithmembers class io.dcloud.appstream.StreamAppManager {
  54. public protected <methods>;
  55. }
  56. -keep class io.dcloud.common.DHInterface.IReflectAble
  57. -keep public class * extends io.dcloud.common.DHInterface.IReflectAble{
  58. public protected <methods>;
  59. public protected *;
  60. }
  61. -keep class **.R
  62. -keep class **.R$* {
  63. public static <fields>;
  64. }
  65. -keep public class * extends io.dcloud.common.DHInterface.IJsInterface{
  66. public protected <methods>;
  67. public protected *;
  68. }
  69. -keepclasseswithmembers class io.dcloud.EntryProxy {
  70. <methods>;
  71. }
  72. -keep class * implements android.os.IInterface {
  73. <methods>;
  74. }
  75. -keepclasseswithmembers class *{
  76. public static java.lang.String getJsContent();
  77. }
  78. -keepclasseswithmembers class io.dcloud.appstream.StreamAppScriptEntry {
  79. <methods>;
  80. }
  81. -keepclasseswithmembers class *{
  82. public static void onReceiver1(android.content.Intent, android.content.Context);
  83. }
  84. -keepclasseswithmembers class *{
  85. public static io.dcloud.share.AbsWebviewClient getWebviewClient(io.dcloud.share.ShareAuthorizeView);
  86. }
  87. -keepclasseswithmembers class *{
  88. public java.lang.String exec(java.lang.String,java.lang.String,java.lang.String[]);
  89. }
  90. -keepattributes Exceptions,InnerClasses,Signature,Deprecated, SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
  91. -keepclasseswithmembers class * {
  92. public <init>(android.content.Context, android.util.AttributeSet);
  93. }
  94. -keepclasseswithmembers class * {
  95. public <init>(android.content.Context, android.util.AttributeSet, int);
  96. }
  97. -keep public class * extends android.app.Application{
  98. public static <methods>;
  99. public *;
  100. }
  101. -keepclassmembers class * extends android.app.Activity {
  102. public void *(android.view.View);
  103. public static <methods>;
  104. }
  105. -keepclassmembers enum * {
  106. public static **[] values();
  107. public static ** valueOf(java.lang.String);
  108. }
  109. -keep class * implements android.os.Parcelable {
  110. public static final android.os.Parcelable$Creator *;
  111. }
  112. -keepattributes Signature
  113. -keep class io.dcloud.encryption.K {*;}
  114. -dontwarn com.igexin.**
  115. -keep class org.json.** { *; }
  116. -dontwarn com.amap.**
  117. -dontwarn org.apache.commons.**
  118. -dontwarn com.sina.weibo.sdk.**
  119. -keep class uni.** {*;}
  120. -keep class pl.** {*;}
  121. -keep class io.** {*;}
  122. -keep class org.mozilla.**{*;}
  123. -keep class androidtranscoder.**{*;}
  124. -keep class XI.**{*;}