Skip to content

Commit 2022e05

Browse files
wartingViliusSutkus89
authored andcommitted
Add support for versions 12, 13, and 16
1 parent f34c17e commit 2022e05

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
- windows-2022
6868
- windows-2019
6969
cmdline-tools-version:
70+
- 12266719
71+
- 11479570
72+
- 11076708
7073
- 10406996
7174
- 9862592
7275
- 9477386

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Additional packages can be installed at a later time by calling sdkmanager manua
6161
Command line tools are versioned using two variables - short and long.
6262
Long one is the build number, used in the zip URL, short one is the human friendly version name.
6363

64-
By default, setup-android installs version 10406996 (short version 11.0).
64+
By default, setup-android installs version 12266719 (short version 11.0).
6565

6666
To install a different version, call setup-android with desired long version as the input parameter `cmdline-tools-version`:
6767
```yaml
@@ -73,12 +73,15 @@ To install a different version, call setup-android with desired long version as
7373

7474
#### Version table
7575
| Short version | Long version |
76-
| --- | --- |
77-
| 11.0 | 10406996 |
78-
| 10.0 | 9862592 |
79-
| 9.0 | 9477386 |
80-
| 8.0 | 9123335 |
81-
| 7.0 | 8512546 |
76+
|---------------| --- |
77+
| 16.0 | 12266719 |
78+
| 13.0 | 11479570 |
79+
| 12.0 | 11076708 |
80+
| 11.0 | 10406996 |
81+
| 10.0 | 9862592 |
82+
| 9.0 | 9477386 |
83+
| 8.0 | 9123335 |
84+
| 7.0 | 8512546 |
8285

8386
Current cmdline tools version can be found at https://developer.android.com/studio#command-line-tools-only
8487

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
cmdline-tools-version:
77
description: 'cmdline-tools-version. See https://developer.android.com/studio#command-line-tools-only'
88
required: false
9-
default: '10406996'
9+
default: '12266719'
1010

1111
accept-android-sdk-licenses:
1212
description: 'Android SDK is usable only after the license agreement. Should setup-android agree to the licences, provided by "sdkmanager --licenses"'

dist/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28824,6 +28824,12 @@ const fs = __importStar(__nccwpck_require__(7147));
2882428824
const os = __importStar(__nccwpck_require__(2037));
2882528825
function getVersionShort(versionLong) {
2882628826
switch (versionLong) {
28827+
case '12266719':
28828+
return '16.0';
28829+
case '11479570':
28830+
return '13.0';
28831+
case '11076708':
28832+
return '12.0';
2882728833
case '10406996':
2882828834
return '11.0';
2882928835
case '9862592':

src/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import * as os from 'os'
77

88
function getVersionShort(versionLong: string): string {
99
switch (versionLong) {
10+
case '12266719':
11+
return '16.0'
12+
case '11479570':
13+
return '13.0'
14+
case '11076708':
15+
return '12.0'
1016
case '10406996':
1117
return '11.0'
1218
case '9862592':

0 commit comments

Comments
 (0)