Skip to content
Closed
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
70 changes: 36 additions & 34 deletions sdks/community/kotlin/examples/chatapp/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ kotlin {
}
}

listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "shared"
isStatic = true
}
}
// iOS targets commented out to prevent Gradle sync issues
// listOf(
// iosX64(),
// iosArm64(),
// iosSimulatorArm64()
// ).forEach { iosTarget ->
// iosTarget.binaries.framework {
// baseName = "shared"
// isStatic = true
// }
// }

sourceSets {
val commonMain by getting {
Expand Down Expand Up @@ -143,30 +144,31 @@ kotlin {
}
}

// Get the existing specific iOS targets
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting

// Create an iosMain source set and link the others to it
val iosMain by creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}

// Also create iosTest
val iosX64Test by getting
val iosArm64Test by getting
val iosSimulatorArm64Test by getting

val iosTest by creating {
dependsOn(commonTest)
iosX64Test.dependsOn(this)
iosArm64Test.dependsOn(this)
iosSimulatorArm64Test.dependsOn(this)
}
// iOS source sets commented out to prevent Gradle sync issues
// // Get the existing specific iOS targets
// val iosX64Main by getting
// val iosArm64Main by getting
// val iosSimulatorArm64Main by getting
//
// // Create an iosMain source set and link the others to it
// val iosMain by creating {
// dependsOn(commonMain)
// iosX64Main.dependsOn(this)
// iosArm64Main.dependsOn(this)
// iosSimulatorArm64Main.dependsOn(this)
// }
//
// // Also create iosTest
// val iosX64Test by getting
// val iosArm64Test by getting
// val iosSimulatorArm64Test by getting
//
// val iosTest by creating {
// dependsOn(commonTest)
// iosX64Test.dependsOn(this)
// iosArm64Test.dependsOn(this)
// iosSimulatorArm64Test.dependsOn(this)
// }
}
}

Expand Down