Skip to content

Commit c7fdaae

Browse files
Add gitpod config
this commit adds support for Gitpod.io, a free automated dev environment that makes contributing and generally working on GitHub projects much easier. It allows anyone to start a ready-to-code dev environment for any branch, issue and pull request with a single click.
1 parent 4ee92b7 commit c7fdaae

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.gitpod.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1+
image:
2+
file: .gitpod.dockerfile
3+
14
tasks:
2-
- init: echo "Replace me with a build script for the project."
3-
command: echo "Replace me with something that should run on every start, or just
4-
remove me entirely."
5+
- before: |
6+
export PATH=$FLUTTER_HOME/bin:$ANDROID_HOME/bin:$ANDROID_HOME/platform-tools:$PATH
7+
mkdir -p /home/gitpod/.android
8+
touch /home/gitpod/.android/repositories.cfg
9+
init: |
10+
echo "Installing Flutter SDK..."
11+
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
12+
echo "Installing Android SDK..."
13+
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
14+
/workspace/android-sdk/tools/bin/sdkmanager "platform-tools" "platforms;android-28" "build-tools;28.0.3"
15+
echo "Init Flutter..."
16+
cd /workspace/ha_client
17+
flutter upgrade
18+
flutter doctor --android-licenses
19+
flutter pub get
20+
command: |
21+
flutter pub upgrade
22+
echo "Ready to go!"
23+
flutter doctor
24+
vscode:
25+
extensions:
26+
- [email protected]:Wg2nTABftVR/Dry4tqeY1w==
27+
- [email protected]:/kOacEWdiDRLyN/idUiM4A==

0 commit comments

Comments
 (0)