Skip to content

Commit a4671ed

Browse files
ychescale9jakubuhlarik
authored andcommitted
SDK build tools 35.0.0, command-line tools 16.0. (ReactiveCircus#408)
1 parent af19478 commit a4671ed

File tree

8 files changed

+35
-51
lines changed

8 files changed

+35
-51
lines changed

.github/workflows/main.yml

+12-22
Original file line numberDiff line numberDiff line change
@@ -18,42 +18,32 @@ jobs:
1818
timeout-minutes: 15
1919
strategy:
2020
matrix:
21-
os: [ubuntu-latest]
22-
api-level: [23, 29]
23-
target: [default, google_apis]
24-
arch: [x86]
25-
exclude:
26-
- target: google_apis
27-
api-level: 16
28-
- target: google_apis
29-
api-level: 23
30-
- target: google_apis
31-
api-level: 29
3221
include:
3322
- os: ubuntu-latest
34-
api-level: 24
35-
target: playstore
23+
api-level: 23
24+
target: default
3625
arch: x86
3726
- os: ubuntu-latest
38-
api-level: 30
39-
target: aosp_atd
27+
api-level: 24
28+
target: playstore
4029
arch: x86
41-
- os: macos-latest
30+
- os: macos-13
4231
api-level: 31
43-
target: google_apis
32+
target: default
4433
arch: x86_64
4534
- os: ubuntu-latest
4635
api-level: 34
4736
target: aosp_atd
4837
arch: x86_64
38+
- os: ubuntu-latest
39+
api-level: 35
40+
target: google_apis
41+
arch: x86_64
4942

5043
steps:
5144
- name: checkout
5245
uses: actions/checkout@v4
5346

54-
- name: validate gradle wrapper
55-
uses: gradle/wrapper-validation-action@v2
56-
5747
- name: build, test and lint
5848
run: |
5949
npm install
@@ -64,7 +54,7 @@ jobs:
6454
- uses: actions/setup-java@v4
6555
with:
6656
distribution: 'zulu'
67-
java-version: 21
57+
java-version: 23
6858

6959
- uses: actions/cache@v4
7060
id: avd-cache
@@ -75,7 +65,7 @@ jobs:
7565
~/.android/debug.keystore
7666
key: avd-${{ matrix.api-level }}-${{ matrix.os }}-${{ matrix.target }}
7767

78-
- uses: gradle/actions/setup-gradle@v3
68+
- uses: gradle/actions/setup-gradle@v4
7969

8070
- name: assemble tests
8171
working-directory: test-fixture

.github/workflows/manually.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ on:
99
api-level:
1010
description: 'API level of the platform and system image'
1111
required: true
12-
default: '30'
12+
default: '34'
1313
target:
1414
description: 'target of the system image - default, google_apis, google_apis_playstore, aosp_atd, google_atd, android-wear, android-wear-cn, android-tv or google-tv'
1515
required: true
1616
default: 'default'
1717
arch:
1818
description: 'CPU architecture of the system image - x86, x86_64 or arm64-v8a'
19-
default: 'x86'
19+
default: 'x86_64'
2020
emulator-options:
2121
description: 'command-line options used when launching the emulator'
2222
default: '-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
@@ -41,9 +41,6 @@ jobs:
4141
- name: checkout
4242
uses: actions/checkout@v4
4343

44-
- name: validate gradle wrapper
45-
uses: gradle/wrapper-validation-action@v2
46-
4744
- name: build, test and lint
4845
run: |
4946
npm install
@@ -54,11 +51,9 @@ jobs:
5451
- uses: actions/setup-java@v4
5552
with:
5653
distribution: 'zulu'
57-
java-version: 21
54+
java-version: 23
5855

59-
- uses: gradle/actions/setup-gradle@v3
60-
with:
61-
gradle-home-cache-cleanup: true
56+
- uses: gradle/actions/setup-gradle@v4
6257

6358
- name: enable KVM for linux runners
6459
if: runner.os == 'Linux'

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
122122
We can significantly reduce emulator startup time by setting up AVD snapshot caching:
123123
124-
1. add a `gradle/actions/setup-gradle@v3` step for caching Gradle, more details see [#229](https://github.com/ReactiveCircus/android-emulator-runner/issues/229)
124+
1. add a `gradle/actions/setup-gradle@v4` step for caching Gradle, more details see [#229](https://github.com/ReactiveCircus/android-emulator-runner/issues/229)
125125
2. add an `actions/cache@v4` step for caching the `avd`
126126
3. add a `reactivecircus/android-emulator-runner@v2` step to generate a clean snapshot - specify `emulator-options` without `no-snapshot`
127127
4. add another `reactivecircus/android-emulator-runner@v2` step to run your tests using existing AVD / snapshot - specify `emulator-options` with `no-snapshot-save`

lib/sdk-installer.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const exec = __importStar(require("@actions/exec"));
3838
const io = __importStar(require("@actions/io"));
3939
const tc = __importStar(require("@actions/tool-cache"));
4040
const fs = __importStar(require("fs"));
41-
const BUILD_TOOLS_VERSION = '34.0.0';
42-
// SDK command-line tools 11.0
43-
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-10406996_latest.zip';
44-
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-10406996_latest.zip';
41+
const BUILD_TOOLS_VERSION = '35.0.0';
42+
// SDK command-line tools 16.0
43+
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-12266719_latest.zip';
44+
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-12266719_latest.zip';
4545
/**
4646
* Installs & updates the Android SDK for the macOS platform, including SDK platform for the chosen API level, latest build tools, platform tools, Android Emulator,
4747
* and the system image for the chosen API level, CPU arch, and target.

src/sdk-installer.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import * as io from '@actions/io';
44
import * as tc from '@actions/tool-cache';
55
import * as fs from 'fs';
66

7-
const BUILD_TOOLS_VERSION = '34.0.0';
8-
// SDK command-line tools 11.0
9-
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-10406996_latest.zip';
10-
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-10406996_latest.zip';
7+
const BUILD_TOOLS_VERSION = '35.0.0';
8+
// SDK command-line tools 16.0
9+
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-12266719_latest.zip';
10+
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-12266719_latest.zip';
1111

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

test-fixture/app/build.gradle

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ apply plugin: 'kotlin-android'
44
android {
55
namespace = "com.example.testapp"
66

7-
compileSdkVersion 34
8-
buildToolsVersion "34.0.0"
7+
compileSdkVersion 35
8+
buildToolsVersion "35.0.0"
99

1010
defaultConfig {
1111
applicationId "com.example.testapp"
12-
minSdkVersion 15
13-
targetSdkVersion 34
12+
minSdkVersion 21
13+
targetSdkVersion 35
1414
versionCode 1
1515
versionName "1.0"
1616

@@ -30,8 +30,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
3030
}
3131

3232
dependencies {
33-
implementation fileTree(dir: 'libs', include: ['*.jar'])
34-
implementation 'androidx.appcompat:appcompat:1.6.1'
35-
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
36-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
33+
implementation 'androidx.appcompat:appcompat:1.7.0'
34+
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
35+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
3736
}

test-fixture/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.2.0'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21"
9+
classpath 'com.android.tools.build:gradle:8.7.0'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

test-fixture/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)