ci: use the Android API 37.0 SDK package layout

This commit is contained in:
InsanusMokrassar committed 2026-11-02 03:12:32 +06:00
1 parent 9fc0fed48e
commit 6b287bb318
5 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
with:
packages: platform-tools
- name: Install the declared Android SDK
run: sdkmanager "platforms;android-37" "build-tools;37.0.0"
run: sdkmanager "platforms;android-37.0" "build-tools;37.0.0"
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.cache/JetBrains/Kotlin
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
with:
packages: platform-tools
- name: Install the declared Android SDK
run: sdkmanager "platforms;android-37" "build-tools;37.0.0"
run: sdkmanager "platforms;android-37.0" "build-tools;37.0.0"
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.cache/JetBrains/Kotlin
+2
View File
@@ -4,6 +4,8 @@
- JDK 17
- Android SDK platform 37 and build tools 37.0.0
(`sdkmanager` package IDs: `platforms;android-37.0` and `build-tools;37.0.0`;
the library's `compileSdk` remains 37)
- Git
- Bash and Python 3 for the committed compatibility verifiers
+1 -2
View File
@@ -232,11 +232,10 @@ capabilities or an explicitly reviewed compatibility implementation is added.
that artifact and deploys it to `kdocs`; project/plugin code never runs with a
write credential.
- All workflow actions are pinned to resolved commit SHAs.
- Remote CI execution is intentionally unverified until the branch is pushed.
- Hosted CI status is reported on [draft PR #136](https://github.com/InsanusMokrassar/KSLog/pull/136); the local evidence above does not imply a hosted pass. SDK setup explicitly requests `platforms;android-37.0` (API 37) and excludes the removed legacy `tools` package.
## Remote-only checks not performed
- GitHub Actions on an actual hosted runner.
- Inmo Nexus upload.
- Maven Central bundle upload/validation/release.
- GitHub release creation.
+4 -2
View File
@@ -114,8 +114,10 @@ private fun runDokka(
addAll(analysisClasspaths.jvm)
val sdkRoot = System.getenv("ANDROID_HOME") ?: System.getenv("ANDROID_SDK_ROOT")
if (sdkRoot != null) {
val androidJar = Path.of(sdkRoot).resolve("platforms/android-37/android.jar")
if (Files.isRegularFile(androidJar)) add(androidJar.pathString)
val androidJar = listOf("android-37.0", "android-37")
.map { Path.of(sdkRoot).resolve("platforms/$it/android.jar") }
.firstOrNull { Files.isRegularFile(it) }
if (androidJar != null) add(androidJar.pathString)
}
}