javascript-obfuscator / react-native-obfuscating-transformer

Obfuscation for React Native bundles
MIT License
196 stars 100 forks source link

Expected output from Trace and from emitObfuscatedFiles options? #9

Open Nantris opened 5 years ago

Nantris commented 5 years ago

I've added the trace option to my configuration to help me determine why the output doesn't seem to be transformed at all, but I've not been able to determine where I should see this output. It doesn't appear in my console.

I haven't been able to find any output files anywhere either. Where would one expect to find those?

Thanks for any advice!

wangghon commented 5 years ago

you can go to the android folder in your app root folder in the terminal, run ./gradlew assembleRelease, you should see "obfuscating xxx file" being logged if you enable the trace flag to true.

nomoreboredom commented 5 years ago

@wangghon

In my case it is not logging "obfuscating..." because it actually returns before as resultCanBeObfuscated is false all the time, never runs the line if (resultCanBeObfuscated && filter(props.filename, props.src)) {

Nantris commented 5 years ago

@nomoreboredom can you provide any more details about how you investigated the code as it ran? I'm not sure what I can do to debug it.