Skip to content

Commit

Permalink
Fix fromJson method & increment to 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelataillade committed Nov 1, 2023
1 parent 8c08157 commit a8ef6aa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.1.1
* Fix AlarmSettings.fromJson method with missing [androidFullScreenIntent].

## 2.1.0
**Android installation steps were updated.**
* [Android] Add parameter [androidFullScreenIntent] that turns screen on when alarm notification is triggered.
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _ExampleAlarmHomeScreenState extends State<ExampleAlarmHomeScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('alarm 2.1.0')),
appBar: AppBar(title: const Text('alarm 2.1.1')),
body: SafeArea(
child: alarms.isNotEmpty
? ListView.separated(
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.1.0"
version: "2.1.1"
android_alarm_manager_plus:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion lib/model/alarm_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class AlarmSettings {
notificationBody: json['notificationBody'] as String?,
enableNotificationOnKill: json['enableNotificationOnKill'] as bool,
stopOnNotificationOpen: json['stopOnNotificationOpen'] as bool,
androidFullScreenIntent: json['androidFullScreenIntent'] as bool,
androidFullScreenIntent:
json['androidFullScreenIntent'] as bool? ?? false,
);

/// Creates a copy of `AlarmSettings` but with the given fields replaced with
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: alarm
description: A simple Flutter alarm manager plugin for both iOS and Android.
version: 2.1.0
version: 2.1.1
homepage: https://github.com/gdelataillade/alarm

environment:
Expand Down

0 comments on commit a8ef6aa

Please sign in to comment.