react-native-obfuscating-transformer: Can't make it work
Hi
I am trying to use this module. I created the rn-cli.config.js and transformer.js file in my project root folder and kept the default obfuscatingTransformer options (So module.exports = obfuscatingTransformer({})).
But this doesn’t seem to work. The index.android.bundle file in the generated app-release.apk still remains unobfuscated (I performed a gradlew assembleRelease like usual to create the bundle before
react-native run-android --variant=release)
What am I doing wrong?
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 22 (1 by maintainers)
I finally figured out how to make it work after several test.
my react and react native version:
install other dependencies needed:
transformer.js
metro.config.js
NOTE:
set emitObfuscatedFiles to true in obfuscatorOptions to emit the obfuscated versions of files alongside their originals, for comparison.
If you’re building in release, you can also compare the generated index.android.bundle (located in \android\app\build\generated\assets\react\release) with and without using the react-native-obfuscating-transformer using online diff tool to see the difference
try this https://www.npmjs.com/package/obfuscator-io-metro-plugin
Same as us, no obfuscation on our specific code.
any solution for this ?
hermes engine just work in android,but what ios can do