فهرست منبع

修复由Ktor引用Debug包导致的自动构建失败

aoi 5 ماه پیش
والد
کامیت
a09e9645f1
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      app/proguard-rules.pro

+ 4 - 0
app/proguard-rules.pro

@@ -133,3 +133,7 @@ cn.hutool.core.util.**{*;}
 # Throwable
 -keepnames class * extends java.lang.Throwable
 -keepclassmembernames,allowobfuscation class * extends java.lang.Throwable{*;}
+# 忽略 Ktor 在 Android 上对 Java SE 管理类的引用
+-dontwarn java.lang.management.**
+-dontwarn io.ktor.util.debug.IntellijIdeaDebugDetector
+-keep,allowobfuscation class io.ktor.util.debug.** { *; }