Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Obfuscate entire React Native app including JavaScript code

$
0
0

How to obfuscate my react-native JS code? I have set the following in my build.gradle file:

release {      minifyEnabled true      proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" }

Here is my proguard-rules.pro file (default):

# Add project specific ProGuard rules here.# By default, the flags in this file are appended to flags specified# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt# You can edit the include path and order by changing the proguardFiles# directive in build.gradle.## For more details, see#   http://developer.android.com/guide/developing/tools/proguard.html# Add any project specific keep options here:# 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 *;#}

But still after unzipping the apk I can find my JS components name, variables and url's


Viewing all articles
Browse latest Browse all 16750

Trending Articles