# Localization Consumer ProGuard Rules
# These rules are applied when the CONSUMER app minifies their code
# This preserves the Localization library's public API when consumers use R8/ProGuard

# ============================================================================
# Public API Preservation
# ============================================================================
# Keep the Strings interface and its implementation - this is the library's API contract
# The code is generated under com.veriff.sdk package
-keep public interface com.veriff.sdk.Strings { *; }
-keep public class com.veriff.sdk.TranslatedStrings {
    public *;
    protected *;
}

# ============================================================================
# Annotation Preservation
# ============================================================================
# Preserve annotations that are read at runtime
-keepattributes *Annotation*
-keepattributes Signature

# ============================================================================
# Debug Information
# ============================================================================
# Preserve file names and line numbers for better crash reports
# This makes stack traces much more useful for debugging
-keepattributes SourceFile,LineNumberTable
