expo-notifications 0.28.4 → 0.28.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 +6 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/notifications/service/delegates/ExpoNotificationLifecycleListener.java +6 -1
- package/package.json +2 -2
- package/plugin/build/withNotificationsAndroid.d.ts +2 -2
- package/plugin/build/withNotificationsAndroid.js +2 -2
- package/plugin/src/withNotificationsAndroid.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.28.5 — 2024-05-31
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [Android] Fix FCMv1 icons and NPE. ([#29204](https://github.com/expo/expo/pull/29204) by [@douglowder](https://github.com/douglowder))
|
|
18
|
+
|
|
13
19
|
## 0.28.4 — 2024-05-29
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '0.28.
|
|
4
|
+
version = '0.28.5'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -14,7 +14,7 @@ android {
|
|
|
14
14
|
namespace "expo.modules.notifications"
|
|
15
15
|
defaultConfig {
|
|
16
16
|
versionCode 21
|
|
17
|
-
versionName '0.28.
|
|
17
|
+
versionName '0.28.5'
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
buildFeatures {
|
|
@@ -11,6 +11,8 @@ import android.util.Log;
|
|
|
11
11
|
|
|
12
12
|
import androidx.core.app.NotificationCompat;
|
|
13
13
|
|
|
14
|
+
import java.util.Objects;
|
|
15
|
+
|
|
14
16
|
import expo.modules.core.interfaces.ReactActivityLifecycleListener;
|
|
15
17
|
import expo.modules.notifications.notifications.NotificationManager;
|
|
16
18
|
import expo.modules.notifications.notifications.model.Notification;
|
|
@@ -70,7 +72,10 @@ public class ExpoNotificationLifecycleListener implements ReactActivityLifecycle
|
|
|
70
72
|
Log.d("ExpoNotificationLifecycleListener", method + " : keys count = " + extra.keySet().size());
|
|
71
73
|
|
|
72
74
|
for (String key : extra.keySet()) {
|
|
73
|
-
Log.d(
|
|
75
|
+
Log.d(
|
|
76
|
+
"ExpoNotificationLifecycleListener",
|
|
77
|
+
method + " : key = " + key + " = " + Objects.requireNonNull(extra.get(key)).toString()
|
|
78
|
+
);
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-notifications",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.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": "546dd2f5a30aec8844180e627cf8e2e7718aaa4f"
|
|
59
59
|
}
|
|
@@ -8,8 +8,8 @@ type dpiMap = Record<DPIString, {
|
|
|
8
8
|
}>;
|
|
9
9
|
export declare const ANDROID_RES_PATH = "android/app/src/main/res/";
|
|
10
10
|
export declare const dpiValues: dpiMap;
|
|
11
|
-
export declare const META_DATA_NOTIFICATION_ICON = "
|
|
12
|
-
export declare const META_DATA_NOTIFICATION_ICON_COLOR = "
|
|
11
|
+
export declare const META_DATA_NOTIFICATION_ICON = "com.google.firebase.messaging.default_notification_icon";
|
|
12
|
+
export declare const META_DATA_NOTIFICATION_ICON_COLOR = "com.google.firebase.messaging.default_notification_color";
|
|
13
13
|
export declare const NOTIFICATION_ICON = "notification_icon";
|
|
14
14
|
export declare const NOTIFICATION_ICON_RESOURCE: string;
|
|
15
15
|
export declare const NOTIFICATION_ICON_COLOR = "notification_icon_color";
|
|
@@ -17,8 +17,8 @@ exports.dpiValues = {
|
|
|
17
17
|
const { addMetaDataItemToMainApplication, getMainApplicationOrThrow, removeMetaDataItemFromMainApplication, } = config_plugins_1.AndroidConfig.Manifest;
|
|
18
18
|
const BASELINE_PIXEL_SIZE = 24;
|
|
19
19
|
const ERROR_MSG_PREFIX = 'An error occurred while configuring Android notifications. ';
|
|
20
|
-
exports.META_DATA_NOTIFICATION_ICON = '
|
|
21
|
-
exports.META_DATA_NOTIFICATION_ICON_COLOR = '
|
|
20
|
+
exports.META_DATA_NOTIFICATION_ICON = 'com.google.firebase.messaging.default_notification_icon';
|
|
21
|
+
exports.META_DATA_NOTIFICATION_ICON_COLOR = 'com.google.firebase.messaging.default_notification_color';
|
|
22
22
|
exports.NOTIFICATION_ICON = 'notification_icon';
|
|
23
23
|
exports.NOTIFICATION_ICON_RESOURCE = `@drawable/${exports.NOTIFICATION_ICON}`;
|
|
24
24
|
exports.NOTIFICATION_ICON_COLOR = 'notification_icon_color';
|
|
@@ -32,9 +32,10 @@ const {
|
|
|
32
32
|
} = AndroidConfig.Manifest;
|
|
33
33
|
const BASELINE_PIXEL_SIZE = 24;
|
|
34
34
|
const ERROR_MSG_PREFIX = 'An error occurred while configuring Android notifications. ';
|
|
35
|
-
export const META_DATA_NOTIFICATION_ICON =
|
|
35
|
+
export const META_DATA_NOTIFICATION_ICON =
|
|
36
|
+
'com.google.firebase.messaging.default_notification_icon';
|
|
36
37
|
export const META_DATA_NOTIFICATION_ICON_COLOR =
|
|
37
|
-
'
|
|
38
|
+
'com.google.firebase.messaging.default_notification_color';
|
|
38
39
|
export const NOTIFICATION_ICON = 'notification_icon';
|
|
39
40
|
export const NOTIFICATION_ICON_RESOURCE = `@drawable/${NOTIFICATION_ICON}`;
|
|
40
41
|
export const NOTIFICATION_ICON_COLOR = 'notification_icon_color';
|