扫码改用 ZXing 并按 ABI 拆分安装包(30MB 减至 5MB)

This commit is contained in:
2026-10-14 14:04:36 +08:00
parent 32ba07651b
commit 3aa6da26a9
5 changed files with 147 additions and 62 deletions
+6 -6
View File
@@ -28,9 +28,6 @@
@androidx.room.PrimaryKey <fields>;
}
# CameraX
-keep class androidx.camera.core.** { *; }
# JNI
-keepclasseswithmembernames class * {
native <methods>;
@@ -43,9 +40,9 @@
# Base32 and algorithms (in case of reflection or specific needs)
-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
# Optional compile-time-only references in Tink (androidx.security-crypto):
# google-http-client / joda-time paths and JSR-305 annotations that are absent
# at runtime. 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
@@ -54,4 +51,7 @@
-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 javax.annotation.Nullable
-dontwarn javax.annotation.concurrent.GuardedBy
-dontwarn javax.annotation.concurrent.ThreadSafe
-dontwarn org.joda.time.Instant