From 7224944269ae438865f73d345b9bcaab5141349c Mon Sep 17 00:00:00 2001 From: "Emil Zulufov (ezIT)" Date: Tue, 21 May 2024 16:38:11 +0500 Subject: [PATCH] feat: bump Flutter sdk to `v3.22.0` (#116) * chore: update meta constraint to `>=1.10.0 <=1.12.0` From `>=1.10.0 <1.12.0` * chore: update intl constraint to `>=0.18.0 <=0.19.0` From `>=0.18.0 <0.19.0` * chore: update jiffy constraint to `>=6.2.1 <=6.2.2` From `>=6.2.1 <6.2.2` * chore: replace deprecated `MaterilStatePropertyAll` `MaterialStatePropertyAll` is deprecated and shouldn't be used. Use WidgetStatePropertyAll instead. Moved to the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. * chore: replace deprecated color scheme `background` `background` is deprecated and shouldn't be used. Use surface instead. This feature was deprecated after v3.18.0-0.1.pre. * fix: formatting issue * chore: bump github workflows `flutter_version` to v3.22.0 * fix: correct the name of the code owner * fix: shared analyzer github worfklow * chore: bump `flutter` version to `v3.22.0` * fix: shared analyzer ignore * chore: bump github workflows `dart_sdk` to `v3.4.0` * chore: downgrade github workflows `dart_sdk` to `v3.3.4` * chore: convert `chats_repository` to flutter package * chore: conver `search_repository` to flutter package * chore: convert `stories_repository` to flutter package * chore: use flutter github worfklow job for `stories_repository` --- .github/CODEOWNERS | 2 +- .github/workflows/app_ui.yaml | 2 +- .github/workflows/authentication_client.yaml | 2 +- .github/workflows/chats_repository.yaml | 4 +- .github/workflows/database_client.yaml | 2 +- .../firebase_notifications_client.yaml | 2 +- .../firebase_remote_config_repository.yaml | 2 +- ...flutter_instagram_offline_first_clone.yaml | 2 +- .github/workflows/insta_blocks.yaml | 2 +- .github/workflows/instagram_blocks_ui.yaml | 2 +- .github/workflows/notifications_client.yaml | 2 +- .../workflows/notifications_repository.yaml | 2 +- .github/workflows/persistent_storage.yaml | 2 +- .github/workflows/posts_repository.yaml | 2 +- .github/workflows/powersync_repository.yaml | 2 +- .github/workflows/search_repository.yaml | 4 +- .github/workflows/secure_storage.yaml | 2 +- .github/workflows/shared.yaml | 2 +- .github/workflows/storage.yaml | 2 +- .github/workflows/stories_repository.yaml | 4 +- .../supabase_authentication_client.yaml | 2 +- .github/workflows/token_storage.yaml | 2 +- .github/workflows/user_repository.yaml | 2 +- .../widgets/change_password_button.dart | 4 +- lib/auth/login/widgets/sign_in_button.dart | 2 +- lib/auth/sign_up/widgets/sign_up_button.dart | 2 +- lib/chats/widgets/fun.dart | 2 +- packages/app_ui/pubspec.yaml | 4 +- .../authentication_client/pubspec.yaml | 2 +- .../pubspec.yaml | 2 +- packages/chats_repository/pubspec.yaml | 1 + packages/database_client/pubspec.yaml | 4 +- packages/env/pubspec.yaml | 2 +- .../pubspec.yaml | 2 +- packages/form_fields/pubspec.yaml | 2 +- .../insta_blocks/lib/src/block_action.dart | 9 ++-- .../lib/src/models/post_author.dart | 3 +- packages/insta_blocks/pubspec.yaml | 4 +- .../lib/src/post_large/post_footer.dart | 2 +- packages/instagram_blocks_ui/pubspec.yaml | 2 +- .../pubspec.yaml | 2 +- packages/posts_repository/pubspec.yaml | 2 +- packages/powersync_repository/pubspec.yaml | 2 +- packages/search_repository/pubspec.yaml | 3 ++ packages/shared/lib/src/config/uid.dart | 5 +++ packages/shared/pubspec.yaml | 6 +-- .../storage/persistent_storage/pubspec.yaml | 2 +- packages/storage/secure_storage/pubspec.yaml | 2 +- packages/stories_repository/pubspec.yaml | 3 ++ packages/user_repository/pubspec.yaml | 2 +- pubspec.lock | 42 +++++++++---------- pubspec.yaml | 2 +- 52 files changed, 94 insertions(+), 80 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 577ee035..751d3255 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,3 @@ # Every request must be reviewed and accepted by: -- @gambley1 \ No newline at end of file +* @Gambley1 diff --git a/.github/workflows/app_ui.yaml b/.github/workflows/app_ui.yaml index ba0ccd5a..231f92f1 100644 --- a/.github/workflows/app_ui.yaml +++ b/.github/workflows/app_ui.yaml @@ -16,6 +16,6 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/app_ui coverage_excludes: "lib/src/generated/*.dart" diff --git a/.github/workflows/authentication_client.yaml b/.github/workflows/authentication_client.yaml index 59163678..15781991 100644 --- a/.github/workflows/authentication_client.yaml +++ b/.github/workflows/authentication_client.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/authentication_client/authentication_client diff --git a/.github/workflows/chats_repository.yaml b/.github/workflows/chats_repository.yaml index c837800e..06927d14 100644 --- a/.github/workflows/chats_repository.yaml +++ b/.github/workflows/chats_repository.yaml @@ -14,7 +14,7 @@ on: jobs: build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - dart_sdk: 3.3.1 + flutter_version: 3.22.0 working_directory: packages/chats_repository diff --git a/.github/workflows/database_client.yaml b/.github/workflows/database_client.yaml index d9a3eb55..f4cfb0e0 100644 --- a/.github/workflows/database_client.yaml +++ b/.github/workflows/database_client.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/database_client diff --git a/.github/workflows/firebase_notifications_client.yaml b/.github/workflows/firebase_notifications_client.yaml index 19d9d3b4..2fbc0d9f 100644 --- a/.github/workflows/firebase_notifications_client.yaml +++ b/.github/workflows/firebase_notifications_client.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/notifications_client/firebase_notifications_client diff --git a/.github/workflows/firebase_remote_config_repository.yaml b/.github/workflows/firebase_remote_config_repository.yaml index 63b142f1..4158f589 100644 --- a/.github/workflows/firebase_remote_config_repository.yaml +++ b/.github/workflows/firebase_remote_config_repository.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/firebase_remote_config_repository diff --git a/.github/workflows/flutter_instagram_offline_first_clone.yaml b/.github/workflows/flutter_instagram_offline_first_clone.yaml index 3bb4074c..15ddc89c 100644 --- a/.github/workflows/flutter_instagram_offline_first_clone.yaml +++ b/.github/workflows/flutter_instagram_offline_first_clone.yaml @@ -31,7 +31,7 @@ jobs: - uses: subosito/flutter-action@v2.16.0 with: channel: ${{matrix.channel}} - flutter-version: 3.19.3 + flutter-version: 3.22.0 cache: false - name: Install Dependencies diff --git a/.github/workflows/insta_blocks.yaml b/.github/workflows/insta_blocks.yaml index 531ad4de..9712ebaa 100644 --- a/.github/workflows/insta_blocks.yaml +++ b/.github/workflows/insta_blocks.yaml @@ -16,6 +16,6 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 coverage_excludes: "**/*.g.dart" working_directory: packages/insta_blocks diff --git a/.github/workflows/instagram_blocks_ui.yaml b/.github/workflows/instagram_blocks_ui.yaml index 56873311..9d3098ae 100644 --- a/.github/workflows/instagram_blocks_ui.yaml +++ b/.github/workflows/instagram_blocks_ui.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/instagram_blocks_ui diff --git a/.github/workflows/notifications_client.yaml b/.github/workflows/notifications_client.yaml index 7b485221..00a43344 100644 --- a/.github/workflows/notifications_client.yaml +++ b/.github/workflows/notifications_client.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 with: - dart_sdk: 3.3.1 + dart_sdk: 3.3.4 working_directory: packages/notifications_client/notifications_client diff --git a/.github/workflows/notifications_repository.yaml b/.github/workflows/notifications_repository.yaml index 9a345998..79ebefe0 100644 --- a/.github/workflows/notifications_repository.yaml +++ b/.github/workflows/notifications_repository.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 with: - dart_sdk: 3.3.1 + dart_sdk: 3.3.4 working_directory: packages/notifications_repository diff --git a/.github/workflows/persistent_storage.yaml b/.github/workflows/persistent_storage.yaml index ee489c08..369db339 100644 --- a/.github/workflows/persistent_storage.yaml +++ b/.github/workflows/persistent_storage.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/storage/persistent_storage diff --git a/.github/workflows/posts_repository.yaml b/.github/workflows/posts_repository.yaml index 614e49d1..46add368 100644 --- a/.github/workflows/posts_repository.yaml +++ b/.github/workflows/posts_repository.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/posts_repository diff --git a/.github/workflows/powersync_repository.yaml b/.github/workflows/powersync_repository.yaml index 15215c8e..f7d6c09f 100644 --- a/.github/workflows/powersync_repository.yaml +++ b/.github/workflows/powersync_repository.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/powersync_repository diff --git a/.github/workflows/search_repository.yaml b/.github/workflows/search_repository.yaml index 462155cc..ec1c8e7f 100644 --- a/.github/workflows/search_repository.yaml +++ b/.github/workflows/search_repository.yaml @@ -14,7 +14,7 @@ on: jobs: build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - dart_sdk: 3.3.1 + flutter_version: 3.22.0 working_directory: packages/search_repository diff --git a/.github/workflows/secure_storage.yaml b/.github/workflows/secure_storage.yaml index e196f721..4c227ace 100644 --- a/.github/workflows/secure_storage.yaml +++ b/.github/workflows/secure_storage.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/storage/secure_storage diff --git a/.github/workflows/shared.yaml b/.github/workflows/shared.yaml index 2d4e85d1..94d246b5 100644 --- a/.github/workflows/shared.yaml +++ b/.github/workflows/shared.yaml @@ -16,6 +16,6 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 coverage_excludes: "**/*.g.dart **/*.freezed.dart" working_directory: packages/shared diff --git a/.github/workflows/storage.yaml b/.github/workflows/storage.yaml index ec67a302..12e35418 100644 --- a/.github/workflows/storage.yaml +++ b/.github/workflows/storage.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 with: - dart_sdk: 3.3.1 + dart_sdk: 3.3.4 working_directory: packages/storage/storage diff --git a/.github/workflows/stories_repository.yaml b/.github/workflows/stories_repository.yaml index c0930a4b..274e35b3 100644 --- a/.github/workflows/stories_repository.yaml +++ b/.github/workflows/stories_repository.yaml @@ -14,7 +14,7 @@ on: jobs: build: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - dart_sdk: 3.3.1 + flutter_version: 3.22.0 working_directory: packages/stories_repository diff --git a/.github/workflows/supabase_authentication_client.yaml b/.github/workflows/supabase_authentication_client.yaml index 5443aebf..d6a4a5aa 100644 --- a/.github/workflows/supabase_authentication_client.yaml +++ b/.github/workflows/supabase_authentication_client.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/authentication_client/supabase_authentication_client diff --git a/.github/workflows/token_storage.yaml b/.github/workflows/token_storage.yaml index 76c57c62..a34f3111 100644 --- a/.github/workflows/token_storage.yaml +++ b/.github/workflows/token_storage.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 with: - dart_sdk: 3.3.1 + dart_sdk: 3.3.4 working_directory: packages/authentication_client/token_storage diff --git a/.github/workflows/user_repository.yaml b/.github/workflows/user_repository.yaml index 31b96470..27eedcea 100644 --- a/.github/workflows/user_repository.yaml +++ b/.github/workflows/user_repository.yaml @@ -16,5 +16,5 @@ jobs: build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: - flutter_version: 3.19.3 + flutter_version: 3.22.0 working_directory: packages/user_repository diff --git a/lib/auth/forgot_password/change_password/widgets/change_password_button.dart b/lib/auth/forgot_password/change_password/widgets/change_password_button.dart index 1877bf4e..58cc0841 100644 --- a/lib/auth/forgot_password/change_password/widgets/change_password_button.dart +++ b/lib/auth/forgot_password/change_password/widgets/change_password_button.dart @@ -11,8 +11,8 @@ class ChangePasswordButton extends StatelessWidget { @override Widget build(BuildContext context) { final style = ButtonStyle( - backgroundColor: const MaterialStatePropertyAll(AppColors.blue), - shape: MaterialStatePropertyAll( + backgroundColor: const WidgetStatePropertyAll(AppColors.blue), + shape: WidgetStatePropertyAll( RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)), ), ); diff --git a/lib/auth/login/widgets/sign_in_button.dart b/lib/auth/login/widgets/sign_in_button.dart index 8e784d5b..ae46e70e 100644 --- a/lib/auth/login/widgets/sign_in_button.dart +++ b/lib/auth/login/widgets/sign_in_button.dart @@ -10,7 +10,7 @@ class SignInButton extends StatelessWidget { @override Widget build(BuildContext context) { final style = ButtonStyle( - shape: MaterialStatePropertyAll( + shape: WidgetStatePropertyAll( RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)), ), ); diff --git a/lib/auth/sign_up/widgets/sign_up_button.dart b/lib/auth/sign_up/widgets/sign_up_button.dart index 0548b327..07fa0fe4 100644 --- a/lib/auth/sign_up/widgets/sign_up_button.dart +++ b/lib/auth/sign_up/widgets/sign_up_button.dart @@ -17,7 +17,7 @@ class SignUpButton extends StatelessWidget { @override Widget build(BuildContext context) { final style = ButtonStyle( - shape: MaterialStatePropertyAll( + shape: WidgetStatePropertyAll( RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)), ), ); diff --git a/lib/chats/widgets/fun.dart b/lib/chats/widgets/fun.dart index 57a9e0e1..bc32bcfe 100644 --- a/lib/chats/widgets/fun.dart +++ b/lib/chats/widgets/fun.dart @@ -40,7 +40,7 @@ class FunView extends StatelessWidget { ), child: AppButton.outlined( style: ButtonStyle( - shape: MaterialStatePropertyAll( + shape: WidgetStatePropertyAll( RoundedRectangleBorder( borderRadius: BorderRadius.circular(12), ), diff --git a/packages/app_ui/pubspec.yaml b/packages/app_ui/pubspec.yaml index ae085833..bcf3323a 100644 --- a/packages/app_ui/pubspec.yaml +++ b/packages/app_ui/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: cached_network_image: ^3.3.1 @@ -15,7 +15,7 @@ dependencies: flutter_cache_manager: ^3.3.1 flutter_svg: ^2.0.9 go_router: ^13.2.4 - intl: ">=0.18.0 <0.19.0" + intl: ">=0.18.0 <=0.19.0" pausable_timer: ^3.1.0+3 shared: path: ../shared diff --git a/packages/authentication_client/authentication_client/pubspec.yaml b/packages/authentication_client/authentication_client/pubspec.yaml index 62c6214a..148cf2c1 100644 --- a/packages/authentication_client/authentication_client/pubspec.yaml +++ b/packages/authentication_client/authentication_client/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: equatable: ^2.0.5 diff --git a/packages/authentication_client/supabase_authentication_client/pubspec.yaml b/packages/authentication_client/supabase_authentication_client/pubspec.yaml index cd9fe3a1..a7983ec2 100644 --- a/packages/authentication_client/supabase_authentication_client/pubspec.yaml +++ b/packages/authentication_client/supabase_authentication_client/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: authentication_client: diff --git a/packages/chats_repository/pubspec.yaml b/packages/chats_repository/pubspec.yaml index 77d6b2bb..666aad21 100644 --- a/packages/chats_repository/pubspec.yaml +++ b/packages/chats_repository/pubspec.yaml @@ -5,6 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" + flutter: ^3.22.0 dependencies: database_client: diff --git a/packages/database_client/pubspec.yaml b/packages/database_client/pubspec.yaml index b363944d..56bde9ec 100644 --- a/packages/database_client/pubspec.yaml +++ b/packages/database_client/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: dio: ^5.4.0 @@ -13,7 +13,7 @@ dependencies: path: ../env flutter: sdk: flutter - jiffy: ">=6.2.1 <6.2.2" + jiffy: ">=6.2.1 <=6.2.2" powersync_repository: path: ../powersync_repository shared: diff --git a/packages/env/pubspec.yaml b/packages/env/pubspec.yaml index 8e7b6e82..1ed57a37 100644 --- a/packages/env/pubspec.yaml +++ b/packages/env/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: envied: ^0.5.3 diff --git a/packages/firebase_remote_config_repository/pubspec.yaml b/packages/firebase_remote_config_repository/pubspec.yaml index e519f964..45510856 100644 --- a/packages/firebase_remote_config_repository/pubspec.yaml +++ b/packages/firebase_remote_config_repository/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: firebase_remote_config: ">=4.3.5 <=4.5.0" diff --git a/packages/form_fields/pubspec.yaml b/packages/form_fields/pubspec.yaml index 427d411b..f52bd7fe 100644 --- a/packages/form_fields/pubspec.yaml +++ b/packages/form_fields/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: equatable: ^2.0.5 diff --git a/packages/insta_blocks/lib/src/block_action.dart b/packages/insta_blocks/lib/src/block_action.dart index 7f4b8373..d8f6cd36 100644 --- a/packages/insta_blocks/lib/src/block_action.dart +++ b/packages/insta_blocks/lib/src/block_action.dart @@ -43,10 +43,11 @@ extension BlockActionX on BlockAction { navigateToPostAuthor, required BlockActionCallback navigateToSponsoredPostAuthor, - }) => maybeWhen( - navigateToPostAuthor: navigateToPostAuthor, - navigateToSponsoredPostAuthor: navigateToSponsoredPostAuthor, - ); + }) => + maybeWhen( + navigateToPostAuthor: navigateToPostAuthor, + navigateToSponsoredPostAuthor: navigateToSponsoredPostAuthor, + ); } /// {@template block_action} diff --git a/packages/insta_blocks/lib/src/models/post_author.dart b/packages/insta_blocks/lib/src/models/post_author.dart index a8e95246..823a6550 100644 --- a/packages/insta_blocks/lib/src/models/post_author.dart +++ b/packages/insta_blocks/lib/src/models/post_author.dart @@ -76,7 +76,8 @@ class PostAuthor { id: shared['shared_post_author_id'] as String? ?? '', avatarUrl: shared['shared_post_author_avatar_url'] as String? ?? '', username: shared['shared_post_author_username'] as String? ?? - shared['shared_post_author_full_name'] as String? ?? '', + shared['shared_post_author_full_name'] as String? ?? + '', ); /// The empty instance of the [PostAuthor]. diff --git a/packages/insta_blocks/pubspec.yaml b/packages/insta_blocks/pubspec.yaml index 0c3629c1..8262b059 100644 --- a/packages/insta_blocks/pubspec.yaml +++ b/packages/insta_blocks/pubspec.yaml @@ -6,14 +6,14 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: equatable: ^2.0.5 flutter: sdk: flutter json_annotation: ^4.8.1 - meta: ">=1.10.0 <1.12.0" + meta: ">=1.10.0 <=1.12.0" shared: path: ../shared user_repository: diff --git a/packages/instagram_blocks_ui/lib/src/post_large/post_footer.dart b/packages/instagram_blocks_ui/lib/src/post_large/post_footer.dart index 9a51e66e..1c7f9cb3 100644 --- a/packages/instagram_blocks_ui/lib/src/post_large/post_footer.dart +++ b/packages/instagram_blocks_ui/lib/src/post_large/post_footer.dart @@ -244,7 +244,7 @@ class LikersInFollowings extends StatelessWidget { padding: const EdgeInsets.all(AppSpacing.xxs), child: CircleAvatar( backgroundImage: imageProvider, - backgroundColor: context.theme.colorScheme.background, + backgroundColor: context.theme.colorScheme.surface, ), ), ), diff --git a/packages/instagram_blocks_ui/pubspec.yaml b/packages/instagram_blocks_ui/pubspec.yaml index e0c0ad38..1a193273 100644 --- a/packages/instagram_blocks_ui/pubspec.yaml +++ b/packages/instagram_blocks_ui/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: app_ui: diff --git a/packages/notifications_client/firebase_notifications_client/pubspec.yaml b/packages/notifications_client/firebase_notifications_client/pubspec.yaml index aa31599a..6d18ad92 100644 --- a/packages/notifications_client/firebase_notifications_client/pubspec.yaml +++ b/packages/notifications_client/firebase_notifications_client/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: firebase_messaging: ^14.7.10 diff --git a/packages/posts_repository/pubspec.yaml b/packages/posts_repository/pubspec.yaml index 341b2673..386c7d92 100644 --- a/packages/posts_repository/pubspec.yaml +++ b/packages/posts_repository/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: database_client: diff --git a/packages/powersync_repository/pubspec.yaml b/packages/powersync_repository/pubspec.yaml index 1a24a480..88cc8a2c 100644 --- a/packages/powersync_repository/pubspec.yaml +++ b/packages/powersync_repository/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: env: diff --git a/packages/search_repository/pubspec.yaml b/packages/search_repository/pubspec.yaml index bb30e514..2aeda41c 100644 --- a/packages/search_repository/pubspec.yaml +++ b/packages/search_repository/pubspec.yaml @@ -5,10 +5,13 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" + flutter: ^3.22.0 dependencies: database_client: path: ../database_client + flutter: + sdk: flutter shared: path: ../shared user_repository: diff --git a/packages/shared/lib/src/config/uid.dart b/packages/shared/lib/src/config/uid.dart index e75cc8e1..bf157806 100644 --- a/packages/shared/lib/src/config/uid.dart +++ b/packages/shared/lib/src/config/uid.dart @@ -1,3 +1,5 @@ +// ignore_for_file: public_member_api_docs, override_on_non_overriding_member + import 'dart:math'; import 'dart:typed_data'; @@ -10,7 +12,9 @@ final uuid = UuidGenerator._(); /// Unique user id generator class UuidGenerator { + /// {@macro uuid_generator} UuidGenerator._(); + final _uuid = Uuid(goptions: GlobalOptions(CryptoRNG._())); /// Generate random id based on [Uuid] library @@ -22,6 +26,7 @@ class UuidGenerator { /// strong. /// {@endtemplate} class CryptoRNG extends RNG { + /// {@macro crypto_rng} CryptoRNG._({ Random? secureRandom, }) : _secureRandom = secureRandom ?? Random.secure(); diff --git a/packages/shared/pubspec.yaml b/packages/shared/pubspec.yaml index 3b953b6f..93390599 100644 --- a/packages/shared/pubspec.yaml +++ b/packages/shared/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: app_ui: @@ -27,8 +27,8 @@ dependencies: image_size_getter: ^2.1.2 insta_blocks: path: ../insta_blocks - intl: ">=0.18.0 <0.19.0" - jiffy: ">=6.2.1 <6.2.2" + intl: ">=0.18.0 <=0.19.0" + jiffy: ">=6.2.1 <=6.2.2" json_annotation: ^4.8.1 logger: ^2.0.2+1 meta: ">=1.10.0 <=1.12.0" diff --git a/packages/storage/persistent_storage/pubspec.yaml b/packages/storage/persistent_storage/pubspec.yaml index bf7f7aba..3ebcdd7e 100644 --- a/packages/storage/persistent_storage/pubspec.yaml +++ b/packages/storage/persistent_storage/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: flutter: diff --git a/packages/storage/secure_storage/pubspec.yaml b/packages/storage/secure_storage/pubspec.yaml index 769eeb26..09c3c342 100644 --- a/packages/storage/secure_storage/pubspec.yaml +++ b/packages/storage/secure_storage/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: flutter: diff --git a/packages/stories_repository/pubspec.yaml b/packages/stories_repository/pubspec.yaml index a6556539..4c6fa0bd 100644 --- a/packages/stories_repository/pubspec.yaml +++ b/packages/stories_repository/pubspec.yaml @@ -5,12 +5,15 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" + flutter: ^3.22.0 dependencies: collection: ^1.18.0 database_client: path: ../database_client equatable: ^2.0.5 + flutter: + sdk: flutter rxdart: ^0.27.7 shared: path: ../shared diff --git a/packages/user_repository/pubspec.yaml b/packages/user_repository/pubspec.yaml index 4e5a9e79..27091ca3 100644 --- a/packages/user_repository/pubspec.yaml +++ b/packages/user_repository/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: ">=3.3.1 <4.0.0" - flutter: ^3.19.3 + flutter: ^3.22.0 dependencies: authentication_client: diff --git a/pubspec.lock b/pubspec.lock index 926457c1..b1d9f26a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1125,10 +1125,10 @@ packages: dependency: "direct main" description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.18.1" + version: "0.19.0" inview_notifier_list: dependency: "direct main" description: @@ -1150,10 +1150,10 @@ packages: dependency: transitive description: name: jiffy - sha256: cc1d4b75016a9156c29b5d61f0c9176c3e0fb0580cc5a0e0422b5d2cab3fbfff + sha256: a7c15924e9e351faab7259a3c673e2796e5e811ebbeb6e6dc9037cdcded5f541 url: "https://pub.dev" source: hosted - version: "6.2.1" + version: "6.2.2" js: dependency: transitive description: @@ -1198,26 +1198,26 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" url: "https://pub.dev" source: hosted - version: "10.0.0" + version: "10.0.4" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.3" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.1" logger: dependency: transitive description: @@ -1286,10 +1286,10 @@ packages: dependency: transitive description: name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.12.0" mime: dependency: transitive description: @@ -1992,26 +1992,26 @@ packages: dependency: transitive description: name: test - sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073" url: "https://pub.dev" source: hosted - version: "1.24.9" + version: "1.25.2" test_api: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.0" test_core: dependency: transitive description: name: test_core - sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4" url: "https://pub.dev" source: hosted - version: "0.5.9" + version: "0.6.0" timeago: dependency: "direct main" description: @@ -2230,10 +2230,10 @@ packages: dependency: transitive description: name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" url: "https://pub.dev" source: hosted - version: "13.0.0" + version: "14.2.1" watcher: dependency: transitive description: @@ -2308,4 +2308,4 @@ packages: version: "2.0.0" sdks: dart: ">=3.3.1 <4.0.0" - flutter: ">=3.19.3" + flutter: ">=3.22.0" diff --git a/pubspec.yaml b/pubspec.yaml index 93869b3f..3be7280e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,7 +50,7 @@ dependencies: path: packages/insta_blocks instagram_blocks_ui: path: packages/instagram_blocks_ui - intl: ">=0.18.0 <0.19.0" + intl: ">=0.18.0 <=0.19.0" inview_notifier_list: git: https://github.com/Gambley1/inview_notifier_list json_annotation: ^4.9.0