react-native-nfc-manager 3.14.9 → 3.14.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -15,6 +15,13 @@ apply plugin: 'com.android.library'
|
|
|
15
15
|
|
|
16
16
|
android {
|
|
17
17
|
compileSdkVersion safeExtGet('compileSdkVersion', 31)
|
|
18
|
+
|
|
19
|
+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
|
20
|
+
|
|
21
|
+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
|
|
22
|
+
namespace "community.revteltech.nfc"
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
defaultConfig {
|
|
19
26
|
minSdkVersion safeExtGet('minSdkVersion', 16)
|
|
20
27
|
//noinspection OldTargetApi
|
|
@@ -42,7 +42,10 @@ public class Util {
|
|
|
42
42
|
json.put("canMakeReadOnly", ndef.canMakeReadOnly());
|
|
43
43
|
} catch (NullPointerException e) {
|
|
44
44
|
json.put("canMakeReadOnly", JSONObject.NULL);
|
|
45
|
-
}
|
|
45
|
+
} catch (SecurityException e) {
|
|
46
|
+
Log.e(TAG, "Failed due to out of date tag", e);
|
|
47
|
+
json.put("canMakeReadOnly", JSONObject.NULL);
|
|
48
|
+
}
|
|
46
49
|
} catch (JSONException e) {
|
|
47
50
|
Log.e(TAG, "Failed to convert ndef into json: " + ndef, e);
|
|
48
51
|
}
|