diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f87135f..cbb52a1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -49,4 +49,14 @@ jobs: distribution: 'zulu' java-version: 19 - - run: ./gradlew ${{matrix.job}} \ No newline at end of file + - run: ./gradlew ${{matrix.job}} + + kmp-missing-targets: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4.2.2 + with: + distribution: 'zulu' + java-version: 19 + - run: ./gradlew kmpMissingTargets diff --git a/build.gradle.kts b/build.gradle.kts index 25d5ca3..78c0365 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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) } @@ -10,6 +11,10 @@ kotlin { explicitApi() + androidNativeArm32() + androidNativeArm64() + androidNativeX64() + androidNativeX86() iosArm64() iosSimulatorArm64() iosX64() @@ -51,4 +56,9 @@ tasks.withType { 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.") } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index cb75c93..1cbea8d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" @@ -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" } \ No newline at end of file