Skip to content

Commit dcb85a6

Browse files
hoangchungk53qx1michaelbull
authored andcommitted
Add experimental Kotlin compiler options for expect/actual classes
Closes #125
1 parent ea74dc2 commit dcb85a6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ plugins {
66
}
77

88
kotlin {
9+
compilerOptions {
10+
optIn.add("kotlin.contracts.ExperimentalContracts")
11+
freeCompilerArgs.add("-Xexpect-actual-classes")
12+
}
13+
914
jvm {
1015
compilerOptions {
1116
jvmTarget.set(JvmTarget.JVM_1_8)
@@ -57,12 +62,6 @@ kotlin {
5762
watchosDeviceArm64()
5863

5964
sourceSets {
60-
all {
61-
languageSettings.apply {
62-
optIn("kotlin.contracts.ExperimentalContracts")
63-
}
64-
}
65-
6665
commonTest {
6766
dependencies {
6867
implementation(kotlin("test"))

0 commit comments

Comments
 (0)