mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-24 21:45:21 +00:00
34 lines
1.3 KiB
Prolog
34 lines
1.3 KiB
Prolog
# Add project specific ProGuard rules here.
|
|
# You can control the set of applied configuration files using the
|
|
# proguardFiles setting in build.gradle.
|
|
-keep class com.bitchat.android.protocol.** { *; }
|
|
-keep class com.bitchat.android.crypto.** { *; }
|
|
-dontwarn org.bouncycastle.**
|
|
-keep class org.bouncycastle.** { *; }
|
|
|
|
# Keep SecureIdentityStateManager from being obfuscated to prevent reflection issues
|
|
-keep class com.bitchat.android.identity.SecureIdentityStateManager {
|
|
private android.content.SharedPreferences prefs;
|
|
*;
|
|
}
|
|
|
|
# Keep all classes that might use reflection
|
|
-keep class com.bitchat.android.favorites.** { *; }
|
|
-keep class com.bitchat.android.nostr.** { *; }
|
|
-keep class com.bitchat.android.identity.** { *; }
|
|
|
|
# Keep Tor implementation (always included)
|
|
-keep class com.bitchat.android.net.RealTorProvider { *; }
|
|
|
|
# Arti (Custom Tor implementation in Rust) ProGuard rules
|
|
-keep class info.guardianproject.arti.** { *; }
|
|
-keep class org.torproject.arti.** { *; }
|
|
-keepnames class org.torproject.arti.**
|
|
-dontwarn info.guardianproject.arti.**
|
|
-dontwarn org.torproject.arti.**
|
|
|
|
# Fix for AbstractMethodError on API < 29 where LocationListener methods are abstract
|
|
-keepclassmembers class * implements android.location.LocationListener {
|
|
public <methods>;
|
|
}
|