mirror of
https://github.com/android-actions/setup-android.git
synced 2026-09-24 13:48:36 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be39fa8340 | ||
|
|
1f87d5b2a1 | ||
|
|
138b5fb1cf | ||
|
|
5ed526629f | ||
|
|
ca5c9e054e | ||
|
|
927cbf9b1d | ||
|
|
76ffd60ae0 |
@@ -9,7 +9,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Setup node 24
|
||||
uses: actions/setup-node@v6
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
format-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Setup node 24
|
||||
uses: actions/setup-node@v6
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Setup node 24
|
||||
uses: actions/setup-node@v6
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
- 9123335
|
||||
- 8512546
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Setup node 24
|
||||
uses: actions/setup-node@v6
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Setup node 24
|
||||
uses: actions/setup-node@v6
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
|
||||
@@ -20,11 +20,11 @@ jobs:
|
||||
if: ${{ false }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
repository: daveol/SampleApplication
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
path: ./build/
|
||||
|
||||
|
||||
@@ -23,10 +23,10 @@ See [action.yml](action.yml)
|
||||
## Basic
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
uses: actions/setup-java@v6
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
@@ -85,7 +85,7 @@ and `uiautomatorviewer` were dropped without one.
|
||||
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.
|
||||
|
||||
By default, setup-android installs version 14742923 (short version 20.0).
|
||||
By default, setup-android installs version 15859902 (short version 22.0).
|
||||
|
||||
To install a different version, call setup-android with desired long version as the input parameter `cmdline-tools-version`:
|
||||
```yaml
|
||||
@@ -98,6 +98,7 @@ To install a different version, call setup-android with desired long version as
|
||||
#### Version table
|
||||
| Short version | Long version |
|
||||
|---------------| --- |
|
||||
| 22.0 | 15859902 |
|
||||
| 20.0 | 14742923 |
|
||||
| 16.0 | 12266719 |
|
||||
| 13.0 | 11479570 |
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ inputs:
|
||||
cmdline-tools-version:
|
||||
description: 'cmdline-tools-version. See https://developer.android.com/studio#command-line-tools-only'
|
||||
required: false
|
||||
default: '14742923'
|
||||
default: '15859902'
|
||||
|
||||
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"'
|
||||
|
||||
Vendored
+636
-188
File diff suppressed because it is too large
Load Diff
Generated
+3310
-2725
File diff suppressed because it is too large
Load Diff
+14
-14
@@ -25,24 +25,24 @@
|
||||
"author": "daveol",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@actions/core": "^3.0.0",
|
||||
"@actions/core": "^3.0.1",
|
||||
"@actions/tool-cache": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^30.0.0",
|
||||
"@types/node": "^24.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
||||
"@typescript-eslint/parser": "^8.57.2",
|
||||
"esbuild": "^0.28.0",
|
||||
"eslint": "^10.1.0",
|
||||
"eslint-plugin-check-file": "^3.3.1",
|
||||
"eslint-plugin-jest": "^29.15.1",
|
||||
"globals": "^17.4.0",
|
||||
"jest": "^30.3.0",
|
||||
"@types/node": "^24.13.5",
|
||||
"@typescript-eslint/eslint-plugin": "^8.70.0",
|
||||
"@typescript-eslint/parser": "^8.70.0",
|
||||
"esbuild": "^0.28.2",
|
||||
"eslint": "^10.10.0",
|
||||
"eslint-plugin-check-file": "^3.3.2",
|
||||
"eslint-plugin-jest": "^29.16.6",
|
||||
"globals": "^17.12.0",
|
||||
"jest": "^30.5.1",
|
||||
"jest-circus": "^30.3.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"prettier": "^3.3.2",
|
||||
"ts-jest": "^29.1.5",
|
||||
"typescript": "^5.9.3"
|
||||
"js-yaml": "^5.4.2",
|
||||
"prettier": "^3.9.7",
|
||||
"ts-jest": "^29.4.12",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
+8
-1
@@ -7,6 +7,8 @@ import * as os from 'os'
|
||||
|
||||
function getVersionShort(versionLong: string): string {
|
||||
switch (versionLong) {
|
||||
case '15859902':
|
||||
return '22.0'
|
||||
case '14742923':
|
||||
return '20.0'
|
||||
case '12266719':
|
||||
@@ -41,6 +43,7 @@ const VERSION_SHORT = getVersionShort(VERSION_LONG)
|
||||
|
||||
const COMMANDLINE_TOOLS_WIN_URL = `https://dl.google.com/android/repository/commandlinetools-win-${VERSION_LONG}_latest.zip`
|
||||
const COMMANDLINE_TOOLS_MAC_URL = `https://dl.google.com/android/repository/commandlinetools-mac-${VERSION_LONG}_latest.zip`
|
||||
const COMMANDLINE_TOOLS_MAC_ARM64_URL = `https://dl.google.com/android/repository/commandlinetools-mac_arm64-${VERSION_LONG}_latest.zip`
|
||||
const COMMANDLINE_TOOLS_LIN_URL = `https://dl.google.com/android/repository/commandlinetools-linux-${VERSION_LONG}_latest.zip`
|
||||
|
||||
const ANDROID_HOME_SDK_DIR = path.join(os.homedir(), '.android', 'sdk')
|
||||
@@ -105,7 +108,11 @@ async function installSdkManager(): Promise<string> {
|
||||
if (process.platform === 'linux') {
|
||||
cmdlineToolsURL = COMMANDLINE_TOOLS_LIN_URL
|
||||
} else if (process.platform === 'darwin') {
|
||||
cmdlineToolsURL = COMMANDLINE_TOOLS_MAC_URL
|
||||
if (Number(VERSION_LONG) >= 15859902) {
|
||||
cmdlineToolsURL = COMMANDLINE_TOOLS_MAC_ARM64_URL
|
||||
} else {
|
||||
cmdlineToolsURL = COMMANDLINE_TOOLS_MAC_URL
|
||||
}
|
||||
} else if (process.platform === 'win32') {
|
||||
cmdlineToolsURL = COMMANDLINE_TOOLS_WIN_URL
|
||||
} else {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"lib": [
|
||||
"ES2024"
|
||||
],
|
||||
"types": ["node", "jest"],
|
||||
"outDir": "./lib",
|
||||
"rootDir": "./src",
|
||||
"strict": true,
|
||||
|
||||
Reference in New Issue
Block a user