Patrick
11/18/2019, 2:18 PMJoakimForslund
11/18/2019, 2:45 PMKris Wong
11/18/2019, 7:59 PMMarc Reichelt
11/18/2019, 8:42 PM> Task :SharedCode:compileKotlinIos FAILED
w: skipping /Users/mreichelt/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-serialization-iosx64/1.2.5/3b67cda81d91ebb007b5d22aae904569cb794108/ktor-client-serialization.klib. The abi versions don't match. Expected '[17]', found '14'
w: The compiler versions don't match either. Expected '[]', found '1.3.50-release-11850'
e: Could not find "/Users/mreichelt/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-serialization-iosx64/1.2.5/3b67cda81d91ebb007b5d22aae904569cb794108/ktor-client-serialization.klib" in [/Users/mreichelt/Entwicklung/other/github-api-kotlin-multiplatform/android, /Users/mreichelt/.konan/klib, /Users/mreichelt/.konan/kotlin-native-macos-1.3.60/klib/common, /Users/mreichelt/.konan/kotlin-native-macos-1.3.60/klib/platform/ios_x64].
FAILURE: Build failed with an exception.
What are the latest dependencies to use for Kotlin 1.3.60? Or is it just too fresh yet?Kris Wong
11/18/2019, 9:57 PMPatrick
11/19/2019, 12:05 PMFail
11/19/2019, 1:10 PMribesg
11/19/2019, 2:06 PMCaused by: java.lang.NoSuchMethodError: org.jetbrains.kotlin.gradle.tasks.CInteropProcess.newOutputFile()Lorg/gradle/api/file/RegularFileProperty;
I’m using Kotlin 1.3.50. Should I wait for an update of the Kotlin plugin for Gradle 6 or something?Robert
11/19/2019, 7:45 PMKris Wong
11/19/2019, 7:57 PMThrowWorkerInvalidState()
with 1.3.60, did not happen with 1.3.50tylerwilson
11/19/2019, 8:10 PMKris Wong
11/19/2019, 8:13 PMTask :linkDebugFrameworkIoswarning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 0]' from /Users/krisw/.konan/kotlin-native-macos-1.3.60/konan/targets/ios_x64/native/debug.bc with '[2 x i32] [i32 13, i32 2]' from out) warning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 0]' from /Users/krisw/.konan/kotlin-native-macos-1.3.60/konan/targets/ios_x64/native/strict.bc with '[2 x i32] [i32 13, i32 2]' from out) warning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 0]' from /Users/krisw/.konan/kotlin-native-macos-1.3.60/klib/common/stdlib/targets/ios_x64/native/runtime.bc with '[2 x i32] [i32 13, i32 2]' from out) warning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 0]' from /Users/krisw/.konan/kotlin-native-macos-1.3.60/klib/platform/ios_x64/posix/targets/ios_x64/native/cstubs.bc with '[2 x i32] [i32 13, i32 2]' from out) warning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 0]' from /Users/krisw/.konan/kotlin-native-macos-1.3.60/klib/platform/ios_x64/Foundation/targets/ios_x64/native/cstubs.bc with '[2 x i32] [i32 13, i32 2]' from out)
basher
11/20/2019, 6:45 PMRobert
11/20/2019, 9:49 PM#include "libmy_api.h"
auto mylib = libmy_symbols();
So far so good. Now I would love to replace the orginal classes, for example CMyClass
with the one from the Kotlin library. So I remove CMyClass
from the C-source code, and I add a typedef:
typedef libmy_kref_MyClass MyClass;
Now I can use the regular MyClass
as a type: std::vector<MyClass> classes
So I don't have to touch that code, as it was already referencing "MyClass". Still good.
Now the problem is when I try to create an instance. The current code is like this:
classes.push_back(MyClass())
But to initiate the class in the KN dl way, I have to replace all the code with:
classes.push_back(mylib->kotlin.root.MyClass.MyClass())
Is there a way, like typedef or using does, to keep this code intact while it does actually reference the kotlin generated dynamic library?Jamie Craane
11/21/2019, 7:17 PMjk2018
11/21/2019, 10:34 PMivan.savytskyi
11/22/2019, 2:32 PMserebit
11/22/2019, 4:12 PMv1.3.60
tagged release is failing to build for me, but the later tag v1.3.60-release-13393
builds successfully. Are there any substantial differences between the two?Vincent Chen
11/24/2019, 11:30 AMimport org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
plugins {
id("org.jetbrains.kotlin.multiplatform") version "1.3.60"
}
repositories {
mavenCentral()
}
kotlin {
....
}
tasks.getByName("assemble")!!.finalizedBy("android_A")
tasks.getByName("assemble")!!.finalizedBy("IOS_A")
tasks.getByName("assemble")!!.finalizedBy("JVM_A")
tasks.create("android_A", Copy::class){
}
tasks.create("IOS_A", Copy::class){
}
tasks.create("IOS_B", FatFrameworkTask::class){
}
tasks.create("JVM_A", Copy::class){
}
This is fine and no warning
But I want to spread platform,
so I create folder
app
--spreadGradle
----android.gradle.kts
----ios.gradle.kts
----jvm.gradle.kts
then My build.gradle.kts is
plugins {
id("org.jetbrains.kotlin.multiplatform") version "1.3.60"
}
repositories {
mavenCentral()
}
apply(from = "spreadGradle/android.gradle.kts")
apply(from = "spreadGradle/ios.gradle.kts")
apply(from = "spreadGradle/jvm.gradle.kts")
kotlin {
....
}
tasks.getByName("assemble")!!.finalizedBy("android_A")
tasks.getByName("assemble")!!.finalizedBy("IOS_A")
tasks.getByName("assemble")!!.finalizedBy("JVM_A")
and
android.gradle.kts is
tasks.create("android_A", Copy::class){
}
ios.gradle.kts is
import org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
tasks.create("IOS_A", Copy::class){
}
tasks.create("IOS_B", FatFrameworkTask::class){
}
jvm.gradle.kts is
tasks.create("JVM_A", Copy::class){
}
But got two issuss
First:
although build is ok
but got warning like
Cannot add task 'android_A' as a task with that name already exists.
Cannot add task 'JVM_A' as a task with that name already exists.
etc.
Second:
in my ios.gradle.kts
Error for
unresolved reference: jetbrains
Can master help me?
Thank you very muchJurriaan Mous
11/24/2019, 12:39 PMnapperley
11/24/2019, 10:47 PM./jmonitor.kexe --io-metrics Main
I/O metrics for Main:
* Characters Read: 1142215787
* Characters Written: 2559364802
* Total Read System Calls: 229852
* Total Write System Calls: 148106
* Total Bytes Read: 533704704
* Total Bytes Written: 1415086080
* cancelled_Total Bytes Written: 12288
Note that Total Bytes Written
is repeated twice. What could cause text to be repeated in a Kotlin String?Andreas Jost
11/25/2019, 10:24 AMactual fun ViewContainer.setOnCLickListener(block: () -> Unit) {
val funRef = StableRef.create(InvokeClickListener(block))
this.addGestureRecognizer(UITapGestureRecognizer(this, funRef.asCPointer()))
}
class InvokeClickListener(private val block: () -> Unit) : () -> Unit {
override operator fun invoke() {
block()
}
}
I already managed to set the visibility of Views in the common code. If interested I can post code snippets in the multiplatform channel. But this case is harder, because UITapGestureRecognizer wants a selector/COpaquePointer and I can't find a solution.Prateek Grover
11/25/2019, 12:45 PMsaket
11/26/2019, 3:33 AMandreasmattsson
11/26/2019, 12:58 PMvalues
array of a Kotlin enum class from Swift/ObjC?New111
11/26/2019, 10:10 PMjk2018
11/27/2019, 12:37 AMjk2018
11/27/2019, 12:37 AMNew111
11/27/2019, 7:33 AMalec
11/27/2019, 11:04 PMGC.thresholdAllocations
allocations?alec
11/27/2019, 11:04 PMGC.thresholdAllocations
allocations?olonho
11/28/2019, 5:52 AMEvaS
11/28/2019, 8:58 AMolonho
11/28/2019, 11:06 AMnapperley
11/28/2019, 10:47 PM