最佳Java模糊处理应用程序,可减少大小 [英] Best Java Obfuscation Application For Size Reduction

查看:77
本文介绍了最佳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进行混淆和运行时也遇到了一些问题,但不是很多.我始终能够通过不使用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天全站免登陆