Last active
February 28, 2022 06:13
-
-
Save estevez-dev/878885e2eb236a37b0f6fa70dd2928ec to your computer and use it in GitHub Desktop.
Gitpod IDE configuration example for Flutter project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: | |
file: .gitpod.dockerfile | |
tasks: | |
- before: | | |
export PATH=$FLUTTER_HOME/bin:$ANDROID_HOME/bin:$ANDROID_HOME/platform-tools:$PATH | |
mkdir -p /home/gitpod/.android | |
touch /home/gitpod/.android/repositories.cfg | |
init: | | |
echo "Installing Flutter SDK..." | |
cd /workspace && wget -qO flutter_sdk.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.7-stable.tar.xz && tar -xf flutter_sdk.tar.xz && rm -f flutter_sdk.tar.xz | |
echo "Installing Android SDK..." | |
mkdir -p /workspace/android-sdk && cd /workspace/android-sdk && wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip && unzip sdk-tools-linux-4333796.zip && rm -f sdk-tools-linux-4333796.zip | |
/workspace/android-sdk/tools/bin/sdkmanager "platform-tools" "platforms;android-28" "build-tools;28.0.3" | |
echo "Init Flutter..." | |
cd /workspace/ha_client | |
flutter upgrade | |
flutter doctor --android-licenses | |
flutter pub get | |
command: | | |
flutter pub upgrade | |
echo "Ready to go!" | |
flutter doctor | |
vscode: | |
extensions: | |
- [email protected]:Wg2nTABftVR/Dry4tqeY1w== | |
- [email protected]:/kOacEWdiDRLyN/idUiM4A== |
how do i use this please?
thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how do i use this please?