From bb1118d0715143814b7d129d7bf6d64520106d88 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 28 Sep 2026 04:56:19 -0700 Subject: [PATCH 01/26] Add yml file for F-Droid repo. --- com.hyperling.sunset_alarm.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 com.hyperling.sunset_alarm.yml diff --git a/com.hyperling.sunset_alarm.yml b/com.hyperling.sunset_alarm.yml new file mode 100644 index 0000000..1ba75a4 --- /dev/null +++ b/com.hyperling.sunset_alarm.yml @@ -0,0 +1,16 @@ +AuthorName: 'Chad Michael "Hyperling" Greenwood' +AuthorEmail: 'me@hyperling.com' +AuthorWebSite: 'https://hyperling.com/about/' +Donate: 'https://hyperling.com/donate/' +Liberapay: 'HyperVegan' +Bitcoin: 'bc1qsfe8dkvry3d34kztz449gkq67wq8fu2nkgfkh0' +Litecoin: 'ltc1qavmpu5d6ljntxsd6jj548m4yys83zwscl0dzkx' +IssueTracker: 'https://hyperling.com/contact/' +Categories: +- fdroid +- hyperling +- utilities +Name: Sunset Timer +Summary: 'Play a notification at your chosen time before sunset.' +SourceCode: 'https://git.hyperling.com/me/flutter-sunset-alarm/' +WebSite: 'https://hyperling.com/apps/#sunset' -- 2.54.0 From 64a070fb4ebaa45e6b243cf582c22a1608e6914b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 28 Sep 2026 04:56:47 -0700 Subject: [PATCH 02/26] Update version. --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 6769d97..6178415 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: sunset_alarm description: "Set an alarm to go off a specified time before sunset." publish_to: 'none' -version: 0.1.2 +version: 0.2.0 environment: sdk: ^3.7.2 -- 2.54.0 From c32373173b1437b7ccb764b01122baf43b2c7e19 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 28 Sep 2026 04:59:46 -0700 Subject: [PATCH 03/26] main, re-enable alarm code. --- lib/main.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 2ba1b5c..2831f3b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -8,14 +8,14 @@ import 'package:flutter_local_notifications/flutter_local_notifications.dart'; import 'package:timezone/data/latest_all.dart' as tz; import 'package:timezone/timezone.dart' as tz; import 'package:http/http.dart' as http; -//import 'package:alarm/alarm.dart'; +import 'package:alarm/alarm.dart'; import 'dart:convert'; void main() async { WidgetsFlutterBinding.ensureInitialized(); tz.initializeTimeZones(); - //await Alarm.init(); + await Alarm.init(); runApp(const SunsetAlarmApp()); } @@ -232,7 +232,7 @@ class _HomeScreenState extends State { 'Alarm set for ${alarmTime.hour.toString().padLeft(2, '0')}:${alarmTime.minute.toString().padLeft(2, '0')} (app must stay open)', ); } else if (Platform.isAndroid) { - /*** Notifcation Method - Works ***/ + /*** Notifcation Method - Works *** / // Android: use zonedSchedule (works in background) final tzAlarm = tz.TZDateTime.from(alarmTime, tz.local); const androidDetails = AndroidNotificationDetails( @@ -258,7 +258,7 @@ class _HomeScreenState extends State { debugPrint('DEBUG: ${_notifications.toString()}'); // End Notification Method ***/ - /*** Alarm Method - WIP *** / + /*** Alarm Method - WIP ***/ // Schedule: final settings = AlarmSettings( id: 42, -- 2.54.0 From 14372df6280c4c67a3dfd0c8e2a6e1d4ad50019b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 28 Sep 2026 05:00:02 -0700 Subject: [PATCH 04/26] android, re-enable manifest alarm code. --- android/app/src/main/AndroidManifest.xml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 667aefb..6de55d1 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -3,13 +3,14 @@ xmlns:tools="http://schemas.android.com/tools" > + - @@ -25,7 +26,6 @@ - --> + @@ -74,16 +75,14 @@ - - - - - --> +