Commit 0ea23ea7 authored by genofire's avatar genofire Committed by Andreas Schildbach
Browse files

.gitlab-ci.yml: Dynamic SDK detection.

parent 96c13761
image: openjdk:8-jdk
variables:
ANDROID_COMPILE_SDK: "29"
ANDROID_BUILD_TOOLS: "29.0.1"
ANDROID_SDK_TOOLS: "4333796"
before_script:
- export ANDROID_COMPILE_SDK=`sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' app/build.gradle`
- export ANDROID_BUILD_TOOLS=`sed -n 's,.*buildToolsVersion\s*"\([0-9][0-9.]*\)".*,\1,p' app/build.gradle`
- apt-get --quiet update --yes
- apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip
......
Supports Markdown
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