# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
#}
-keep class com.facebook.hermes.unicode.** { *; }
-keep class com.sifir.** { *;}
-keep interface com.sifir.** { *;}
-keep enum com.sifir.** { *;}
-keep public class com.horcrux.svg.** {*;}
-keep class com.swmansion.reanimated.** { *; }

-keep class org.torproject.jni.** { *; }

# Fresco animation cache classes (not included in public API)
-dontwarn com.facebook.imagepipeline.cache.AnimatedCache
-dontwarn com.facebook.imagepipeline.cache.AnimationFrames

# CashuDevKit - Keep all CDK FFI classes and native methods
-keep class org.cashudevkit.** { *; }
-keep interface org.cashudevkit.** { *; }
-keep enum org.cashudevkit.** { *; }
-keepclassmembers class org.cashudevkit.** {
    native <methods>;
}

# JNA - Required for CDK FFI
-keep class com.sun.jna.** { *; }
-keep class * implements com.sun.jna.** { *; }
-dontwarn com.sun.jna.**
