无法在MFP 7.1中使用Proguard混淆混合代码

时间:2017-05-31 10:51:47

标签: angularjs ionic-framework ibm-mobilefirst

我正在使用mfp 7.1开发离子应用程序。我必须对应用程序进行模糊处理,因为我已经参考了以下链接,

https://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.deploy.doc/admin/t_pg_creating_obfus_cli.html

       Using the above link I have done with the following steps:

           1) In the project.properties file uncommented the line 
              proguard.config=proguard-project.txt.

           2) Created keystore file and its added in the "ant.properties" file.

           3) finally, we build the application.

               We unable to get the "mapping.txt" file in the project
               & also not able to get obfuscate code.*

任何人都能告诉我如何混淆它吗?

任何帮助都会得到赞赏!!!

1 个答案:

答案 0 :(得分:1)

Proguard混淆将适用于本机代码。你提到了一个Ionic应用程序。因此,您应该为您的应用程序尝试Javascript混淆器:

  • Google Closure
  • 编译器YUI Compressor
  • UgifyJS

更多详情here

在MFP中,可用选项是执行JS and CSS concatenation and minification。其他选项在MFP之外,需要使用相应的工具完成。