Help with <shrink> #175
Replies: 3 comments 4 replies
-
|
Thanks for raising this issue, we'll look into it at some point. To be fair it has been a very long time since anyone has touched the shrinker. Mostly because the effort isn't worth the result (shaving off 1KB vs spending 5 hours debugging the shrinker). Likely the shrinker is stuck on an old Java version and we haven't bothered to update it.. |
Beta Was this translation helpful? Give feedback.
-
|
@thomasbehr maybe this is the time when we make a 5x release and just remove the shrinker. When support for Java 25 is added? I could add a MR and strip it out. |
Beta Was this translation helpful? Give feedback.
-
|
My goal is do hide some string constants in my code. If is no longer supported, is there any other alternative way I can achieve it? For example, in the code I added a method to generate the SHA-256 hash of a file: After I built the obfuscate jar, then using an online tool to de-compile, and I got following code: static final String C(String var0) throws Exception As you can see, the obfuscation doesn't hide much, it's easy for end user to guess what this method is trying to do. Are there any other options I can use in yGuard? Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have downloaded 4.1.1, and tried with the basic sample "application" (examples\application), which was successfully built. Then I added a hardcoded string constant in HellowWorld and some private methods, and added in build.xml, but I get following errors:
obfuscate:
[shrink] yGuard Shrinker v4.1.1 - http://www.yworks.com/products/yguard
[shrink] ERROR: Unsupported api 589824
[shrink] Unsupported api 589824
My build.xml (keep main, and shrink everything else):
Not sure what I did wrong, greatly appreciate if someone can help!
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions