ppav
04/22/2021, 7:53 PMshared/build.gradle.kts
in the tread:ppav
04/22/2021, 7:53 PMimport org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
}
version = "1.0"
kotlin {
val iosTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget =
if (System.getenv("SDK_NAME")?.startsWith("iphoneos") == true)
::iosArm64
else
::iosX64
iosTarget("ios") {}
jvm()
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
ios.deploymentTarget = "14.1"
frameworkName = "shared"
podfile = project.file("../sample-ios/Podfile")
}
sourceSets {
val commonMain by getting
}
}
Arkadii Ivanov
04/22/2021, 8:01 PMppav
04/22/2021, 8:07 PMArkadii Ivanov
04/22/2021, 8:08 PMkotlin-multiplatform
plugin with the only target jvm
ppav
04/22/2021, 8:16 PMppav
04/22/2021, 8:17 PMSebastian Sellmair [JB]
04/22/2021, 9:12 PMppav
04/23/2021, 7:29 AMorg.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-RC
Mustafa Ozhan
04/23/2021, 9:30 AMThe workaround is to useThis works for both my backend and Desktop targetsplugin with the only targetkotlin-multiplatform
jvm
ppav
04/23/2021, 10:44 AMJavier
04/23/2021, 5:35 PMJavier
04/23/2021, 5:35 PMSebastian Sellmair [JB]
04/23/2021, 5:44 PMJavier
04/23/2021, 5:55 PMSebastian Sellmair [JB]
04/24/2021, 5:32 PMppav
04/25/2021, 1:29 PMSebastian Sellmair [JB]
04/27/2021, 2:21 PMSebastian Sellmair [JB]
05/04/2021, 12:49 PMJavier
05/04/2021, 1:43 PMJavier
05/04/2021, 1:44 PMJavier
05/04/2021, 1:44 PMSebastian Sellmair [JB]
05/04/2021, 1:48 PMJavier
05/04/2021, 1:49 PMJavier
05/04/2021, 1:50 PMppav
05/15/2021, 6:47 PM