Commit e9a73e10 authored by jens stein's avatar jens stein

Use sdk manager to accept licenses

Since inserting the license keys directly relies on factors outside of
the build environment and so will be more likely to fail without a clear
reason.
parent 7d9a8675
Pipeline #61990597 passed with stages
in 24 minutes and 23 seconds
......@@ -10,7 +10,7 @@ variables:
curl -L -o android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
unzip -q android-sdk.zip -d android-sdk-linux
mkdir android-sdk-linux/licenses
printf "8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e" > android-sdk-linux/licenses/android-sdk-license
yes | android-sdk-linux/tools/bin/sdkmanager --licenses || true
android-sdk-linux/tools/bin/sdkmanager --verbose "tools" "build-tools;$ANDROID_BUILD_TOOLS" "platform-tools" "platforms;android-$ANDROID_COMPILE_SDK" "extras;android;m2repository" "extras;google;m2repository"
export ANDROID_HOME=$PWD/android-sdk-linux
export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/:$PWD/android-sdk-linux/build-tools/$ANDROID_BUILD_TOOLS/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment