From: Jeff P. <jcp...@ro...> - 2010-09-12 21:50:23
|
Switched to an HTML format. The forced line wrap at 80? made this hard to read. The lines found in MethodInliner.java are: private static final int MAXIMUM_INLINED_CODE_LENGTH = Integer.parseInt(System.getProperty("maximum.inlined.code.length", "8")); private static final int MAXIMUM_RESULTING_CODE_LENGTH_JSE = Integer.parseInt(System.getProperty("maximum.resulting.code.length", "8000")); private static final int MAXIMUM_RESULTING_CODE_LENGTH_JME = Integer.parseInt(System.getProperty("maximum.resulting.code.length", "2000")); I have not figured out how to specify system properties with ant, but here's what I would experiment with, added to a call to Proguard directly from the java command line: java -DMAXIMUM_RESULTING_CODE_LENGTH_JSE=2000 -jar proguard.jar @myProfile.pro You might also be able to use the following option(s) in the Proguard profile to achieve the same result. -microedition (& probably also) -dontpreverify If this does the same thing without any side effects, then it has the advantages of both being documented, & easy to do inside of ant. I have not tried either for the Android Remote Assistant part of my product. Just a standard JSE run through Proguard with the exception of NOT specifying -overloadaggressively Dex throws a VerifyError Exception, if you do. Activities to get this part of the system production ready will hopefully be re-starting this week. This has been on hold while working on an AI goalseeker in OpenCL, which took forever. I'll try this as well. |