Join Slack
Powered by
Anyone targeting watchOS and tvOS along with iOS i...
# multiplatform
d
Dmitri Sh
12/13/2019, 1:58 AM
Anyone targeting watchOS and tvOS along with iOS in one project? I can't find any reference projects to do that. 1.3.6 is supposed to support all of them but there is not a single sample project on how to configure the build 😥
b
basher
12/13/2019, 2:13 AM
https://github.com/JetBrains/kotlin-native/blob/master/samples/watchos/build.gradle.kts#L52
basher
12/13/2019, 2:13 AM
This build gradle is a bit more complex, but it shows the dsl
basher
12/13/2019, 2:15 AM
(watchOS)
basher
12/13/2019, 2:15 AM
All of the functions for this dsl are here
https://github.com/JetBrains/kotlin/blob/9ab2b928bc0fe4389096a229ccb8f86e8a3ca969/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinTargetContainerWithNativeShortcuts.kt
d
Dmitri Sh
12/13/2019, 2:17 AM
great thanks! will be reading up
Dmitri Sh
12/13/2019, 2:43 AM
is there one for macOS as well? Don't see it listed there
b
basher
12/13/2019, 2:53 AM
Whoops sorry. Better file:
https://github.com/JetBrains/kotlin/blob/9ab2b928bc0fe4389096a229ccb8f86e8a3ca969/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinTargetContainerWithPresetFunctions.kt#L376
d
Dmitri Sh
12/13/2019, 2:58 AM
beautiful. many thanks
2
Views
Open in Slack
Previous
Next