Skip to content

Commit 816a1dd

Browse files
authored
[flutter_local_notifications_platform_interface] prepare for 9.1.0 platform interface release (MaikuB#2641)
* prepare for 9.1.0 platform interface release * Google Java Format --------- Co-authored-by: github-actions <>
1 parent b8468f5 commit 816a1dd

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/FlutterLocalNotificationsPlugin.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,12 @@ public class FlutterLocalNotificationsPlugin
157157
private static final String SHOW_METHOD = "show";
158158
private static final String CANCEL_METHOD = "cancel";
159159
private static final String CANCEL_ALL_METHOD = "cancelAll";
160-
private static final String CANCEL_ALL_PENDING_NOTIFICATIONS_METHOD = "cancelAllPendingNotifications";
160+
private static final String CANCEL_ALL_PENDING_NOTIFICATIONS_METHOD =
161+
"cancelAllPendingNotifications";
161162
private static final String ZONED_SCHEDULE_METHOD = "zonedSchedule";
162163
private static final String PERIODICALLY_SHOW_METHOD = "periodicallyShow";
163-
private static final String PERIODICALLY_SHOW_WITH_DURATION_METHOD = "periodicallyShowWithDuration";
164+
private static final String PERIODICALLY_SHOW_WITH_DURATION_METHOD =
165+
"periodicallyShowWithDuration";
164166
private static final String GET_NOTIFICATION_APP_LAUNCH_DETAILS_METHOD =
165167
"getNotificationAppLaunchDetails";
166168
private static final String REQUEST_NOTIFICATIONS_PERMISSION_METHOD =
@@ -1848,8 +1850,8 @@ private void cancelAllPendingNotifications(Result result) {
18481850
loadScheduledNotifications(applicationContext);
18491851

18501852
if (scheduledNotifications == null || scheduledNotifications.isEmpty()) {
1851-
result.success(null);
1852-
return;
1853+
result.success(null);
1854+
return;
18531855
}
18541856

18551857
AlarmManager alarmManager = getAlarmManager(applicationContext);
@@ -1865,7 +1867,6 @@ private void cancelAllPendingNotifications(Result result) {
18651867
result.success(null);
18661868
}
18671869

1868-
18691870
public void requestNotificationsPermission(@NonNull PermissionRequestListener callback) {
18701871
if (permissionRequestProgress != PermissionRequestProgress.None) {
18711872
callback.fail(PERMISSION_REQUEST_IN_PROGRESS_ERROR_MESSAGE);

flutter_local_notifications_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [9.1.0]
2+
3+
* Added `cancelAllPendingNotifications()` method for cancelling all pending notifications that have been scheduled. Thanks to the PR from [Kwon Tae Hyung](https://github.com/TaeBbong)
4+
15
## [9.0.0]
26

37
* **Breaking change** bumped minimum Flutter SDK requirement to 3.22.0 and Dart SDK requirement to 3.4.0

flutter_local_notifications_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_local_notifications_platform_interface
22
description: A common platform interface for the flutter_local_notifications plugin.
3-
version: 9.0.0
3+
version: 9.1.0
44
homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications_platform_interface
55
issue_tracker: https://github.com/MaikuB/flutter_local_notifications/issues
66

0 commit comments

Comments
 (0)