hmole
01/24/2019, 11:48 AMstdlib
and stdlib-common
?addamsson
01/24/2019, 1:31 PMkotlin-multiplatform
plugin.Dominaezzz
01/24/2019, 3:28 PMafterEvaluate {
kotlin.sourceSets.all {
languageSettings {
enableLanguageFeature('InlineClasses')
useExperimentalAnnotation('kotlin.ExperimentalUnsignedTypes')
}
}
}
I have this in my root project build.gradle
file inside a subprojects
block. When I convert the file to kotlin dsl, I get "sourceSets could not be resolved". Not sure how to covert that bit from groovy to kotlin.Brian
01/24/2019, 3:45 PMDrew
01/24/2019, 4:40 PMkotlin.js
from a js
mpp target?Diego
01/24/2019, 5:05 PMByteArray
. When I import the framework from an iOS project, the ByteArray is converted to KotlinByteArray
but I thought I would have a NSData
in swift 😢 I think a solution would be to pass the ByteArray encoded as Base64
. Is there a better way to convert a ByteArray to NSData?basher
01/24/2019, 5:47 PMcheck
task to run tests in kotlin-multiplatform for the common code? I'm running check, and it's succeeded but isn't really doing anythingjw
01/24/2019, 5:48 PMkgonyon
01/24/2019, 8:18 PMbasher
01/24/2019, 9:30 PMxcrun simctl spawn '<sim name like iPad Air 2>' <path to test.kexe>
yshrsmz
01/25/2019, 8:07 AMkotlin {
iosX64('ios') {
binaries {
framework()
}
}
}
In 1.3.20 when I try to create framework for iOS with above config, looks like link task name is linkDebugFrameworkIos
, but kotlin.targets.ios.compilations.main.linkTaskName('FRAMEWORK', 'DEBUG')
is linkMainDebugFrameworkIos
.ribesg
01/25/2019, 10:12 AMalexfacciorusso
01/25/2019, 11:12 AMbuild
? In particular, we are using MockK for mocking, that hasn’t got native support, so we’d like only the jvm/android tests to be executed when the build
task is called on GradleDominaezzz
01/25/2019, 2:40 PMribesg
01/25/2019, 2:54 PMandroid {…}
block in the top build.gradle file? EDIT: see threadcoletz
01/25/2019, 5:24 PMcom.android.tools.build:gradle:3.3.0
and I am getting Minimum supported Gradle version is 4.10.1. Current version is 4.7.
. Afaik one need gradle 4.7 in order to compile working MPPdrofwarcs
01/25/2019, 8:56 PMextraOpts '-Xembed-bitcode-marker'
but get the following warning on each build: warning: Flag is not supported by this version of the compiler: -Xembed-bitcode-marker
and the build eventually fails stating the library I'm bringing in with cinterops does not contain bitcode.galex
01/26/2019, 6:05 AMcoletz
01/26/2019, 1:35 PMnatpryce
01/26/2019, 10:28 PMalec
01/27/2019, 3:05 AMalec
01/27/2019, 1:57 PMalec
01/27/2019, 2:16 PMbdeg
01/27/2019, 4:45 PM//For ios target (emulator or real device)
final def iosTarget = System.getenv("SDK_NAME")?.startsWith("iphoneos") ? presets.iosArm64 : presets.iosX64
fromPreset(iosTarget, 'ios') {
compilations.main.outputKinds('FRAMEWORK')
}
in the new 1.3.20 mpp plugin ?
i tried:
def buildForDevice = project.findProperty("device")?.toBoolean() ?: false
(buildForDevice) ? iosArm64("ios") : iosX64("ios")
targets.compilations["ios"] {
compilations.main.outputKinds("framework")
binaries {
framework {
// Disable bitcode embedding for the simulator build.
if (!buildForDevice) {
embedBitcode("disable")
}
}
}
}
also:
def buildForDevice = project.findProperty("device")?.toBoolean() ?: false
def ios = (buildForDevice) ? iosArm64("ios") : iosX64("ios")
ios {
compilations.main.outputKinds("framework")
binaries {
framework {
// Disable bitcode embedding for the simulator build.
if (!buildForDevice) {
embedBitcode("disable")
}
}
}
}
ribesg
01/28/2019, 10:57 AMcompilations
of an android
target appear?natpryce
01/28/2019, 11:34 AMalexfacciorusso
01/28/2019, 12:42 PMcoolcat
01/28/2019, 12:56 PMribesg
01/28/2019, 1:04 PMandroid
target has no compilation
natpryce
01/28/2019, 3:11 PM* Compiler version info: Konan: 1.1.1 / Kotlin: 1.3.20
* Output kind: PROGRAM
exception: java.lang.Error: Invalid module
at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.verifyModule(IrToBitcode.kt:179)
at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.verifyModule$default(IrToBitcode.kt:170)
What can I do to resolve the error?natpryce
01/28/2019, 3:11 PM* Compiler version info: Konan: 1.1.1 / Kotlin: 1.3.20
* Output kind: PROGRAM
exception: java.lang.Error: Invalid module
at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.verifyModule(IrToBitcode.kt:179)
at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.verifyModule$default(IrToBitcode.kt:170)
What can I do to resolve the error?svyatoslav.scherbina
01/28/2019, 3:34 PMnatpryce
01/28/2019, 3:35 PMsvyatoslav.scherbina
01/29/2019, 9:16 AMnatpryce
01/29/2019, 9:53 AM