expo-notifications 0.27.4 → 0.27.5
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 +5 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/notifications/notifications/emitting/NotificationsEmitter.kt +6 -0
- package/android/src/main/java/expo/modules/notifications/notifications/handling/NotificationsHandler.kt +5 -0
- package/android/src/main/java/expo/modules/notifications/tokens/PushTokenModule.kt +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.27.5 — 2024-01-25
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
13
17
|
## 0.27.4 — 2024-01-20
|
|
14
18
|
|
|
15
19
|
### 🐛 Bug fixes
|
|
16
20
|
|
|
17
21
|
- Throw `UnavailabilityError` when trying to use `setNotificationCategoryAsync` on web. ([#26511](https://github.com/expo/expo/pull/26511) by [@marklawlor](https://github.com/marklawlor))
|
|
18
22
|
- Remove `.native` hardcoded platform imports ([#26511](https://github.com/expo/expo/pull/26511) by [@marklawlor](https://github.com/marklawlor))
|
|
23
|
+
- 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
24
|
|
|
20
25
|
## 0.27.3 — 2024-01-10
|
|
21
26
|
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
6
|
+
version = '0.27.5'
|
|
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.
|
|
97
|
+
versionName '0.27.5'
|
|
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.
|
|
3
|
+
"version": "0.27.5",
|
|
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": "
|
|
58
|
+
"gitHead": "ba36acbbe93bac3114612bd578619de9663c2a16"
|
|
59
59
|
}
|