diff --git a/.github/workflows/codeql-default.yml b/.github/workflows/codeql-default.yml index 5959cda56d..a0bec9a74e 100644 --- a/.github/workflows/codeql-default.yml +++ b/.github/workflows/codeql-default.yml @@ -13,7 +13,12 @@ name: "CodeQL" on: push: - branches: [ "main", [dmsm][eata][vsai][!o]* ] + branches: + - "main" + - "dmsm*" + - "eata*" + - "vsai*" + - "!o*" pull_request: # The branches below must be a subset of the branches above branches: [ "main" ] diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 5cc38bb806..73654adedc 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -47,6 +47,7 @@ jobs: cd easel touch lib/env.dart echo "const apiKey = \"${{ secrets.EASEL_TOKEN }}\"; " >> lib/env.dart + echo "const X_API_KEY = \"${{ secrets.X_API_KEY }}\"; " >> lib/env.dart ./android/app/json_manipulator.sh RANDOM_STRING flutter pub get flutter analyze diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8d5b242091..388a265c53 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.22.5 - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/easel/analysis_options.yaml b/easel/analysis_options.yaml index 52102a39dc..6acfff282b 100644 --- a/easel/analysis_options.yaml +++ b/easel/analysis_options.yaml @@ -14,7 +14,6 @@ analyzer: # implicit-dynamic: true errors: avoid_setters_without_getters: ignore - import_of_legacy_library_into_null_safe: error avoid_single_cascade_in_expression_statements: ignore missing_required_param: error # implicit_dynamic_map_literal: ignore diff --git a/easel/lib/repository/repository.dart b/easel/lib/repository/repository.dart index bf165f041e..da74ccb7f4 100644 --- a/easel/lib/repository/repository.dart +++ b/easel/lib/repository/repository.dart @@ -324,8 +324,8 @@ class RepositoryImp implements Repository { try { final storageResponseModel = await remoteDataSource.uploadFile(file: file, uploadProgressCallback: onUploadProgressCallback); return Right(storageResponseModel); - } on Exception catch (_) { - crashlyticsHelper.recordFatalError(error: _.toString()); + } on Exception catch (e) { + crashlyticsHelper.recordFatalError(error: e.toString()); return Left(CacheFailure(LocaleKeys.update_failed.tr())); } } diff --git a/easel/lib/widgets/loading.dart b/easel/lib/widgets/loading.dart index 8cdef25b1f..d054861925 100644 --- a/easel/lib/widgets/loading.dart +++ b/easel/lib/widgets/loading.dart @@ -21,7 +21,6 @@ class Loading { } return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, barrierColor: Colors.white.withOpacity(0), builder: (ctx) => PopScope( canPop: false, diff --git a/easel/lib/widgets/loading_with_progress.dart b/easel/lib/widgets/loading_with_progress.dart index b528621cb0..f1f466b644 100644 --- a/easel/lib/widgets/loading_with_progress.dart +++ b/easel/lib/widgets/loading_with_progress.dart @@ -25,7 +25,6 @@ class LoadingProgress { } return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, builder: (ctx) => PopScope( canPop: false, child: AlertDialog( diff --git a/wallet/analysis_options.yaml b/wallet/analysis_options.yaml index 0410732ce6..228cb58d78 100644 --- a/wallet/analysis_options.yaml +++ b/wallet/analysis_options.yaml @@ -14,7 +14,6 @@ analyzer: # implicit-dynamic: true errors: avoid_setters_without_getters: ignore - import_of_legacy_library_into_null_safe: error avoid_single_cascade_in_expression_statements: ignore missing_required_param: error # implicit_dynamic_map_literal: ignore diff --git a/wallet/lib/components/loading.dart b/wallet/lib/components/loading.dart index a060d36e11..8a3b43df02 100644 --- a/wallet/lib/components/loading.dart +++ b/wallet/lib/components/loading.dart @@ -35,7 +35,6 @@ class Loading { } return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, barrierColor: Colors.white.withOpacity(0), builder: (ctx) => PopScope( canPop: false, diff --git a/wallet/lib/components/no_internet.dart b/wallet/lib/components/no_internet.dart index 856a8f0968..e4a1e8934c 100644 --- a/wallet/lib/components/no_internet.dart +++ b/wallet/lib/components/no_internet.dart @@ -35,7 +35,6 @@ class NoInternetDialog { return showDialog( context: navigatorKey.currentState!.overlay!.context, - barrierDismissible: true, barrierColor: Colors.white.withOpacity(0), builder: (ctx) { setIsShowing = true; diff --git a/wallet/lib/pages/detailed_asset_view/widgets/wallpaper_set_screen.dart b/wallet/lib/pages/detailed_asset_view/widgets/wallpaper_set_screen.dart index fba5ed9161..571578b40e 100644 --- a/wallet/lib/pages/detailed_asset_view/widgets/wallpaper_set_screen.dart +++ b/wallet/lib/pages/detailed_asset_view/widgets/wallpaper_set_screen.dart @@ -50,7 +50,7 @@ class _WallpaperScreenState extends State<_WallpaperScreen> { downloading.value = true; }, onDone: () async { downloading.value = false; - await Wallpaper.lockScreen(options: RequestSizeOptions.RESIZE_FIT); + await Wallpaper.lockScreen(); done.value = true; }, onError: (error) { downloading.value = false; diff --git a/wallet/test/mocks/test_mocks.mocks.dart b/wallet/test/mocks/test_mocks.mocks.dart index b224297128..cdac6c14f2 100644 --- a/wallet/test/mocks/test_mocks.mocks.dart +++ b/wallet/test/mocks/test_mocks.mocks.dart @@ -920,23 +920,24 @@ class MockFirebaseAppCheck extends _i1.Mock implements _i19.FirebaseAppCheck { ) as Map); @override _i8.Future activate({ - String? webRecaptchaSiteKey, - _i20.AndroidProvider? androidProvider = _i20.AndroidProvider.playIntegrity, - _i20.AppleProvider? appleProvider = _i20.AppleProvider.deviceCheck, + _i20.AndroidProvider androidProvider = _i20.AndroidProvider.playIntegrity, // Set a default value if necessary + _i20.AppleProvider appleProvider = _i20.AppleProvider.deviceCheck, // Set a default value if necessary + _i20.WebProvider? webProvider, }) => (super.noSuchMethod( Invocation.method( #activate, [], { - #webRecaptchaSiteKey: webRecaptchaSiteKey, #androidProvider: androidProvider, #appleProvider: appleProvider, + #webProvider: webProvider, }, ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override _i8.Future getToken([bool? forceRefresh]) => (super.noSuchMethod( Invocation.method( diff --git a/wallet/test/widget_testing/extension/size_extension.dart b/wallet/test/widget_testing/extension/size_extension.dart index eb318844da..86ea6cc5c1 100644 --- a/wallet/test/widget_testing/extension/size_extension.dart +++ b/wallet/test/widget_testing/extension/size_extension.dart @@ -36,6 +36,6 @@ extension SetScreenSize on WidgetTester { ), ), ); - }), duration); + }), duration: duration); } } diff --git a/wallet/test/widget_testing/helpers/size_extensions.dart b/wallet/test/widget_testing/helpers/size_extensions.dart index 30343b1de9..71061c6605 100644 --- a/wallet/test/widget_testing/helpers/size_extensions.dart +++ b/wallet/test/widget_testing/helpers/size_extensions.dart @@ -24,6 +24,6 @@ extension SetScreenSize on WidgetTester { }), ); }); - }), duration); + }), duration: duration); } }