简体   繁体   中英

Does IBM Worklight support Android's ProGuard?

I wanted to obfuscate the JavaScript source code of worklight/Cordova in an IBM Worklight hybrid apps. After testing in my actual apps, the apps went full black screen after launch, not even the splash screen was displayed. I've wait more than 10 minutes and it doesn't seems to load anything.

So I am suspecting that my apps may not work well with ProGuard and therefore I started a new worklight application with only Android environment and a Hello world message, the Apps run perfectly before the ProGuard and it went full black screen right after I turn on the ProGuard
There is some warning during the ProGuard compilation and I had to specify -dontwarn in the ProGuard setting to compile it successfully.

Have heard from the support that we could run ProGuard on the worklight, but can't find any demonstration and working example anywhere.

Is Worklight not compatible with ProGuard?

Edit: starting MobileFirst 7.0 there is official support for ProGuard.


IBM Worklight currently does not support Android's ProGuard feature .

As an alternative, you can follow the instructions in the following IBM Worklight blog post, on how to "obfuscate" your application's JavaScript:

I would read carefully the note mentioned in the blog post:

... it is very important to understand that code obfuscation, especially in JavaScript, is a relatively weak security measure. Most modern web debugging tools are smart enough to "prettify" the obfuscated code reverting it to a much more readable (however still not original) format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM