From 4fe1dc2627d53b8f806226b5c203063b06e94b78 Mon Sep 17 00:00:00 2001
From: Andreas Feichtinger <anfeichtingers@gmail.com>
Date: Fri, 20 Jan 2023 17:31:17 +0100
Subject: [PATCH] update dependencies

---
 README.md                         | 36 ++++++------
 android/app/build.gradle          |  4 +-
 lib/main.dart                     | 25 ++++----
 lib/ui/screens/second_screen.dart | 12 ++--
 pubspec.lock                      | 94 +++++++++++++------------------
 pubspec.yaml                      | 12 ++--
 6 files changed, 83 insertions(+), 100 deletions(-)

diff --git a/README.md b/README.md
index 2466a920..22f408fc 100644
--- a/README.md
+++ b/README.md
@@ -41,19 +41,19 @@ flutter run lib/main.dart
 
 This repository makes use of the following pub packages:
 
-| Package | Version | Usage |
-| ------ | ------ | ------ |
-| [Bloc](https://pub.dev/packages/bloc) | ^8.0.3 | State management*
-| [Flutter Bloc](https://pub.dev/packages/flutter_bloc) | ^8.0.1 | State management*
-| [Hydrated Bloc](https://pub.dev/packages/hydrated_bloc) | ^8.1.0 | Persists Bloc state with Hive
-| [Equatable](https://pub.dev/packages/equatable) | ^2.0.3 | Easily compare custom classes, used for Bloc states*
-| [Flutter Lints](https://pub.dev/packages/flutter_lints) | ^2.0.1 | Stricter linting rules
-| [Path Provider](https://pub.dev/packages/path_provider) | ^2.0.11 | Get the save path for Hive
-| [Flutter Displaymode](https://pub.dev/packages/flutter_displaymode) | ^0.4.0 | Support high refresh rate displays
-| [Easy Localization](https://pub.dev/packages/easy_localization) | ^3.0.1 | Makes localization easy
-| [Hive](https://pub.dev/packages/hive) | ^2.2.3 | Platform independent storage.
-| [Url Launcher](https://pub.dev/packages/url_launcher) | ^6.1.5 | Open urls in Browser
-| [Ionicons](https://pub.dev/packages/ionicons) | ^0.2.1 | Modern icon library
+| Package                                                             | Version | Usage                                                |
+|---------------------------------------------------------------------|---------|------------------------------------------------------|
+| [Bloc](https://pub.dev/packages/bloc)                               | ^8.1.0  | State management*                                    |
+| [Flutter Bloc](https://pub.dev/packages/flutter_bloc)               | ^8.1.1  | State management*                                    |
+| [Hydrated Bloc](https://pub.dev/packages/hydrated_bloc)             | ^9.0.0  | Persists Bloc state with Hive                        |
+| [Equatable](https://pub.dev/packages/equatable)                     | ^2.0.5  | Easily compare custom classes, used for Bloc states* |
+| [Flutter Lints](https://pub.dev/packages/flutter_lints)             | ^2.0.1  | Stricter linting rules                               |
+| [Path Provider](https://pub.dev/packages/path_provider)             | ^2.0.11 | Get the save path for Hive                           |
+| [Flutter Displaymode](https://pub.dev/packages/flutter_displaymode) | ^0.5.0  | Support high refresh rate displays                   |
+| [Easy Localization](https://pub.dev/packages/easy_localization)     | ^3.0.1  | Makes localization easy                              |
+| [Hive](https://pub.dev/packages/hive)                               | ^2.2.3  | Platform independent storage.                        |
+| [Url Launcher](https://pub.dev/packages/url_launcher)               | ^6.1.7  | Open urls in Browser                                 |
+| [Ionicons](https://pub.dev/packages/ionicons)                       | ^0.2.2  | Modern icon library                                  |
 
 > \* Recommended to keep regardless of your project
 
@@ -72,7 +72,7 @@ You can follow the instructions in this [Stackoverflow issue](https://stackoverf
 ### Theme
 
 You can customize your brand colors in the [lib/config/theme.dart](./lib/config/theme.dart) file.
-The project useses colors from [TailwindCSS](https://tailwindcss.com/docs/customizing-colors). As
+The project uses colors from [TailwindCSS](https://tailwindcss.com/docs/customizing-colors). As
 primary swatch the indigo color palette is used while for the text the gray color palette is used.
 Feel free to replace those values with your own. In order to get a smooth transition for the text
 colors it is necessary to override each text type in the TextTheme.
@@ -131,14 +131,14 @@ following code:
 
 #### Light Theme
 
-| Home Light | Info Light |
-| ------ | ------ |
+| Home Light                                                                     | Info Light                                                                    |
+|--------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
 | ![Home Light](./assets/img/home_light.png "The home page with a light theme.") | ![Info Light](./assets/img/info_light.png "The home page with a dark theme.") |
 
 #### Dark Theme
 
-| Home Dark German | Info Dark German |
-| ------ | ------ |
+| Home Dark German                                                             | Info Dark German                                                            |
+|------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
 | ![Home Dark](./assets/img/home_dark.png "The info page with a light theme.") | ![Info Dark](./assets/img/info_dark.png "The info page with a dark theme.") |
 
 ## License
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 8d7830bc..e21b88de 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
 apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
 
 android {
-    compileSdkVersion 32
+    compileSdkVersion 33
 
     sourceSets {
         main.java.srcDirs += 'src/main/kotlin'
@@ -36,7 +36,7 @@ android {
         // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
         applicationId "dev.feichtinger.flutterproductionboilerplate.flutter_production_boilerplate"
         minSdkVersion 23
-        targetSdkVersion 32
+        targetSdkVersion 33
         versionCode flutterVersionCode.toInteger()
         versionName flutterVersionName
     }
diff --git a/lib/main.dart b/lib/main.dart
index b0ee3c77..de548718 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -23,24 +23,21 @@ void main() async {
   }
   final Directory tmpDir = await getTemporaryDirectory();
   Hive.init(tmpDir.toString());
-  final HydratedStorage storage = await HydratedStorage.build(
+  HydratedBloc.storage = await HydratedStorage.build(
     storageDirectory: tmpDir,
   );
 
-  HydratedBlocOverrides.runZoned(
-    () => runApp(
-      EasyLocalization(
-        path: 'assets/translations',
-        supportedLocales: const <Locale>[
-          Locale('en'),
-          Locale('de'),
-        ],
-        fallbackLocale: const Locale('en'),
-        useFallbackTranslations: true,
-        child: const MyApp(),
-      ),
+  runApp(
+    EasyLocalization(
+      path: 'assets/translations',
+      supportedLocales: const <Locale>[
+        Locale('en'),
+        Locale('de'),
+      ],
+      fallbackLocale: const Locale('en'),
+      useFallbackTranslations: true,
+      child: const MyApp(),
     ),
-    storage: storage,
   );
 }
 
diff --git a/lib/ui/screens/second_screen.dart b/lib/ui/screens/second_screen.dart
index f1315866..e51e8130 100644
--- a/lib/ui/screens/second_screen.dart
+++ b/lib/ui/screens/second_screen.dart
@@ -71,7 +71,7 @@ class SecondScreen extends StatelessWidget {
                   icon: Ionicons.apps_outline,
                   url: Uri.parse(
                       'https://pub.dev/packages/flutter_bloc/versions/8.0.1'),
-                  version: '8.0.1',
+                  version: '8.1.1',
                 ),
                 GridItem(
                   title: 'bloc',
@@ -85,14 +85,14 @@ class SecondScreen extends StatelessWidget {
                   icon: Ionicons.folder_open_outline,
                   url: Uri.parse(
                       'https://pub.dev/packages/hydrated_bloc/versions/8.1.0'),
-                  version: '8.1.0',
+                  version: '9.0.0',
                 ),
                 GridItem(
                   title: 'equatable',
                   icon: Ionicons.git_compare_outline,
                   url: Uri.parse(
                       'https://pub.dev/packages/equatable/versions/2.0.3'),
-                  version: '2.0.3',
+                  version: '2.0.5',
                 ),
                 GridItem(
                   title: 'lints',
@@ -113,7 +113,7 @@ class SecondScreen extends StatelessWidget {
                   icon: Ionicons.speedometer_outline,
                   url: Uri.parse(
                       'https://pub.dev/packages/flutter_displaymode/versions/0.4.0'),
-                  version: '0.4.0',
+                  version: '0.5.0',
                 ),
                 GridItem(
                   title: 'easy_localization',
@@ -134,14 +134,14 @@ class SecondScreen extends StatelessWidget {
                   icon: Ionicons.share_outline,
                   url: Uri.parse(
                       'https://pub.dev/packages/url_launcher/versions/6.1.5'),
-                  version: '6.1.5',
+                  version: '6.1.7',
                 ),
                 GridItem(
                   title: 'ionicons',
                   icon: Ionicons.logo_ionic,
                   url: Uri.parse(
                       'https://pub.dev/packages/ionicons/versions/0.2.1'),
-                  version: '0.2.1',
+                  version: '0.2.2',
                 ),
               ],
             ),
diff --git a/pubspec.lock b/pubspec.lock
index ac2bf696..87e0e7cf 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -7,14 +7,14 @@ packages:
       name: args
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.3.1"
+    version: "2.3.2"
   async:
     dependency: transitive
     description:
       name: async
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.8.2"
+    version: "2.9.0"
   bloc:
     dependency: "direct main"
     description:
@@ -35,21 +35,14 @@ packages:
       name: characters
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.2.0"
-  charcode:
-    dependency: transitive
-    description:
-      name: charcode
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "1.3.1"
+    version: "1.2.1"
   clock:
     dependency: transitive
     description:
       name: clock
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.1.0"
+    version: "1.1.1"
   collection:
     dependency: transitive
     description:
@@ -84,14 +77,14 @@ packages:
       name: equatable
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.3"
+    version: "2.0.5"
   fake_async:
     dependency: transitive
     description:
       name: fake_async
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.3.0"
+    version: "1.3.1"
   ffi:
     dependency: transitive
     description:
@@ -105,7 +98,7 @@ packages:
       name: file
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "6.1.2"
+    version: "6.1.4"
   flutter:
     dependency: "direct main"
     description: flutter
@@ -117,14 +110,14 @@ packages:
       name: flutter_bloc
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "8.0.1"
+    version: "8.1.1"
   flutter_displaymode:
     dependency: "direct main"
     description:
       name: flutter_displaymode
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "0.4.0"
+    version: "0.5.0"
   flutter_lints:
     dependency: "direct dev"
     description:
@@ -160,7 +153,7 @@ packages:
       name: hydrated_bloc
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "8.1.0"
+    version: "9.0.0"
   intl:
     dependency: transitive
     description:
@@ -174,7 +167,7 @@ packages:
       name: ionicons
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "0.2.1"
+    version: "0.2.2"
   js:
     dependency: transitive
     description:
@@ -188,28 +181,28 @@ packages:
       name: lints
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.0"
+    version: "2.0.1"
   matcher:
     dependency: transitive
     description:
       name: matcher
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "0.12.11"
+    version: "0.12.12"
   material_color_utilities:
     dependency: transitive
     description:
       name: material_color_utilities
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "0.1.4"
+    version: "0.1.5"
   meta:
     dependency: transitive
     description:
       name: meta
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.7.0"
+    version: "1.8.0"
   nested:
     dependency: transitive
     description:
@@ -223,7 +216,7 @@ packages:
       name: path
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.8.1"
+    version: "1.8.2"
   path_provider:
     dependency: "direct main"
     description:
@@ -237,7 +230,7 @@ packages:
       name: path_provider_android
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.19"
+    version: "2.0.22"
   path_provider_ios:
     dependency: transitive
     description:
@@ -258,21 +251,21 @@ packages:
       name: path_provider_macos
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.6"
+    version: "2.0.7"
   path_provider_platform_interface:
     dependency: transitive
     description:
       name: path_provider_platform_interface
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.4"
+    version: "2.0.5"
   path_provider_windows:
     dependency: transitive
     description:
       name: path_provider_windows
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.1.2"
+    version: "2.1.3"
   platform:
     dependency: transitive
     description:
@@ -286,7 +279,7 @@ packages:
       name: plugin_platform_interface
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.1.2"
+    version: "2.1.3"
   process:
     dependency: transitive
     description:
@@ -300,25 +293,25 @@ packages:
       name: provider
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "6.0.3"
+    version: "6.0.5"
   shared_preferences:
     dependency: transitive
     description:
       name: shared_preferences
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.15"
+    version: "2.0.16"
   shared_preferences_android:
     dependency: transitive
     description:
       name: shared_preferences_android
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.12"
-  shared_preferences_ios:
+    version: "2.0.14"
+  shared_preferences_foundation:
     dependency: transitive
     description:
-      name: shared_preferences_ios
+      name: shared_preferences_foundation
       url: "https://pub.dartlang.org"
     source: hosted
     version: "2.1.1"
@@ -328,21 +321,14 @@ packages:
       name: shared_preferences_linux
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.1.1"
-  shared_preferences_macos:
-    dependency: transitive
-    description:
-      name: shared_preferences_macos
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "2.0.4"
+    version: "2.1.2"
   shared_preferences_platform_interface:
     dependency: transitive
     description:
       name: shared_preferences_platform_interface
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.0"
+    version: "2.1.0"
   shared_preferences_web:
     dependency: transitive
     description:
@@ -356,7 +342,7 @@ packages:
       name: shared_preferences_windows
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.1.1"
+    version: "2.1.2"
   sky_engine:
     dependency: transitive
     description: flutter
@@ -368,7 +354,7 @@ packages:
       name: source_span
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.8.2"
+    version: "1.9.0"
   stack_trace:
     dependency: transitive
     description:
@@ -389,28 +375,28 @@ packages:
       name: string_scanner
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.1.0"
+    version: "1.1.1"
   synchronized:
     dependency: transitive
     description:
       name: synchronized
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "3.0.0+2"
+    version: "3.0.1"
   term_glyph:
     dependency: transitive
     description:
       name: term_glyph
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.2.0"
+    version: "1.2.1"
   test_api:
     dependency: transitive
     description:
       name: test_api
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "0.4.9"
+    version: "0.4.12"
   typed_data:
     dependency: transitive
     description:
@@ -424,14 +410,14 @@ packages:
       name: url_launcher
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "6.1.5"
+    version: "6.1.7"
   url_launcher_android:
     dependency: transitive
     description:
       name: url_launcher_android
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "6.0.17"
+    version: "6.0.22"
   url_launcher_ios:
     dependency: transitive
     description:
@@ -459,7 +445,7 @@ packages:
       name: url_launcher_platform_interface
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.1.0"
+    version: "2.1.1"
   url_launcher_web:
     dependency: transitive
     description:
@@ -487,14 +473,14 @@ packages:
       name: win32
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.7.0"
+    version: "3.1.3"
   xdg_directories:
     dependency: transitive
     description:
       name: xdg_directories
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "0.2.0+1"
+    version: "0.2.0+3"
 sdks:
-  dart: ">=2.17.6 <3.0.0"
+  dart: ">=2.18.0 <3.0.0"
   flutter: ">=3.0.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index d965f59c..9ff164a4 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -25,15 +25,15 @@ dependencies:
     sdk: flutter
 
   bloc: ^8.1.0
-  flutter_bloc: ^8.0.1
-  hydrated_bloc: ^8.1.0
-  equatable: ^2.0.3
+  flutter_bloc: ^8.1.1
+  hydrated_bloc: ^9.0.0
+  equatable: ^2.0.5
   path_provider: ^2.0.11
-  flutter_displaymode: ^0.4.0
+  flutter_displaymode: ^0.5.0
   easy_localization: ^3.0.1
   hive: ^2.2.3
-  url_launcher: ^6.1.5
-  ionicons: ^0.2.1
+  url_launcher: ^6.1.7
+  ionicons: ^0.2.2
 
 dev_dependencies:
   flutter_test:
-- 
GitLab