KBZ-POS/baselib/proguard-rules.pro

55 lines
1.8 KiB
Prolog
Raw Permalink Normal View History

2025-11-13 08:15:18 +00:00
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
## Bouncy Castle Keep Rules to Fix PKCS12 Errors ##
# The BouncyCastle provider is often used for Keystore operations on Android.
# These rules ensure internal classes are not stripped or renamed.
-keep class com.android.org.bouncycastle.** { *; }
-dontwarn com.android.org.bouncycastle.**
2026-01-12 16:14:22 +00:00
-keep class org.bouncycastle.** {*;}
-keepclassmembers,allowobfuscation class * {
@com.google.gson.annotations.SerializedName <fields>;
}
# Hilt support for baselib
-keep class com.utsmyanmar.baselib.di.** { *; }
-keep class com.utsmyanmar.baselib.emv.EmvParamOperation { *; }
-keep class com.utsmyanmar.baselib.emv.TerminalParamOperation { *; }
-keep class com.utsmyanmar.baselib.repo.Repository { *; }
# Keep all Hilt generated classes in baselib
-keep class **_HiltModules { *; }
-keep class **_HiltModules$* { *; }
# Keep classes with @Inject annotations
-keepclasseswithmembers class * {
@javax.inject.Inject <init>(...);
}
-keepclasseswithmembers class * {
@javax.inject.Inject <fields>;
}
-keepclasseswithmembers class * {
@javax.inject.Inject <methods>;
}