Skip to content

Commit

Permalink
remove fvm from script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Jun 10, 2024
1 parent 29ae90a commit d2878a8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions script.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

function pub {
fvm flutter clean
flutter clean
for d in `ls packages`;
do
(
cd "packages/$d"
fvm flutter clean
fvm flutter pub get
fvm flutter pub upgrade
flutter clean
flutter pub get
flutter pub upgrade
)
done
fvm flutter pub get
fvm flutter pub upgrade
flutter pub get
flutter pub upgrade
}

function buildRunner {
Expand All @@ -21,10 +21,10 @@ function buildRunner {
(
echo "$d"
cd "packages/$d"
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
dart pub run build_runner build --delete-conflicting-outputs
)
done
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
dart pub run build_runner build --delete-conflicting-outputs
}

function podUpdate {
Expand All @@ -41,17 +41,17 @@ function podUpdate {
if [[ "$*" == *-runDev* ]];
then
echo "flutter run development"
fvm flutter run --flavor development --target lib/main_development.dart
flutter run --flavor development --target lib/main_development.dart

elif [[ "$*" == *-runstage* ]];
then
echo "flutter run staging"
fvm flutter run --flavor staging --target lib/main_staging.dart
flutter run --flavor staging --target lib/main_staging.dart

elif [[ "$*" == *-run* ]];
then
echo "flutter run production"
fvm flutter run --flavor production --target lib/main_production.dart
flutter run --flavor production --target lib/main_production.dart

elif [[ "$*" == *-pod* ]];
then
Expand All @@ -62,7 +62,7 @@ then
buildRunner
echo "deploy android"
echo "Make sure you are in right branch"
fvm flutter build appbundle --flavor "production" --target "lib/main_production.dart"
flutter build appbundle --flavor "production" --target "lib/main_production.dart"
# cd android
# fastlane deploy
echo "app bundle deployed on internal testing track"
Expand All @@ -74,7 +74,7 @@ then
podUpdate
echo "deploy ios"
echo "Make sure you are in right branch"
fvm flutter build ios --release --flavor "production" --target "lib/main_production.dart"
flutter build ios --release --flavor "production" --target "lib/main_production.dart"
cd ios
fastlane beta
elif [[ "$*" == *-pub* ]];
Expand Down

0 comments on commit d2878a8

Please sign in to comment.