Skip to content

Commit

Permalink
feat(#76-support-auth-header): delete moko network at sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
y9Kap committed Oct 23, 2023
1 parent 56aa091 commit 6a0a4e8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 1,954 deletions.
36 changes: 0 additions & 36 deletions api/api-ktor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import org.gradle.jvm.tasks.Jar

plugins {
id("network-generator-convention")
id("kmp-library-convention")
}

Expand All @@ -25,36 +22,3 @@ kotlin.sourceSets.all {
optIn("app.meetacy.sdk.types.annotation.UnstableApi")
}
}

mokoNetwork {
spec("meetacyApi") {
inputSpec = file("meetacy-api.yml")

configureTask {
val macosTasks = if (System.getProperty("os.name") == "Mac OS X") {
listOf(
tasks.named<Jar>("iosX64SourcesJar"),
tasks.named<Jar>("iosArm64SourcesJar"),
tasks.named<Jar>("iosSimulatorArm64SourcesJar")
)
} else {
emptyList()
}
val jarTasks = with(tasks) {
listOf(
sourcesJar,
jsSourcesJar,
jvmSourcesJar
)
}

val outputDir = this.outputDir.get()
(jarTasks + macosTasks).forEach { task ->
task {
dependsOn(this@configureTask)
inputs.dir(outputDir)
}
}
}
}
}
Loading

0 comments on commit 6a0a4e8

Please sign in to comment.