From 55b76b67f739d1015a2cc336412e5351aba40df0 Mon Sep 17 00:00:00 2001 From: Oleksandr Prokhorenko Date: Wed, 7 Feb 2024 09:13:34 +0100 Subject: [PATCH] chore: flutter, dart bump, fix crash caused localization context (#231) * chore: flutter, dart bump, fix crash * update Spanish localization --- catalyst_voices/lib/app/view/app_content.dart | 2 -- .../catalyst_voices_assets/example/pubspec.yaml | 4 ++-- .../packages/catalyst_voices_assets/pubspec.yaml | 4 ++-- .../packages/catalyst_voices_blocs/pubspec.yaml | 4 ++-- .../generated/catalyst_voices_localizations_es.dart | 10 +++++----- .../lib/l10n/intl_es.arb | 13 +++++++++---- .../catalyst_voices_localization/pubspec.yaml | 4 ++-- .../packages/catalyst_voices_models/pubspec.yaml | 2 +- .../catalyst_voices_repositories/pubspec.yaml | 4 ++-- .../packages/catalyst_voices_services/pubspec.yaml | 4 ++-- .../packages/catalyst_voices_shared/pubspec.yaml | 2 +- .../catalyst_voices_view_models/pubspec.yaml | 4 ++-- catalyst_voices/pubspec.yaml | 2 +- melos.yaml | 4 ++-- pubspec.yaml | 2 +- 15 files changed, 34 insertions(+), 31 deletions(-) diff --git a/catalyst_voices/lib/app/view/app_content.dart b/catalyst_voices/lib/app/view/app_content.dart index e2874ecec21..e50e0a73f04 100644 --- a/catalyst_voices/lib/app/view/app_content.dart +++ b/catalyst_voices/lib/app/view/app_content.dart @@ -20,7 +20,6 @@ final class AppContent extends StatelessWidget { @override Widget build(BuildContext context) { - final l10n = context.l10n; return BlocListener( listener: (context, state) {}, child: MaterialApp.router( @@ -29,7 +28,6 @@ final class AppContent extends StatelessWidget { supportedLocales: VoicesLocalizations.supportedLocales, localeListResolutionCallback: basicLocaleListResolution, routerConfig: _routeConfig(context), - title: l10n.homeScreenText, theme: ThemeData( brightness: Brightness.dark, bottomNavigationBarTheme: const BottomNavigationBarThemeData( diff --git a/catalyst_voices/packages/catalyst_voices_assets/example/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_assets/example/pubspec.yaml index 2c3ff72b846..c01e6dccc38 100644 --- a/catalyst_voices/packages/catalyst_voices_assets/example/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_assets/example/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" - flutter: 3.16.5 + sdk: ">=3.2.6 <4.0.0" + flutter: 3.16.9 dependencies: catalyst_voices_assets: diff --git a/catalyst_voices/packages/catalyst_voices_assets/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_assets/pubspec.yaml index a260616a43e..d795083818b 100644 --- a/catalyst_voices/packages/catalyst_voices_assets/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_assets/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" - flutter: 3.16.5 + sdk: ">=3.2.6 <4.0.0" + flutter: 3.16.9 dependencies: flutter: diff --git a/catalyst_voices/packages/catalyst_voices_blocs/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_blocs/pubspec.yaml index b0026effdfd..5f61c25184b 100644 --- a/catalyst_voices/packages/catalyst_voices_blocs/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_blocs/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" - flutter: 3.16.5 + sdk: ">=3.2.6 <4.0.0" + flutter: 3.16.9 dependencies: bloc: ^8.1.2 diff --git a/catalyst_voices/packages/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_es.dart b/catalyst_voices/packages/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_es.dart index dd9de40e9ee..a38f8f03a19 100644 --- a/catalyst_voices/packages/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_es.dart +++ b/catalyst_voices/packages/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_es.dart @@ -14,19 +14,19 @@ class VoicesLocalizationsEs extends VoicesLocalizations { String get emailErrorText => 'mail@example.com'; @override - String get passwordLabelText => 'Password'; + String get passwordLabelText => 'Contraseña'; @override - String get passwordHintText => 'My1SecretPassword'; + String get passwordHintText => 'Mi1ContraseñaSecreta'; @override - String get passwordErrorText => 'Password must be at least 8 characters long'; + String get passwordErrorText => 'La contraseña debe tener al menos 8 caracteres'; @override - String get loginTitleText => 'Login'; + String get loginTitleText => 'Acceso'; @override - String get loginButtonText => 'Login'; + String get loginButtonText => 'Acceso'; @override String get loginScreenErrorMessage => 'Credenciales incorrectas'; diff --git a/catalyst_voices/packages/catalyst_voices_localization/lib/l10n/intl_es.arb b/catalyst_voices/packages/catalyst_voices_localization/lib/l10n/intl_es.arb index e21e9246e0e..7d90a77861e 100644 --- a/catalyst_voices/packages/catalyst_voices_localization/lib/l10n/intl_es.arb +++ b/catalyst_voices/packages/catalyst_voices_localization/lib/l10n/intl_es.arb @@ -1,8 +1,13 @@ { "@@locale": "es", - "loginScreenUsernameLabelText": "Nombre de usuario", - "loginScreenPasswordLabelText": "Contraseña", + "emailLabelText": "Email", + "emailHintText": "mail@example.com", + "emailErrorText": "mail@example.com", + "passwordLabelText": "Contraseña", + "passwordHintText": "Mi1ContraseñaSecreta", + "passwordErrorText": "La contraseña debe tener al menos 8 caracteres", + "loginTitleText": "Acceso", + "loginButtonText": "Acceso", "loginScreenErrorMessage": "Credenciales incorrectas", - "loginScreenLoginButtonText": "Acceso", - "homeScreenLoginButtonText": "Catalyst Voices - Inicio 🇪🇸" + "homeScreenText": "Catalyst Voices" } diff --git a/catalyst_voices/packages/catalyst_voices_localization/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_localization/pubspec.yaml index c61fcc53e6f..134a93d1be0 100644 --- a/catalyst_voices/packages/catalyst_voices_localization/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_localization/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" - flutter: 3.16.5 + sdk: ">=3.2.6 <4.0.0" + flutter: 3.16.9 dependencies: flutter: diff --git a/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml index 3e96a64a793..6c89d16fa19 100644 --- a/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" + sdk: ">=3.2.6 <4.0.0" dependencies: equatable: ^2.0.5 diff --git a/catalyst_voices/packages/catalyst_voices_repositories/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_repositories/pubspec.yaml index 2f8d1d9a199..5568004fb42 100644 --- a/catalyst_voices/packages/catalyst_voices_repositories/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_repositories/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" - flutter: 3.16.5 + sdk: ">=3.2.6 <4.0.0" + flutter: 3.16.9 dependencies: catalyst_voices_models: diff --git a/catalyst_voices/packages/catalyst_voices_services/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_services/pubspec.yaml index fb948f5bbd7..5cbc157ad04 100644 --- a/catalyst_voices/packages/catalyst_voices_services/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_services/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" - flutter: 3.16.5 + sdk: ">=3.2.6 <4.0.0" + flutter: 3.16.9 dependencies: flutter: diff --git a/catalyst_voices/packages/catalyst_voices_shared/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_shared/pubspec.yaml index 6885536bc9c..b1a2796db31 100644 --- a/catalyst_voices/packages/catalyst_voices_shared/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_shared/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: '>=3.2.1 <4.0.0' - flutter: 3.16.5 + flutter: 3.16.9 dependencies: flutter: diff --git a/catalyst_voices/packages/catalyst_voices_view_models/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_view_models/pubspec.yaml index f888c39fb0c..32f930a3907 100644 --- a/catalyst_voices/packages/catalyst_voices_view_models/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_view_models/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=3.2.3 <4.0.0" - flutter: 3.16.5 + sdk: ">=3.2.6 <4.0.0" + flutter: 3.16.9 dependencies: equatable: ^2.0.5 diff --git a/catalyst_voices/pubspec.yaml b/catalyst_voices/pubspec.yaml index 641ec6c2e29..aed2f4333e4 100644 --- a/catalyst_voices/pubspec.yaml +++ b/catalyst_voices/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: '>=3.2.1 <4.0.0' - flutter: 3.16.5 + flutter: 3.16.9 dependencies: animations: ^2.0.11 diff --git a/melos.yaml b/melos.yaml index 1766ac03729..0a6f4889f28 100644 --- a/melos.yaml +++ b/melos.yaml @@ -12,8 +12,8 @@ command: workspaceChangelog: true bootstrap: environment: - sdk: '>=3.2.5 <4.0.0' - flutter: 3.16.8 + sdk: '>=3.2.6 <4.0.0' + flutter: 3.16.9 dependencies: bloc_concurrency: ^0.2.2 bloc: ^8.1.2 diff --git a/pubspec.yaml b/pubspec.yaml index 46ef10ad908..c4dd16b156a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,4 +4,4 @@ environment: sdk: '>=3.2.1 <4.0.0' dev_dependencies: - melos: ^3.2.3 + melos: ^3.2.6