Hello,
Is it possible to configure ProGuard to generate an uncompressed JAR?
I.e. jar -0 ?
I have need for that because of an application that can't read compressed JARs.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you sure that compression makes a difference? I'm only aware of some low-level performance optimizations in Android that rely on files not being compressed. ProGuard does not have a setting to control it (DexGuard does).
However, ProGuard by default removes directory entries from jar/war/ear/zip files. Occasionally, code depends on them. You can easily try if preserving them helps:
-keepdirectories **
Otherwise, you should repackage your jar.
Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Yes, the compression makes a difference, it's a third party Win32 app that reads JAR-files and lists a class that implements a certain interface.
I did as you suggested and performed a repackage using my Ant script, basically it performs an unzip and then zip with compress="false" level="0".
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Is it possible to configure ProGuard to generate an uncompressed JAR?
I.e. jar -0 ?
I have need for that because of an application that can't read compressed JARs.
Thanks
Are you sure that compression makes a difference? I'm only aware of some low-level performance optimizations in Android that rely on files not being compressed. ProGuard does not have a setting to control it (DexGuard does).
However, ProGuard by default removes directory entries from jar/war/ear/zip files. Occasionally, code depends on them. You can easily try if preserving them helps:
Otherwise, you should repackage your jar.
Eric
Hello,
Yes, the compression makes a difference, it's a third party Win32 app that reads JAR-files and lists a class that implements a certain interface.
I did as you suggested and performed a repackage using my Ant script, basically it performs an unzip and then zip with compress="false" level="0".
Thanks