expo-notifications 0.32.7 → 0.32.8
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 +4 -0
- package/android/build.gradle +2 -2
- package/build/NotificationsEmitter.d.ts +3 -3
- package/build/NotificationsEmitter.d.ts.map +1 -1
- package/build/NotificationsEmitter.js +3 -3
- package/build/NotificationsEmitter.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.module → 0.32.8/expo.modules.notifications-0.32.8.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.pom → 0.32.8/expo.modules.notifications-0.32.8.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.8/expo.modules.notifications-0.32.8.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512 +1 -1
- package/package.json +6 -6
- package/src/NotificationsEmitter.ts +3 -3
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.notifications/0.32.7/expo.modules.notifications-0.32.7.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7-sources.jar → 0.32.8/expo.modules.notifications-0.32.8-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7-sources.jar.md5 → 0.32.8/expo.modules.notifications-0.32.8-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha1 → 0.32.8/expo.modules.notifications-0.32.8-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha256 → 0.32.8/expo.modules.notifications-0.32.8-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7-sources.jar.sha512 → 0.32.8/expo.modules.notifications-0.32.8-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.aar → 0.32.8/expo.modules.notifications-0.32.8.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.aar.md5 → 0.32.8/expo.modules.notifications-0.32.8.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.aar.sha1 → 0.32.8/expo.modules.notifications-0.32.8.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.aar.sha256 → 0.32.8/expo.modules.notifications-0.32.8.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{0.32.7/expo.modules.notifications-0.32.7.aar.sha512 → 0.32.8/expo.modules.notifications-0.32.8.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -5,13 +5,13 @@ plugins {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
group = 'host.exp.exponent'
|
|
8
|
-
version = '0.32.
|
|
8
|
+
version = '0.32.8'
|
|
9
9
|
|
|
10
10
|
android {
|
|
11
11
|
namespace "expo.modules.notifications"
|
|
12
12
|
defaultConfig {
|
|
13
13
|
versionCode 21
|
|
14
|
-
versionName '0.32.
|
|
14
|
+
versionName '0.32.8'
|
|
15
15
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -63,13 +63,14 @@ export declare function addNotificationsDroppedListener(listener: () => void): E
|
|
|
63
63
|
*/
|
|
64
64
|
export declare function addNotificationResponseReceivedListener(listener: (event: NotificationResponse) => void): EventSubscription;
|
|
65
65
|
/**
|
|
66
|
-
* @deprecated use `getLastNotificationResponse` instead.
|
|
67
66
|
*
|
|
68
67
|
* Gets the notification response received most recently
|
|
69
68
|
* (a notification response designates an interaction with a notification, such as tapping on it).
|
|
70
69
|
*
|
|
71
70
|
* - `null` - if no notification response has been received yet
|
|
72
71
|
* - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received
|
|
72
|
+
*
|
|
73
|
+
* @deprecated Use `getLastNotificationResponse` instead.
|
|
73
74
|
*/
|
|
74
75
|
export declare function getLastNotificationResponseAsync(): Promise<NotificationResponse | null>;
|
|
75
76
|
/**
|
|
@@ -81,8 +82,6 @@ export declare function getLastNotificationResponseAsync(): Promise<Notification
|
|
|
81
82
|
*/
|
|
82
83
|
export declare function getLastNotificationResponse(): NotificationResponse | null;
|
|
83
84
|
/**
|
|
84
|
-
* @deprecated use `clearLastNotificationResponse` instead.
|
|
85
|
-
|
|
86
85
|
* Clears the notification response that was received most recently. May be used
|
|
87
86
|
* when an app selects a route based on the notification response, and it is undesirable
|
|
88
87
|
* to continue selecting the route after the response has already been handled.
|
|
@@ -90,6 +89,7 @@ export declare function getLastNotificationResponse(): NotificationResponse | nu
|
|
|
90
89
|
* If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,
|
|
91
90
|
* this call will also clear the value returned by the hook.
|
|
92
91
|
*
|
|
92
|
+
* @deprecated Use `clearLastNotificationResponse` instead.
|
|
93
93
|
* @return A promise that resolves if the native call was successful.
|
|
94
94
|
*/
|
|
95
95
|
export declare function clearLastNotificationResponseAsync(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationsEmitter.d.ts","sourceRoot":"","sources":["../src/NotificationsEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,iBAAiB,EAAuB,MA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AE7F;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,IAAI,oBAAoB,GAAG,IAAI,CAOzE;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kCAAkC,IAAI,OAAO,CAAC,IAAI,CAAC,CAExE;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAOpD;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,iBAAiB,CAE9F"}
|
|
@@ -83,13 +83,14 @@ export function addNotificationResponseReceivedListener(listener) {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* @deprecated use `getLastNotificationResponse` instead.
|
|
87
86
|
*
|
|
88
87
|
* Gets the notification response received most recently
|
|
89
88
|
* (a notification response designates an interaction with a notification, such as tapping on it).
|
|
90
89
|
*
|
|
91
90
|
* - `null` - if no notification response has been received yet
|
|
92
91
|
* - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received
|
|
92
|
+
*
|
|
93
|
+
* @deprecated Use `getLastNotificationResponse` instead.
|
|
93
94
|
*/
|
|
94
95
|
export async function getLastNotificationResponseAsync() {
|
|
95
96
|
return getLastNotificationResponse();
|
|
@@ -110,8 +111,6 @@ export function getLastNotificationResponse() {
|
|
|
110
111
|
return mappedResponse;
|
|
111
112
|
}
|
|
112
113
|
/**
|
|
113
|
-
* @deprecated use `clearLastNotificationResponse` instead.
|
|
114
|
-
|
|
115
114
|
* Clears the notification response that was received most recently. May be used
|
|
116
115
|
* when an app selects a route based on the notification response, and it is undesirable
|
|
117
116
|
* to continue selecting the route after the response has already been handled.
|
|
@@ -119,6 +118,7 @@ export function getLastNotificationResponse() {
|
|
|
119
118
|
* If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,
|
|
120
119
|
* this call will also clear the value returned by the hook.
|
|
121
120
|
*
|
|
121
|
+
* @deprecated Use `clearLastNotificationResponse` instead.
|
|
122
122
|
* @return A promise that resolves if the native call was successful.
|
|
123
123
|
*/
|
|
124
124
|
export async function clearLastNotificationResponseAsync() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationsEmitter.js","sourceRoot":"","sources":["../src/NotificationsEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA0B,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGpG,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE3F,iCAAiC;AACjC,MAAM,OAAO,GAAG,IAAI,kBAAkB,CAAC,0BAA0B,CAAC,CAAC;AAEnE,MAAM,+BAA+B,GAAG,0BAA0B,CAAC;AACnE,MAAM,6BAA6B,GAAG,wBAAwB,CAAC;AAC/D,MAAM,uCAAuC,GAAG,kCAAkC,CAAC;AACnF,MAAM,qCAAqC,GAAG,gCAAgC,CAAC;AAE/E,eAAe;AACf,MAAM,CAAC,MAAM,yBAAyB,GAAG,4CAA4C,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,+BAA+B,CAC7C,QAAuC;IAEvC,OAAO,OAAO,CAAC,WAAW,CACxB,+BAA+B,EAC/B,CAAC,YAA0B,EAAE,EAAE;QAC7B,MAAM,kBAAkB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;QACzD,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC/B,CAAC,CACF,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,+BAA+B,CAAC,QAAoB;IAClE,OAAO,OAAO,CAAC,WAAW,CAAO,6BAA6B,EAAE,QAAQ,CAAC,CAAC;AAC5E,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,uCAAuC,CACrD,QAA+C;IAE/C,OAAO,OAAO,CAAC,WAAW,CACxB,uCAAuC,EACvC,CAAC,Q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,CAAC","sourcesContent":["import { LegacyEventEmitter, type EventSubscription, UnavailabilityError } from 'expo-modules-core';\n\nimport { Notification, NotificationResponse } from './Notifications.types';\nimport NotificationsEmitterModule from './NotificationsEmitterModule';\nimport { mapNotification, mapNotificationResponse } from './utils/mapNotificationResponse';\n\n// Web uses SyntheticEventEmitter\nconst emitter = new LegacyEventEmitter(NotificationsEmitterModule);\n\nconst didReceiveNotificationEventName = 'onDidReceiveNotification';\nconst didDropNotificationsEventName = 'onNotificationsDeleted';\nconst didReceiveNotificationResponseEventName = 'onDidReceiveNotificationResponse';\nconst didClearNotificationResponseEventName = 'onDidClearNotificationResponse';\n\n// @docsMissing\nexport const DEFAULT_ACTION_IDENTIFIER = 'expo.modules.notifications.actions.DEFAULT';\n\n/**\n * Listeners registered by this method will be called whenever a notification is received while the app is running.\n * @param listener A function accepting a notification ([`Notification`](#notification)) as an argument.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @example Registering a notification listener using a React hook:\n * ```jsx\n * import React from 'react';\n * import * as Notifications from 'expo-notifications';\n *\n * export default function App() {\n * React.useEffect(() => {\n * const subscription = Notifications.addNotificationReceivedListener(notification => {\n * console.log(notification);\n * });\n * return () => subscription.remove();\n * }, []);\n *\n * return (\n * // Your app content\n * );\n * }\n * ```\n * @header listen\n */\nexport function addNotificationReceivedListener(\n listener: (event: Notification) => void\n): EventSubscription {\n return emitter.addListener<Notification>(\n didReceiveNotificationEventName,\n (notification: Notification) => {\n const mappedNotification = mapNotification(notification);\n listener(mappedNotification);\n }\n );\n}\n\n/**\n * Listeners registered by this method will be called whenever some notifications have been dropped by the server.\n * Applicable only to Firebase Cloud Messaging which we use as a notifications service on Android. It corresponds to `onDeletedMessages()` callback.\n * More information can be found in [Firebase docs](https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages).\n * @param listener A callback function.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @header listen\n */\nexport function addNotificationsDroppedListener(listener: () => void): EventSubscription {\n return emitter.addListener<void>(didDropNotificationsEventName, listener);\n}\n\n/**\n * Listeners registered by this method will be called whenever a user interacts with a notification (for example, taps on it).\n * @param listener A function accepting notification response ([`NotificationResponse`](#notificationresponse)) as an argument.\n * @return An [`EventSubscription`](#eventsubscription) object represents the subscription of the provided listener.\n * @example Register a notification responder listener:\n * ```jsx\n * import React from 'react';\n * import { Linking } from 'react-native';\n * import * as Notifications from 'expo-notifications';\n *\n * export default function Container() {\n * React.useEffect(() => {\n * const subscription = Notifications.addNotificationResponseReceivedListener(response => {\n * const url = response.notification.request.content.data.url;\n * Linking.openURL(url);\n * });\n * return () => subscription.remove();\n * }, []);\n *\n * return (\n * // Your app content\n * );\n * }\n * ```\n * @header listen\n */\nexport function addNotificationResponseReceivedListener(\n listener: (event: NotificationResponse) => void\n): EventSubscription {\n return emitter.addListener<NotificationResponse>(\n didReceiveNotificationResponseEventName,\n (response: NotificationResponse) => {\n const mappedResponse = mapNotificationResponse(response);\n listener(mappedResponse);\n }\n );\n}\n\n/**\n *\n * Gets the notification response received most recently\n * (a notification response designates an interaction with a notification, such as tapping on it).\n *\n * - `null` - if no notification response has been received yet\n * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received\n *\n * @deprecated Use `getLastNotificationResponse` instead.\n */\nexport async function getLastNotificationResponseAsync(): Promise<NotificationResponse | null> {\n return getLastNotificationResponse();\n}\n\n/**\n * Gets the notification response that was received most recently\n * (a notification response designates an interaction with a notification, such as tapping on it).\n *\n * - `null` - if no notification response has been received yet\n * - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received\n */\nexport function getLastNotificationResponse(): NotificationResponse | null {\n if (!NotificationsEmitterModule.getLastNotificationResponse) {\n throw new UnavailabilityError('ExpoNotifications', 'getLastNotificationResponse');\n }\n const response = NotificationsEmitterModule.getLastNotificationResponse();\n const mappedResponse = response ? mapNotificationResponse(response) : response;\n return mappedResponse;\n}\n\n/**\n * Clears the notification response that was received most recently. May be used\n * when an app selects a route based on the notification response, and it is undesirable\n * to continue selecting the route after the response has already been handled.\n *\n * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,\n * this call will also clear the value returned by the hook.\n *\n * @deprecated Use `clearLastNotificationResponse` instead.\n * @return A promise that resolves if the native call was successful.\n */\nexport async function clearLastNotificationResponseAsync(): Promise<void> {\n clearLastNotificationResponse();\n}\n\n/**\n * Clears the notification response that was received most recently. May be used\n * when an app selects a route based on the notification response, and it is undesirable\n * to continue selecting the route after the response has already been handled.\n *\n * If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,\n * this call will also clear the value returned by the hook.\n *\n */\nexport function clearLastNotificationResponse(): void {\n if (!NotificationsEmitterModule.clearLastNotificationResponse) {\n throw new UnavailabilityError('ExpoNotifications', 'clearLastNotificationResponse');\n }\n NotificationsEmitterModule.clearLastNotificationResponse();\n // Emit event to clear any useLastNotificationResponse hooks, after native call succeeds\n emitter.emit(didClearNotificationResponseEventName, []);\n}\n\n/**\n * @hidden\n */\nexport function addNotificationResponseClearedListener(listener: () => void): EventSubscription {\n return emitter.addListener<void>(didClearNotificationResponseEventName, listener);\n}\n"]}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.notifications",
|
|
6
|
-
"version": "0.32.
|
|
6
|
+
"version": "0.32.8",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.notifications-0.32.
|
|
28
|
-
"url": "expo.modules.notifications-0.32.
|
|
27
|
+
"name": "expo.modules.notifications-0.32.8.aar",
|
|
28
|
+
"url": "expo.modules.notifications-0.32.8.aar",
|
|
29
29
|
"size": 384708,
|
|
30
30
|
"sha512": "35bfb08451c4e643d3e6b51125cd29b3775cb0ce8b16612600d124a77b558310b2a572c8fe885ffc1f3ece6513fbf35b29825f202d9c711a434900e41d9e656e",
|
|
31
31
|
"sha256": "0d544b3d64a8b76b73628432a2f9ac345404f2e76b8e46f2d1cd08ac6f29e849",
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
],
|
|
123
123
|
"files": [
|
|
124
124
|
{
|
|
125
|
-
"name": "expo.modules.notifications-0.32.
|
|
126
|
-
"url": "expo.modules.notifications-0.32.
|
|
125
|
+
"name": "expo.modules.notifications-0.32.8.aar",
|
|
126
|
+
"url": "expo.modules.notifications-0.32.8.aar",
|
|
127
127
|
"size": 384708,
|
|
128
128
|
"sha512": "35bfb08451c4e643d3e6b51125cd29b3775cb0ce8b16612600d124a77b558310b2a572c8fe885ffc1f3ece6513fbf35b29825f202d9c711a434900e41d9e656e",
|
|
129
129
|
"sha256": "0d544b3d64a8b76b73628432a2f9ac345404f2e76b8e46f2d1cd08ac6f29e849",
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
},
|
|
143
143
|
"files": [
|
|
144
144
|
{
|
|
145
|
-
"name": "expo.modules.notifications-0.32.
|
|
146
|
-
"url": "expo.modules.notifications-0.32.
|
|
145
|
+
"name": "expo.modules.notifications-0.32.8-sources.jar",
|
|
146
|
+
"url": "expo.modules.notifications-0.32.8-sources.jar",
|
|
147
147
|
"size": 99047,
|
|
148
148
|
"sha512": "ebfea857d5cdd1f40f7566dbecb448ba86454cfe5c4825a923723fffdd24f8163bf7966bb1b78c1fd06dd42898be6144b84d84014f41d8c5e2f6fa2911ba40d0",
|
|
149
149
|
"sha256": "1382898e690552eb0d0d2ef86fd6104efc559790bb1118ffcb7da37037637eb6",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9d3beac249c234992b0beecd42015bf8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ad3e026c37971a48f8a6341c0872a9add66a0a40
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
663e25a529bdddf5090420580bc2d0e0411689c5a339104b2bb3609fe1a6b5ff
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4e1be0b5d1422033867964be6a2ae81a1a629b558514683b8968c91369a96706bf50050d6ebe592b8808e2d14cc41a8d50cb696402392116fdf6b772223d76f4
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.notifications</artifactId>
|
|
12
|
-
<version>0.32.
|
|
12
|
+
<version>0.32.8</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.notifications</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e152372224a9be6171f4ec5c3842b284
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dbecd7aff1eb238c2bc2d6250fb54240ef950641
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c942a992198de2c6073c1c75e44f7f5b6d5f37ca68e5c83b23d48ef133e1eeae
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0d2e0b246fd9dda6b52f94440f32fc67ec8962812b135f5ca9739c53e99982c3472ab784da607399bdd2dfca8a67d2220e2992cf3d12bfda0e65d79e30ded013
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.notifications</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>0.32.
|
|
7
|
-
<release>0.32.
|
|
6
|
+
<latest>0.32.8</latest>
|
|
7
|
+
<release>0.32.8</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>0.32.
|
|
9
|
+
<version>0.32.8</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250902175111</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ac63771f1fe0de2df25a799bceed8341
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha1
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
643bb56dccf3da841cd165957ab1bee28d1116df
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
35ab04fdfe24ac58aa5997ea6669da2ec7592d4c04b6e57a2b37bce9d31a237a
|
package/local-maven-repo/host/exp/exponent/expo.modules.notifications/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a4636f0f88461babe7d936a338e7b94e6f4ae8abdce640488aebb7d240f2bbefefbfe9f974b4b90cda28ae035e951ffb4f2eac3a540e84dc3ae1327e356e1174
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-notifications",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.8",
|
|
4
4
|
"description": "Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@expo/image-utils": "^0.8.
|
|
45
|
+
"@expo/image-utils": "^0.8.6",
|
|
46
46
|
"@ide/backoff": "^1.0.0",
|
|
47
47
|
"abort-controller": "^3.0.0",
|
|
48
48
|
"assert": "^2.0.0",
|
|
49
49
|
"badgin": "^1.1.5",
|
|
50
|
-
"expo-application": "~7.0.
|
|
51
|
-
"expo-constants": "~18.0.
|
|
50
|
+
"expo-application": "~7.0.6",
|
|
51
|
+
"expo-constants": "~18.0.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"expo-module-scripts": "^5.0.
|
|
54
|
+
"expo-module-scripts": "^5.0.6",
|
|
55
55
|
"memfs": "^3.2.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react": "*",
|
|
60
60
|
"react-native": "*"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d635404a12ea7996b987ce0fb7679a238ebcf31b"
|
|
63
63
|
}
|
|
@@ -102,13 +102,14 @@ export function addNotificationResponseReceivedListener(
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* @deprecated use `getLastNotificationResponse` instead.
|
|
106
105
|
*
|
|
107
106
|
* Gets the notification response received most recently
|
|
108
107
|
* (a notification response designates an interaction with a notification, such as tapping on it).
|
|
109
108
|
*
|
|
110
109
|
* - `null` - if no notification response has been received yet
|
|
111
110
|
* - a [`NotificationResponse`](#notificationresponse) object - if a notification response was received
|
|
111
|
+
*
|
|
112
|
+
* @deprecated Use `getLastNotificationResponse` instead.
|
|
112
113
|
*/
|
|
113
114
|
export async function getLastNotificationResponseAsync(): Promise<NotificationResponse | null> {
|
|
114
115
|
return getLastNotificationResponse();
|
|
@@ -131,8 +132,6 @@ export function getLastNotificationResponse(): NotificationResponse | null {
|
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
/**
|
|
134
|
-
* @deprecated use `clearLastNotificationResponse` instead.
|
|
135
|
-
|
|
136
135
|
* Clears the notification response that was received most recently. May be used
|
|
137
136
|
* when an app selects a route based on the notification response, and it is undesirable
|
|
138
137
|
* to continue selecting the route after the response has already been handled.
|
|
@@ -140,6 +139,7 @@ export function getLastNotificationResponse(): NotificationResponse | null {
|
|
|
140
139
|
* If a component is using the [`useLastNotificationResponse`](#uselastnotificationresponse) hook,
|
|
141
140
|
* this call will also clear the value returned by the hook.
|
|
142
141
|
*
|
|
142
|
+
* @deprecated Use `clearLastNotificationResponse` instead.
|
|
143
143
|
* @return A promise that resolves if the native call was successful.
|
|
144
144
|
*/
|
|
145
145
|
export async function clearLastNotificationResponseAsync(): Promise<void> {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
104f65b00c80b9a51110d812579e4f58
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
63490fa6e043db0ce88f891a29951f1740e9d580
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4f4fe3ed305d23e2f8c461b465e1e64a7be1b856f0a0531b83016465f05b18c4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
25b223979c66d649fb8bee79a0ed9a47cb62068e990b305d76f7507be8b360e7c9a9ed153284586d32934ded8a63c523500f41f921443529ea7861835ecc1904
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3d8944840dd28dba9c34554b7a5b1692
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4aa0c08506f0406d7132b7ec720c3056d93350a0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1782960928366b0bfd4bee47de92929e1b3f6f15b53aae504e957819978db112
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
52ee6f6b356fae0700043bf5edc5dc6da6404a2be48bc38030a65166299a6a4ba010900097330228bcc4c7688f4c53dae31eac2d1dfafad0f7698f296dfbe1ce
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|