Was playing around with the updated K/N plugin for...
# ios
d
Was playing around with the updated K/N plugin for app code. Created a new project and was delighted to see...
Copy code
plugins {
    kotlin("multiplatform") version "1.3.30-eap-45"
    kotlin("xcode-compat") version "0.1"
}
and
Copy code
kotlin {
    xcode {
        setupFramework("KotlinNativeFramework")
    }
}
Is this expected to take the place of the
packForXcode
gradle tasks we have to create now? Any more info on what we can do with the
xcode-compat
gradle plugin?
v
Yes,
setupFramework
is meant to reduce boilerplate and simply defines a
buildForXcode
task, which is supposed to be invoked when building from Xcode/AppCode. The task retrieves the required information from the environment variables populated by Xcode. There is also a
setupApplication
task which is used in other templates. Both helpers accept a lambda, which allows to perform additional configuration of the artifact.
d
Thats great. Thanks for all the hard work you all put into making these tasks easier for us😀
l
Nice! Is this documented somewhere?
v
No, not yet.
d
@Vyacheslav Karpukhin [JB] Any documentation available for this yet?
@Vyacheslav Karpukhin [JB] I am especially interested in how to set up a test target for an iOS-framework.
v
Sorry, no, AFAIK it has not been documented anywhere yet, and there is no support for the test targets either