Enable ProGuard and add rules

This commit is contained in:
Reckless_Satoshi 2023-05-26 15:05:19 -07:00
parent c0bbd18ceb
commit d61b366ab1
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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 { *; }