https://kotlinlang.org logo
#ios
Title
# ios
d

drofwarcs

03/25/2019, 1:03 AM
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

Vyacheslav Karpukhin [JB]

03/25/2019, 10:59 AM
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

drofwarcs

03/25/2019, 1:27 PM
Thats great. Thanks for all the hard work you all put into making these tasks easier for us😀
l

louiscad

03/26/2019, 11:38 AM
Nice! Is this documented somewhere?
v

Vyacheslav Karpukhin [JB]

03/27/2019, 9:58 PM
No, not yet.
d

David

04/26/2019, 1:17 PM
@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

Vyacheslav Karpukhin [JB]

04/29/2019, 10:39 AM
Sorry, no, AFAIK it has not been documented anywhere yet, and there is no support for the test targets either