2023-08-17 05:50:01 +02:00
|
|
|
#!/usr/bin/env sh
|
2022-11-21 21:54:30 +02:00
|
|
|
|
|
|
|
# The default execution directory of this script is the ci_scripts directory.
|
2024-02-19 01:03:01 +02:00
|
|
|
cd "$CI_WORKSPACE"/mobile || exit
|
2022-11-21 21:54:30 +02:00
|
|
|
|
|
|
|
# Install Flutter using git.
|
2024-02-19 01:03:01 +02:00
|
|
|
git clone https://github.com/flutter/flutter.git --depth 1 -b stable "$HOME"/flutter
|
2022-11-21 21:54:30 +02:00
|
|
|
export PATH="$PATH:$HOME/flutter/bin"
|
|
|
|
|
|
|
|
# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms.
|
|
|
|
flutter precache --ios
|
|
|
|
|
|
|
|
# Install Flutter dependencies.
|
|
|
|
flutter pub get
|
|
|
|
|
|
|
|
# Install CocoaPods using Homebrew.
|
2024-02-19 01:03:01 +02:00
|
|
|
export HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates.
|
2022-11-21 21:54:30 +02:00
|
|
|
brew install cocoapods
|
|
|
|
|
|
|
|
# Install CocoaPods dependencies.
|
|
|
|
cd ios && pod install # run `pod install` in the `ios` directory.
|
|
|
|
|
|
|
|
exit 0
|