Skip to content

Commit 660ac26

Browse files
Update SDK command-line tools to version 22.0 (#483)
1 parent cad3216 commit 660ac26

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

lib/sdk-installer.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ const io = __importStar(require("@actions/io"));
4040
const tc = __importStar(require("@actions/tool-cache"));
4141
const fs = __importStar(require("fs"));
4242
const BUILD_TOOLS_VERSION = '37.0.0';
43-
// SDK command-line tools 20.0
44-
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-14742923_latest.zip';
45-
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-14742923_latest.zip';
43+
// SDK command-line tools 22.0
44+
const CMDLINE_TOOLS_VERSION = '15859902';
45+
const CMDLINE_TOOLS_URL_MAC = `https://dl.google.com/android/repository/commandlinetools-mac_x86_64-${CMDLINE_TOOLS_VERSION}_latest.zip`;
46+
const CMDLINE_TOOLS_URL_LINUX = `https://dl.google.com/android/repository/commandlinetools-linux-${CMDLINE_TOOLS_VERSION}_latest.zip`;
4647
/**
4748
* Installs & updates the Android SDK for the macOS platform, including SDK platform for the chosen API level, latest build tools, platform tools, Android Emulator,
4849
* and the system image for the chosen API level, CPU arch, and target.

src/sdk-installer.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import * as tc from '@actions/tool-cache';
55
import * as fs from 'fs';
66

77
const BUILD_TOOLS_VERSION = '37.0.0';
8-
// SDK command-line tools 20.0
9-
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-14742923_latest.zip';
10-
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-14742923_latest.zip';
8+
// SDK command-line tools 22.0
9+
const CMDLINE_TOOLS_VERSION = '15859902';
10+
const CMDLINE_TOOLS_URL_MAC = `https://dl.google.com/android/repository/commandlinetools-mac_x86_64-${CMDLINE_TOOLS_VERSION}_latest.zip`;
11+
const CMDLINE_TOOLS_URL_LINUX = `https://dl.google.com/android/repository/commandlinetools-linux-${CMDLINE_TOOLS_VERSION}_latest.zip`;
1112

1213
/**
1314
* Installs & updates the Android SDK for the macOS platform, including SDK platform for the chosen API level, latest build tools, platform tools, Android Emulator,

0 commit comments

Comments
 (0)