Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust gradle files for modules preventing Make Project from working. #691

Closed
Closed
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions identity-appsupport/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ kotlin {
}
}
}

// Workaround for gradle error whey to find :identity-appsupport:testClasses.
tasks.register("testClasses") {
dependsOn("jvmTestClasses")
}
5 changes: 5 additions & 0 deletions identity-mdoc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ kotlin {
}
}
}

// Workaround for gradle error whey to find :identity-appsupport:testClasses.
tasks.register("testClasses") {
dependsOn("jvmTestClasses")
}
5 changes: 5 additions & 0 deletions identity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,8 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().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")
}
7 changes: 7 additions & 0 deletions processor-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.konan.target.HostManager

plugins {
kotlin("multiplatform")
}
Expand Down Expand Up @@ -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")
}
23 changes: 13 additions & 10 deletions samples/testapp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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 {
Expand Down