expo-task-manager 12.0.2 → 12.0.3

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
+ ## 12.0.3 — 2024-11-13
14
+
15
+ ### 💡 Others
16
+
17
+ - [Android] Added implementation of `executeTask` method in `TaskManagerUtils` ([#32849](https://github.com/expo/expo/pull/32849) by [@chrfalch](https://github.com/chrfalch))
18
+
13
19
  ## 12.0.2 — 2024-11-05
14
20
 
15
21
  ### 💡 Others
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '12.0.2'
4
+ version = '12.0.3'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.taskManager"
15
15
  defaultConfig {
16
16
  versionCode 23
17
- versionName "12.0.2"
17
+ versionName "12.0.3"
18
18
  }
19
19
  }
20
20
 
@@ -65,6 +65,15 @@ public class TaskManagerUtils implements TaskManagerUtilsInterface {
65
65
  }
66
66
  }
67
67
 
68
+ @Override
69
+ public void executeTask(TaskInterface task, Bundle data) {
70
+ if (task == null) {
71
+ Log.e(TAG, "Trying to execute a null task!");
72
+ } else {
73
+ task.execute(data, null);
74
+ }
75
+ }
76
+
68
77
  @Override
69
78
  public void cancelScheduledJob(Context context, int jobId) {
70
79
  JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-task-manager",
3
- "version": "12.0.2",
3
+ "version": "12.0.3",
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
  "expo": "*",
43
43
  "react-native": "*"
44
44
  },
45
- "gitHead": "a64603dce90981bf7688657f87dfa4be3e24f58b"
45
+ "gitHead": "c4999f5aa407155a170830a0fa17e3e3ca1fcbee"
46
46
  }