From 878767138cb3bfe759cc5295e14404026660f428 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 16 Mar 2026 14:52:29 +0100 Subject: [PATCH] feat(04-01): Android config, NotificationService, DAO queries, timezone init, ARB strings - Add flutter_local_notifications ^21.0.0, timezone ^0.11.0, flutter_timezone ^1.0.8 to pubspec.yaml - Set compileSdk=35, enable core library desugaring in build.gradle.kts - Add POST_NOTIFICATIONS, RECEIVE_BOOT_COMPLETED permissions and boot receivers to AndroidManifest.xml - Create NotificationService singleton with initialize, requestPermission, scheduleDailyNotification, cancelAll - Add getOverdueAndTodayTaskCount and getOverdueTaskCount one-shot queries to DailyPlanDao - Initialize timezone and NotificationService in main.dart before runApp - Add 7 notification-related ARB strings to app_de.arb - All 72 existing tests pass --- android/app/build.gradle.kts | 7 +- android/app/src/main/AndroidManifest.xml | 16 ++++ .../notifications/notification_service.dart | 80 +++++++++++++++++++ lib/features/home/data/daily_plan_dao.dart | 22 +++++ lib/l10n/app_de.arb | 20 ++++- lib/main.dart | 10 ++- pubspec.yaml | 3 + 7 files changed, 155 insertions(+), 3 deletions(-) create mode 100644 lib/core/notifications/notification_service.dart diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index a556f45..839716f 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -7,10 +7,11 @@ plugins { android { namespace = "com.jlmak.household_keeper" - compileSdk = flutter.compileSdkVersion + compileSdk = 35 ndkVersion = flutter.ndkVersion compileOptions { + isCoreLibraryDesugaringEnabled = true sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } @@ -42,3 +43,7 @@ android { flutter { source = "../.." } + +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") +} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 25ca340..dfd2c60 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,7 @@ + + + + + + + + + + + +