Skip to content

Commit

Permalink
Merge pull request #78 from meetacy/dev
Browse files Browse the repository at this point in the history
Release 0.0.59
  • Loading branch information
y9san9 authored Oct 24, 2023
2 parents 572afa2 + bbaf74c commit ad03f19
Show file tree
Hide file tree
Showing 68 changed files with 1,006 additions and 2,168 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 ad03f19

Please sign in to comment.