diff --git a/flutter_local_notifications/CHANGELOG.md b/flutter_local_notifications/CHANGELOG.md index b04d1b407..510ea4206 100644 --- a/flutter_local_notifications/CHANGELOG.md +++ b/flutter_local_notifications/CHANGELOG.md @@ -1,3 +1,8 @@ +# [17.1.0] + +* [Android] Upgrade `androidx.core:core` to 1.5.0 for supporting `setSilent()` in notification builder. +* [Android] Fixed: NullPointerException when trying to call `intValue()` while parsing `notificationDetails`. + # [17.0.3] * [Android] Added `shownNotificationsInfo` param to `NotificationDetails`. If you pass this param diff --git a/flutter_local_notifications/android/build.gradle b/flutter_local_notifications/android/build.gradle index 6d872a171..f1ce62a34 100644 --- a/flutter_local_notifications/android/build.gradle +++ b/flutter_local_notifications/android/build.gradle @@ -43,7 +43,7 @@ android { dependencies { coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2' - implementation "androidx.core:core:1.3.0" + implementation "androidx.core:core:1.5.0" implementation "androidx.media:media:1.1.0" implementation "com.google.code.gson:gson:2.8.9" diff --git a/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/models/NotificationDetails.java b/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/models/NotificationDetails.java index 825941786..c87188bf3 100644 --- a/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/models/NotificationDetails.java +++ b/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/models/NotificationDetails.java @@ -265,6 +265,7 @@ private static void readPlatformSpecifics( readStyleInformation(notificationDetails, platformChannelSpecifics); notificationDetails.icon = (String) platformChannelSpecifics.get(ICON); notificationDetails.priority = (Integer) platformChannelSpecifics.get(PRIORITY); + notificationDetails.importance = (Integer) platformChannelSpecifics.get(IMPORTANCE); readSoundInformation(notificationDetails, platformChannelSpecifics); notificationDetails.enableVibration = (Boolean) platformChannelSpecifics.get(ENABLE_VIBRATION); diff --git a/flutter_local_notifications/pubspec.yaml b/flutter_local_notifications/pubspec.yaml index 80088104c..d1fa2aa63 100644 --- a/flutter_local_notifications/pubspec.yaml +++ b/flutter_local_notifications/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_local_notifications_plus description: A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform. -version: 17.0.3 +version: 17.1.0 homepage: https://github.com/Innim/flutter_local_notifications repository: https://github.com/Innim/flutter_local_notifications issue_tracker: https://github.com/Innim/flutter_local_notifications/issues