update rules for printer crash

This commit is contained in:
MooN 2026-01-13 11:09:55 +06:30
parent 398a0d7986
commit 5b749073d0
2 changed files with 34 additions and 2 deletions

View File

@ -250,3 +250,19 @@
-keep @javax.inject.Inject class * { *; } -keep @javax.inject.Inject class * { *; }
-keep @dagger.Provides class * { *; } -keep @dagger.Provides class * { *; }
-keep @dagger.Module class * { *; } -keep @dagger.Module class * { *; }
# Keep Nexgo SDK
-keep class com.nexgo.** { *; }
# Keep DDI interface (VERY IMPORTANT)
-keep class com.xinguodu.ddiinterface.** { *; }
# Keep printer implementations
-keep class com.nexgo.oaf.apiv3.device.printer.** { *; }
# Prevent method shrinking/optimization
-dontoptimize
-dontshrink
-dontwarn com.xgd.smartpos.manager.app.UsageInfo
-dontwarn com.xgd.smartpos.manager.app.UsageStats

View File

@ -37,3 +37,19 @@
-keep class okhttp3.internal.platform.BouncyCastlePlatform { *; } -keep class okhttp3.internal.platform.BouncyCastlePlatform { *; }
-keep class okhttp3.internal.platform.ConscryptPlatform { *; } -keep class okhttp3.internal.platform.ConscryptPlatform { *; }
-keep class okhttp3.internal.platform.OpenJSSEPlatform { *; } -keep class okhttp3.internal.platform.OpenJSSEPlatform { *; }
# Keep Nexgo SDK
-keep class com.nexgo.** { *; }
# Keep DDI interface (VERY IMPORTANT)
-keep class com.xinguodu.ddiinterface.** { *; }
# Keep printer implementations
-keep class com.nexgo.oaf.apiv3.device.printer.** { *; }
# Prevent method shrinking/optimization
-dontoptimize
-dontshrink
-dontwarn com.xgd.smartpos.manager.app.UsageInfo
-dontwarn com.xgd.smartpos.manager.app.UsageStats