如何缩小 MobileFirst 混合 iOS 项目?
How to minify MobileFirst hybrid iOS project?
我想混淆我的代码。 The tutorial is under Concatenation and minification topic
这些是我在混合应用程序中用来缩小代码的步骤:
- 导出 JAVA_HOME=$(/usr/libexec/java_home)
- cd /Users/keatooon/Desktop/testmfpminify2
- mfp 创建测试项目
- cd 测试项目
- mfp 添加混合测试应用程序
- mfp 开始
- mfp 构建
- mfp 推送
- mfp 控制台
- mfp push —concatenate —minify
xxx:testProject xxx$ mfp push --concatenate --minify
Preparing for push...
Verifying Server Configuration...
Runtime 'testProject' will be used to push the project into.
Pushing to Server...
Deploying
/Users/xxx/Desktop/wktestmfp2/testProject/bin/testApp-common.wlapp...
Deploy complete for
/Users/xxx/Desktop/wktestmfp2/testProject/bin/testApp-common.wlapp.
/Users/xxx/Desktop/wktestmfp2/testProject/bin/testApp-common.wlapp
has been deployed.
Push Completed Successfully.
但是,它不会为代码增加任何安全性。
连接和缩小之前与之后的代码:
此外,代码在连接和缩小后根本不起作用。
如果不指定要缩小哪些文件,在位于应用程序根文件夹中的 build-settings.xml 文件中完成,实际上并没有任何东西被串联 and/or 缩小。
来自 运行 的应用程序失败的事实很有趣...
您编辑过上述文件吗?如果没有,请尝试。
在此处查找有关串联和缩小的更多信息:
我想混淆我的代码。 The tutorial is under Concatenation and minification topic
这些是我在混合应用程序中用来缩小代码的步骤:
- 导出 JAVA_HOME=$(/usr/libexec/java_home)
- cd /Users/keatooon/Desktop/testmfpminify2
- mfp 创建测试项目
- cd 测试项目
- mfp 添加混合测试应用程序
- mfp 开始
- mfp 构建
- mfp 推送
- mfp 控制台
- mfp push —concatenate —minify
xxx:testProject xxx$ mfp push --concatenate --minify
Preparing for push...
Verifying Server Configuration...
Runtime 'testProject' will be used to push the project into.
Pushing to Server...
Deploying /Users/xxx/Desktop/wktestmfp2/testProject/bin/testApp-common.wlapp...
Deploy complete for /Users/xxx/Desktop/wktestmfp2/testProject/bin/testApp-common.wlapp.
/Users/xxx/Desktop/wktestmfp2/testProject/bin/testApp-common.wlapp has been deployed.
Push Completed Successfully.
但是,它不会为代码增加任何安全性。
连接和缩小之前与之后的代码:
此外,代码在连接和缩小后根本不起作用。
如果不指定要缩小哪些文件,在位于应用程序根文件夹中的 build-settings.xml 文件中完成,实际上并没有任何东西被串联 and/or 缩小。
来自 运行 的应用程序失败的事实很有趣...
您编辑过上述文件吗?如果没有,请尝试。
在此处查找有关串联和缩小的更多信息: