From 56cf02a72850196547205725e3c7c6f4b154e436 Mon Sep 17 00:00:00 2001 From: Ianick Noejovich Date: Thu, 2 Nov 2023 16:44:34 -0300 Subject: [PATCH] add widget and fix some stuff --- .idea/inspectionProfiles/Project_Default.xml | 9 + app/build.gradle.kts | 5 +- app/src/main/AndroidManifest.xml | 13 +- .../github/dolarcito/di/RepositoryModule.kt | 7 +- .../github/dolarcito/di/UseCaseModule.kt | 8 +- .../domain/GetOrderedExchangeRatesUseCase.kt | 19 +- .../github/dolarcito/ui/common/Compose.kt | 28 +++ .../github/dolarcito/ui/common/theme/Theme.kt | 13 ++ .../dolarcito/ui/rates/ExchangeRatesScreen.kt | 30 ++- .../ui/rates/ExchangeRatesViewModel.kt | 50 +++-- .../ui/settings/SettingsViewModel.kt | 2 - .../dolarcito/widget/ExchangeRatesWidget.kt | 173 ++++++++++++++++++ .../widget/ExchangeRatesWidgetEntryPoint.kt | 12 ++ .../widget/ExchangeRatesWidgetReceiver.kt | 7 + app/src/main/res/values/themes.xml | 2 +- .../res/xml/exchange_rates_widget_info.xml | 6 + 16 files changed, 312 insertions(+), 72 deletions(-) create mode 100644 app/src/main/java/io/iakanoe/github/dolarcito/ui/common/Compose.kt create mode 100644 app/src/main/java/io/iakanoe/github/dolarcito/widget/ExchangeRatesWidget.kt create mode 100644 app/src/main/java/io/iakanoe/github/dolarcito/widget/ExchangeRatesWidgetEntryPoint.kt create mode 100644 app/src/main/java/io/iakanoe/github/dolarcito/widget/ExchangeRatesWidgetReceiver.kt create mode 100644 app/src/main/res/xml/exchange_rates_widget_info.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 103e00c..44ca2d9 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -3,30 +3,39 @@