diff --git a/README.md b/README.md index 6abc761..a94fb18 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![runtime_permission](Images/permission.png) -**Available on Asset Store:** https://www.assetstore.unity3d.com/en/#!/content/117803 +**Available on Asset Store:** https://assetstore.unity.com/packages/tools/integration/android-runtime-permissions-117803 **Forum Thread:** https://forum.unity.com/threads/open-source-androidruntimepermissions-manage-runtime-permissions-synchronously-on-android-m.528833/ @@ -11,7 +11,8 @@ This plugin helps you query/request runtime permissions **synchronously** on Android M and later. It also works on older Android versions and detects whether a requested permission is declared in AndroidManifest or not. ## How To -Simply import *RuntimePermissions.unitypackage* to your project and you are good to go! There is one optional step, though: by default, Unity shows a permission dialog on startup to prevent plugins from crashing/malfunctioning. This can be disabled, if you want; but you must make sure to handle all the runtime permissions carefully in your app's lifecycle. To disable this dialog, add the following line inside the `...` tag of *Plugins/Android/AndroidManifest.xml*: + +Simply import [RuntimePermissions.unitypackage](https://github.com/yasirkula/UnityAndroidRuntimePermissions/releases) to your project and you are good to go! There is one optional step, though: by default, Unity shows a permission dialog on startup to prevent plugins from crashing/malfunctioning. This can be disabled, if you want; but you must make sure to handle all the runtime permissions carefully in your app's lifecycle. To disable this dialog, add the following line inside the `...` tag of *Plugins/Android/AndroidManifest.xml*: ```xml @@ -35,6 +36,7 @@ You can use the following *static* functions of **AndroidRuntimePermissions** to `void OpenSettings()`: opens the settings for this app, from where the user can manually grant permission(s) in case a needed permission's state is *Permission.Denied* ## Example Code + The following code requests *WRITE_EXTERNAL_STORAGE* permission (it must be declared in *AndroidManifest*) when bottom-right corner of the screen is touched: ```csharp diff --git a/RuntimePermissions.unitypackage b/RuntimePermissions.unitypackage deleted file mode 100644 index 66fc71c..0000000 Binary files a/RuntimePermissions.unitypackage and /dev/null differ