Sfoglia il codice sorgente

[feat]键盘插件,配置混淆规则

hezihao 7 mesi fa
parent
commit
03c44f1ba3

+ 19 - 0
android/app/proguard-rules.pro

@@ -126,3 +126,22 @@
 ##flutter end
 #
 #
+
+# ==================================== Glide ====================================
+
+-keep class com.bumptech.glide.**{*;}
+
+# Glide Webp Decoder start
+
+-keep public class com.bumptech.glide.integration.webp.WebpImage { *; }
+-keep public class com.bumptech.glide.integration.webp.WebpFrame { *; }
+-keep public class com.bumptech.glide.integration.webp.WebpBitmapFactory { *; }
+
+# Glide Webp Decoder end
+
+# ==================================== Gson ====================================
+
+-keepattributes Signature
+-keep class com.google.gson.reflect.TypeToken { *; }
+-keep class * extends com.google.gson.reflect.TypeToken
+-keepattributes AnnotationDefault,RuntimeVisibleAnnotations

+ 2 - 0
plugins/keyboard_android/android/build.gradle

@@ -103,6 +103,8 @@ android {
         implementation "com.github.zjupure:webpdecoder:2.1.${glide_version}"
         // MagicIndicator ViewPager指示器
         implementation 'com.github.hackware1993:MagicIndicator:1.7.0'
+        // 混淆配置
+        implementation 'com.blankj:free-proguard:0.0.12'
     }
 
     testOptions {