Skip to content

Commit

Permalink
Embedded proguard.txt file to AAR library which should get rid of Cla…
Browse files Browse the repository at this point in the history
…ssNotFoundExceptions automatically
  • Loading branch information
yasirkula committed Apr 12, 2021
1 parent 514299a commit 2b7932e
Show file tree
Hide file tree
Showing 15 changed files with 51 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/AAR Source (Android)/proguard.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-keep class com.yasirkula.unity.* { *; }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !UNITY_EDITOR && UNITY_ANDROID
#if UNITY_EDITOR || UNITY_ANDROID
using System.Threading;
using UnityEngine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !UNITY_EDITOR && UNITY_ANDROID
#if UNITY_EDITOR || UNITY_ANDROID
using UnityEngine;

namespace AndroidRuntimePermissionsNamespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !UNITY_EDITOR && UNITY_ANDROID
#if UNITY_EDITOR || UNITY_ANDROID
using UnityEngine;

namespace AndroidRuntimePermissionsNamespace
Expand Down
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Text;
using UnityEngine;
#if IS_ANDROID_PLATFORM
#if UNITY_ANDROID
using AndroidRuntimePermissionsNamespace;
#endif

Expand Down
9 changes: 9 additions & 0 deletions Plugins/AndroidRuntimePermissions/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Plugins/AndroidRuntimePermissions/Editor/ARPPostProcessBuild.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#if UNITY_EDITOR
using System.IO;
using UnityEditor;
using UnityEngine;

namespace AndroidRuntimePermissionsNamespace
{
public class ARPPostProcessBuild
{
[InitializeOnLoadMethod]
public static void ValidatePlugin()
{
string jarPath = "Assets/Plugins/AndroidRuntimePermissions/Android/RuntimePermissions.jar";
if( File.Exists( jarPath ) )
{
Debug.Log( "Deleting obsolete " + jarPath );
AssetDatabase.DeleteAsset( jarPath );
}
}
}
}
#endif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.yasirkula.androidruntimepermissions",
"displayName": "Android Runtime Permissions",
"version": "1.1.4",
"version": "1.1.5",
"documentationUrl": "https://github.com/yasirkula/UnityAndroidRuntimePermissions",
"changelogUrl": "https://github.com/yasirkula/UnityAndroidRuntimePermissions/releases",
"licensesUrl": "https://github.com/yasirkula/UnityAndroidRuntimePermissions/blob/master/LICENSE.txt",
Expand Down

0 comments on commit 2b7932e

Please sign in to comment.