calendar: flatten widget/glance into widget; weather: same
- Commit
7767e3161ae45d19beaf582c49b1f554a140cf93- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-19 03:43 UTC (17 days ago)
- Parents
c0bdda8
Moves the calendar and weather Glance widget sources and the calendar glance test out of widget/glance (weather: widget/glance) into the flat singular widget package, updating package declarations, imports, manifest receiver entries, and the module AGENTS.md key-file references. Glance is an implementation detail, not a package boundary (docs/package-structure.md §3.2). Verified: :calendar:lintDev :weather:lintDev BUILD SUCCESSFUL under the all-fatal lint configuration.
Diff
calendar/AGENTS.md
diff --git a/calendar/AGENTS.md b/calendar/AGENTS.mdindex 827881688d..c3c371d657 100644--- a/calendar/AGENTS.md+++ b/calendar/AGENTS.md@@ -77,11 +77,11 @@ _Install: ./install calendar (dev by default)._ - com/vayunmathur/calendar/ui/dialogs/SettingsDeleteCalendarDialog.kt - com/vayunmathur/calendar/ui/dialogs/SettingsRenameCalendarDialog.kt - com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.kt-### glance/ + intents/ — widgets and assistant IPC-- com/vayunmathur/calendar/glance/CalendarGlanceWidget.kt-- com/vayunmathur/calendar/glance/CalendarGlanceWidgetReceiver.kt-- com/vayunmathur/calendar/glance/CalendarMonthGlanceWidget.kt-- com/vayunmathur/calendar/glance/CalendarMonthGlanceWidgetReceiver.kt+### widget/ + intents/ — widgets and assistant IPC+- com/vayunmathur/calendar/widget/CalendarGlanceWidget.kt+- com/vayunmathur/calendar/widget/CalendarGlanceWidgetReceiver.kt+- com/vayunmathur/calendar/widget/CalendarMonthGlanceWidget.kt+- com/vayunmathur/calendar/widget/CalendarMonthGlanceWidgetReceiver.kt - com/vayunmathur/calendar/intents/GetIntent.kt - com/vayunmathur/calendar/intents/InsertIntent.kt
calendar/src/main/AndroidManifest.xml
diff --git a/calendar/src/main/AndroidManifest.xml b/calendar/src/main/AndroidManifest.xmlindex c4a0fdc281..fe98309862 100644--- a/calendar/src/main/AndroidManifest.xml+++ b/calendar/src/main/AndroidManifest.xml@@ -101,7 +101,7 @@ </intent-filter> </activity> <receiver- android:name=".widget.glance.CalendarGlanceWidgetReceiver"+ android:name=".widget.CalendarGlanceWidgetReceiver" android:exported="true"> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />@@ -120,7 +120,7 @@ android:resource="@xml/calendar_glance_widget_info" /> </receiver> <receiver- android:name=".widget.glance.CalendarMonthGlanceWidgetReceiver"+ android:name=".widget.CalendarMonthGlanceWidgetReceiver" android:exported="true"> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt b/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.ktindex 53eb4c9b5a..7739ab74c3 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/MainActivity.kt@@ -15,7 +15,7 @@ import com.vayunmathur.calendar.platform.editEventFromIntent import com.vayunmathur.calendar.platform.isTimeEpochIntent import com.vayunmathur.calendar.ui.CalendarAppContent import com.vayunmathur.calendar.ui.parseICSFile-import com.vayunmathur.calendar.widget.glance.CalendarGlanceWidgetReceiver+import com.vayunmathur.calendar.widget.CalendarGlanceWidgetReceiver import com.vayunmathur.library.log.Log import com.vayunmathur.library.ui.DynamicTheme import com.vayunmathur.library.ui.MaActivity
calendar/src/main/java/com/vayunmathur/calendar/intents/InsertIntent.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/intents/InsertIntent.kt b/calendar/src/main/java/com/vayunmathur/calendar/intents/InsertIntent.ktindex 9a2fb123ea..2ddd8fb947 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/intents/InsertIntent.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/intents/InsertIntent.kt@@ -4,8 +4,8 @@ import android.content.ContentValues import android.provider.CalendarContract import androidx.glance.appwidget.updateAll import com.vayunmathur.calendar.data.Calendar-import com.vayunmathur.calendar.widget.glance.CalendarGlanceWidget-import com.vayunmathur.calendar.widget.glance.CalendarMonthGlanceWidget+import com.vayunmathur.calendar.widget.CalendarGlanceWidget+import com.vayunmathur.calendar.widget.CalendarMonthGlanceWidget import com.vayunmathur.library.intents.calendar.EventData import com.vayunmathur.library.util.AssistantIntent import kotlinx.datetime.TimeZone
calendar/src/main/java/com/vayunmathur/calendar/platform/BootReceiver.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/platform/BootReceiver.kt b/calendar/src/main/java/com/vayunmathur/calendar/platform/BootReceiver.ktindex dd1ddecc1d..d014ca027f 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/platform/BootReceiver.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/platform/BootReceiver.kt@@ -6,8 +6,8 @@ import android.content.Intent import android.os.UserManager import com.vayunmathur.library.log.Log import androidx.glance.appwidget.updateAll-import com.vayunmathur.calendar.widget.glance.CalendarGlanceWidget-import com.vayunmathur.calendar.widget.glance.CalendarMonthGlanceWidget+import com.vayunmathur.calendar.widget.CalendarGlanceWidget+import com.vayunmathur.calendar.widget.CalendarMonthGlanceWidget import com.vayunmathur.library.widgets.scheduleHourlyUpdate import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers
calendar/src/main/java/com/vayunmathur/calendar/platform/CalendarViewModel.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/platform/CalendarViewModel.kt b/calendar/src/main/java/com/vayunmathur/calendar/platform/CalendarViewModel.ktindex 45914d4974..7585d7621e 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/platform/CalendarViewModel.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/platform/CalendarViewModel.kt@@ -9,8 +9,8 @@ import androidx.glance.appwidget.updateAll import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.viewModelScope import com.vayunmathur.calendar.R-import com.vayunmathur.calendar.widget.glance.CalendarGlanceWidget-import com.vayunmathur.calendar.widget.glance.CalendarMonthGlanceWidget+import com.vayunmathur.calendar.widget.CalendarGlanceWidget+import com.vayunmathur.calendar.widget.CalendarMonthGlanceWidget import com.vayunmathur.calendar.ui.parseICSFile import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.MutableStateFlow
calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidget.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidget.kt b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidget.ktindex b849251bc4..9368787d58 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidget.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidget.kt@@ -1,4 +1,4 @@-package com.vayunmathur.calendar.widget.glance+package com.vayunmathur.calendar.widget import android.annotation.SuppressLint import android.content.Context
calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidgetReceiver.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidgetReceiver.kt b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidgetReceiver.ktindex 48eeb8c490..f688b27eb3 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidgetReceiver.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarGlanceWidgetReceiver.kt@@ -1,4 +1,4 @@-package com.vayunmathur.calendar.widget.glance+package com.vayunmathur.calendar.widget import com.vayunmathur.library.widgets.MaWidgetReceiver
calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidget.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidget.kt b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidget.ktindex f450c045ed..b1c4b29c10 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidget.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidget.kt@@ -1,4 +1,4 @@-package com.vayunmathur.calendar.widget.glance+package com.vayunmathur.calendar.widget import android.annotation.SuppressLint import android.content.Context
calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidgetReceiver.kt
diff --git a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidgetReceiver.kt b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidgetReceiver.ktindex c4ef0e30d9..c38d0aad84 100644--- a/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidgetReceiver.kt+++ b/calendar/src/main/java/com/vayunmathur/calendar/widget/CalendarMonthGlanceWidgetReceiver.kt@@ -1,4 +1,4 @@-package com.vayunmathur.calendar.widget.glance+package com.vayunmathur.calendar.widget import com.vayunmathur.library.widgets.MaWidgetReceiver
calendar/src/test/java/com/vayunmathur/calendar/ui/ImportGlanceHolidayTest.kt
diff --git a/calendar/src/test/java/com/vayunmathur/calendar/ui/ImportGlanceHolidayTest.kt b/calendar/src/test/java/com/vayunmathur/calendar/ui/ImportGlanceHolidayTest.ktindex 91bda3d2c2..7c1f4f1e05 100644--- a/calendar/src/test/java/com/vayunmathur/calendar/ui/ImportGlanceHolidayTest.kt+++ b/calendar/src/test/java/com/vayunmathur/calendar/ui/ImportGlanceHolidayTest.kt@@ -19,15 +19,15 @@ import androidx.test.core.app.ApplicationProvider import com.vayunmathur.calendar.CalendarTestData as D import com.vayunmathur.calendar.FakeCalendarData import com.vayunmathur.calendar.Route-import com.vayunmathur.calendar.widget.glance.CalendarGlanceWidget-import com.vayunmathur.calendar.widget.glance.CalendarGlanceWidgetReceiver-import com.vayunmathur.calendar.widget.glance.CalendarMonthGlanceWidget-import com.vayunmathur.calendar.widget.glance.CalendarMonthGlanceWidgetReceiver-import com.vayunmathur.calendar.widget.glance.cappedForCell-import com.vayunmathur.calendar.widget.glance.computeMonthGrid-import com.vayunmathur.calendar.widget.glance.contrastingTextOn-import com.vayunmathur.calendar.widget.glance.maxChipsForSize-import com.vayunmathur.calendar.widget.glance.sortedForMonthCell+import com.vayunmathur.calendar.widget.CalendarGlanceWidget+import com.vayunmathur.calendar.widget.CalendarGlanceWidgetReceiver+import com.vayunmathur.calendar.widget.CalendarMonthGlanceWidget+import com.vayunmathur.calendar.widget.CalendarMonthGlanceWidgetReceiver+import com.vayunmathur.calendar.widget.cappedForCell+import com.vayunmathur.calendar.widget.computeMonthGrid+import com.vayunmathur.calendar.widget.contrastingTextOn+import com.vayunmathur.calendar.widget.maxChipsForSize+import com.vayunmathur.calendar.widget.sortedForMonthCell import com.vayunmathur.calendar.platform.CalendarViewModel import com.vayunmathur.library.util.NavBackStack import kotlinx.coroutines.runBlocking
calendar/src/test/java/com/vayunmathur/calendar/widget/GlanceContentTest.kt
diff --git a/calendar/src/test/java/com/vayunmathur/calendar/widget/GlanceContentTest.kt b/calendar/src/test/java/com/vayunmathur/calendar/widget/GlanceContentTest.ktindex 8c6db51e7f..e173dc016b 100644--- a/calendar/src/test/java/com/vayunmathur/calendar/widget/GlanceContentTest.kt+++ b/calendar/src/test/java/com/vayunmathur/calendar/widget/GlanceContentTest.kt@@ -1,7 +1,7 @@-package com.vayunmathur.calendar.glance-import com.vayunmathur.calendar.widget.glance.Content-import com.vayunmathur.calendar.widget.glance.MonthContent-import com.vayunmathur.calendar.widget.glance.computeMonthGrid+package com.vayunmathur.calendar.widget+import com.vayunmathur.calendar.widget.Content+import com.vayunmathur.calendar.widget.MonthContent+import com.vayunmathur.calendar.widget.computeMonthGrid import android.content.Context import androidx.compose.ui.unit.DpSize
calendar/src/test/java/com/vayunmathur/calendar/widget/MonthGridTest.kt
diff --git a/calendar/src/test/java/com/vayunmathur/calendar/widget/MonthGridTest.kt b/calendar/src/test/java/com/vayunmathur/calendar/widget/MonthGridTest.ktindex 14df1e06a0..4dddccc95d 100644--- a/calendar/src/test/java/com/vayunmathur/calendar/widget/MonthGridTest.kt+++ b/calendar/src/test/java/com/vayunmathur/calendar/widget/MonthGridTest.kt@@ -1,11 +1,11 @@ package com.vayunmathur.calendar.widget import com.vayunmathur.calendar.data.Instance-import com.vayunmathur.calendar.widget.glance.cappedForCell-import com.vayunmathur.calendar.widget.glance.computeMonthGrid-import com.vayunmathur.calendar.widget.glance.contrastingTextOn-import com.vayunmathur.calendar.widget.glance.maxChipsForSize-import com.vayunmathur.calendar.widget.glance.sortedForMonthCell+import com.vayunmathur.calendar.widget.cappedForCell+import com.vayunmathur.calendar.widget.computeMonthGrid+import com.vayunmathur.calendar.widget.contrastingTextOn+import com.vayunmathur.calendar.widget.maxChipsForSize+import com.vayunmathur.calendar.widget.sortedForMonthCell import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp import kotlinx.datetime.LocalDate
weather/AGENTS.md
diff --git a/weather/AGENTS.md b/weather/AGENTS.mdindex 6991764aed..a8edac5447 100644--- a/weather/AGENTS.md+++ b/weather/AGENTS.md@@ -99,12 +99,12 @@ _Install: ./install weather (dev by default)._ - com/vayunmathur/weather/ui/components/blocks/CloudCoverBlock.kt - com/vayunmathur/weather/ui/components/blocks/SunBlock.kt - com/vayunmathur/weather/ui/components/blocks/MoonBlock.kt-### widget/glance/ — Glance widgets (cache-fed only)-- com/vayunmathur/weather/widget/glance/WeatherGlanceWidget.kt-- com/vayunmathur/weather/widget/glance/WeatherGlanceWidgetReceiver.kt-- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidget.kt-- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidgetReceiver.kt-- com/vayunmathur/weather/widget/glance/WidgetWeather.kt — shared widget model+### widget/ — Glance widgets (cache-fed only)+- com/vayunmathur/weather/widget/WeatherGlanceWidget.kt+- com/vayunmathur/weather/widget/WeatherGlanceWidgetReceiver.kt+- com/vayunmathur/weather/widget/WeatherBlobGlanceWidget.kt+- com/vayunmathur/weather/widget/WeatherBlobGlanceWidgetReceiver.kt+- com/vayunmathur/weather/widget/WidgetWeather.kt — shared widget model ## Verify (this module only) ```
weather/src/androidTest/java/com/vayunmathur/weather/ui/WidgetGlanceTest.kt
diff --git a/weather/src/androidTest/java/com/vayunmathur/weather/ui/WidgetGlanceTest.kt b/weather/src/androidTest/java/com/vayunmathur/weather/ui/WidgetGlanceTest.ktindex 8d2b76ceb9..10ffb7fdb5 100644--- a/weather/src/androidTest/java/com/vayunmathur/weather/ui/WidgetGlanceTest.kt+++ b/weather/src/androidTest/java/com/vayunmathur/weather/ui/WidgetGlanceTest.kt@@ -3,8 +3,8 @@ package com.vayunmathur.weather.ui import androidx.glance.appwidget.AppWidgetId import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry-import com.vayunmathur.weather.widget.glance.WeatherBlobGlanceWidget-import com.vayunmathur.weather.widget.glance.WeatherGlanceWidget+import com.vayunmathur.weather.widget.WeatherBlobGlanceWidget+import com.vayunmathur.weather.widget.WeatherGlanceWidget import kotlinx.coroutines.runBlocking import org.junit.Assert.assertTrue import org.junit.Test
weather/src/main/AndroidManifest.xml
diff --git a/weather/src/main/AndroidManifest.xml b/weather/src/main/AndroidManifest.xmlindex eed5e9dac1..d320de2db0 100644--- a/weather/src/main/AndroidManifest.xml+++ b/weather/src/main/AndroidManifest.xml@@ -76,7 +76,7 @@ android:value="1" /> <receiver- android:name=".widget.glance.WeatherGlanceWidgetReceiver"+ android:name=".widget.WeatherGlanceWidgetReceiver" android:exported="false"> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />@@ -86,7 +86,7 @@ android:resource="@xml/weather_glance_widget_info" /> </receiver> <receiver- android:name=".widget.glance.WeatherBlobGlanceWidgetReceiver"+ android:name=".widget.WeatherBlobGlanceWidgetReceiver" android:exported="false"> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
weather/src/main/java/com/vayunmathur/weather/MainActivity.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/MainActivity.kt b/weather/src/main/java/com/vayunmathur/weather/MainActivity.ktindex 290e1708f7..30e6c57d10 100644--- a/weather/src/main/java/com/vayunmathur/weather/MainActivity.kt+++ b/weather/src/main/java/com/vayunmathur/weather/MainActivity.kt@@ -13,7 +13,7 @@ import com.vayunmathur.weather.data.WeatherRepository import com.vayunmathur.weather.network.WxStatic import com.vayunmathur.weather.platform.WeatherViewModel import com.vayunmathur.weather.platform.WeatherViewModelFactory-import com.vayunmathur.weather.widget.glance.WeatherGlanceWidgetReceiver+import com.vayunmathur.weather.widget.WeatherGlanceWidgetReceiver /** Main Activity: a ma activity implementation for main activity. */ class MainActivity : MaActivity() {
weather/src/main/java/com/vayunmathur/weather/data/WeatherRefreshWorker.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/data/WeatherRefreshWorker.kt b/weather/src/main/java/com/vayunmathur/weather/data/WeatherRefreshWorker.ktindex e4af4e651b..842de23f8a 100644--- a/weather/src/main/java/com/vayunmathur/weather/data/WeatherRefreshWorker.kt+++ b/weather/src/main/java/com/vayunmathur/weather/data/WeatherRefreshWorker.kt@@ -8,8 +8,8 @@ import androidx.work.ExistingPeriodicWorkPolicy import androidx.work.PeriodicWorkRequestBuilder import androidx.work.WorkManager import androidx.work.WorkerParameters-import com.vayunmathur.weather.widget.glance.WeatherBlobGlanceWidget-import com.vayunmathur.weather.widget.glance.WeatherGlanceWidget+import com.vayunmathur.weather.widget.WeatherBlobGlanceWidget+import com.vayunmathur.weather.widget.WeatherGlanceWidget import com.vayunmathur.weather.network.WeatherApi import com.vayunmathur.weather.network.WxStatic import com.vayunmathur.weather.network.toAirQuality
weather/src/main/java/com/vayunmathur/weather/platform/WeatherViewModel.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/platform/WeatherViewModel.kt b/weather/src/main/java/com/vayunmathur/weather/platform/WeatherViewModel.ktindex 81f3a21fac..73b7d11088 100644--- a/weather/src/main/java/com/vayunmathur/weather/platform/WeatherViewModel.kt+++ b/weather/src/main/java/com/vayunmathur/weather/platform/WeatherViewModel.kt@@ -13,7 +13,7 @@ import com.vayunmathur.weather.data.WeatherRefreshWorker import com.vayunmathur.weather.data.weatherJson import com.vayunmathur.weather.domain.SelectedDateOrTime import com.vayunmathur.weather.domain.roundCoord-import com.vayunmathur.weather.widget.glance.WeatherGlanceWidget+import com.vayunmathur.weather.widget.WeatherGlanceWidget import com.vayunmathur.weather.network.AirQualityResponse import com.vayunmathur.weather.network.ForecastResponse import com.vayunmathur.weather.network.WeatherApi
weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidget.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidget.kt b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidget.ktindex af786a402f..0aedf33320 100644--- a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidget.kt+++ b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidget.kt@@ -1,4 +1,4 @@-package com.vayunmathur.weather.widget.glance+package com.vayunmathur.weather.widget import android.content.Context import android.content.Intent
weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidgetReceiver.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidgetReceiver.kt b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidgetReceiver.ktindex 940af63c35..5f494e81f7 100644--- a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidgetReceiver.kt+++ b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherBlobGlanceWidgetReceiver.kt@@ -1,4 +1,4 @@-package com.vayunmathur.weather.widget.glance+package com.vayunmathur.weather.widget import android.content.Context import com.vayunmathur.library.widgets.MaWidgetReceiver
weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidget.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidget.kt b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidget.ktindex 5be92a88c4..5558e35768 100644--- a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidget.kt+++ b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidget.kt@@ -1,4 +1,4 @@-package com.vayunmathur.weather.widget.glance+package com.vayunmathur.weather.widget import com.vayunmathur.library.util.DateNameStyle import android.content.Context
weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidgetReceiver.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidgetReceiver.kt b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidgetReceiver.ktindex 6a0641f61e..22d38e4d03 100644--- a/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidgetReceiver.kt+++ b/weather/src/main/java/com/vayunmathur/weather/widget/WeatherGlanceWidgetReceiver.kt@@ -1,4 +1,4 @@-package com.vayunmathur.weather.widget.glance+package com.vayunmathur.weather.widget import android.content.Context import com.vayunmathur.library.widgets.MaWidgetReceiver
weather/src/main/java/com/vayunmathur/weather/widget/WidgetWeather.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/widget/WidgetWeather.kt b/weather/src/main/java/com/vayunmathur/weather/widget/WidgetWeather.ktindex ff5338471e..a2c0240f87 100644--- a/weather/src/main/java/com/vayunmathur/weather/widget/WidgetWeather.kt+++ b/weather/src/main/java/com/vayunmathur/weather/widget/WidgetWeather.kt@@ -1,4 +1,4 @@-package com.vayunmathur.weather.widget.glance+package com.vayunmathur.weather.widget import android.content.Context import com.vayunmathur.library.log.Log
weather/src/test/java/com/vayunmathur/weather/data/GeoAndWorkerTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/data/GeoAndWorkerTest.kt b/weather/src/test/java/com/vayunmathur/weather/data/GeoAndWorkerTest.ktindex fa02f971dd..4148a55e87 100644--- a/weather/src/test/java/com/vayunmathur/weather/data/GeoAndWorkerTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/data/GeoAndWorkerTest.kt@@ -104,8 +104,8 @@ class WeatherWorkerDoWorkTest { // onEnabledExtra schedules hourly refresh via WorkManager. val config = Configuration.Builder().setExecutor(SynchronousExecutor()).build() WorkManagerTestInitHelper.initializeTestWorkManager(ctx, config)- com.vayunmathur.weather.widget.glance.WeatherGlanceWidgetReceiver().onEnabled(ctx)- com.vayunmathur.weather.widget.glance.WeatherBlobGlanceWidgetReceiver().onEnabled(ctx)+ com.vayunmathur.weather.widget.WeatherGlanceWidgetReceiver().onEnabled(ctx)+ com.vayunmathur.weather.widget.WeatherBlobGlanceWidgetReceiver().onEnabled(ctx) val infos = WorkManager.getInstance(ctx).getWorkInfosForUniqueWork("WeatherHourlyRefresh").get() assertTrue(infos.isNotEmpty()) }
weather/src/test/java/com/vayunmathur/weather/data/WeatherWorkerAndWidgetTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/data/WeatherWorkerAndWidgetTest.kt b/weather/src/test/java/com/vayunmathur/weather/data/WeatherWorkerAndWidgetTest.ktindex 7ca2bcd86e..0246366412 100644--- a/weather/src/test/java/com/vayunmathur/weather/data/WeatherWorkerAndWidgetTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/data/WeatherWorkerAndWidgetTest.kt@@ -14,7 +14,7 @@ import com.vayunmathur.weather.domain.roundCoord import com.vayunmathur.weather.network.ForecastResponse import com.vayunmathur.weather.network.WeatherApi import com.vayunmathur.weather.network.WxStatic-import com.vayunmathur.weather.widget.glance.loadWeatherSnapshot+import com.vayunmathur.weather.widget.loadWeatherSnapshot import kotlinx.coroutines.test.runTest import org.junit.runner.RunWith import kotlin.test.AfterTest
weather/src/test/java/com/vayunmathur/weather/platform/WeatherViewModelTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/platform/WeatherViewModelTest.kt b/weather/src/test/java/com/vayunmathur/weather/platform/WeatherViewModelTest.ktindex db1bb5c675..cd32a20e4f 100644--- a/weather/src/test/java/com/vayunmathur/weather/platform/WeatherViewModelTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/platform/WeatherViewModelTest.kt@@ -10,12 +10,12 @@ import com.vayunmathur.weather.data.WeatherRepository import com.vayunmathur.weather.domain.SelectedDateOrTime import com.vayunmathur.weather.network.AirQualityResponse import com.vayunmathur.weather.network.ForecastResponse-import com.vayunmathur.weather.widget.glance.WeatherBlobGlanceWidget-import com.vayunmathur.weather.widget.glance.WeatherBlobGlanceWidgetReceiver-import com.vayunmathur.weather.widget.glance.WeatherGlanceWidget-import com.vayunmathur.weather.widget.glance.WeatherGlanceWidgetReceiver-import com.vayunmathur.weather.widget.glance.WidgetWeather-import com.vayunmathur.weather.widget.glance.loadWeatherSnapshot+import com.vayunmathur.weather.widget.WeatherBlobGlanceWidget+import com.vayunmathur.weather.widget.WeatherBlobGlanceWidgetReceiver+import com.vayunmathur.weather.widget.WeatherGlanceWidget+import com.vayunmathur.weather.widget.WeatherGlanceWidgetReceiver+import com.vayunmathur.weather.widget.WidgetWeather+import com.vayunmathur.weather.widget.loadWeatherSnapshot import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.test.runTest
weather/src/test/java/com/vayunmathur/weather/widget/GlanceWidgetTest.kt
diff --git a/weather/src/test/java/com/vayunmathur/weather/widget/GlanceWidgetTest.kt b/weather/src/test/java/com/vayunmathur/weather/widget/GlanceWidgetTest.ktindex 4129ffc23e..9f1a969c2e 100644--- a/weather/src/test/java/com/vayunmathur/weather/widget/GlanceWidgetTest.kt+++ b/weather/src/test/java/com/vayunmathur/weather/widget/GlanceWidgetTest.kt@@ -3,9 +3,9 @@ package com.vayunmathur.weather.widget import androidx.compose.runtime.Composable import androidx.glance.appwidget.testing.unit.runGlanceAppWidgetUnitTest import androidx.test.ext.junit.runners.AndroidJUnit4-import com.vayunmathur.weather.widget.glance.WeatherBlobGlanceWidget-import com.vayunmathur.weather.widget.glance.WeatherGlanceWidget-import com.vayunmathur.weather.widget.glance.WidgetWeather+import com.vayunmathur.weather.widget.WeatherBlobGlanceWidget+import com.vayunmathur.weather.widget.WeatherGlanceWidget+import com.vayunmathur.weather.widget.WidgetWeather import androidx.test.core.app.ApplicationProvider import org.junit.runner.RunWith import kotlin.test.Test