expo-notifications 0.26.0 → 0.27.0
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,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.27.0 — 2023-12-12
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- On `Android`, make `tokenManager` nullable to prevent crash if we can't find it. ([#25860](https://github.com/expo/expo/pull/25860) by [@alanjhughes](https://github.com/alanjhughes))
|
|
18
|
+
|
|
13
19
|
## 0.26.0 — 2023-11-14
|
|
14
20
|
|
|
15
21
|
### 🛠 Breaking changes
|
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.
|
|
6
|
+
version = '0.27.0'
|
|
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.
|
|
97
|
+
versionName '0.27.0'
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
buildFeatures {
|
|
@@ -16,7 +16,8 @@ private const val REGISTRATION_FAIL_CODE = "E_REGISTRATION_FAILED"
|
|
|
16
16
|
private const val UNREGISTER_FOR_NOTIFICATIONS_FAIL_CODE = "E_UNREGISTER_FOR_NOTIFICATIONS_FAILED"
|
|
17
17
|
|
|
18
18
|
class PushTokenModule : Module(), PushTokenListener {
|
|
19
|
-
private
|
|
19
|
+
private val tokenManager: PushTokenManager? get() = appContext.legacyModuleRegistry
|
|
20
|
+
.getSingletonModule("PushTokenManager", PushTokenManager::class.java)
|
|
20
21
|
private var eventEmitter: EventEmitter? = null
|
|
21
22
|
|
|
22
23
|
override fun definition() = ModuleDefinition {
|
|
@@ -28,14 +29,11 @@ class PushTokenModule : Module(), PushTokenListener {
|
|
|
28
29
|
|
|
29
30
|
// Register the module as a listener in PushTokenManager singleton module.
|
|
30
31
|
// Deregistration happens in onDestroy callback.
|
|
31
|
-
tokenManager
|
|
32
|
-
appContext.legacyModuleRegistry.getSingletonModule("PushTokenManager", PushTokenManager::class.java)
|
|
33
|
-
)
|
|
34
|
-
tokenManager.addListener(this@PushTokenModule)
|
|
32
|
+
tokenManager?.addListener(this@PushTokenModule)
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
OnDestroy {
|
|
38
|
-
tokenManager
|
|
36
|
+
tokenManager?.removeListener(this@PushTokenModule)
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-notifications",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Notifications module",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"preset": "expo-module-scripts/ios"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@expo/image-utils": "^0.
|
|
40
|
+
"@expo/image-utils": "^0.4.0",
|
|
41
41
|
"@ide/backoff": "^1.0.0",
|
|
42
42
|
"abort-controller": "^3.0.0",
|
|
43
43
|
"assert": "^2.0.0",
|
|
44
44
|
"badgin": "^1.1.5",
|
|
45
|
-
"expo-application": "~5.
|
|
46
|
-
"expo-constants": "~15.
|
|
45
|
+
"expo-application": "~5.8.0",
|
|
46
|
+
"expo-constants": "~15.4.0",
|
|
47
47
|
"fs-extra": "^9.1.0",
|
|
48
48
|
"uuid": "^3.4.0"
|
|
49
49
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"expo": "*"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "6aca7ce098ddc667776a3d7cf612adbb985e264a"
|
|
61
61
|
}
|