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