universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

Unity 2020.1b16: AndroidMinification enum is obsolete #126

Open derwaldgeist opened 4 years ago

derwaldgeist commented 4 years ago

After upgrading to Unity 2020.1b16, my project won't compile anymore due to this error:

Assets/UTNotifications/Src/Settings.cs(1286,69): error CS0619: 'AndroidMinification' is obsolete: 'AndroidMinification enum is obsolete.'
derwaldgeist commented 4 years ago

I was able to patch this by using this check instead:

if ((PlayerSettings.Android.minifyDebug || PlayerSettings.Android.minifyRelease) &&
                !PlayerSettings.Android.minifyWithR8)

but I am not sure if this is correct.

yuriy-universal-ivanov commented 4 years ago

Hi @derwaldgeist ,

Your fix is OK (though you don't need !PlayerSettings.Android.minifyWithR8, as R8 uses the same proguard configuration). We'll release the fix with the next update (we're working on it).

derwaldgeist commented 4 years ago

Sounds good!

CreaProjects commented 2 years ago

Hi @derwaldgeist ,

Your fix is OK (though you don't need !PlayerSettings.Android.minifyWithR8, as R8 uses the same proguard configuration). We'll release the fix with the next update (we're working on it).

More than 1 year later, I still have this error ....

derwaldgeist commented 2 years ago

One of the many reasons I still haven't upgraded to Unity 2020 yet...

derwaldgeist commented 1 year ago

Any update here? We're still on Unity 2019, and now have to update because it is not supported anymore.