From 5b749073d02f25255a4e00e555a901bbf8b6542b Mon Sep 17 00:00:00 2001 From: MooN <56061215+MgKyawLay@users.noreply.github.com> Date: Tue, 13 Jan 2026 11:09:55 +0630 Subject: [PATCH] update rules for printer crash --- app/proguard-rules.pro | 18 +++++++++++++++++- paylibs/proguard-rules.pro | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 3b9d0f5..91cbd61 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -249,4 +249,20 @@ # Keep annotation-based bindings -keep @javax.inject.Inject class * { *; } -keep @dagger.Provides class * { *; } --keep @dagger.Module class * { *; } \ No newline at end of file +-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 \ No newline at end of file diff --git a/paylibs/proguard-rules.pro b/paylibs/proguard-rules.pro index b469731..b81aa11 100644 --- a/paylibs/proguard-rules.pro +++ b/paylibs/proguard-rules.pro @@ -36,4 +36,20 @@ # Keep specific classes from okhttp3.internal.platform -keep class okhttp3.internal.platform.BouncyCastlePlatform { *; } -keep class okhttp3.internal.platform.ConscryptPlatform { *; } --keep class okhttp3.internal.platform.OpenJSSEPlatform { *; } \ No newline at end of file +-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 \ No newline at end of file