Android Permissions API Version

I just noticed the new Android Permissions API.

I publish a plugin for Unity that works on older versions as well and this is a feature new to Unity 2018.3.

How am I supposed to rework my plugin so that it will call the new API to get the permissions that my plugin needs (location services for bluetooth)?

I can’t just add the new API calls because if users try to build that using older versions of Unity it won’t work, right?

I figured it out. There is the UNITY_2018_3_OR_NEWER define. I just use that and it works fine.

Hope this helps someone else.