I'm trying to migrate to kotlin build gradle, and ...
# multiplatform
b
I'm trying to migrate to kotlin build gradle, and I'm running into an issue. In my build.gradle.kts, i do
apply(from = "ios.gradle.kts")
to pull in my ios-specific gradle file. In that file, I need to do:
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetPreset
, but I get this error:
Copy code
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetPreset
                      ^ Unresolved reference: jetbrains
I can do this import in
build.gradle.kts
(presumably because that's where the mpp plugin is added via a
plugins
block), but not in the applied ios.gradle.kts. Is there some other way I should be pulling in this other gradle file?