diff --git a/mobile/android/app/build.gradle b/mobile/android/app/build.gradle index b329daf6..e28c2711 100644 --- a/mobile/android/app/build.gradle +++ b/mobile/android/app/build.gradle @@ -95,7 +95,7 @@ def enableSeparateBuildPerCPUArchitecture = true /** * Run Proguard to shrink the Java bytecode in release builds. */ -def enableProguardInReleaseBuilds = false +def enableProguardInReleaseBuilds = true /** * The preferred build flavor of JavaScriptCore. diff --git a/mobile/android/app/proguard-rules.pro b/mobile/android/app/proguard-rules.pro index 11b02572..2679cdbf 100644 --- a/mobile/android/app/proguard-rules.pro +++ b/mobile/android/app/proguard-rules.pro @@ -8,3 +8,8 @@ # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: + +# Keep some of the react-native-tor classes +-keep class com.sifir.tor.TorServiceParam { *; } +-keep class com.sifir.tor.TcpSocksStream { *; } +-keep class com.sifir.tor.OwnedTorService { *; } \ No newline at end of file