# Consumer ProGuard rules for SurePass eSign SDK
# These rules are applied automatically to apps that depend on this SDK.

# ── Public API ────────────────────────────────────────────────────────────────
-keep public class io.surepass.suresign.SurePassESign { public *; }
-keep public class io.surepass.suresign.SurePassESign$Builder { public *; }
-keep public enum  io.surepass.suresign.ESignEnvironment { *; }
-keep public interface io.surepass.suresign.ESignCallback { *; }
-keep public class io.surepass.suresign.ESignContract { public *; }
-keep public class io.surepass.suresign.ESignLaunchRequest { public *; }
-keep public class io.surepass.suresign.ESignOutcome { public *; }
-keep public class io.surepass.suresign.ESignOutcome$* { public *; }
-keep public class io.surepass.suresign.data.models.ESignResult { public *; }
-keep public class io.surepass.suresign.data.models.ESignError { public *; }
-keep public class io.surepass.suresign.data.models.ESignError$Companion { public *; }

# ── Internal data models (used by Gson for JSON deserialization) ──────────────
-keep class io.surepass.suresign.data.models.** { *; }

# ── Optional: silence the bundled eMudhra AAR's android.util.Log output ────────
# The AAR's only Log.d calls live on its web-signing path, which this SDK never
# launches — its active-path System.err/println noise is already suppressed at
# runtime by EMudhraLogSuppressor. Uncomment the block below ONLY if you also want
# a guaranteed-no-Log release build. CAUTION: -assumenosideeffects is app-wide, so
# this strips ALL android.util.Log.* calls (including your own) from minified
# release builds; it has no effect unless you set isMinifyEnabled = true.
#
# -assumenosideeffects class android.util.Log {
#     public static int v(...);
#     public static int d(...);
#     public static int i(...);
#     public static int w(...);
#     public static int e(...);
#     public static int wtf(...);
# }
