Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] update android sdk version #37445

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/full-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-android:108
image: ghcr.io/project-chip/chip-build-android:110
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoketest-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-android:108
image: ghcr.io/project-chip/chip-build-android:110
volumes:
- "/:/runner-root-volume"
- "/tmp/log_output:/tmp/test_logs"
Expand Down
2 changes: 1 addition & 1 deletion integrations/cloudbuild/smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ steps:
- name: pwenv
path: /pwenv

- name: "ghcr.io/project-chip/chip-build-vscode:108"
- name: "ghcr.io/project-chip/chip-build-vscode:110"
id: Android
env:
- PW_ENVIRONMENT_ROOT=/pwenv
Expand Down
6 changes: 3 additions & 3 deletions scripts/build/builders/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def validate_build_environment(self):
os.environ["ANDROID_HOME"], "tools", "bin", "sdkmanager"
)

# New SDK manager at cmdline-tools/latest/bin/
# New SDK manager at cmdline-tools/10.0/bin/
new_sdk_manager = os.path.join(
os.environ["ANDROID_HOME"], "cmdline-tools", "latest", "bin", "sdkmanager"
os.environ["ANDROID_HOME"], "cmdline-tools", "10.0", "bin", "sdkmanager"
)
if not (
os.path.isfile(sdk_manager) and os.access(sdk_manager, os.X_OK)
Expand Down Expand Up @@ -413,7 +413,7 @@ def generate(self):
new_sdk_manager = os.path.join(
os.environ["ANDROID_HOME"],
"cmdline-tools",
"latest",
"10.0",
"bin",
"sdkmanager",
)
Expand Down
4 changes: 2 additions & 2 deletions src/app/server/java/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ android_library("java") {
javac_flags = [ "-Xlint:deprecation" ]

# TODO: add classpath support (we likely need to add something like
# ..../platforms/android-26/android.jar to access BLE items)
# ..../platforms/android-30/android.jar to access BLE items)
}

java_prebuilt("android") {
jar_path = "${android_sdk_root}/platforms/android-26/android.jar"
jar_path = "${android_sdk_root}/platforms/android-30/android.jar"
}
8 changes: 4 additions & 4 deletions src/controller/java/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ android_library("java") {
]

# TODO: add classpath support (we likely need to add something like
# ..../platforms/android-26/android.jar to access BLE items)
# ..../platforms/android-30/android.jar to access BLE items)
}

if (chip_link_tests) {
Expand Down Expand Up @@ -711,7 +711,7 @@ if (chip_link_tests) {
javac_flags = [ "-Xlint:deprecation" ]

# TODO: add classpath support (we likely need to add something like
# ..../platforms/android-26/android.jar to access BLE items)
# ..../platforms/android-30/android.jar to access BLE items)
}

android_library("tests") {
Expand Down Expand Up @@ -746,12 +746,12 @@ if (chip_link_tests) {
javac_flags = [ "-Xlint:deprecation" ]

# TODO: add classpath support (we likely need to add something like
# ..../platforms/android-26/android.jar to access BLE items)
# ..../platforms/android-30/android.jar to access BLE items)
}
}

if (!matter_enable_java_compilation) {
java_prebuilt("android") {
jar_path = "${android_sdk_root}/platforms/android-26/android.jar"
jar_path = "${android_sdk_root}/platforms/android-30/android.jar"
}
}
4 changes: 2 additions & 2 deletions src/messaging/tests/java/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ android_library("java") {
javac_flags = [ "-Xlint:deprecation" ]

# TODO: add classpath support (we likely need to add something like
# ..../platforms/android-26/android.jar to access BLE items)
# ..../platforms/android-30/android.jar to access BLE items)
}

if (!matter_enable_java_compilation) {
java_prebuilt("android") {
jar_path = "${android_sdk_root}/platforms/android-26/android.jar"
jar_path = "${android_sdk_root}/platforms/android-30/android.jar"
}
}
2 changes: 1 addition & 1 deletion src/platform/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@ android_library("java") {
}

java_prebuilt("android_sdk") {
jar_path = "${android_sdk_root}/platforms/android-26/android.jar"
jar_path = "${android_sdk_root}/platforms/android-30/android.jar"
}
Loading