Skip to content

Commit

Permalink
Merge branch 'hotfix' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsetragni committed Jan 18, 2024
2 parents 5f81535 + fe7fc04 commit 15734cd
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
"languageVersion": "2.19"
}
],
"generated": "2024-01-12T00:53:30.676697Z",
"generated": "2024-01-17T11:13:42.180172Z",
"generator": "pub",
"generatorVersion": "3.2.3"
}
47 changes: 23 additions & 24 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.9.2] - 2024-17-01
### Added
- **Cancel schedule for iOS:** The feature `cancelSchedule` was added to iOS platform.
- **Example app updated:** The example app was updated to reflect the last changes.

## [0.9.1] - 2024-11-01
### Breaking Changes
- **Progress Property Now Double:** The `progress` property in `NotificationContent` has been changed from `int` to `double`. This modification enhances the precision of progress values in notifications.
Expand Down
5 changes: 5 additions & 0 deletions example/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,11 @@ class _HomePageState extends State<HomePage> {
onPressed: () =>
NotificationUtils.dismissNotificationsByGroupKey(
'grouped')),
SimpleButton('Cancel schedule by id',
backgroundColor: Colors.red,
labelColor: Colors.white,
onPressed: () =>
NotificationUtils.cancelSchedule(1)),
SimpleButton('Cancel all schedules by channel key',
backgroundColor: Colors.red,
labelColor: Colors.white,
Expand Down
4 changes: 4 additions & 0 deletions ios/Classes/lib/SwiftAwesomeNotificationsPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ public class SwiftAwesomeNotificationsPlugin:
case Definitions.CHANNEL_METHOD_DISMISS_NOTIFICATIONS_BY_CHANNEL_KEY:
try channelMethodDismissNotificationsByChannelKey(call: call, result: result)
return

case Definitions.CHANNEL_METHOD_CANCEL_SCHEDULE:
try channelMethodCancelSchedule(call: call, result: result)
return

case Definitions.CHANNEL_METHOD_CANCEL_SCHEDULES_BY_CHANNEL_KEY:
try channelMethodCancelSchedulesByChannelKey(call: call, result: result)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: awesome_notifications
description: A complete solution to create Local and Push Notifications, customizing buttons, images, sounds, emoticons and applying many different layouts for Flutter apps.
version: 0.9.1
version: 0.9.2
repository: https://github.com/rafaelsetragni/awesome_notifications

environment:
Expand Down

0 comments on commit 15734cd

Please sign in to comment.