- 26 Dec 2024
- 1 Minute à lire
- SombreLumière
- PDF
Usage
- Mis à jour le 26 Dec 2024
- 1 Minute à lire
- SombreLumière
- PDF
The JavaScript protection mechanism is built into the Shielding Tool which can obfuscate any JavaScript in place as part of the shielding process.
For both the Shielding Tool for Android and the Shielding Tool for iOS, JavaScript obfuscation can be enabled with the --obfuscate-js switch to the Shielding Tool. This will cause the Shielding Tool to obfuscate any found JavaScript inside the relevant IPA, APK, or AAB files.
The Shielding Tool can also produce relevant JavaScript source maps for the modified JavaScript files so that they can be mapped back to their original form using a JavaScript debugger. This can be done using the --js-mapping-output argument which should point to a directory where each JavaScript map file will be written. If this option is not provided, then no map files will be produced.