javascript-obfuscator / react-native-obfuscating-transformer

Obfuscation for React Native bundles
MIT License
195 stars 99 forks source link

Transform file error #31

Closed rohitmodi12 closed 4 years ago

rohitmodi12 commented 4 years ago

I am trying to use "react-native-obfuscating-transformer" npm but I am facing an error:

"TypeError: Cannot read property 'transformFile' of undefined" Anyone have solution? Please let me know.

alexandrejsx commented 4 years ago

See https://github.com/javascript-obfuscator/react-native-obfuscating-transformer/issues/16#issuecomment-628481855

rohitmodi12 commented 4 years ago

@alexandrejsx Thanks working.

rohitmodi12 commented 4 years ago

Hello @alexandrejsx Do we need to run any command before create build("./gradlew assemblerelease")? Because with and without obfuscating, I am getting same code means it is not obfuscating.

rohitmodi12 commented 4 years ago

I need to obfuscate one selected file instead of src folder.

Coder108 commented 2 years ago

@rohitmodi12 Hello, Are you making it to obfuscate the js code of the react-native project?