expo-task-manager 14.0.9 → 14.0.10-canary-20251205-a1dedc6
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 +2 -2
- package/android/build.gradle +3 -3
- package/build/TaskManager.js +1 -1
- package/build/TaskManager.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/EXTaskManager/EXTaskManager.m +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/{14.0.9/expo.modules.taskmanager-14.0.9.module → 14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.module} +21 -21
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/{14.0.9/expo.modules.taskmanager-14.0.9.pom → 14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.pom} +3 -3
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/maven-metadata.xml.sha512 +1 -1
- package/package.json +5 -6
- package/src/TaskManager.ts +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/14.0.9/expo.modules.taskmanager-14.0.9.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/{14.0.9/expo.modules.taskmanager-14.0.9-sources.jar → 14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/{14.0.9/expo.modules.taskmanager-14.0.9-sources.jar.md5 → 14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/{14.0.9/expo.modules.taskmanager-14.0.9-sources.jar.sha1 → 14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/{14.0.9/expo.modules.taskmanager-14.0.9-sources.jar.sha256 → 14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/{14.0.9/expo.modules.taskmanager-14.0.9-sources.jar.sha512 → 14.0.10-canary-20251205-a1dedc6/expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6-sources.jar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -4,17 +4,17 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '14.0.
|
|
7
|
+
version = '14.0.10-canary-20251205-a1dedc6'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.taskmanager"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 23
|
|
13
|
-
versionName "14.0.
|
|
13
|
+
versionName "14.0.10-canary-20251205-a1dedc6"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
dependencies {
|
|
18
18
|
implementation project(':unimodules-app-loader')
|
|
19
|
-
api "androidx.core:core:1.
|
|
19
|
+
api "androidx.core:core:1.17.0"
|
|
20
20
|
}
|
package/build/TaskManager.js
CHANGED
|
@@ -148,7 +148,7 @@ if (ExpoTaskManager) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
151
|
-
console.warn(`TaskManager:
|
|
151
|
+
console.warn(`TaskManager: Execution of "${taskName}" was requested but looks like it is not defined. Available tasks: [${[...tasks.keys()].join(', ')}]. Make sure that "TaskManager.defineTask" is called during initialization phase.`);
|
|
152
152
|
// No tasks defined -> we need to notify about finish anyway.
|
|
153
153
|
await ExpoTaskManager.notifyTaskFinishedAsync(taskName, { eventId, result });
|
|
154
154
|
// We should also unregister such tasks automatically as the task might have been removed
|
package/build/TaskManager.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskManager.js","sourceRoot":"","sources":["../src/TaskManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAsFhD,MAAM,KAAK,GAA8C,IAAI,GAAG,EAG7D,CAAC;AAEJ,SAAS,SAAS,CAAC,QAAiB;IAClC,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC9C,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAChE,CAAC;AACH,CAAC;AAED,cAAc;AACd;;;;;;;;;GASG;AACH,MAAM,UAAU,UAAU,CACxB,QAAgB,EAChB,YAAwC;IAExC,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC9C,OAAO,CAAC,IAAI,CAAC,yEAAyE,CAAC,CAAC;QACxF,OAAO;IACT,CAAC;IACD,IAAI,CAAC,YAAY,IAAI,OAAO,YAAY,KAAK,UAAU,EAAE,CAAC;QACxD,OAAO,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC;QAC5E,OAAO;IACT,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,cAAc;AACd;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,QAAgB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BAAuB,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;YAC7E,yFAAyF;YACzF,mGAAmG;YACnG,MAAM,eAAe,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QACtD,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC;AAED,cAAc;AACd;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,OAAO,eAAe,CAAC,gBAAgB,EAAE,CAAC;AAC5C,CAAC","sourcesContent":["import { LegacyEventEmitter, UnavailabilityError } from 'expo-modules-core';\n\nimport ExpoTaskManager from './ExpoTaskManager';\n\n// @needsAudit @docsMissing\n/**\n * Error object that can be received through [`TaskManagerTaskBody`](#taskmanagertaskbody) when the\n * task fails.\n */\nexport interface TaskManagerError {\n code: string | number;\n message: string;\n}\n\n// @needsAudit\n/**\n * Represents the object that is passed to the task executor.\n */\nexport interface TaskManagerTaskBody<T = unknown> {\n /**\n * An object of data passed to the task executor. Its properties depend on the type of the task.\n */\n data: T;\n\n /**\n * Error object if the task failed or `null` otherwise.\n */\n error: TaskManagerError | null;\n\n /**\n * Additional details containing unique ID of task event and name of the task.\n */\n executionInfo: TaskManagerTaskBodyExecutionInfo;\n}\n\n// @needsAudit\n/**\n * Additional details about execution provided in `TaskManagerTaskBody`.\n */\nexport interface TaskManagerTaskBodyExecutionInfo {\n /**\n * State of the application.\n * @platform ios\n */\n appState?: 'active' | 'background' | 'inactive';\n /**\n * Unique ID of task event.\n */\n eventId: string;\n /**\n * Name of the task.\n */\n taskName: string;\n}\n\n// @needsAudit\n/**\n * Represents an already registered task.\n */\nexport interface TaskManagerTask {\n /**\n * Name that the task is registered with.\n */\n taskName: string;\n\n /**\n * Type of the task which depends on how the task was registered.\n */\n taskType: string;\n\n /**\n * Provides `options` that the task was registered with.\n */\n options: any;\n}\n\n/**\n * @deprecated Use `TaskManagerTask` instead.\n * @hidden\n */\nexport interface RegisteredTask extends TaskManagerTask {}\n\n// @needsAudit\n/**\n * Type of task executor – a function that handles the task.\n */\nexport type TaskManagerTaskExecutor<T = any> = (body: TaskManagerTaskBody<T>) => Promise<any>;\n\nconst tasks: Map<string, TaskManagerTaskExecutor<any>> = new Map<\n string,\n TaskManagerTaskExecutor<any>\n>();\n\nfunction _validate(taskName: unknown) {\n if (!taskName || typeof taskName !== 'string') {\n throw new TypeError('`taskName` must be a non-empty string.');\n }\n}\n\n// @needsAudit\n/**\n * Defines task function. It must be called in the global scope of your JavaScript bundle.\n * In particular, it cannot be called in any of React lifecycle methods like `componentDidMount`.\n * This limitation is due to the fact that when the application is launched in the background,\n * we need to spin up your JavaScript app, run your task and then shut down — no views are mounted\n * in this scenario.\n *\n * @param taskName Name of the task. It must be the same as the name you provided when registering the task.\n * @param taskExecutor A function that will be invoked when the task with given `taskName` is executed.\n */\nexport function defineTask<T = unknown>(\n taskName: string,\n taskExecutor: TaskManagerTaskExecutor<T>\n) {\n if (!taskName || typeof taskName !== 'string') {\n console.warn(`TaskManager.defineTask: 'taskName' argument must be a non-empty string.`);\n return;\n }\n if (!taskExecutor || typeof taskExecutor !== 'function') {\n console.warn(`TaskManager.defineTask: 'task' argument must be a function.`);\n return;\n }\n tasks.set(taskName, taskExecutor);\n}\n\n// @needsAudit\n/**\n * Checks whether the task is already defined.\n *\n * @param taskName Name of the task.\n */\nexport function isTaskDefined(taskName: string): boolean {\n return tasks.has(taskName);\n}\n\n// @needsAudit\n/**\n * Determine whether the task is registered. Registered tasks are stored in a persistent storage and\n * preserved between sessions.\n *\n * @param taskName Name of the task.\n * @returns A promise which resolves to `true` if a task with the given name is registered, otherwise `false`.\n */\nexport async function isTaskRegisteredAsync(taskName: string): Promise<boolean> {\n if (!ExpoTaskManager.isTaskRegisteredAsync) {\n throw new UnavailabilityError('TaskManager', 'isTaskRegisteredAsync');\n }\n\n _validate(taskName);\n return ExpoTaskManager.isTaskRegisteredAsync(taskName);\n}\n\n// @needsAudit\n/**\n * Retrieves `options` associated with the task, that were passed to the function registering the task\n * (e.g. `Location.startLocationUpdatesAsync`).\n *\n * @param taskName Name of the task.\n * @return A promise which fulfills with the `options` object that was passed while registering task\n * with given name or `null` if task couldn't be found.\n */\nexport async function getTaskOptionsAsync<TaskOptions>(taskName: string): Promise<TaskOptions> {\n if (!ExpoTaskManager.getTaskOptionsAsync) {\n throw new UnavailabilityError('TaskManager', 'getTaskOptionsAsync');\n }\n\n _validate(taskName);\n return ExpoTaskManager.getTaskOptionsAsync(taskName);\n}\n\n// @needsAudit\n/**\n * Provides information about tasks registered in the app.\n *\n * @returns A promise which fulfills with an array of tasks registered in the app.\n * @example\n * ```js\n * [\n * {\n * taskName: 'location-updates-task-name',\n * taskType: 'location',\n * options: {\n * accuracy: Location.Accuracy.High,\n * showsBackgroundLocationIndicator: false,\n * },\n * },\n * {\n * taskName: 'geofencing-task-name',\n * taskType: 'geofencing',\n * options: {\n * regions: [...],\n * },\n * },\n * ]\n * ```\n */\nexport async function getRegisteredTasksAsync(): Promise<TaskManagerTask[]> {\n if (!ExpoTaskManager.getRegisteredTasksAsync) {\n throw new UnavailabilityError('TaskManager', 'getRegisteredTasksAsync');\n }\n\n return ExpoTaskManager.getRegisteredTasksAsync();\n}\n\n// @needsAudit\n/**\n * Unregisters task from the app, so the app will not be receiving updates for that task anymore.\n * _It is recommended to use methods specialized by modules that registered the task, eg.\n * [`Location.stopLocationUpdatesAsync`](./location/#expolocationstoplocationupdatesasynctaskname)._\n *\n * @param taskName Name of the task to unregister.\n * @return A promise which fulfills as soon as the task is unregistered.\n */\nexport async function unregisterTaskAsync(taskName: string): Promise<void> {\n if (!ExpoTaskManager.unregisterTaskAsync) {\n throw new UnavailabilityError('TaskManager', 'unregisterTaskAsync');\n }\n\n _validate(taskName);\n await ExpoTaskManager.unregisterTaskAsync(taskName);\n}\n\n// @needsAudit\n/**\n * Unregisters all tasks registered for the running app. You may want to call this when the user is\n * signing out and you no longer need to track his location or run any other background tasks.\n * @return A promise which fulfills as soon as all tasks are completely unregistered.\n */\nexport async function unregisterAllTasksAsync(): Promise<void> {\n if (!ExpoTaskManager.unregisterAllTasksAsync) {\n throw new UnavailabilityError('TaskManager', 'unregisterAllTasksAsync');\n }\n\n await ExpoTaskManager.unregisterAllTasksAsync();\n}\n\nif (ExpoTaskManager) {\n const eventEmitter = new LegacyEventEmitter(ExpoTaskManager);\n eventEmitter.addListener<TaskManagerTaskBody>(\n ExpoTaskManager.EVENT_NAME,\n async ({ data, error, executionInfo }) => {\n const { eventId, taskName } = executionInfo;\n const taskExecutor = tasks.get(taskName);\n let result: any = null;\n\n if (taskExecutor) {\n try {\n // Execute JS task\n result = await taskExecutor({ data, error, executionInfo });\n } catch (error) {\n console.error(`TaskManager: Task \"${taskName}\" failed:`, error);\n } finally {\n // Notify manager the task is finished.\n await ExpoTaskManager.notifyTaskFinishedAsync(taskName, { eventId, result });\n }\n } else {\n console.warn(\n `TaskManager: Task \"${taskName}\" has been executed but looks like it is not defined. Make sure that \"TaskManager.defineTask\" is called during initialization phase.`\n );\n // No tasks defined -> we need to notify about finish anyway.\n await ExpoTaskManager.notifyTaskFinishedAsync(taskName, { eventId, result });\n // We should also unregister such tasks automatically as the task might have been removed\n // from the app or just renamed - in that case it needs to be registered again (with the new name).\n await ExpoTaskManager.unregisterTaskAsync(taskName);\n }\n }\n );\n}\n\n// @needsAudit\n/**\n * Determine if the `TaskManager` API can be used in this app.\n * @return A promise which fulfills with `true` if the API can be used, and `false` otherwise.\n * With Expo Go, `TaskManager` is not available on Android, and does not support background execution on iOS.\n * Use a development build to avoid limitations: https://expo.fyi/dev-client.\n * On the web, it always returns `false`.\n */\nexport async function isAvailableAsync(): Promise<boolean> {\n return ExpoTaskManager.isAvailableAsync();\n}\n"]}
|
|
1
|
+
{"version":3,"file":"TaskManager.js","sourceRoot":"","sources":["../src/TaskManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,OAAO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poTaskManager';\n\n// @needsAudit @docsMissing\n/**\n * Error object that can be received through [`TaskManagerTaskBody`](#taskmanagertaskbody) when the\n * task fails.\n */\nexport interface TaskManagerError {\n code: string | number;\n message: string;\n}\n\n// @needsAudit\n/**\n * Represents the object that is passed to the task executor.\n */\nexport interface TaskManagerTaskBody<T = unknown> {\n /**\n * An object of data passed to the task executor. Its properties depend on the type of the task.\n */\n data: T;\n\n /**\n * Error object if the task failed or `null` otherwise.\n */\n error: TaskManagerError | null;\n\n /**\n * Additional details containing unique ID of task event and name of the task.\n */\n executionInfo: TaskManagerTaskBodyExecutionInfo;\n}\n\n// @needsAudit\n/**\n * Additional details about execution provided in `TaskManagerTaskBody`.\n */\nexport interface TaskManagerTaskBodyExecutionInfo {\n /**\n * State of the application.\n * @platform ios\n */\n appState?: 'active' | 'background' | 'inactive';\n /**\n * Unique ID of task event.\n */\n eventId: string;\n /**\n * Name of the task.\n */\n taskName: string;\n}\n\n// @needsAudit\n/**\n * Represents an already registered task.\n */\nexport interface TaskManagerTask {\n /**\n * Name that the task is registered with.\n */\n taskName: string;\n\n /**\n * Type of the task which depends on how the task was registered.\n */\n taskType: string;\n\n /**\n * Provides `options` that the task was registered with.\n */\n options: any;\n}\n\n/**\n * @deprecated Use `TaskManagerTask` instead.\n * @hidden\n */\nexport interface RegisteredTask extends TaskManagerTask {}\n\n// @needsAudit\n/**\n * Type of task executor – a function that handles the task.\n */\nexport type TaskManagerTaskExecutor<T = any> = (body: TaskManagerTaskBody<T>) => Promise<any>;\n\nconst tasks: Map<string, TaskManagerTaskExecutor<any>> = new Map<\n string,\n TaskManagerTaskExecutor<any>\n>();\n\nfunction _validate(taskName: unknown) {\n if (!taskName || typeof taskName !== 'string') {\n throw new TypeError('`taskName` must be a non-empty string.');\n }\n}\n\n// @needsAudit\n/**\n * Defines task function. It must be called in the global scope of your JavaScript bundle.\n * In particular, it cannot be called in any of React lifecycle methods like `componentDidMount`.\n * This limitation is due to the fact that when the application is launched in the background,\n * we need to spin up your JavaScript app, run your task and then shut down — no views are mounted\n * in this scenario.\n *\n * @param taskName Name of the task. It must be the same as the name you provided when registering the task.\n * @param taskExecutor A function that will be invoked when the task with given `taskName` is executed.\n */\nexport function defineTask<T = unknown>(\n taskName: string,\n taskExecutor: TaskManagerTaskExecutor<T>\n) {\n if (!taskName || typeof taskName !== 'string') {\n console.warn(`TaskManager.defineTask: 'taskName' argument must be a non-empty string.`);\n return;\n }\n if (!taskExecutor || typeof taskExecutor !== 'function') {\n console.warn(`TaskManager.defineTask: 'task' argument must be a function.`);\n return;\n }\n tasks.set(taskName, taskExecutor);\n}\n\n// @needsAudit\n/**\n * Checks whether the task is already defined.\n *\n * @param taskName Name of the task.\n */\nexport function isTaskDefined(taskName: string): boolean {\n return tasks.has(taskName);\n}\n\n// @needsAudit\n/**\n * Determine whether the task is registered. Registered tasks are stored in a persistent storage and\n * preserved between sessions.\n *\n * @param taskName Name of the task.\n * @returns A promise which resolves to `true` if a task with the given name is registered, otherwise `false`.\n */\nexport async function isTaskRegisteredAsync(taskName: string): Promise<boolean> {\n if (!ExpoTaskManager.isTaskRegisteredAsync) {\n throw new UnavailabilityError('TaskManager', 'isTaskRegisteredAsync');\n }\n\n _validate(taskName);\n return ExpoTaskManager.isTaskRegisteredAsync(taskName);\n}\n\n// @needsAudit\n/**\n * Retrieves `options` associated with the task, that were passed to the function registering the task\n * (e.g. `Location.startLocationUpdatesAsync`).\n *\n * @param taskName Name of the task.\n * @return A promise which fulfills with the `options` object that was passed while registering task\n * with given name or `null` if task couldn't be found.\n */\nexport async function getTaskOptionsAsync<TaskOptions>(taskName: string): Promise<TaskOptions> {\n if (!ExpoTaskManager.getTaskOptionsAsync) {\n throw new UnavailabilityError('TaskManager', 'getTaskOptionsAsync');\n }\n\n _validate(taskName);\n return ExpoTaskManager.getTaskOptionsAsync(taskName);\n}\n\n// @needsAudit\n/**\n * Provides information about tasks registered in the app.\n *\n * @returns A promise which fulfills with an array of tasks registered in the app.\n * @example\n * ```js\n * [\n * {\n * taskName: 'location-updates-task-name',\n * taskType: 'location',\n * options: {\n * accuracy: Location.Accuracy.High,\n * showsBackgroundLocationIndicator: false,\n * },\n * },\n * {\n * taskName: 'geofencing-task-name',\n * taskType: 'geofencing',\n * options: {\n * regions: [...],\n * },\n * },\n * ]\n * ```\n */\nexport async function getRegisteredTasksAsync(): Promise<TaskManagerTask[]> {\n if (!ExpoTaskManager.getRegisteredTasksAsync) {\n throw new UnavailabilityError('TaskManager', 'getRegisteredTasksAsync');\n }\n\n return ExpoTaskManager.getRegisteredTasksAsync();\n}\n\n// @needsAudit\n/**\n * Unregisters task from the app, so the app will not be receiving updates for that task anymore.\n * _It is recommended to use methods specialized by modules that registered the task, eg.\n * [`Location.stopLocationUpdatesAsync`](./location/#expolocationstoplocationupdatesasynctaskname)._\n *\n * @param taskName Name of the task to unregister.\n * @return A promise which fulfills as soon as the task is unregistered.\n */\nexport async function unregisterTaskAsync(taskName: string): Promise<void> {\n if (!ExpoTaskManager.unregisterTaskAsync) {\n throw new UnavailabilityError('TaskManager', 'unregisterTaskAsync');\n }\n\n _validate(taskName);\n await ExpoTaskManager.unregisterTaskAsync(taskName);\n}\n\n// @needsAudit\n/**\n * Unregisters all tasks registered for the running app. You may want to call this when the user is\n * signing out and you no longer need to track his location or run any other background tasks.\n * @return A promise which fulfills as soon as all tasks are completely unregistered.\n */\nexport async function unregisterAllTasksAsync(): Promise<void> {\n if (!ExpoTaskManager.unregisterAllTasksAsync) {\n throw new UnavailabilityError('TaskManager', 'unregisterAllTasksAsync');\n }\n\n await ExpoTaskManager.unregisterAllTasksAsync();\n}\n\nif (ExpoTaskManager) {\n const eventEmitter = new LegacyEventEmitter(ExpoTaskManager);\n eventEmitter.addListener<TaskManagerTaskBody>(\n ExpoTaskManager.EVENT_NAME,\n async ({ data, error, executionInfo }) => {\n const { eventId, taskName } = executionInfo;\n const taskExecutor = tasks.get(taskName);\n let result: any = null;\n\n if (taskExecutor) {\n try {\n // Execute JS task\n result = await taskExecutor({ data, error, executionInfo });\n } catch (error) {\n console.error(`TaskManager: Task \"${taskName}\" failed:`, error);\n } finally {\n // Notify manager the task is finished.\n await ExpoTaskManager.notifyTaskFinishedAsync(taskName, { eventId, result });\n }\n } else {\n console.warn(\n `TaskManager: Execution of \"${taskName}\" was requested but looks like it is not defined. Available tasks: [${[...tasks.keys()].join(', ')}]. Make sure that \"TaskManager.defineTask\" is called during initialization phase.`\n );\n // No tasks defined -> we need to notify about finish anyway.\n await ExpoTaskManager.notifyTaskFinishedAsync(taskName, { eventId, result });\n // We should also unregister such tasks automatically as the task might have been removed\n // from the app or just renamed - in that case it needs to be registered again (with the new name).\n await ExpoTaskManager.unregisterTaskAsync(taskName);\n }\n }\n );\n}\n\n// @needsAudit\n/**\n * Determine if the `TaskManager` API can be used in this app.\n * @return A promise which fulfills with `true` if the API can be used, and `false` otherwise.\n * With Expo Go, `TaskManager` is not available on Android, and does not support background execution on iOS.\n * Use a development build to avoid limitations: https://expo.fyi/dev-client.\n * On the web, it always returns `false`.\n */\nexport async function isAvailableAsync(): Promise<boolean> {\n return ExpoTaskManager.isAvailableAsync();\n}\n"]}
|
package/expo-module.config.json
CHANGED
|
@@ -191,7 +191,7 @@ EX_EXPORT_METHOD_AS(unregisterAllTasksAsync,
|
|
|
191
191
|
// Module's event emitter is already being observed, so we can send events.
|
|
192
192
|
[_eventEmitter sendEventWithName:EXTaskManagerEventName body:body];
|
|
193
193
|
} else {
|
|
194
|
-
// Otherwise add event body to the queue (it will be
|
|
194
|
+
// Otherwise add event body to the queue (it will be sent in `startObserving`).
|
|
195
195
|
[_eventsQueue addObject:body];
|
|
196
196
|
}
|
|
197
197
|
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e6984926a62290fcdc96a97ca037b896
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f6ae6d888b2d8d4756210a9d0d2ec4483895ad5b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a974cd4178da6f0061c3ed06a939e89df92d79db674b03c848822a5e56eeb844
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2dbf395cae7b246d0616410dc3854a301f28bd14a7894dc815ec24b8209b399fdd6b4e60f8b5869a808d28d27c228b1457d748da48c1b6ab0b77ba7dececc7a3
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.taskmanager",
|
|
6
|
-
"version": "14.0.
|
|
6
|
+
"version": "14.0.10-canary-20251205-a1dedc6",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"createdBy": {
|
|
12
12
|
"gradle": {
|
|
13
|
-
"version": "
|
|
13
|
+
"version": "9.0.0"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"variants": [
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"group": "androidx.core",
|
|
28
28
|
"module": "core",
|
|
29
29
|
"version": {
|
|
30
|
-
"requires": "1.
|
|
30
|
+
"requires": "1.17.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
34
|
"files": [
|
|
35
35
|
{
|
|
36
|
-
"name": "expo.modules.taskmanager-14.0.
|
|
37
|
-
"url": "expo.modules.taskmanager-14.0.
|
|
38
|
-
"size":
|
|
39
|
-
"sha512": "
|
|
40
|
-
"sha256": "
|
|
41
|
-
"sha1": "
|
|
42
|
-
"md5": "
|
|
36
|
+
"name": "expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar",
|
|
37
|
+
"url": "expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar",
|
|
38
|
+
"size": 65078,
|
|
39
|
+
"sha512": "2dbf395cae7b246d0616410dc3854a301f28bd14a7894dc815ec24b8209b399fdd6b4e60f8b5869a808d28d27c228b1457d748da48c1b6ab0b77ba7dececc7a3",
|
|
40
|
+
"sha256": "a974cd4178da6f0061c3ed06a939e89df92d79db674b03c848822a5e56eeb844",
|
|
41
|
+
"sha1": "f6ae6d888b2d8d4756210a9d0d2ec4483895ad5b",
|
|
42
|
+
"md5": "e6984926a62290fcdc96a97ca037b896"
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
},
|
|
@@ -63,26 +63,26 @@
|
|
|
63
63
|
"group": "host.exp.exponent",
|
|
64
64
|
"module": "org.unimodules.apploader",
|
|
65
65
|
"version": {
|
|
66
|
-
"requires": "6.0.
|
|
66
|
+
"requires": "6.0.9-canary-20251205-a1dedc6"
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"group": "androidx.core",
|
|
71
71
|
"module": "core",
|
|
72
72
|
"version": {
|
|
73
|
-
"requires": "1.
|
|
73
|
+
"requires": "1.17.0"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
77
|
"files": [
|
|
78
78
|
{
|
|
79
|
-
"name": "expo.modules.taskmanager-14.0.
|
|
80
|
-
"url": "expo.modules.taskmanager-14.0.
|
|
81
|
-
"size":
|
|
82
|
-
"sha512": "
|
|
83
|
-
"sha256": "
|
|
84
|
-
"sha1": "
|
|
85
|
-
"md5": "
|
|
79
|
+
"name": "expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar",
|
|
80
|
+
"url": "expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6.aar",
|
|
81
|
+
"size": 65078,
|
|
82
|
+
"sha512": "2dbf395cae7b246d0616410dc3854a301f28bd14a7894dc815ec24b8209b399fdd6b4e60f8b5869a808d28d27c228b1457d748da48c1b6ab0b77ba7dececc7a3",
|
|
83
|
+
"sha256": "a974cd4178da6f0061c3ed06a939e89df92d79db674b03c848822a5e56eeb844",
|
|
84
|
+
"sha1": "f6ae6d888b2d8d4756210a9d0d2ec4483895ad5b",
|
|
85
|
+
"md5": "e6984926a62290fcdc96a97ca037b896"
|
|
86
86
|
}
|
|
87
87
|
]
|
|
88
88
|
},
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
},
|
|
97
97
|
"files": [
|
|
98
98
|
{
|
|
99
|
-
"name": "expo.modules.taskmanager-14.0.
|
|
100
|
-
"url": "expo.modules.taskmanager-14.0.
|
|
99
|
+
"name": "expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6-sources.jar",
|
|
100
|
+
"url": "expo.modules.taskmanager-14.0.10-canary-20251205-a1dedc6-sources.jar",
|
|
101
101
|
"size": 22851,
|
|
102
102
|
"sha512": "8b736d920f293730c6e21c622e290b98572a20da941a55cc2115d2557f75f1336ddc016e74c2490da6f28db1324ad47a31002f55a1a003129c0e084de554c38b",
|
|
103
103
|
"sha256": "835897e4e38b3abc2084054d950204a7a812dee7c650c6665f7ed3e10ada565e",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3d90236925268e6908d1912c3ce69b2f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
265e384e5ce2d32b68e95c9e49e9732203bb9c7d
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b658232343dc354a54c06f5b0eca6a8b92065baa79540a68f0339fd45cd1c20a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e908bfd3ef1b406df6c2bd4089adc1eebeafb3e4464f300004e0e8920c21249c2656d8d1ab58e200a6d14361b69d8534aae2ca95ec705e61618bb09cea46e4a1
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.taskmanager</artifactId>
|
|
12
|
-
<version>14.0.
|
|
12
|
+
<version>14.0.10-canary-20251205-a1dedc6</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.taskmanager</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<dependency>
|
|
29
29
|
<groupId>androidx.core</groupId>
|
|
30
30
|
<artifactId>core</artifactId>
|
|
31
|
-
<version>1.
|
|
31
|
+
<version>1.17.0</version>
|
|
32
32
|
<scope>compile</scope>
|
|
33
33
|
</dependency>
|
|
34
34
|
<dependency>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<dependency>
|
|
41
41
|
<groupId>host.exp.exponent</groupId>
|
|
42
42
|
<artifactId>org.unimodules.apploader</artifactId>
|
|
43
|
-
<version>6.0.
|
|
43
|
+
<version>6.0.9-canary-20251205-a1dedc6</version>
|
|
44
44
|
<scope>runtime</scope>
|
|
45
45
|
</dependency>
|
|
46
46
|
</dependencies>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f36ab021fc1f07d50b8a508b71e1d05d
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5580ba18f42487f1d2f1d9cffd92430853106093
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b95b04e440cdb342e22e4fdc0f512cb8fd8bb55a64d986009d66b636c6694d1c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4a0bb5d87a1bafb8a6e7149350f89d6ec9b54b8de953bfe266c8e4739124115f6434f44510b7216e4ce8b452baec0441257b840fc413b4e9f6bee0dffccc906a
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.taskmanager</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>14.0.
|
|
7
|
-
<release>14.0.
|
|
6
|
+
<latest>14.0.10-canary-20251205-a1dedc6</latest>
|
|
7
|
+
<release>14.0.10-canary-20251205-a1dedc6</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>14.0.
|
|
9
|
+
<version>14.0.10-canary-20251205-a1dedc6</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20251205162151</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ee16d24c056ebd3019ede4e85fb9ffe4
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
583749c3569b4bc9473810e0a9373e5b1c0ca235
|
package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
67dd6eb2a146264e5d8445ec1710090b7805b3f7c735f206f4d739921dc4e12c
|
package/local-maven-repo/host/exp/exponent/expo.modules.taskmanager/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f688afe5d8a4a59e0089bce08f61d98ff18c1eab23357ed83bd9a5d6ac26daf08d278fc1d7fde539fe1988e11a68258d8cb7cd958b522c41d19187fa1914d454
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-task-manager",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.10-canary-20251205-a1dedc6",
|
|
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",
|
|
@@ -33,14 +33,13 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"homepage": "https://docs.expo.dev/versions/latest/sdk/task-manager/",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"unimodules-app-loader": "
|
|
36
|
+
"unimodules-app-loader": "6.0.9-canary-20251205-a1dedc6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"expo-module-scripts": "
|
|
39
|
+
"expo-module-scripts": "5.1.0-canary-20251205-a1dedc6"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"expo": "
|
|
42
|
+
"expo": "55.0.0-canary-20251205-a1dedc6",
|
|
43
43
|
"react-native": "*"
|
|
44
|
-
}
|
|
45
|
-
"gitHead": "172a69f5f70c1d0e043e1532f924de97210cabc3"
|
|
44
|
+
}
|
|
46
45
|
}
|
package/src/TaskManager.ts
CHANGED
|
@@ -255,7 +255,7 @@ if (ExpoTaskManager) {
|
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
console.warn(
|
|
258
|
-
`TaskManager:
|
|
258
|
+
`TaskManager: Execution of "${taskName}" was requested but looks like it is not defined. Available tasks: [${[...tasks.keys()].join(', ')}]. Make sure that "TaskManager.defineTask" is called during initialization phase.`
|
|
259
259
|
);
|
|
260
260
|
// No tasks defined -> we need to notify about finish anyway.
|
|
261
261
|
await ExpoTaskManager.notifyTaskFinishedAsync(taskName, { eventId, result });
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1f0781ac1126aeb43cf75d3c619928e4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
852c7fdbfc10f71240a84a215277f0eef8967fbe
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
cd0d6a6104da82cecef4d6ab0cfa4a6c4e72cc3232b340ffce0fb0547579ff05
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
354613085043268f282b8b81dd79881aa4b1f92876b307f216d899fe0f323673c0fb404aaf6a7a2329d38185268596ab3c4be6807e4a6d4bf5c65a69e34a165d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ca2a3c21b370e859eda95ca62338f1b9
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
93022a9a6d644ce165f21765e2a141ec8bf7e914
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fe083655041cf84d53ed0b3a15886fe2b5ca40d8477dd214b4cd358b2b8a2078
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dc3762a24f0d400a0214d00be7c6c57a86b3aa5ec6adc49f3e6e150fa7734e27ae0ceec1ba4eab76cdc4150341ab6cd9a828a618d78a854925fd788fe86ba444
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
cd7a57a9608161a3dc5304963839a543
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5b54d5081b3f8097f608ebb08977f651fd257d16
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a63fd5e83301c4008f894257a06ab49a59a6c303501bf7a92eefb2085780c264
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
74143655bec5e8caae6765566cae80e2a442e5a88d7baa9e0821f1526fa53392c66f3dc8e90c984e15e26f98814ee5c6c149aa072a16228c4cce17ed8d92da32
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|