https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

Simon Schubert

04/29/2019, 8:06 AM
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

gildor

04/29/2019, 8:17 AM
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

ribesg

04/29/2019, 8:25 AM
s

Simon Schubert

04/29/2019, 8:30 AM
thank you both, i think that will do it
2 Views