it would be amazing if the <https://kotlinlang.org...
# multiplatform
s
it would be amazing if the https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html#updating-gradle-scripts would have gradle examples for groovy and kotlin. I stuck on how to define the kotlin target for ios in kotlin gradle. Can anyone help me out?
Copy code
final def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") \
                              ? presets.iosArm64 : presets.iosX64

        fromPreset(iOSTarget, 'ios') {
             binaries {
                framework('SharedCode')
            }
        }
g
What is you exact problem? With this snippet on in general?
Unfortunately those docs are not updated, there is new DSL for MPP plugin which also works for Kotlin DSL https://blog.jetbrains.com/kotlin/2019/01/kotlin-1-3-20-released/
r
s
thank you both, i think that will do it