I’m having an issue with ProGuard making changes that cause my app to crash within 3rd party native code specifically just on Android 4.x.
I’ve found that setting the following rule resolves the issue:
-dontoptimize
This obviously suggests that the issue is somewhere in the optimisations, so I thought I’d try narrowing down specifically on which one it is. I then removed that line and used this instead:
-optimizations !library/,!class/,!field/,!method/,!code/*
My expectation was that the result would be the same - as surely this is disabling all the same optimisations explicitly? But no - it still crashes.
The 3rd party has been unable to help identify the cause.
Anyone any tips on how I can find which optimisations I can safely use? Who knows - maybe if I can identify the one that actually breaks it, I can get the 3rd party to work around it too?
Cheers