Open robsoncardozorebel opened 2 years ago
Unfortunately, I don't have much experience with code minification. Are you able to reproduce this with the example app within this repo?
Hey @robsoncardozorebel, did you made any progress regarding this library and code minification?
@lschmierer
add to proguard file
-keepattributes Exceptions, Signature, InnerClasses, LineNumberTable
@RationalEgoism thank you, will check it out later. Can you elaborate what it does (how did you came up with these specific attributes to keep)?
Edit: Especially LineNumberTable
sounds kinda specific to your project?
After adding the lib I could no longer build my app only if I disable shrink and minifyEnabled. Anyone can help?
`FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:minifyProdReleaseWithR8'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 4s Running Gradle task 'assembleProdRelease'... 4,7s [!] The shrinker may have failed to optimize the Java bytecode. To disable the shrinker, pass the
--no-shrink
flag to this command. To learn more, see: https://developer.android.com/studio/build/shrink-code Gradle task assembleProdRelease failed with exit code 1`