Skip to content

Commit

Permalink
Add Apple targets to modules (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Jul 6, 2021
1 parent fde4eb7 commit 3e3cf80
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Toolbox of utilities/helpers for Kotlin development.
## [Coroutines](https://juullabs.github.io/tuulbox/coroutines/index.html)

![badge-android]
![badge-ios]
![badge-js]
![badge-jvm]
![badge-mac]
Expand All @@ -32,6 +33,7 @@ val combined = combine(

## [Logging](https://juullabs.github.io/tuulbox/logging/index.html)

![badge-ios]
![badge-js]
![badge-jvm]
![badge-mac]
Expand Down Expand Up @@ -69,6 +71,7 @@ via [`Log.tagGenerator`] property.

## [Functional](https://juullabs.github.io/tuulbox/functional/index.html)

![badge-ios]
![badge-js]
![badge-jvm]
![badge-mac]
Expand Down Expand Up @@ -142,6 +145,7 @@ assertSimilar(

## [Encoding](https://juullabs.github.io/tuulbox/encoding/index.html)

![badge-ios]
![badge-js]
![badge-jvm]
![badge-mac]
Expand Down
23 changes: 23 additions & 0 deletions coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ kotlin {
publishAllLibraryVariants()
}
macosX64()
iosX64()
iosArm32()
iosArm64()

sourceSets {
val commonMain by getting {
Expand Down Expand Up @@ -57,6 +60,26 @@ kotlin {
implementation(kotlin("test-js"))
}
}

val appleMain by creating {
dependsOn(commonMain)
}

val macosX64Main by getting {
dependsOn(appleMain)
}

val iosX64Main by getting {
dependsOn(appleMain)
}

val iosArm32Main by getting {
dependsOn(appleMain)
}

val iosArm64Main by getting {
dependsOn(appleMain)
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions encoding/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ kotlin {
jvm()
js().browser()
macosX64()
iosX64()
iosArm32()
iosArm64()

sourceSets {
val commonTest by getting {
Expand Down
25 changes: 25 additions & 0 deletions functional/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ kotlin {
jvm()
js().browser()
macosX64()
iosX64()
iosArm32()
iosArm64()

sourceSets {
val commonMain by getting

val commonTest by getting {
dependencies {
implementation(project(":test"))
Expand All @@ -35,5 +40,25 @@ kotlin {
implementation(kotlin("test-js"))
}
}

val appleMain by creating {
dependsOn(commonMain)
}

val macosX64Main by getting {
dependsOn(appleMain)
}

val iosX64Main by getting {
dependsOn(appleMain)
}

val iosArm32Main by getting {
dependsOn(appleMain)
}

val iosArm64Main by getting {
dependsOn(appleMain)
}
}
}
25 changes: 25 additions & 0 deletions logging/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ kotlin {
jvm()
js().browser()
macosX64()
iosX64()
iosArm32()
iosArm64()

sourceSets {
val commonMain by getting

val commonTest by getting {
dependencies {
implementation(project(":test"))
Expand All @@ -36,5 +41,25 @@ kotlin {
implementation(kotlin("test-js"))
}
}

val appleMain by creating {
dependsOn(commonMain)
}

val macosX64Main by getting {
dependsOn(appleMain)
}

val iosX64Main by getting {
dependsOn(appleMain)
}

val iosArm32Main by getting {
dependsOn(appleMain)
}

val iosArm64Main by getting {
dependsOn(appleMain)
}
}
}
5 changes: 5 additions & 0 deletions test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ kotlin {
js().browser()
macosX64()
iosX64()
iosArm32()
iosArm64()

sourceSets {
Expand Down Expand Up @@ -47,6 +48,10 @@ kotlin {
dependsOn(appleMain)
}

val iosArm32Main by getting {
dependsOn(appleMain)
}

val iosArm64Main by getting {
dependsOn(appleMain)
}
Expand Down

0 comments on commit 3e3cf80

Please sign in to comment.