diff options
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 569e119..b42ec79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,13 @@ language: android jdk: -- openjdk8 - openjdk11 env: global: - ANDROID_API=30 - EMULATOR_API=19 - ANDROID_BUILD_TOOLS=30.0.2 + - ANDROID_COMMAND_LINE_TOOLS=7583922 + - ANDROID_HOME=~/android-sdk git: depth: 500 android: @@ -43,8 +44,13 @@ cache: - "$HOME/.gradle/wrapper/" - "$HOME/.android/build-cache" before_install: -- jdk_switcher use openjdk11 -- yes | sdkmanager "platforms;android-$ANDROID_API" +# Get Java 11 compatible tools: https://stackoverflow.com/a/68534598/4407321 +- touch $HOME/.android/repositories.cfg +- wget "https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_COMMAND_LINE_TOOLS}_latest.zip" -O commandlinetools.zip +- unzip commandlinetools.zip -d $ANDROID_HOME/ +- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${ANDROID_API}" --sdk_root=$ANDROID_HOME +- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" --sdk_root=$ANDROID_HOME +# Get KAU content - openssl aes-256-cbc -K $encrypted_12e8842891a3_key -iv $encrypted_12e8842891a3_iv -in files/kau.tar.enc -out kau.tar -d - tar xvf kau.tar |