Anyone had weird experiences with minifyEnabled sh...
# android
n
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
Looks like a proguard problem. You should look for it on google
n
Thanks, any pointers to pinpoint what's happening? I tried connecting the two and googling but haven't found anything
a
Try to get the log with your app in release. I think there is an error when accessing the database
r
have u tried disabling them in debug build? @Nikola Milovic
n
They are disabled in the debug, thats why it works. But they are enabled in release and mess up the database
a
Are you using Proguard @Keep Annotations for your Room Classes?
r
@Nikola Milovic I mean try to use them in debug mode once and see what happens..