2018-10-03 17:56:33 +02: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
|
2020-06-11 19:37:20 +02:00
|
|
|
|
2020-08-03 18:23:05 +02:00
|
|
|
-keep class im.vector.app.features.** { *; }
|
2020-07-02 22:02:42 +02:00
|
|
|
|
|
|
|
## print all the rules in a file
|
|
|
|
# -printconfiguration ../proguard_files/full-r8-config.txt
|
2020-08-12 14:02:00 +02:00
|
|
|
|
|
|
|
# WebRTC
|
|
|
|
|
|
|
|
-keep class org.webrtc.** { *; }
|
|
|
|
-dontwarn org.chromium.build.BuildHooksAndroid
|
|
|
|
|
|
|
|
# Jitsi (else callbacks are not called)
|
|
|
|
|
|
|
|
-keep class org.jitsi.meet.** { *; }
|
|
|
|
-keep class org.jitsi.meet.sdk.** { *; }
|
|
|
|
|
|
|
|
# React Native
|
|
|
|
|
|
|
|
# Keep our interfaces so they can be used by other ProGuard rules.
|
|
|
|
# See http://sourceforge.net/p/proguard/bugs/466/
|
|
|
|
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
|
|
|
|
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
|
|
|
|
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
|
|
|
|
|
|
|
|
# Do not strip any method/class that is annotated with @DoNotStrip
|
|
|
|
-keep @com.facebook.proguard.annotations.DoNotStrip class *
|
|
|
|
-keep @com.facebook.common.internal.DoNotStrip class *
|
|
|
|
-keepclassmembers class * {
|
|
|
|
@com.facebook.proguard.annotations.DoNotStrip *;
|
|
|
|
@com.facebook.common.internal.DoNotStrip *;
|
|
|
|
}
|
|
|
|
|
|
|
|
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
|
|
|
|
void set*(***);
|
|
|
|
*** get*();
|
|
|
|
}
|
|
|
|
|
|
|
|
-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
|
|
|
|
-keep class * extends com.facebook.react.bridge.NativeModule { *; }
|
|
|
|
-keepclassmembers,includedescriptorclasses class * { native <methods>; }
|
|
|
|
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
|
|
|
|
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp <methods>; }
|
|
|
|
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup <methods>; }
|
|
|
|
|
|
|
|
-dontwarn com.facebook.react.**
|
2021-08-16 15:43:35 +02:00
|
|
|
-keep,includedescriptorclasses class com.facebook.react.bridge.** { *; }
|
|
|
|
|
|
|
|
-keepattributes InnerClasses
|
|
|
|
|
|
|
|
# JWT dependencies
|
|
|
|
-keep class io.jsonwebtoken.** { *; }
|
|
|
|
-keepnames class io.jsonwebtoken.* { *; }
|
|
|
|
-keepnames interface io.jsonwebtoken.* { *; }
|
|
|
|
|
|
|
|
-keep class org.bouncycastle.** { *; }
|
|
|
|
-keepnames class org.bouncycastle.** { *; }
|
2022-10-14 09:59:43 +02:00
|
|
|
-dontwarn org.bouncycastle.**
|
|
|
|
|
|
|
|
# JNA
|
|
|
|
-keep class com.sun.jna.** { *; }
|
|
|
|
-keep class * implements com.sun.jna.** { *; }
|