From 45909119fdf2413d25165eda257af35c068355aa Mon Sep 17 00:00:00 2001 From: Gautier de Lataillade Date: Mon, 29 Apr 2024 13:11:53 +0200 Subject: [PATCH] Increment plugin version to 3.1.3 --- CHANGELOG.md | 4 ++++ example/lib/screens/home.dart | 2 +- example/pubspec.lock | 2 +- lib/model/alarm_settings.dart | 14 +++++++------- pubspec.yaml | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c7dfeec..fc58d406 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.1.3 +**🔧 Android installation steps were updated [here](https://github.com/gdelataillade/alarm/blob/main/help/INSTALL-ANDROID.md).** +* [Android] Remove notification large icon. + ## 3.1.2 * [Android] Fix alarm stop on app open. diff --git a/example/lib/screens/home.dart b/example/lib/screens/home.dart index 56cb231a..7002c362 100644 --- a/example/lib/screens/home.dart +++ b/example/lib/screens/home.dart @@ -111,7 +111,7 @@ class _ExampleAlarmHomeScreenState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: const Text('alarm 3.1.2')), + appBar: AppBar(title: const Text('alarm 3.1.3')), body: SafeArea( child: alarms.isNotEmpty ? ListView.separated( diff --git a/example/pubspec.lock b/example/pubspec.lock index 9a7051fb..0e07a214 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: path: ".." relative: true source: path - version: "3.1.2" + version: "3.1.3" async: dependency: transitive description: diff --git a/lib/model/alarm_settings.dart b/lib/model/alarm_settings.dart index 6f4ea0e6..1240aa35 100644 --- a/lib/model/alarm_settings.dart +++ b/lib/model/alarm_settings.dart @@ -5,10 +5,6 @@ import 'package:flutter/widgets.dart'; @immutable class AlarmSettings { /// Model that contains all the settings to customize and set an alarm. - /// - /// - /// Note that if you want to show a notification when alarm is triggered, both - /// [notificationTitle] and [notificationBody] must not be null nor empty. const AlarmSettings({ required this.id, required this.dateTime, @@ -100,10 +96,14 @@ class AlarmSettings { /// Body of the notification to be shown when alarm is triggered. final String notificationBody; - /// Whether to show a notification when application is killed to warn - /// the user that the alarms won't ring anymore. Enabled by default. + /// Whether to show a notification when application is killed by user. + /// + /// - Android: the alarm should still trigger even if the app is killed, + /// if configured correctly and with the right permissions. + /// - iOS: the alarm will not trigger if the app is killed. /// - /// Not necessary for Android. Recommanded for iOS. + /// Recommended: set to `Platform.isIOS` to enable it only + /// on iOS. Defaults to `true`. final bool enableNotificationOnKill; /// Whether to turn screen on and display full screen notification diff --git a/pubspec.yaml b/pubspec.yaml index c86a8703..782cce14 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: alarm description: A simple Flutter alarm manager plugin for both iOS and Android. -version: 3.1.2 +version: 3.1.3 homepage: https://github.com/gdelataillade/alarm environment: