PhoneGap的Andr​​oid的资产code是可见的 - 要转换它为不可读 [英] phonegap android assets code is viewable - want to convert it as unreadable

查看:140
本文介绍了PhoneGap的Andr​​oid的资产code是可见的 - 要转换它为不可读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的PhoneGap开发示例应用程序为Android。在资产/ WWW /文件夹中所有的HTML,CSS,JS codeS是可读的,当我解压.apk文件。有什么办法将它转换为unreadble而被建设成为.apk文件。

I am developing sample app for android using Phonegap. In assets/www/ folder all the html,css, js codes are readable when I extract .apk file. Is there any way to convert it as unreadble while being build as .apk.

推荐答案

JavaScript,CSS和HTML都是客户端的语言,你不能真正使他们无法阅读编译。在最好的情况,你可以使用任何不解的服务混淆code可以将其打包成一个APK之前。这将只是改变变量名无意义的东西,并删除缩进和间距,以减少code可读性,但它可以为这些语言做的最好的。

JavaScript, CSS and HTML are all client side languages, and you can't really make them unreadable by "compiling". At best, you could obfuscate the code using any obfuscating service before you package it into an apk. This'll just change variable names to meaningless stuff, and remove indentation and spacing to reduce code readability, but its the best you can do for these languages.

这篇关于PhoneGap的Andr​​oid的资产code是可见的 - 要转换它为不可读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆