Skip to content

Commit

Permalink
Fix compilation warnings (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Oct 12, 2023
1 parent 2db369d commit 7642aed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 5 additions & 1 deletion coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ kotlin {

jvm()
js().browser()
android().publishAllLibraryVariants()
androidTarget().publishAllLibraryVariants()
macosX64()
macosArm64()
iosX64()
iosArm64()
iosSimulatorArm64()

sourceSets {
all {
languageSettings.optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
}

val commonMain by getting {
dependencies {
api(libs.kotlinx.coroutines.core)
Expand Down
2 changes: 1 addition & 1 deletion logging-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ kotlin {
explicitApi()
jvmToolchain(libs.versions.jvm.toolchain.get().toInt())

android().publishAllLibraryVariants()
androidTarget().publishAllLibraryVariants()

sourceSets {
val commonMain by getting {
Expand Down
10 changes: 2 additions & 8 deletions temporal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,15 @@ kotlin {
}
}
}
android {
publishAllLibraryVariants()
}
androidTarget().publishAllLibraryVariants()

targets.all {
compilations.all {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.time.ExperimentalTime"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.time.ExperimentalTime"
}
}

sourceSets {
all {
languageSettings.optIn("kotlinx.cinterop.ExperimentalForeignApi")
}

val commonMain by getting {
dependencies {
api(libs.kotlinx.coroutines.core)
Expand Down
2 changes: 2 additions & 0 deletions test/src/jsMain/kotlin/RunTest.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.juul.tuulbox.test

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.promise

@Deprecated("Use official Coroutines `runTest`")
@OptIn(DelicateCoroutinesApi::class)
public actual fun runTest(
action: suspend CoroutineScope.() -> Unit,
): dynamic = GlobalScope.promise { action.invoke(this) }

0 comments on commit 7642aed

Please sign in to comment.