Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Sources/SkipUnit/Skip/skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,19 @@ settings:
- 'version("jvm", "17")'
- 'version("android-sdk-min", "28")'
- 'version("android-sdk-compile", "37")'
# the full compile SDK platform version, including the minor API level (android-37.1);
# android-sdk-compile stays an integer so that integer-only consumers (like targetSdk and
# existing app build.gradle.kts files) keep working. The minor level is only applied when
# the major level matches android-sdk-compile, so overriding just android-sdk-compile
# (e.g., to 38) doesn't select a nonexistent android-38.1. The alias can't be named
# "android-sdk-compile-platform" because a version catalog alias can't also be the prefix
# of another alias (libs.versions.android.sdk.compile would lose its get()).
- 'version("android-sdk-compilePlatform", "37.1")'

# keep android-gradle-plugin and kotlin versions in sync according to compatibility table at
# https://developer.android.com/build/kotlin-support

- 'version("android-gradle-plugin", "9.2.0")'
- 'version("android-gradle-plugin", "9.3.3")'
- 'plugin("android-library", "com.android.library").versionRef("android-gradle-plugin")'
- 'plugin("android-application", "com.android.application").versionRef("android-gradle-plugin")'

Expand Down Expand Up @@ -131,6 +139,8 @@ build:
- block: 'android'
contents:
- 'compileSdk = libs.versions.android.sdk.compile.get().toInt()'
# must follow compileSdk, because setting compileSdk resets compileSdkMinor
- 'libs.versions.android.sdk.compilePlatform.get().split(".").let { if (it.size > 1 && it[0].toInt() == compileSdk) compileSdkMinor = it[1].toInt() }'
- block: 'defaultConfig'
contents:
- 'minSdk = libs.versions.android.sdk.min.get().toInt()'
Expand Down
Loading