Add cmdline-tools version 20.0 ( 14742923 )

This commit is contained in:
Vilius Sutkus '89
2026-03-25 00:11:16 +02:00
parent 715acc5ce1
commit 200c644fca
5 changed files with 8 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ jobs:
- windows-2025 - windows-2025
- windows-2022 - windows-2022
cmdline-tools-version: cmdline-tools-version:
- 14742923
- 12266719 - 12266719
- 11479570 - 11479570
- 11076708 - 11076708

View File

@@ -61,7 +61,7 @@ Additional packages can be installed at a later time by calling sdkmanager manua
Command line tools are versioned using two variables - short and long. Command line tools are versioned using two variables - short and long.
Long one is the build number, used in the zip URL, short one is the human friendly version name. Long one is the build number, used in the zip URL, short one is the human friendly version name.
By default, setup-android installs version 12266719 (short version 16.0). By default, setup-android installs version 14742923 (short version 20.0).
To install a different version, call setup-android with desired long version as the input parameter `cmdline-tools-version`: To install a different version, call setup-android with desired long version as the input parameter `cmdline-tools-version`:
```yaml ```yaml
@@ -74,6 +74,7 @@ To install a different version, call setup-android with desired long version as
#### Version table #### Version table
| Short version | Long version | | Short version | Long version |
|---------------| --- | |---------------| --- |
| 20.0 | 14742923 |
| 16.0 | 12266719 | | 16.0 | 12266719 |
| 13.0 | 11479570 | | 13.0 | 11479570 |
| 12.0 | 11076708 | | 12.0 | 11076708 |

View File

@@ -6,7 +6,7 @@ inputs:
cmdline-tools-version: cmdline-tools-version:
description: 'cmdline-tools-version. See https://developer.android.com/studio#command-line-tools-only' description: 'cmdline-tools-version. See https://developer.android.com/studio#command-line-tools-only'
required: false required: false
default: '12266719' default: '14742923'
accept-android-sdk-licenses: accept-android-sdk-licenses:
description: 'Android SDK is usable only after the license agreement. Should setup-android agree to the licences, provided by "sdkmanager --licenses"' description: 'Android SDK is usable only after the license agreement. Should setup-android agree to the licences, provided by "sdkmanager --licenses"'

2
dist/index.js vendored
View File

@@ -28243,6 +28243,8 @@ const fs = __importStar(__nccwpck_require__(9896));
const os = __importStar(__nccwpck_require__(857)); const os = __importStar(__nccwpck_require__(857));
function getVersionShort(versionLong) { function getVersionShort(versionLong) {
switch (versionLong) { switch (versionLong) {
case '14742923':
return '20.0';
case '12266719': case '12266719':
return '16.0'; return '16.0';
case '11479570': case '11479570':

View File

@@ -7,6 +7,8 @@ import * as os from 'os'
function getVersionShort(versionLong: string): string { function getVersionShort(versionLong: string): string {
switch (versionLong) { switch (versionLong) {
case '14742923':
return '20.0'
case '12266719': case '12266719':
return '16.0' return '16.0'
case '11479570': case '11479570':