react-native-nfc-manager 3.11.1 → 3.11.2

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/README.md CHANGED
@@ -32,6 +32,27 @@ For Android, it should be properly auto-linked, so you don't need to do anything
32
32
 
33
33
  Please see [here](setup.md)
34
34
 
35
+ ### Android 12
36
+
37
+ To support Android 12, you will need to update `compileSdkVersion` in your `android/build.gradle` like this:
38
+
39
+ ```
40
+ buildscript {
41
+ ext {
42
+ ...
43
+ compileSdkVersion = 31
44
+ ...
45
+ }
46
+ ...
47
+ }
48
+ ```
49
+
50
+ The reason for this is because Android puts new limitation on [PendingIntent](https://developer.android.com/reference/android/app/PendingIntent#FLAG_MUTABLE):
51
+
52
+ > Starting with Build.VERSION_CODES.S, it will be required to explicitly specify the mutability of PendingIntents
53
+
54
+ The original issue is [here](https://github.com/revtel/react-native-nfc-manager/issues/469)
55
+
35
56
  ## Also See
36
57
 
37
58
  ### [Demo App] NfcOpenReWriter
@@ -14,7 +14,7 @@ buildscript {
14
14
  apply plugin: 'com.android.library'
15
15
 
16
16
  android {
17
- compileSdkVersion safeExtGet('compileSdkVersion', 27)
17
+ compileSdkVersion safeExtGet('compileSdkVersion', 31)
18
18
  defaultConfig {
19
19
  minSdkVersion safeExtGet('minSdkVersion', 16)
20
20
  //noinspection OldTargetApi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nfc-manager",
3
- "version": "3.11.1",
3
+ "version": "3.11.2",
4
4
  "description": "A NFC module for react native.",
5
5
  "main": "src/index.js",
6
6
  "repository": {