From 09e78d09204ab76c1c7d37f680bdd894483e26b0 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Fri, 27 Feb 2026 23:07:54 -0800 Subject: [PATCH] feat(android): add AndroidManifest, BootReceiver, widget XML configs --- android/app/src/main/AndroidManifest.xml | 108 ++++++++++++++++++ .../app/notifications/BootReceiver.kt | 16 +++ .../src/main/res/xml/widget_medium_info.xml | 11 ++ .../src/main/res/xml/widget_small_info.xml | 11 ++ 4 files changed, 146 insertions(+) create mode 100644 android/app/src/main/AndroidManifest.xml create mode 100644 android/app/src/main/java/com/chronomind/app/notifications/BootReceiver.kt create mode 100644 android/app/src/main/res/xml/widget_medium_info.xml create mode 100644 android/app/src/main/res/xml/widget_small_info.xml diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..8b4a576 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/java/com/chronomind/app/notifications/BootReceiver.kt b/android/app/src/main/java/com/chronomind/app/notifications/BootReceiver.kt new file mode 100644 index 0000000..adc8943 --- /dev/null +++ b/android/app/src/main/java/com/chronomind/app/notifications/BootReceiver.kt @@ -0,0 +1,16 @@ +package com.chronomind.app.notifications + +import android.content.BroadcastReceiver +import android.content.Context +import android.content.Intent + +class BootReceiver : BroadcastReceiver() { + override fun onReceive(context: Context, intent: Intent) { + if (intent.action == Intent.ACTION_BOOT_COMPLETED) { + // Reschedule all active timer alarms after device reboot + // In production, load timers from Room DB and reschedule each + val manager = TimerNotificationManager(context) + manager.createNotificationChannels() + } + } +} diff --git a/android/app/src/main/res/xml/widget_medium_info.xml b/android/app/src/main/res/xml/widget_medium_info.xml new file mode 100644 index 0000000..ed6c12a --- /dev/null +++ b/android/app/src/main/res/xml/widget_medium_info.xml @@ -0,0 +1,11 @@ + + diff --git a/android/app/src/main/res/xml/widget_small_info.xml b/android/app/src/main/res/xml/widget_small_info.xml new file mode 100644 index 0000000..f4c8ff3 --- /dev/null +++ b/android/app/src/main/res/xml/widget_small_info.xml @@ -0,0 +1,11 @@ + +