diff --git a/identity-appsupport/build.gradle.kts b/identity-appsupport/build.gradle.kts index d6547f769..7f4d6aeb6 100644 --- a/identity-appsupport/build.gradle.kts +++ b/identity-appsupport/build.gradle.kts @@ -47,3 +47,8 @@ kotlin { } } } + +// Workaround for gradle error whey to find :identity-appsupport:testClasses. +tasks.register("testClasses") { + dependsOn("jvmTestClasses") +} diff --git a/identity-mdoc/build.gradle.kts b/identity-mdoc/build.gradle.kts index 85994a5b6..eec1dc392 100644 --- a/identity-mdoc/build.gradle.kts +++ b/identity-mdoc/build.gradle.kts @@ -57,3 +57,8 @@ kotlin { } } } + +// Workaround for gradle error whey to find :identity-appsupport:testClasses. +tasks.register("testClasses") { + dependsOn("jvmTestClasses") +} diff --git a/identity/build.gradle.kts b/identity/build.gradle.kts index 42424d12f..7ee556634 100644 --- a/identity/build.gradle.kts +++ b/identity/build.gradle.kts @@ -99,3 +99,8 @@ tasks.withType().all { tasks["compileKotlinIosX64"].dependsOn("kspCommonMainKotlinMetadata") tasks["compileKotlinIosArm64"].dependsOn("kspCommonMainKotlinMetadata") tasks["compileKotlinIosSimulatorArm64"].dependsOn("kspCommonMainKotlinMetadata") + +// Workaround for gradle error whey to find :identity-appsupport:testClasses. +tasks.register("testClasses") { + dependsOn("jvmTestClasses") +} diff --git a/processor-annotations/build.gradle.kts b/processor-annotations/build.gradle.kts index 948b92d65..1a2bbc33b 100644 --- a/processor-annotations/build.gradle.kts +++ b/processor-annotations/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.konan.target.HostManager + plugins { kotlin("multiplatform") } @@ -29,3 +31,8 @@ java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } + +// Workaround for gradle error whey to find :identity-appsupport:testClasses. +tasks.register("testClasses") { + dependsOn("jvmTestClasses") +} diff --git a/samples/testapp/build.gradle.kts b/samples/testapp/build.gradle.kts index b08ee18b6..242265afa 100644 --- a/samples/testapp/build.gradle.kts +++ b/samples/testapp/build.gradle.kts @@ -1,5 +1,6 @@ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.konan.target.HostManager plugins { alias(libs.plugins.kotlinMultiplatform) @@ -25,18 +26,20 @@ kotlin { jvmTarget.set(JvmTarget.JVM_17) } } - - listOf( - iosX64(), - iosArm64(), - iosSimulatorArm64() - ).forEach { iosTarget -> - iosTarget.binaries.framework { - baseName = "TestApp" - isStatic = true + + if (HostManager.hostIsMac) { + listOf( + iosX64(), + iosArm64(), + iosSimulatorArm64() + ).forEach { iosTarget -> + iosTarget.binaries.framework { + baseName = "TestApp" + isStatic = true + } } } - + sourceSets { androidMain.dependencies {