https://kotlinlang.org logo
Title
n

Nikola Milovic

05/07/2020, 5:42 PM
Anyone had weird experiences with minifyEnabled shrinkResources My release build doesn't work (room database problems) when minify and shrink are enabled, but works when they are disabled. I've never noticed this for a long time, baffles me how can this affect the apps work. Edit: By not work i literally mean unusable app. I save some data into the database and then need it for later use, the data is null if the minify and shrink are enabled in release build, and it works fine if they're false. I seriously don't know what's happening The app is relatively small, should i just disable them all together?
a

atlantis210

05/07/2020, 6:08 PM
Looks like a proguard problem. You should look for it on google
n

Nikola Milovic

05/07/2020, 6:13 PM
Thanks, any pointers to pinpoint what's happening? I tried connecting the two and googling but haven't found anything
a

atlantis210

05/07/2020, 6:18 PM
Try to get the log with your app in release. I think there is an error when accessing the database
r

Raj Trivedi

05/08/2020, 6:00 AM
have u tried disabling them in debug build? @Nikola Milovic
n

Nikola Milovic

05/08/2020, 6:04 AM
They are disabled in the debug, thats why it works. But they are enabled in release and mess up the database
a

Anas Tariq

05/08/2020, 7:20 AM
Are you using Proguard @Keep Annotations for your Room Classes?
r

Raj Trivedi

05/08/2020, 9:02 AM
@Nikola Milovic I mean try to use them in debug mode once and see what happens..