Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheArchitect123 committed Jan 28, 2025
1 parent f116224 commit 00ab91e
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ kotlin {
}
}

listOf(
iosArm64(),
//iosSimulatorArm64() // Uncomment if needed
).forEach {
it.binaries.framework {
baseName = "shared"
isStatic = true
}
}
// listOf(
// iosArm64(),
// //iosSimulatorArm64() // Uncomment if needed
// ).forEach {
// it.binaries.framework {
// baseName = "shared"
// isStatic = true
// }
// }

sourceSets {
val commonMain by getting {
Expand All @@ -64,16 +64,16 @@ kotlin {
}
}

val iosArm64Main by getting
// val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(commonMain)
iosArm64Main.dependsOn(this)
// iosSimulatorArm64Main.dependsOn(this)
dependencies {
implementation(libs.ktor.client.darwin)
}
}
// val iosArm64Main by getting
// // val iosSimulatorArm64Main by getting
// val iosMain by creating {
// dependsOn(commonMain)
// iosArm64Main.dependsOn(this)
// // iosSimulatorArm64Main.dependsOn(this)
// dependencies {
// implementation(libs.ktor.client.darwin)
// }
// }
}
}

Expand Down Expand Up @@ -133,11 +133,19 @@ tasks.register("buildAllPlatformsAndPublish") {
dependsOn(
"clean",
"assemble",
":shared:linkReleaseFrameworkIosArm64",
//":shared:linkReleaseFrameworkIosArm64",
":shared:publishToMavenCentral"
)
}

dependencies {
with("de.jensklingenberg.ktorfit:ktorfit-ksp:2.0.1") {
add("kspAndroid", this)
//add("kspIosArm64", this)
//add("kspIosSimulatorArm64", this)
//add("kspIosX64", this)
}
}

ksp {
arg("moduleName", project.name)
Expand Down

0 comments on commit 00ab91e

Please sign in to comment.