expo-task-manager 10.2.0 → 10.2.1
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 10.2.1 — 2022-04-25
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed another Android 12+ runtime crash caused by `PendingIntent` misconfiguration. ([#17164](https://github.com/expo/expo/pull/17164) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
13
19
|
## 10.2.0 — 2022-04-18
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '10.2.
|
|
6
|
+
version = '10.2.1'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
76
76
|
versionCode 23
|
|
77
|
-
versionName "10.2.
|
|
77
|
+
versionName "10.2.1"
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -44,9 +44,7 @@ public class TaskManagerUtils implements TaskManagerUtilsInterface {
|
|
|
44
44
|
|
|
45
45
|
@Override
|
|
46
46
|
public PendingIntent createTaskIntent(Context context, TaskInterface task) {
|
|
47
|
-
|
|
48
|
-
int mutableFlag = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? PendingIntent.FLAG_MUTABLE : 0;
|
|
49
|
-
return createTaskIntent(context, task, PendingIntent.FLAG_UPDATE_CURRENT | mutableFlag);
|
|
47
|
+
return createTaskIntent(context, task, PendingIntent.FLAG_UPDATE_CURRENT);
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
@Override
|
|
@@ -188,7 +186,9 @@ public class TaskManagerUtils implements TaskManagerUtilsInterface {
|
|
|
188
186
|
|
|
189
187
|
intent.setData(dataUri);
|
|
190
188
|
|
|
191
|
-
|
|
189
|
+
// We're defaulting to the behaviour prior API 31 (mutable) even though Android recommends immutability
|
|
190
|
+
int mutableFlag = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? PendingIntent.FLAG_MUTABLE : 0;
|
|
191
|
+
return PendingIntent.getBroadcast(context, PENDING_INTENT_REQUEST_CODE, intent, flags | mutableFlag);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
private PendingIntent createTaskIntent(Context context, TaskInterface task, int flags) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-task-manager",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.1",
|
|
4
4
|
"description": "Expo module that provides support for tasks that can run in the background.",
|
|
5
5
|
"main": "build/TaskManager.js",
|
|
6
6
|
"types": "build/TaskManager.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "8fa7ceccfeab2f5090019403d6472fb80d6d7eaf"
|
|
46
46
|
}
|