Skip to content

Commit

Permalink
Update .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saulhdev committed Aug 3, 2024
1 parent 95bc77e commit 908f4c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,28 @@ variables:
KEYSTORE_PASSWORD: "android"
KEY_ALIAS: "androiddebugkey"
KEY_PASSWORD: "android"
ANDROID_BUILD_TOOLS: "33.0.2"
ANDROID_COMPILE_SDK: "33"
ANDROID_SDK_TOOLS: "9477386"

before_script:
- export ANDROID_HOME="${PWD}/android-sdk-root"
- install -d $ANDROID_HOME
- export GRADLE_OPTS="-Dorg.gradle.daemon=false"
- apt-get update -qy
- apt-get install -y openjdk-17-jdk
- export JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64"
- chmod +x gradlew
- wget --no-verbose --output-document=$ANDROID_HOME/cmdline-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_TOOLS}_latest.zip
- unzip -q -d "$ANDROID_HOME/cmdline-tools" "$ANDROID_HOME/cmdline-tools.zip"
- mv -T "$ANDROID_HOME/cmdline-tools/cmdline-tools" "$ANDROID_HOME/cmdline-tools/tools"
- export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/cmdline-tools/tools/bin
# use yes to accept all licenses
- yes | sdkmanager --licenses > /dev/null || true
- sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}"
- sdkmanager "platform-tools"
- sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}"


build:
stage: build
Expand Down

0 comments on commit 908f4c4

Please sign in to comment.