From 567c3850d309390326c9fb561a329f559fe84c1f Mon Sep 17 00:00:00 2001 From: Luca Van Zelst Date: Mon, 3 Jun 2024 08:36:07 +0200 Subject: [PATCH] FT-344: Updated strip_boilerplate_project --- .github/workflows/strip_boilerplate_project.yaml | 1 - .github/workflows/strip_boilerplate_project_remove_tests.yaml | 1 - tool/setup/dart/strip_boilerplate_project.dart | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/strip_boilerplate_project.yaml b/.github/workflows/strip_boilerplate_project.yaml index 6f610c8f..680dbc37 100644 --- a/.github/workflows/strip_boilerplate_project.yaml +++ b/.github/workflows/strip_boilerplate_project.yaml @@ -15,7 +15,6 @@ jobs: with: channel: 'stable' - run: ./tool/install_fvm.sh - - run: flutter pub global activate fvm - run: fvm flutter packages get - run: printf 'yes\n' | fvm flutter pub run ./tool/setup/dart/strip_boilerplate_project.dart - run: fvm flutter analyze diff --git a/.github/workflows/strip_boilerplate_project_remove_tests.yaml b/.github/workflows/strip_boilerplate_project_remove_tests.yaml index 4b5ee983..ea6c79b0 100644 --- a/.github/workflows/strip_boilerplate_project_remove_tests.yaml +++ b/.github/workflows/strip_boilerplate_project_remove_tests.yaml @@ -15,7 +15,6 @@ jobs: with: channel: 'stable' - run: ./tool/install_fvm.sh - - run: flutter pub global activate fvm - run: fvm flutter packages get - run: printf 'no\n' | fvm flutter pub run ./tool/setup/dart/strip_boilerplate_project.dart - run: fvm flutter analyze diff --git a/tool/setup/dart/strip_boilerplate_project.dart b/tool/setup/dart/strip_boilerplate_project.dart index da8cd2a6..2632e366 100644 --- a/tool/setup/dart/strip_boilerplate_project.dart +++ b/tool/setup/dart/strip_boilerplate_project.dart @@ -55,6 +55,7 @@ void main(List args) { _replaceHomeScreenLine(); _replaceDatabaseTests(); Logger.debug('Removed import references'); + executeCommand('flutter', ['pub', 'global', 'activate', 'fvm']); executeCommand('fvm', ['flutter', 'clean']); executeCommand('fvm', ['flutter', 'packages', 'get']); executeCommand('fvm', ['flutter', 'packages', 'pub', 'run', 'build_runner', 'build', '--delete-conflicting-outputs']);