Skip to content

Commit

Permalink
Enable kmp-missing-targets (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincianfarini authored Dec 31, 2024
1 parent a8eac65 commit 07451be
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,14 @@ jobs:
distribution: 'zulu'
java-version: 19

- run: ./gradlew ${{matrix.job}}
- run: ./gradlew ${{matrix.job}}

kmp-missing-targets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 19
- run: ./gradlew kmpMissingTargets
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.vanniktech.maven.publish.SonatypeHost

plugins {
alias(libs.plugins.dokka)
alias(libs.plugins.kmpmt)
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.publish)
}
Expand All @@ -10,6 +11,10 @@ kotlin {

explicitApi()

androidNativeArm32()
androidNativeArm64()
androidNativeX64()
androidNativeX86()
iosArm64()
iosSimulatorArm64()
iosX64()
Expand Down Expand Up @@ -51,4 +56,9 @@ tasks.withType<AbstractTestTask> {
mavenPublishing {
publishToMavenCentral(host = SonatypeHost.S01, automaticRelease = true)
signAllPublications()
}

kotlinMissingTargets {
ignore("js", because = "I need to set up js-joda.")
ignore("wasmJs", because = "I need to set up js-joda.")
}
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[versions]
dokka = "2.0.0"
kmpmt = "0.1.1"
kotlin = "2.1.0"
kotlinx-coroutines = "1.10.1"
kotlinx-datetime = "0.6.1"
Expand All @@ -12,6 +13,7 @@ kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-t
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }

[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
kmpmt = { id = "com.jakewharton.kmp-missing-targets", version.ref = "kmpmt" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
publish = { id = "com.vanniktech.maven.publish", version.ref = "publish" }

0 comments on commit 07451be

Please sign in to comment.