修复 release 构建时 R8 缺失类报错

This commit is contained in:
2026-10-14 12:55:29 +08:00
parent 1caf879d27
commit 6689cda4b2
+14 -1
View File
@@ -41,4 +41,17 @@
} }
# Base32 and algorithms (in case of reflection or specific needs) # Base32 and algorithms (in case of reflection or specific needs)
-keep class cn.airnan.a2fair.core.algorithm.** { *; } -keep class cn.airnan.a2fair.core.algorithm.** { *; }
# ML Kit references optional google-http-client / joda-time paths that are
# absent from the Android artifact; the code paths are never exercised.
# Generated by AGP in app/build/outputs/mapping/release/missing_rules.txt
-dontwarn com.google.api.client.http.GenericUrl
-dontwarn com.google.api.client.http.HttpHeaders
-dontwarn com.google.api.client.http.HttpRequest
-dontwarn com.google.api.client.http.HttpRequestFactory
-dontwarn com.google.api.client.http.HttpResponse
-dontwarn com.google.api.client.http.HttpTransport
-dontwarn com.google.api.client.http.javanet.NetHttpTransport$Builder
-dontwarn com.google.api.client.http.javanet.NetHttpTransport
-dontwarn org.joda.time.Instant