From 3f45a30f23cb804378a9fe6901f58abf016aaaca Mon Sep 17 00:00:00 2001 From: wuqifeng <540416539@qq.com> Date: Fri, 10 May 2024 21:39:42 +0800 Subject: [PATCH] feat:集成友盟APM(flutter侧) --- android/app/proguard-rules.pro | 20 +++++++++++++++++++- android/app/src/main/AndroidManifest.xml | 2 ++ android/app/src/main/kotlin/com/kouyuxingqiu/wow_english/MainActivity.kt | 2 ++ build.yaml | 10 ++++++++++ lib/app/app.dart | 10 +++++++++- lib/common/request/basic_config.dart | 3 +-- lib/main.dart | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 7 files changed, 117 insertions(+), 6 deletions(-) create mode 100644 build.yaml diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index f4223b1..fe49ab4 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -24,4 +24,22 @@ -keep class com.tt.** { *; } -keep class com.xs.** { *; } -keep interface com.xs.** { *; } --keep enum com.xs.** { *; } \ No newline at end of file +-keep enum com.xs.** { *; } + +# 友盟混淆 +-keep class com.umeng.** { *; } + +-keep class com.uc.** { *; } + +-keep class com.efs.** { *; } + +-keepclassmembers class *{ + public(org.json.JSONObject); +} +-keepclassmembers enum *{ + publicstatic**[] values(); + publicstatic** valueOf(java.lang.String); +} +-keep public class com.kouyuxingqiu.wow_english.R$*{ + publicstaticfinalint*; +} \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 51368e1..93634d9 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -24,6 +24,8 @@ + +