- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I created an app using IntelXDK. After building the application for Android I saw that the Intel XDK source code not getting Minify/obfuscated.. I am able to view my application javascripts code , it is also containing my comments.
In Services setting of intelXDK 'minify/obfuscate generate code' is checked.
Please Help
Thank you
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That checkbox is only for the code that is generated from the Web Services panel, not your html/js/css code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks
I obfuscated my source code using another tool.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@SKD Do share the tool you have used to minify/obfuscate custom code.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI ,
I used app from https://www.javascriptobfuscator.com/
check my app
https://play.google.com/store/apps/details?id=skd.app.istqbquiz
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it integrated in build process ? I had found a Cordova plugin that minified code after build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry i did not explain well : when using cordova without XDK , i used that plugin ( it's not a plugin , but a hook, cfr : https://software.intel.com/en-us/xdk/docs/add-manage-project-plugins )
There are a few features of the Cordova CLI that are not supported by the Intel XDK. These include the “merges” folder and the “hooks” feature. Merges are platform-specific source variations. It is possible, for example, to say that you want to substitute some file in your application with an alternative version when you build on a specific platform. Hooks are scripts that are executed at various points in the project life cycle. For example, you can write a script that will be executed each time you add a new plugin. Hooks are not invoked in the Intel XDK environment nor are they used on the Intel XDK Build Server.
this is the plugin that i used without xdk :
https://github.com/rossmartin/cordova-uglify
( does not work with XDK , just tested , and reported in xdk docs as not supported )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another alternative solution that i personally use, considering using xdk app coupled to a php website :
- load JS dynamically in your app for example with $.getScript
- JS sources folder is outside www/, e.g. : one level up.
- juste before loading JS, check if your running app on device or in web/browser/local by checking if "device" object exists.
- if no (web), load JS in folder outside www (e.g. one level up)
- if yes (device) load the obfuscated/minified JS in www/js/ folder
- to ease the process, i created a php script that minify the target JS et place it is www/js/folder of the app.
- load the local php script juste before compiling with XDK.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page