Open Zazo032 opened 3 years ago
When minified, the result
being passed to Flutter looks like this:
{"a":true,"d":true,"e":false}
But without minify enabled, it looks like this:
{"isSuccess":true,"isUiRequired":false,"payload":true}
Therefore, when the plugin tries to read the following code on Flutter side, it fails, because the keys got minified and changed to other values:
isSuccess: json['isSuccess'],
For some reason, the json keys are getting minified.
I've set up the plugin and it works correctly on debug/profile modes, but when I run it on release mode, I always get this error when the plugin is initialized:
However, if I set
minifyEnabled false
inandroid/app/build.gradle
, it works as intended, but the app size goes a lot bigger. I've tried adding many Proguard rules, but that doesn't seem to work.I'm using https://github.com/gbwisx/msal_mobile/pull/15