expo-notifications 0.27.4 → 0.27.6

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,12 +10,25 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.27.6 — 2024-01-26
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Throw `UnavailabilityError` when trying to use `setNotificationCategoryAsync` on web. ([#26511](https://github.com/expo/expo/pull/26511) by [@marklawlor](https://github.com/marklawlor))
18
+ - Remove `.native` hardcoded platform imports ([#26511](https://github.com/expo/expo/pull/26511) by [@marklawlor](https://github.com/marklawlor))
19
+ - On `Android`, added events to module definition to clear warnings. ([#26654](https://github.com/expo/expo/pull/26654) by [@alanjhughes](https://github.com/alanjhughes))
20
+
21
+ ## 0.27.5 — 2024-01-25
22
+
23
+ _This version does not introduce any user-facing changes._
24
+
13
25
  ## 0.27.4 — 2024-01-20
14
26
 
15
27
  ### 🐛 Bug fixes
16
28
 
17
29
  - Throw `UnavailabilityError` when trying to use `setNotificationCategoryAsync` on web. ([#26511](https://github.com/expo/expo/pull/26511) by [@marklawlor](https://github.com/marklawlor))
18
30
  - Remove `.native` hardcoded platform imports ([#26511](https://github.com/expo/expo/pull/26511) by [@marklawlor](https://github.com/marklawlor))
31
+ - On `Android`, added events to module definition to clear warnings. ([#26654](https://github.com/expo/expo/pull/26654) by [@alanjhughes](https://github.com/alanjhughes))
19
32
 
20
33
  ## 0.27.3 — 2024-01-10
21
34
 
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.27.4'
6
+ version = '0.27.6'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  if (expoModulesCorePlugin.exists()) {
@@ -94,7 +94,7 @@ android {
94
94
  namespace "expo.modules.notifications"
95
95
  defaultConfig {
96
96
  versionCode 21
97
- versionName '0.27.4'
97
+ versionName '0.27.6'
98
98
  }
99
99
 
100
100
  buildFeatures {
@@ -23,6 +23,12 @@ open class NotificationsEmitter : Module(), NotificationListener {
23
23
  override fun definition() = ModuleDefinition {
24
24
  Name("ExpoNotificationsEmitter")
25
25
 
26
+ Events(
27
+ "onDidReceiveNotification",
28
+ "onNotificationsDeleted",
29
+ "onDidReceiveNotificationResponse"
30
+ )
31
+
26
32
  OnCreate {
27
33
  eventEmitter = appContext.legacyModule<EventEmitter>()
28
34
  ?: throw ModuleNotFoundException(EventEmitter::class)
@@ -57,6 +57,11 @@ open class NotificationsHandler : Module(), NotificationListener {
57
57
  override fun definition() = ModuleDefinition {
58
58
  Name("ExpoNotificationsHandlerModule")
59
59
 
60
+ Events(
61
+ "onHandleNotification",
62
+ "onHandleNotificationTimeout"
63
+ )
64
+
60
65
  OnCreate {
61
66
  moduleRegistry = appContext.legacyModuleRegistry
62
67
 
@@ -23,6 +23,8 @@ class PushTokenModule : Module(), PushTokenListener {
23
23
  override fun definition() = ModuleDefinition {
24
24
  Name("ExpoPushTokenManager")
25
25
 
26
+ Events("onDevicePushToken")
27
+
26
28
  OnCreate {
27
29
  eventEmitter = appContext.legacyModule()
28
30
  ?: throw ModuleNotFoundException(EventEmitter::class)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.27.4",
3
+ "version": "0.27.6",
4
4
  "description": "Notifications module",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "peerDependencies": {
56
56
  "expo": "*"
57
57
  },
58
- "gitHead": "7a41c3775e0f148087690a0e91f439ef270c2a5b"
58
+ "gitHead": "82b69cba5b2e967806ca03413c3277f1d53bff8d"
59
59
  }