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

Damiano Giusti

01/29/2019, 4:08 PM
Here’s the
targets
block of my
build.gradle
Copy code
targets {
        final def iOSPreset = System.getenv('SDK_NAME')?.startsWith("iphoneos") ? presets.iosArm64 : presets.iosX64

        fromPreset(iOSPreset, 'iOS') {
            compilations.main.outputKinds('FRAMEWORK')
        }

        fromPreset(presets.jvm, 'android')
    }
d

Dominaezzz

01/29/2019, 4:11 PM
Use
presets.android
.
d

Damiano Giusti

01/29/2019, 4:15 PM
Cool, thanks. Does the
kotlin-multiplatform
an online documentation I can use for checking the methods and properties that provides?
d

Dominaezzz

01/29/2019, 4:22 PM
Hmm, apart from the official guide, I don't think there is one. The IDE is your best bet.
d

Damiano Giusti

01/29/2019, 4:22 PM
The problem is that I can’t browse the plugin implementation using the IDE
d

Dominaezzz

01/29/2019, 4:23 PM
Ctrl+Q?
d

Damiano Giusti

01/29/2019, 4:23 PM
yep, no doc
d

Dominaezzz

01/29/2019, 4:24 PM
Hmm, I usually get docs with
build.gradle.kts
.
d

Damiano Giusti

01/29/2019, 4:24 PM
I’m using groovy, maybe using kotlin also in the build file something will help me
d

Dominaezzz

01/29/2019, 4:26 PM
Yeah, it helps a lot with auto completion and docs. The IDE is a bit less performant with kts though. It's being fixed anyways.
d

Damiano Giusti

01/29/2019, 4:26 PM
Ok i’ll give it a try. Thanks a lot!
@Dominaezzz sorry I got another problem using
presets.android
. It seems that is not defined. It’s defined only using the android library plugin
I managed to solve the problem. gonna write a message just to share knowledge
3 Views