From 899d70efad39c17b8a26d5c7ca32ceac944d05d1 Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Sun, 21 May 2023 12:44:51 +0200 Subject: [PATCH] Update commandlinetools version to 9.0 (latest) https://developer.android.com/studio#command-line-tools-only --- README.md | 4 ++-- dist/index.js | 4 ++-- src/main.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c5ab86f..dc50120 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@ ![Build & Test](https://github.com/android-actions/setup-android/workflows/Build%20&%20Test/badge.svg) This action sets up the Android SDK tools by: - - Downloading the SDK commandline tools, if the current version (7.0) is not found in either `$ANDROID_SDK_ROOT` or `$HOME/.android/sdk`. + - Downloading the SDK commandline tools, if the current version (9.0) is not found in either `$ANDROID_SDK_ROOT` or `$HOME/.android/sdk`. - Accepting the SDK licenses. - Installing `tools` and `platform-tools`. - - Adding `platform-tools` (contains adb) and `cmdline-tools/7.0/bin` (contains sdkmanager) to `$PATH`. + - Adding `platform-tools` (contains adb) and `cmdline-tools/9.0/bin` (contains sdkmanager) to `$PATH`. - Setting up problem [matchers](/matchers.json). On Windows 2016 runners, this action also checks if `$ANDROID_SDK_ROOT` path contains spaces. diff --git a/dist/index.js b/dist/index.js index f807fc9..0c16e09 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9696,8 +9696,8 @@ const path = __importStar(__nccwpck_require__(1017)); const fs = __importStar(__nccwpck_require__(7147)); const fse = __importStar(__nccwpck_require__(5630)); const os = __importStar(__nccwpck_require__(2037)); -const CMDLINE_TOOLS_VERSION = '7.0'; -const COMMANDLINE_TOOLS_VERSION = '8512546'; +const CMDLINE_TOOLS_VERSION = '9.0'; +const COMMANDLINE_TOOLS_VERSION = '9477386'; const COMMANDLINE_TOOLS_WIN_URL = `https://dl.google.com/android/repository/commandlinetools-win-${COMMANDLINE_TOOLS_VERSION}_latest.zip`; const COMMANDLINE_TOOLS_MAC_URL = `https://dl.google.com/android/repository/commandlinetools-mac-${COMMANDLINE_TOOLS_VERSION}_latest.zip`; const COMMANDLINE_TOOLS_LIN_URL = `https://dl.google.com/android/repository/commandlinetools-linux-${COMMANDLINE_TOOLS_VERSION}_latest.zip`; diff --git a/src/main.ts b/src/main.ts index 697bef3..073529a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,8 +6,8 @@ import * as fs from 'fs' import * as fse from 'fs-extra' import * as os from 'os' -const CMDLINE_TOOLS_VERSION = '7.0' -const COMMANDLINE_TOOLS_VERSION = '8512546' +const CMDLINE_TOOLS_VERSION = '9.0' +const COMMANDLINE_TOOLS_VERSION = '9477386' const COMMANDLINE_TOOLS_WIN_URL = `https://dl.google.com/android/repository/commandlinetools-win-${COMMANDLINE_TOOLS_VERSION}_latest.zip` const COMMANDLINE_TOOLS_MAC_URL = `https://dl.google.com/android/repository/commandlinetools-mac-${COMMANDLINE_TOOLS_VERSION}_latest.zip`