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.

151 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. -keep class com.tencent.** { *; }
  35. -dontwarn pl.droidsonroids.gif.**
  36. -keepclasseswithmembers class * extends io.dcloud.js.geolocation.GeoManagerBase {
  37. <methods>;
  38. }
  39. -keep class io.dcloud.share.AbsWebviewClient
  40. -keepclasseswithmembers class io.dcloud.share.AbsWebviewClient {
  41. <methods>;
  42. }
  43. -keep class io.dcloud.share.ShareAuthorizeView
  44. -keepclasseswithmembers class io.dcloud.share.ShareAuthorizeView {
  45. <methods>;
  46. }
  47. -keep class io.dcloud.share.IFShareApi
  48. -keep public class * extends io.dcloud.share.IFShareApi
  49. -keepclasseswithmembers class io.dcloud.share.IFShareApi {
  50. <methods>;
  51. }
  52. -keepattributes Exceptions,InnerClasses,Signature,Deprecated, SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
  53. -keep class io.dcloud.appstream.StreamAppManager
  54. -keepclasseswithmembers class io.dcloud.appstream.StreamAppManager {
  55. public protected <methods>;
  56. }
  57. -keep class io.dcloud.common.DHInterface.IReflectAble
  58. -keep public class * extends io.dcloud.common.DHInterface.IReflectAble{
  59. public protected <methods>;
  60. public protected *;
  61. }
  62. -keep class **.R
  63. -keep class **.R$* {
  64. public static <fields>;
  65. }
  66. -keep public class * extends io.dcloud.common.DHInterface.IJsInterface{
  67. public protected <methods>;
  68. public protected *;
  69. }
  70. -keepclasseswithmembers class io.dcloud.EntryProxy {
  71. <methods>;
  72. }
  73. -keep class * implements android.os.IInterface {
  74. <methods>;
  75. }
  76. -keepclasseswithmembers class *{
  77. public static java.lang.String getJsContent();
  78. }
  79. -keepclasseswithmembers class io.dcloud.appstream.StreamAppScriptEntry {
  80. <methods>;
  81. }
  82. -keepclasseswithmembers class *{
  83. public static void onReceiver1(android.content.Intent, android.content.Context);
  84. }
  85. -keepclasseswithmembers class *{
  86. public static io.dcloud.share.AbsWebviewClient getWebviewClient(io.dcloud.share.ShareAuthorizeView);
  87. }
  88. -keepclasseswithmembers class *{
  89. public java.lang.String exec(java.lang.String,java.lang.String,java.lang.String[]);
  90. }
  91. -keepattributes Exceptions,InnerClasses,Signature,Deprecated, SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
  92. -keepclasseswithmembers class * {
  93. public <init>(android.content.Context, android.util.AttributeSet);
  94. }
  95. -keepclasseswithmembers class * {
  96. public <init>(android.content.Context, android.util.AttributeSet, int);
  97. }
  98. -keep public class * extends android.app.Application{
  99. public static <methods>;
  100. public *;
  101. }
  102. -keepclassmembers class * extends android.app.Activity {
  103. public void *(android.view.View);
  104. public static <methods>;
  105. }
  106. -keepclassmembers enum * {
  107. public static **[] values();
  108. public static ** valueOf(java.lang.String);
  109. }
  110. -keep class * implements android.os.Parcelable {
  111. public static final android.os.Parcelable$Creator *;
  112. }
  113. -keepattributes Signature
  114. -keep class io.dcloud.encryption.K {*;}
  115. -dontwarn com.igexin.**
  116. -keep class org.json.** { *; }
  117. -dontwarn com.amap.**
  118. -dontwarn org.apache.commons.**
  119. -dontwarn com.sina.weibo.sdk.**
  120. -keep class uni.** {*;}
  121. -keep class pl.** {*;}
  122. -keep class io.** {*;}
  123. -keep class org.mozilla.**{*;}
  124. -keep class androidtranscoder.**{*;}
  125. -keep class XI.**{*;}