From 9a978ac8d31357baed71c8284a4298ce51cf534e Mon Sep 17 00:00:00 2001 From: Tommaso Berlose Date: Sun, 3 May 2020 17:54:35 +0200 Subject: [PATCH] Release v2.0.1 --- .idea/.name | 1 + .idea/assetWizardSettings.xml | 129 +++++ .idea/caches/build_file_checksums.ser | Bin 537 -> 537 bytes .idea/gradle.xml | 1 + app/build.gradle | 14 +- app/release/app-release.aab | Bin 0 -> 17377291 bytes app/src/main/AndroidManifest.xml | 9 +- app/src/main/ic_launcher-playstore.png | Bin 51445 -> 13533 bytes .../{components => }/AWApplication.kt | 19 +- .../components/BottomSheetColorPicker.kt | 55 ++ .../components/BottomSheetMenu.kt | 73 ++- .../components/CalendarSelector.kt | 16 - .../components/events/AppInfoSavedEvent.kt | 9 - .../components/events/ApplicationListEvent.kt | 16 - .../components/events/CustomLocationEvent.kt | 14 - .../anotherwidget/db/EventRepository.kt | 84 +++ .../anotherwidget/global/Preferences.kt | 4 +- .../anotherwidget/helpers/AlarmHelper.kt | 20 + .../anotherwidget/helpers/BitmapHelper.kt | 76 +++ .../anotherwidget/helpers/CalendarHelper.kt | 157 ++++++ .../anotherwidget/helpers/ColorHelper.kt | 23 + .../anotherwidget/helpers/DateHelper.kt | 38 ++ .../anotherwidget/helpers/IntentHelper.kt | 156 ++++++ .../helpers/SettingsStringHelper.kt | 115 ++++ .../WeatherHelper.kt} | 40 +- .../anotherwidget/models/CalendarSelector.kt | 16 + .../{components/events => models}/Event.kt | 2 +- .../network/WeatherNetworkApi.kt | 44 ++ .../receivers/NewCalendarEventReceiver.kt | 21 +- .../receivers/UpdatesReceiver.kt | 16 +- .../receivers/WeatherReceiver.kt | 15 +- .../receivers/WidgetClickListenerReceiver.kt | 7 +- .../services/EventListenerJob.kt | 55 ++ .../activities/ChooseApplicationActivity.kt | 41 +- .../ui/activities/CustomDateActivity.kt | 124 +++++ .../ui/activities/CustomLocationActivity.kt | 1 - .../ui/activities/MainActivity.kt | 93 +++- .../ui/activities/SupportDevActivity.kt | 4 +- .../ui/activities/WeatherProviderActivity.kt | 21 - .../ui/fragments/AdvancedSettingsFragment.kt | 43 +- .../ui/fragments/CalendarSettingsFragment.kt | 131 +++-- .../ui/fragments/ClockSettingsFragment.kt | 18 +- .../ui/fragments/GeneralSettingsFragment.kt | 42 +- .../ui/fragments/WeatherSettingsFragment.kt | 25 +- .../viewmodels/ChooseApplicationViewModel.kt | 18 +- .../ui/viewmodels/CustomDateViewModel.kt | 10 + .../ui/viewmodels/MainViewModel.kt | 5 +- .../widgets/{TheWidget.kt => MainWidget.kt} | 146 +++-- .../anotherwidget/utils/CalendarUtil.kt | 186 ------- .../anotherwidget/utils/Extensions.kt | 113 +++- .../anotherwidget/utils/Util.kt | 521 ------------------ .../drawable-hdpi/round_check_black_18.png | Bin 0 -> 154 bytes .../drawable-hdpi/round_check_black_24.png | Bin 0 -> 177 bytes .../drawable-hdpi/round_check_black_36.png | Bin 0 -> 235 bytes .../drawable-hdpi/round_check_black_48.png | Bin 0 -> 289 bytes .../res/drawable-hdpi/round_help_outline.png | Bin 0 -> 848 bytes .../round_help_outline_black_18.png | Bin 0 -> 476 bytes .../round_help_outline_black_24.png | Bin 0 -> 577 bytes .../round_help_outline_black_48.png | Bin 0 -> 1118 bytes .../drawable-mdpi/round_check_black_18.png | Bin 0 -> 125 bytes .../drawable-mdpi/round_check_black_24.png | Bin 0 -> 141 bytes .../drawable-mdpi/round_check_black_36.png | Bin 0 -> 177 bytes .../drawable-mdpi/round_check_black_48.png | Bin 0 -> 223 bytes .../res/drawable-mdpi/round_help_outline.png | Bin 0 -> 577 bytes .../round_help_outline_black_18.png | Bin 0 -> 323 bytes .../round_help_outline_black_24.png | Bin 0 -> 398 bytes .../round_help_outline_black_48.png | Bin 0 -> 752 bytes .../drawable-xhdpi/round_check_black_18.png | Bin 0 -> 177 bytes .../drawable-xhdpi/round_check_black_24.png | Bin 0 -> 223 bytes .../drawable-xhdpi/round_check_black_36.png | Bin 0 -> 289 bytes .../drawable-xhdpi/round_check_black_48.png | Bin 0 -> 356 bytes .../res/drawable-xhdpi/round_help_outline.png | Bin 0 -> 1118 bytes .../round_help_outline_black_18.png | Bin 0 -> 577 bytes .../round_help_outline_black_24.png | Bin 0 -> 752 bytes .../round_help_outline_black_48.png | Bin 0 -> 1397 bytes .../drawable-xxhdpi/round_check_black_18.png | Bin 0 -> 235 bytes .../drawable-xxhdpi/round_check_black_24.png | Bin 0 -> 289 bytes .../drawable-xxhdpi/round_check_black_36.png | Bin 0 -> 390 bytes .../drawable-xxhdpi/round_check_black_48.png | Bin 0 -> 491 bytes .../drawable-xxhdpi/round_help_outline.png | Bin 0 -> 1533 bytes .../round_help_outline_black_18.png | Bin 0 -> 848 bytes .../round_help_outline_black_24.png | Bin 0 -> 1118 bytes .../round_help_outline_black_48.png | Bin 0 -> 1973 bytes .../drawable-xxxhdpi/round_check_black_18.png | Bin 0 -> 289 bytes .../drawable-xxxhdpi/round_check_black_24.png | Bin 0 -> 356 bytes .../drawable-xxxhdpi/round_check_black_36.png | Bin 0 -> 491 bytes .../drawable-xxxhdpi/round_check_black_48.png | Bin 0 -> 654 bytes .../drawable-xxxhdpi/round_help_outline.png | Bin 0 -> 1973 bytes .../round_help_outline_black_18.png | Bin 0 -> 1118 bytes .../round_help_outline_black_24.png | Bin 0 -> 1397 bytes .../round_help_outline_black_48.png | Bin 0 -> 2514 bytes app/src/main/res/drawable/round_check.xml | 10 + .../res/drawable/round_help_outline_24.xml | 10 + .../layout/activity_choose_application.xml | 4 +- .../main/res/layout/activity_custom_date.xml | 156 ++++++ .../res/layout/activity_custom_location.xml | 5 +- app/src/main/res/layout/activity_main.xml | 44 +- .../main/res/layout/activity_support_dev.xml | 3 +- .../res/layout/activity_weather_provider.xml | 23 +- .../res/layout/application_info_layout.xml | 16 +- app/src/main/res/layout/bottom_sheet_menu.xml | 20 +- .../res/layout/bottom_sheet_menu_divider.xml | 28 + .../main/res/layout/bottom_sheet_menu_hor.xml | 39 ++ .../res/layout/bottom_sheet_menu_item.xml | 39 +- .../res/layout/color_picker_menu_item.xml | 27 + .../res/layout/custom_date_example_item.xml | 38 ++ .../main/res/layout/custom_location_item.xml | 8 +- .../res/layout/fragment_advanced_settings.xml | 40 +- .../res/layout/fragment_clock_settings.xml | 61 +- .../res/layout/fragment_weather_settings.xml | 41 +- .../main/res/layout/inapp_product_layout.xml | 1 + app/src/main/res/layout/the_widget.xml | 6 +- app/src/main/res/layout/the_widget_sans.xml | 4 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 2 +- .../mipmap-anydpi-v26/ic_launcher_round.xml | 2 +- app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 4902 -> 3386 bytes .../mipmap-hdpi/ic_launcher_foreground.png | Bin 1393 -> 1078 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 4902 -> 3386 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 2788 -> 2121 bytes .../mipmap-mdpi/ic_launcher_foreground.png | Bin 899 -> 704 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 2788 -> 2121 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 6831 -> 4870 bytes .../mipmap-xhdpi/ic_launcher_foreground.png | Bin 2807 -> 1807 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 6831 -> 4870 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 12494 -> 7586 bytes .../mipmap-xxhdpi/ic_launcher_foreground.png | Bin 5101 -> 3298 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 12494 -> 7586 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 18098 -> 10384 bytes .../mipmap-xxxhdpi/ic_launcher_foreground.png | Bin 8027 -> 4897 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 18098 -> 10384 bytes app/src/main/res/values-it/strings.xml | 8 +- app/src/main/res/values-night/colors.xml | 3 +- .../res/values/ic_launcher_background.xml | 4 + app/src/main/res/values/strings.xml | 158 +++--- build.gradle | 2 +- 135 files changed, 2368 insertions(+), 1221 deletions(-) create mode 100644 .idea/.name create mode 100644 .idea/assetWizardSettings.xml create mode 100644 app/release/app-release.aab rename app/src/main/java/com/tommasoberlose/anotherwidget/{components => }/AWApplication.kt (60%) create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/components/BottomSheetColorPicker.kt delete mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/components/CalendarSelector.kt delete mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/components/events/AppInfoSavedEvent.kt delete mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/components/events/ApplicationListEvent.kt delete mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/components/events/CustomLocationEvent.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/db/EventRepository.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/helpers/AlarmHelper.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/helpers/BitmapHelper.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/helpers/CalendarHelper.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/helpers/ColorHelper.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/helpers/DateHelper.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/helpers/IntentHelper.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/helpers/SettingsStringHelper.kt rename app/src/main/java/com/tommasoberlose/anotherwidget/{utils/WeatherUtil.kt => helpers/WeatherHelper.kt} (68%) create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/models/CalendarSelector.kt rename app/src/main/java/com/tommasoberlose/anotherwidget/{components/events => models}/Event.kt (91%) create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/network/WeatherNetworkApi.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/services/EventListenerJob.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/ui/activities/CustomDateActivity.kt create mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/ui/viewmodels/CustomDateViewModel.kt rename app/src/main/java/com/tommasoberlose/anotherwidget/ui/widgets/{TheWidget.kt => MainWidget.kt} (74%) delete mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/utils/CalendarUtil.kt delete mode 100644 app/src/main/java/com/tommasoberlose/anotherwidget/utils/Util.kt create mode 100644 app/src/main/res/drawable-hdpi/round_check_black_18.png create mode 100644 app/src/main/res/drawable-hdpi/round_check_black_24.png create mode 100644 app/src/main/res/drawable-hdpi/round_check_black_36.png create mode 100644 app/src/main/res/drawable-hdpi/round_check_black_48.png create mode 100644 app/src/main/res/drawable-hdpi/round_help_outline.png create mode 100644 app/src/main/res/drawable-hdpi/round_help_outline_black_18.png create mode 100644 app/src/main/res/drawable-hdpi/round_help_outline_black_24.png create mode 100644 app/src/main/res/drawable-hdpi/round_help_outline_black_48.png create mode 100644 app/src/main/res/drawable-mdpi/round_check_black_18.png create mode 100644 app/src/main/res/drawable-mdpi/round_check_black_24.png create mode 100644 app/src/main/res/drawable-mdpi/round_check_black_36.png create mode 100644 app/src/main/res/drawable-mdpi/round_check_black_48.png create mode 100644 app/src/main/res/drawable-mdpi/round_help_outline.png create mode 100644 app/src/main/res/drawable-mdpi/round_help_outline_black_18.png create mode 100644 app/src/main/res/drawable-mdpi/round_help_outline_black_24.png create mode 100644 app/src/main/res/drawable-mdpi/round_help_outline_black_48.png create mode 100644 app/src/main/res/drawable-xhdpi/round_check_black_18.png create mode 100644 app/src/main/res/drawable-xhdpi/round_check_black_24.png create mode 100644 app/src/main/res/drawable-xhdpi/round_check_black_36.png create mode 100644 app/src/main/res/drawable-xhdpi/round_check_black_48.png create mode 100644 app/src/main/res/drawable-xhdpi/round_help_outline.png create mode 100644 app/src/main/res/drawable-xhdpi/round_help_outline_black_18.png create mode 100644 app/src/main/res/drawable-xhdpi/round_help_outline_black_24.png create mode 100644 app/src/main/res/drawable-xhdpi/round_help_outline_black_48.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_check_black_18.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_check_black_24.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_check_black_36.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_check_black_48.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_help_outline.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_help_outline_black_18.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_help_outline_black_24.png create mode 100644 app/src/main/res/drawable-xxhdpi/round_help_outline_black_48.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_check_black_18.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_check_black_24.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_check_black_36.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_check_black_48.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_help_outline.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_help_outline_black_18.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_help_outline_black_24.png create mode 100644 app/src/main/res/drawable-xxxhdpi/round_help_outline_black_48.png create mode 100644 app/src/main/res/drawable/round_check.xml create mode 100644 app/src/main/res/drawable/round_help_outline_24.xml create mode 100644 app/src/main/res/layout/activity_custom_date.xml create mode 100644 app/src/main/res/layout/bottom_sheet_menu_divider.xml create mode 100644 app/src/main/res/layout/bottom_sheet_menu_hor.xml create mode 100644 app/src/main/res/layout/color_picker_menu_item.xml create mode 100644 app/src/main/res/layout/custom_date_example_item.xml create mode 100644 app/src/main/res/values/ic_launcher_background.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..ef9b930 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +Another Widget \ No newline at end of file diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml new file mode 100644 index 0000000..c042544 --- /dev/null +++ b/.idea/assetWizardSettings.xml @@ -0,0 +1,129 @@ + + + + + + \ No newline at end of file diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 12bc99e13faf2398325a4249acc3ef9609f89310..25da76775a39da72ea2d04b979a7ab756cc8cc91 100644 GIT binary patch delta 53 zcmV-50LuTF1epYom;~EC(z%hGpAgH<2YaJrRz9%BK1=@?!={r<0lg9Y*#Ah$qigVW L)hhoR=D$05zxo@G delta 53 zcmV-50LuTF1epYom;}tdn=_G|pAgke$^(037m=&Jw|4#oAmo!v0lg8ll#8ch{1fyl L$Sb0)bBS$uo0S=d diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 440480e..5cd135a 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +