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

Add watchos target #621

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ plugins {
id("io.gitlab.arturbosch.detekt") version "1.21.0"
}

// https://issuetracker.google.com/issues/240445963
buildscript {
dependencies {
classpath("org.apache.commons:commons-compress:1.21")
Expand Down
44 changes: 42 additions & 2 deletions clients/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ kotlin {
config()
}

watchosArm32 {
config()
}
watchosArm64 {
config()
}
watchosSimulatorArm64 {
config()
}

js(IR) {
browser()
}
Expand Down Expand Up @@ -70,21 +80,51 @@ kotlin {
}
}

val iosArm64Main by getting {
val darwinMain by creating {
dependsOn(commonMain.get())
dependencies {
implementation("io.ktor:ktor-client-darwin:$ktor")
implementation("app.cash.sqldelight:native-driver:$sqlDelight")
}
}
val darwinTest by creating {
dependsOn(commonTest.get())
}

val iosArm64Main by getting {
dependsOn(darwinMain)
}
val iosSimulatorArm64Main by getting {
dependsOn(iosArm64Main)
}

val iosArm64Test by getting
val iosArm64Test by getting {
dependsOn(darwinTest)
}

val iosSimulatorArm64Test by getting {
dependsOn(iosArm64Test)
}

val watchosArm32Main by getting {
dependsOn(darwinMain)
}
val watchosArm32Test by getting {
dependsOn(darwinTest)
}
val watchosArm64Main by getting {
dependsOn(darwinMain)
}
val watchosArm64Test by getting {
dependsOn(darwinTest)
}
val watchosSimulatorArm64Main by getting {
dependsOn(darwinMain)
}
val watchosSimulatorArm64Test by getting {
dependsOn(darwinTest)
}

val jsMain by getting {
dependencies {
api("app.cash.sqldelight:sqljs-driver:$sqlDelight")
Expand Down
5 changes: 5 additions & 0 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ kotlin {
}
iosArm64()
iosSimulatorArm64()

watchosArm32()
watchosArm64()
watchosSimulatorArm64()

jvm()

explicitApi()
Expand Down