yasirkula / UnityAndroidRuntimePermissions

A native Unity plugin to handle runtime permissions on Android M+
MIT License
196 stars 29 forks source link

Not work with gradle or firebase? #7

Closed mostafanastary closed 3 years ago

mostafanastary commented 4 years ago

Hi, Thank you for the plugin. I'm using it for a while, but after using firebase, I should change some settings like build system to Gradle and Target API Level to Android 9.0 'Pie' for androidX .

image

After all my application after running show me some error in SDK's Monitor :

image

ps: I upgrade the plugin to last.

yasirkula commented 4 years ago

It says that the plugin's native source code is stripped from the build. If your project uses ProGuard, try adding the following line to ProGuard filters: -keep class com.yasirkula.unity.* { *; }

mostafanastary commented 4 years ago

No, I don't use ProGuard , but gradle . Is there any way to solve it ?

yasirkula commented 4 years ago

The code minification that was somehow introduced by Firebase should either exclude these classes or be turned off. I haven't used Firebase myself so I don't know how it enables code minification out of nowhere.

yasirkula commented 3 years ago

Fixed in https://github.com/yasirkula/UnityAndroidRuntimePermissions/commit/2b7932e19687d5b5f2aa5e0a5bace60a6a601f91