用于缩减大小的最佳 Java 混淆应用程序 [英] Best Java Obfuscation Application For Size Reduction

查看:17
本文介绍了用于缩减大小的最佳 Java 混淆应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

移动开发的一个重要部分,尤其是当您谈论移动游戏时,是处理应用程序大小限制.一些设备强制执行自己的大小限制,而所有运营商对在其甲板空间中发布的应用程序都有自己的大小要求.

An important part of mobile development, especially when you are talking about mobile games, is dealing with the application size restrictions. Some devices enforce their own size limits, while all the carriers have their own size requirements for applications to be released in their deck space.

我的问题是,是否有一个 Java 混淆应用程序比现有的其他 Java 混淆应用程序获得更好的大小缩减结果?

My question is, is there a java obfuscation application that gets better size reduction results than the other java obfuscation apps that are out there?

我使用 Proguard 是因为它是默认的 Netbeans 混淆器,您可以从中获得相当不错的大小缩减结果(顺便说一句,Netbeans 6.1 附带的 Proguard 版本是 3.7.有更新的版本会变得更好结果,我建议获取最新的).但是,我对外面还有什么感兴趣,以及它们是否比 Proguard 做得更好.

I use Proguard because it is the default Netbeans obfuscator and you can get fairly good size reduction results out of it (by the way, the version of Proguard that comes with Netbeans 6.1 is 3.7. There are newer versions that get even better results, I recommend getting the latest). But, I'm interested in what else is out there and whether they do a better job than Proguard.

我的结论:

感谢您的回复.Carlos,您的回答足以让我相信 Proguard 是当前的发展方向.否则我仍然可以确信,但不要对我目前的设置感到难过.

I appreciate the responses. Carlos, your response was enough to convince me that Proguard is the current way to go. I could still be convinced otherwise, but don't feel bad with my current setup.

我在混淆和在某些手机上运行时也遇到了一些问题,但不是太多.我总是能够通过不使用 Proguard 参数-overloadaggressively"来解决问题.如果您遇到与混淆相关的奇怪行为,请记住一些事情.

I have also had some issues with proguard obfuscating and running on some phones, but not too many. I was always able to fix the problem by not using the Proguard argument "-overloadaggressively". Just something to keep in mind if you are experiencing odd behavior related to obfuscating.

再次感谢.

推荐答案

当谈到 J2ME 和混淆时,需要谨慎一些.Proguard 是最好的选择,因为它已经开发了多年,并且已经收到了许多错误修正.我记得 2.X 和 3.X 之间的版本转换以及它如何破坏我(当时)雇主的许多构建.发生这种情况是因为一些可以节省更多大小的更改也在某些手机中以微妙的方式破坏了类文件,而在其他手机和桌面 JVM 中却完全没有问题.

When it comes to J2ME and obfuscation it pays to be a bit cautious. Proguard is the best choice because of the many years it has been in development, and the many bugfixes that it has received. I remember the version transition between 2.X and 3.X and how it broke many of my (then) employer builds. This happened because some of the changes that enabled more size savings also broke the class files in subtle ways in some handsets, while being perfectly fine in others and on desktop JVMs.

如今 Proguard 3.11 是混淆器中最安全的选择.如果您不必支持非常旧的手机,4.XX 可能没问题.

Nowadays Proguard 3.11 is the safest choice in obfuscators. 4.XX is probably fine if you don't have to support very old handsets.

这篇关于用于缩减大小的最佳 Java 混淆应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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