d3ro-voice/apps/mobile-rn/android/app/proguard-rules.pro

80 lines
3.6 KiB
Prolog

# D3RO Voice Android R8 / ProGuard Configuration
# Applied alongside getDefaultProguardFile("proguard-android-optimize.txt") in release builds.
# Preserve readable crash stack traces with file & line numbers
-keepattributes SourceFile,LineNumberTable,*Annotation*,Signature,Exceptions,InnerClasses,EnclosingMethod
-renamesourcefileattribute SourceFile
# D3RO Voice first-party native modules, services, activities, and BuildConfig
-keep class com.d3ro.voice.** { *; }
# React Native 0.85 / Hermes / JSI / TurboModules
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStripAny
-keep,allowobfuscation @interface com.facebook.jni.annotations.DoNotStrip
-keep,allowobfuscation @interface com.facebook.jni.annotations.DoNotStripAny
-keep,allowobfuscation @interface com.facebook.yoga.annotations.DoNotStrip
-keep @com.facebook.proguard.annotations.DoNotStrip class *
-keepclassmembers class * {
@com.facebook.proguard.annotations.DoNotStrip *;
}
-keep @com.facebook.proguard.annotations.DoNotStripAny class * { *; }
-keep @com.facebook.jni.annotations.DoNotStrip class *
-keepclassmembers class * {
@com.facebook.jni.annotations.DoNotStrip *;
}
-keep @com.facebook.jni.annotations.DoNotStripAny class * { *; }
-keep @com.facebook.yoga.annotations.DoNotStrip class *
-keepclassmembers class * {
@com.facebook.yoga.annotations.DoNotStrip *;
}
-keep class * implements com.facebook.react.bridge.JavaScriptModule { *; }
-keep class * implements com.facebook.react.bridge.NativeModule { *; }
-keepclassmembers,includedescriptorclasses class * { native <methods>; }
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
-dontwarn com.facebook.react.**
-keep,includedescriptorclasses class com.facebook.react.bridge.** { *; }
-keep,includedescriptorclasses class com.facebook.react.turbomodule.core.** { *; }
-keep,includedescriptorclasses class com.facebook.react.internal.turbomodule.core.** { *; }
-keep class com.facebook.jni.** { *; }
-keep class com.facebook.hermes.** { *; }
-keep class com.facebook.soloader.** { *; }
# whisper.rn JSI and TurboModule entry points
-keep class com.rnwhisper.** { *; }
# Nitro Modules (react-native-nitro-modules, react-native-nitro-sound, react-native-iap)
-keep class com.margelo.nitro.** { *; }
-keep class * extends com.margelo.nitro.core.HybridObject { *; }
-keep class * implements com.margelo.nitro.HybridObject { *; }
-dontwarn com.margelo.nitro.**
# Keychain & Google Tink reflective crypto primitives
-keep class com.oblador.keychain.** { *; }
-keep class com.google.crypto.tink.** { *; }
-dontwarn com.google.crypto.tink.**
# Google Mobile Ads, UMP Consent, and Firebase Messaging
-keep class io.invertase.googlemobileads.** { *; }
-keep class com.google.android.gms.ads.** { *; }
-keep class com.google.android.ump.** { *; }
-keep class com.google.firebase.** { *; }
# React Navigation & community native bridges
-keep class com.swmansion.gesturehandler.** { *; }
-keep class com.swmansion.rnscreens.** { *; }
-keep class com.th3rdwave.safeareacontext.** { *; }
-keep class com.alpha0010.fs.** { *; }
-keep class com.reactnativedocumentpicker.** { *; }
-keep class com.proyecto26.inappbrowser.** { *; }
-keep class com.reactnativecommunity.asyncstorage.** { *; }
# Okio / Kotlin / Android standard warnings
-keep class sun.misc.Unsafe { *; }
-dontwarn java.nio.file.*
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn okio.**