expo-notifications 0.28.4 → 0.28.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,6 +10,18 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.28.6 — 2024-06-03
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] Remove unneeded logging. ([#29370](https://github.com/expo/expo/pull/29370) by [@douglowder](https://github.com/douglowder))
18
+
19
+ ## 0.28.5 — 2024-05-31
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - [Android] Fix FCMv1 icons and NPE. ([#29204](https://github.com/expo/expo/pull/29204) by [@douglowder](https://github.com/douglowder))
24
+
13
25
  ## 0.28.4 — 2024-05-29
14
26
 
15
27
  ### 🐛 Bug fixes
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '0.28.4'
4
+ version = '0.28.6'
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.4'
17
+ versionName '0.28.6'
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;
@@ -36,11 +38,9 @@ public class ExpoNotificationLifecycleListener implements ReactActivityLifecycle
36
38
  @Override
37
39
  public void onCreate(Activity activity, Bundle savedInstanceState) {
38
40
  Intent intent = activity.getIntent();
39
- String actionIdentifier = intent.getAction();
40
41
  if (intent != null) {
41
42
  Bundle extras = intent.getExtras();
42
43
  if (extras != null) {
43
- logExtra("onCreate", extras);
44
44
  mNotificationManager.onNotificationResponseFromExtras(extras);
45
45
  }
46
46
  }
@@ -58,19 +58,9 @@ public class ExpoNotificationLifecycleListener implements ReactActivityLifecycle
58
58
  @Override
59
59
  public boolean onNewIntent(Intent intent) {
60
60
  Bundle extras = intent.getExtras();
61
- String actionIdentifier = intent.getAction();
62
61
  if (extras != null) {
63
- logExtra("onNewIntent", extras);
64
62
  mNotificationManager.onNotificationResponseFromExtras(extras);
65
63
  }
66
64
  return ReactActivityLifecycleListener.super.onNewIntent(intent);
67
65
  }
68
-
69
- private void logExtra(String method, Bundle extra) {
70
- Log.d("ExpoNotificationLifecycleListener", method + " : keys count = " + extra.keySet().size());
71
-
72
- for (String key : extra.keySet()) {
73
- Log.d("ExpoNotificationLifecycleListener", method + " : key = " + key + " = " + extra.get(key).toString());
74
- }
75
- }
76
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.28.4",
3
+ "version": "0.28.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": "979e9f1fc3cfa9c827700dcf99992e671cfdf63e"
58
+ "gitHead": "c5f9475105bf30767df9c2937ac7d01ddb344527"
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 = "expo.modules.notifications.default_notification_icon";
12
- export declare const META_DATA_NOTIFICATION_ICON_COLOR = "expo.modules.notifications.default_notification_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 = 'expo.modules.notifications.default_notification_icon';
21
- exports.META_DATA_NOTIFICATION_ICON_COLOR = 'expo.modules.notifications.default_notification_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 = 'expo.modules.notifications.default_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
- 'expo.modules.notifications.default_notification_color';
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';