You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.2 KiB
27 lines
1.2 KiB
2 years ago
|
#!/bin/bash
|
||
|
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
|
||
|
mkdir android-sdk
|
||
|
unzip -qq sdk-tools-linux-3859397.zip -d $HOME/android-sdk
|
||
|
export ANDROID_HOME=$HOME/android-sdk
|
||
|
export PATH=$HOME/android-sdk/tools/bin:$PATH
|
||
|
mkdir -p /home/travis/.android # silence sdkmanager warning
|
||
|
echo 'count=0' > /home/travis/.android/repositories.cfg # silence sdkmanager warning
|
||
|
# suppressing output of sdkmanager to keep log under 4MB (travis limit)
|
||
|
echo y | sdkmanager "tools" >/dev/null
|
||
|
echo y | sdkmanager "platform-tools" >/dev/null
|
||
|
echo y | sdkmanager "build-tools;26.0.3" >/dev/null
|
||
|
echo y | sdkmanager "platforms;android-26" >/dev/null
|
||
|
echo y | sdkmanager "extras;android;m2repository" >/dev/null
|
||
|
echo y | sdkmanager "extras;google;m2repository" >/dev/null
|
||
|
echo y | sdkmanager "patcher;v4" >/dev/null
|
||
|
sdkmanager --list
|
||
|
wget http://services.gradle.org/distributions/gradle-4.1-bin.zip
|
||
|
unzip -qq gradle-4.1-bin.zip -d $HOME/gradle-4.1
|
||
|
export GRADLE_HOME=$HOME/gradle-4.1
|
||
|
export PATH=$GRADLE_HOME/bin:$PATH
|
||
|
gradle -v
|
||
|
git clone --single-branch --branch stable https://github.com/flutter/flutter.git $HOME/flutter
|
||
|
export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
|
||
|
flutter doctor
|
||
|
|