expo-notifications 58.1.6 → 58.1.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/android/build.gradle +2 -2
  3. package/build/TopicSubscriptionModule.android.d.ts +2 -2
  4. package/build/TopicSubscriptionModule.android.js +3 -2
  5. package/build/TopicSubscriptionModule.android.js.map +1 -1
  6. package/build/topicSubscription.js +2 -2
  7. package/build/topicSubscription.js.map +1 -1
  8. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6.module → 58.1.8/expo.modules.notifications-58.1.8.module} +7 -7
  9. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.module.md5 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.module.sha1 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.module.sha256 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.module.sha512 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6.pom → 58.1.8/expo.modules.notifications-58.1.8.pom} +1 -1
  14. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.pom.md5 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.pom.sha1 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.pom.sha256 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.8/expo.modules.notifications-58.1.8.pom.sha512 +1 -0
  18. package/package.json +5 -5
  19. package/src/TopicSubscriptionModule.android.ts +5 -2
  20. package/src/topicSubscription.ts +2 -2
  21. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.module.md5 +0 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.module.sha1 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.module.sha256 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.module.sha512 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.pom.md5 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.pom.sha1 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.pom.sha256 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.notifications/58.1.6/expo.modules.notifications-58.1.6.pom.sha512 +0 -1
  29. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6-sources.jar → 58.1.8/expo.modules.notifications-58.1.8-sources.jar} +0 -0
  30. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6-sources.jar.md5 → 58.1.8/expo.modules.notifications-58.1.8-sources.jar.md5} +0 -0
  31. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6-sources.jar.sha1 → 58.1.8/expo.modules.notifications-58.1.8-sources.jar.sha1} +0 -0
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6-sources.jar.sha256 → 58.1.8/expo.modules.notifications-58.1.8-sources.jar.sha256} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6-sources.jar.sha512 → 58.1.8/expo.modules.notifications-58.1.8-sources.jar.sha512} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6.aar → 58.1.8/expo.modules.notifications-58.1.8.aar} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6.aar.md5 → 58.1.8/expo.modules.notifications-58.1.8.aar.md5} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6.aar.sha1 → 58.1.8/expo.modules.notifications-58.1.8.aar.sha1} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6.aar.sha256 → 58.1.8/expo.modules.notifications-58.1.8.aar.sha256} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.notifications/{58.1.6/expo.modules.notifications-58.1.6.aar.sha512 → 58.1.8/expo.modules.notifications-58.1.8.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 58.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies.
8
+ - expo-constants@58.0.15
9
+
10
+ ## 58.1.7
11
+
12
+ ### Patch Changes
13
+
14
+ - [Android] Fix importing `expo-notifications` throwing `Cannot find native module 'ExpoTopicSubscriptionModule'` in Expo Go. ([#52182](https://github.com/expo/expo/pull/52182) by [@fixfon](https://github.com/fixfon))
15
+ - Updated dependencies.
16
+ - expo-constants@58.0.14
17
+ - @expo/image-utils@0.12.6
18
+
3
19
  ## 58.1.6
4
20
 
5
21
  ### Patch Changes
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '58.1.6'
8
+ version = '58.1.8'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '58.1.6'
14
+ versionName '58.1.8'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  consumerProguardFiles 'proguard-rules.pro'
17
17
  }
@@ -1,3 +1,3 @@
1
1
  import type { TopicSubscriptionModule } from './TopicSubscriptionModule.types';
2
- declare const _default: TopicSubscriptionModule;
3
- export default _default;
2
+ declare const topicSubscriptionModule: TopicSubscriptionModule;
3
+ export default topicSubscriptionModule;
@@ -1,4 +1,5 @@
1
- import { requireNativeModule } from 'expo';
2
- export default requireNativeModule('ExpoTopicSubscriptionModule');
1
+ import { requireOptionalNativeModule } from 'expo';
2
+ const topicSubscriptionModule = requireOptionalNativeModule('ExpoTopicSubscriptionModule') ?? {};
3
+ export default topicSubscriptionModule;
3
4
 
4
5
  //# sourceMappingURL=TopicSubscriptionModule.android.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["TopicSubscriptionModule.android.ts"],"sourcesContent":[null],"names":["requireNativeModule"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,OAAO;AAI3C,eAAeA,oBAA6C,+BAA+B"}
1
+ {"version":3,"sources":["TopicSubscriptionModule.android.ts"],"sourcesContent":[null],"names":["requireOptionalNativeModule","topicSubscriptionModule"],"mappings":"AAAA,SAASA,2BAA2B,QAAQ,OAAO;AAInD,MAAMC,0BACJD,4BAAqD,kCAAkC,CAAC;AAE1F,eAAeC,wBAAwB"}
@@ -7,10 +7,10 @@ import { warnOfExpoGoPushUsage } from './warnOfExpoGoPushUsage';
7
7
  * @return a Promise which resolves to `null` once the device is subscribed to the topic.
8
8
  * @platform android
9
9
  */ export async function subscribeToTopicAsync(topic) {
10
+ warnOfExpoGoPushUsage();
10
11
  if (!TopicSubscriptionModule.subscribeToTopicAsync) {
11
12
  throw new UnavailabilityError('ExpoNotifications', 'subscribeToTopicAsync');
12
13
  }
13
- warnOfExpoGoPushUsage();
14
14
  return TopicSubscriptionModule.subscribeToTopicAsync(topic);
15
15
  }
16
16
  /**
@@ -19,10 +19,10 @@ import { warnOfExpoGoPushUsage } from './warnOfExpoGoPushUsage';
19
19
  * @return a Promise which resolves to `null` once the device is unsubscribed from the topic.
20
20
  * @platform android
21
21
  */ export async function unsubscribeFromTopicAsync(topic) {
22
+ warnOfExpoGoPushUsage();
22
23
  if (!TopicSubscriptionModule.unsubscribeFromTopicAsync) {
23
24
  throw new UnavailabilityError('ExpoNotifications', 'unsubscribeFromTopicAsync');
24
25
  }
25
- warnOfExpoGoPushUsage();
26
26
  return TopicSubscriptionModule.unsubscribeFromTopicAsync(topic);
27
27
  }
28
28
 
@@ -1 +1 @@
1
- {"version":3,"sources":["topicSubscription.ts"],"sourcesContent":[null],"names":["UnavailabilityError","TopicSubscriptionModule","warnOfExpoGoPushUsage","subscribeToTopicAsync","topic","unsubscribeFromTopicAsync"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,OAAO;AAE3C,OAAOC,6BAA6B,4BAA4B;AAChE,SAASC,qBAAqB,QAAQ,0BAA0B;AAEhE;;;;;CAKC,GACD,OAAO,eAAeC,sBAAsBC,KAAa;IACvD,IAAI,CAACH,wBAAwBE,qBAAqB,EAAE;QAClD,MAAM,IAAIH,oBAAoB,qBAAqB;IACrD;IACAE;IAEA,OAAOD,wBAAwBE,qBAAqB,CAACC;AACvD;AAEA;;;;;CAKC,GACD,OAAO,eAAeC,0BAA0BD,KAAa;IAC3D,IAAI,CAACH,wBAAwBI,yBAAyB,EAAE;QACtD,MAAM,IAAIL,oBAAoB,qBAAqB;IACrD;IACAE;IAEA,OAAOD,wBAAwBI,yBAAyB,CAACD;AAC3D"}
1
+ {"version":3,"sources":["topicSubscription.ts"],"sourcesContent":[null],"names":["UnavailabilityError","TopicSubscriptionModule","warnOfExpoGoPushUsage","subscribeToTopicAsync","topic","unsubscribeFromTopicAsync"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,OAAO;AAE3C,OAAOC,6BAA6B,4BAA4B;AAChE,SAASC,qBAAqB,QAAQ,0BAA0B;AAEhE;;;;;CAKC,GACD,OAAO,eAAeC,sBAAsBC,KAAa;IACvDF;IACA,IAAI,CAACD,wBAAwBE,qBAAqB,EAAE;QAClD,MAAM,IAAIH,oBAAoB,qBAAqB;IACrD;IAEA,OAAOC,wBAAwBE,qBAAqB,CAACC;AACvD;AAEA;;;;;CAKC,GACD,OAAO,eAAeC,0BAA0BD,KAAa;IAC3DF;IACA,IAAI,CAACD,wBAAwBI,yBAAyB,EAAE;QACtD,MAAM,IAAIL,oBAAoB,qBAAqB;IACrD;IAEA,OAAOC,wBAAwBI,yBAAyB,CAACD;AAC3D"}
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.notifications",
6
- "version": "58.1.6",
6
+ "version": "58.1.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-58.1.6.aar",
28
- "url": "expo.modules.notifications-58.1.6.aar",
27
+ "name": "expo.modules.notifications-58.1.8.aar",
28
+ "url": "expo.modules.notifications-58.1.8.aar",
29
29
  "size": 481435,
30
30
  "sha512": "b5224719bbd3bb613586850867982514351da721d874571711d4634c446b74b77b04077e8fd32c653b130d808f13d3c6a5c494dc97a3fb97d5c6b1d251489b60",
31
31
  "sha256": "2dab24bb8e54803e7d5b8d3a68e946f3a447ae3705b490b86cdeccf57f298f14",
@@ -136,8 +136,8 @@
136
136
  ],
137
137
  "files": [
138
138
  {
139
- "name": "expo.modules.notifications-58.1.6.aar",
140
- "url": "expo.modules.notifications-58.1.6.aar",
139
+ "name": "expo.modules.notifications-58.1.8.aar",
140
+ "url": "expo.modules.notifications-58.1.8.aar",
141
141
  "size": 481435,
142
142
  "sha512": "b5224719bbd3bb613586850867982514351da721d874571711d4634c446b74b77b04077e8fd32c653b130d808f13d3c6a5c494dc97a3fb97d5c6b1d251489b60",
143
143
  "sha256": "2dab24bb8e54803e7d5b8d3a68e946f3a447ae3705b490b86cdeccf57f298f14",
@@ -156,8 +156,8 @@
156
156
  },
157
157
  "files": [
158
158
  {
159
- "name": "expo.modules.notifications-58.1.6-sources.jar",
160
- "url": "expo.modules.notifications-58.1.6-sources.jar",
159
+ "name": "expo.modules.notifications-58.1.8-sources.jar",
160
+ "url": "expo.modules.notifications-58.1.8-sources.jar",
161
161
  "size": 105042,
162
162
  "sha512": "6b587630be109055e8343c3ff3f2a25d9e4e05600a8aef9ad2ceb614e25ede3519df39f84b41c5574019e16c3bf5e2befa2beb5013cc03e223a68d89685c94ba",
163
163
  "sha256": "0f67a033cbd0dc77f4044952900ad04de04b9b68dd5562d303e4528103369481",
@@ -0,0 +1 @@
1
+ b320a007ad221653c805de66361a3fae0a8f090f33e6a9b92f8b2c5c17ea638a
@@ -0,0 +1 @@
1
+ 6b25e885ac598f67198f55d67c0634fe5715d88f24b56a5338de74f2eceb2801995aa652c82643f69149abc9b408cf6ed1d06630a4e07b011d2b8a01de47f256
@@ -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>58.1.6</version>
12
+ <version>58.1.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
+ 350f892fdda00cc2b9595581c0626bd07518d3129ed7542aec5e1e40485e69be
@@ -0,0 +1 @@
1
+ 568f1765a31cb2e416e074af7bdabe4a909e6897f9b8dcc13e2218be32209ba9cab329120e9333334e45dfd9062de59b7cbed12a0a270cf3894dbe08a0fe5a0f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "58.1.6",
3
+ "version": "58.1.8",
4
4
  "description": "Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.",
5
5
  "keywords": [
6
6
  "expo",
@@ -26,18 +26,18 @@
26
26
  "main": "build/index.js",
27
27
  "types": "build/index.d.ts",
28
28
  "dependencies": {
29
- "@expo/image-utils": "^0.12.5",
29
+ "@expo/image-utils": "^0.12.6",
30
30
  "abort-controller": "^3.0.0",
31
31
  "badgin": "^1.1.5",
32
32
  "expo-application": "~58.1.2",
33
- "expo-constants": "~58.0.13"
33
+ "expo-constants": "~58.0.15"
34
34
  },
35
35
  "devDependencies": {
36
- "@expo/internal-scripts": "58.0.4",
36
+ "@expo/internal-scripts": "58.0.6",
37
37
  "@types/jest": "^30.0.0",
38
38
  "@types/node": "^22.14.0",
39
39
  "@types/react": "~19.3.0",
40
- "expo": "58.0.17",
40
+ "expo": "58.0.23",
41
41
  "memfs": "^3.6.0"
42
42
  },
43
43
  "peerDependencies": {
@@ -1,5 +1,8 @@
1
- import { requireNativeModule } from 'expo';
1
+ import { requireOptionalNativeModule } from 'expo';
2
2
 
3
3
  import type { TopicSubscriptionModule } from './TopicSubscriptionModule.types';
4
4
 
5
- export default requireNativeModule<TopicSubscriptionModule>('ExpoTopicSubscriptionModule');
5
+ const topicSubscriptionModule: TopicSubscriptionModule =
6
+ requireOptionalNativeModule<TopicSubscriptionModule>('ExpoTopicSubscriptionModule') ?? {};
7
+
8
+ export default topicSubscriptionModule;
@@ -10,10 +10,10 @@ import { warnOfExpoGoPushUsage } from './warnOfExpoGoPushUsage';
10
10
  * @platform android
11
11
  */
12
12
  export async function subscribeToTopicAsync(topic: string): Promise<null> {
13
+ warnOfExpoGoPushUsage();
13
14
  if (!TopicSubscriptionModule.subscribeToTopicAsync) {
14
15
  throw new UnavailabilityError('ExpoNotifications', 'subscribeToTopicAsync');
15
16
  }
16
- warnOfExpoGoPushUsage();
17
17
 
18
18
  return TopicSubscriptionModule.subscribeToTopicAsync(topic);
19
19
  }
@@ -25,10 +25,10 @@ export async function subscribeToTopicAsync(topic: string): Promise<null> {
25
25
  * @platform android
26
26
  */
27
27
  export async function unsubscribeFromTopicAsync(topic: string): Promise<null> {
28
+ warnOfExpoGoPushUsage();
28
29
  if (!TopicSubscriptionModule.unsubscribeFromTopicAsync) {
29
30
  throw new UnavailabilityError('ExpoNotifications', 'unsubscribeFromTopicAsync');
30
31
  }
31
- warnOfExpoGoPushUsage();
32
32
 
33
33
  return TopicSubscriptionModule.unsubscribeFromTopicAsync(topic);
34
34
  }
@@ -1 +0,0 @@
1
- 0224aafd337dd561733823ec7dfedf6074818d6f9b63086873a93c6cd7d1d7a1
@@ -1 +0,0 @@
1
- 3eeb1c403a9fc55af58fe4045f89b65234b063c0f97a4416bbc6bdfc11301998a2af8771a964cd32886c47546bbf350544adf3e911105aa7277c05d98d780725
@@ -1 +0,0 @@
1
- 1d8da67cb66a055f161ff4e322199a7fc6e6f29794b3d69d66967c4faf8d284d
@@ -1 +0,0 @@
1
- 4ee65ce0d7d9b4f4ff739fd0e81f73c2fdd375b2c6e34da75d4c487dd7c6db9555c28b001bef62fa9ea6ffcfc950ae0c7fc0142f78b379924d7e0335608c2484