kotlin multiplatform build.gradle
apply plugin: 'kotlin-multiplatform' | |
kotlin { | |
targets { | |
final def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") \ | |
? presets.iosArm64 : presets.iosX64 | |
fromPreset(iOSTarget, 'iOS') { | |
compilations.main.outputKinds('FRAMEWORK') | |
} | |
fromPreset(presets.jvm, 'android') | |
} | |
sourceSets { | |
commonMain.dependencies { | |
api 'org.jetbrains.kotlin:kotlin-stdlib-common' | |
} | |
androidMain.dependencies { | |
api 'org.jetbrains.kotlin:kotlin-stdlib' | |
} | |
} | |
} | |
// workaround for https://youtrack.jetbrains.com/issue/KT-27170 | |
configurations { | |
compileClasspath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment