Skip to content

Commit e598a0a

Browse files
AYastrebovTapchicoma
authored andcommitted
use kotlin.compilerOptions.optIn DSL
1 parent 7a5ef56 commit e598a0a

File tree

1 file changed

+3
-5
lines changed
  • skills/kotlin-tooling-cocoapods-spm-migration

1 file changed

+3
-5
lines changed

skills/kotlin-tooling-cocoapods-spm-migration/SKILL.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,11 @@ If the project uses `dev.gitlive:firebase-*` or similar KMP wrapper libraries, t
251251

252252
See [common-pods-mapping.md](references/common-pods-mapping.md) § dev.gitlive and [troubleshooting.md](references/troubleshooting.md) for code snippets and the full product list.
253253

254-
### 3.5 Add language settings
254+
### 3.5 Add opt-in for cinterop API
255255

256256
```kotlin
257-
sourceSets.configureEach {
258-
languageSettings {
259-
optIn("kotlinx.cinterop.ExperimentalForeignApi")
260-
}
257+
kotlin.compilerOptions {
258+
optIn.add("kotlinx.cinterop.ExperimentalForeignApi")
261259
}
262260
```
263261

0 commit comments

Comments
 (0)