File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
native/kotlin-test-native-xctest Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ kotlin {
112
112
113
113
forEach {
114
114
val copyTask = registerCopyFrameworkTask(it.konanTarget)
115
- it.compilations.getByName (" main" ) {
115
+ it.compilations.named (" main" ) {
116
116
cinterops {
117
117
register(" XCTest" ) {
118
118
compilerOpts(" -iframework" , copyTask.map { it.destinationDir }.get().absolutePath)
@@ -125,13 +125,11 @@ kotlin {
125
125
}
126
126
}
127
127
}
128
- sourceSets.all {
129
- languageSettings.apply {
130
- // Oh, yeah! So much experimental, so wow!
131
- optIn(" kotlinx.cinterop.BetaInteropApi" )
132
- optIn(" kotlinx.cinterop.ExperimentalForeignApi" )
133
- optIn(" kotlin.experimental.ExperimentalNativeApi" )
134
- }
128
+
129
+ compilerOptions {
130
+ optIn.add(" kotlinx.cinterop.BetaInteropApi" )
131
+ optIn.add(" kotlinx.cinterop.ExperimentalForeignApi" )
132
+ optIn.add(" kotlin.experimental.ExperimentalNativeApi" )
135
133
}
136
134
}
137
135
You can’t perform that action at this time.
0 commit comments