JoakimForslund
04/26/2019, 8:46 AM-[__NSDictionaryM bsg_ksc_safeSetObject:forKey:]: unrecognized selector sent to instance 0x281678f60
msink
04/26/2019, 10:27 AMNezteb
04/27/2019, 5:57 PMpandawarrior
04/28/2019, 3:35 AMThomas
04/28/2019, 6:19 PMtapchicoma
04/29/2019, 2:41 PMXCTest
framework? Just
iosX64 {
compilations.getByName("main") {
val xctestinterop = cinterops.create("XCTest")
}
}
would work?Slackbot
04/29/2019, 11:23 PMkpgalligan
04/30/2019, 12:01 AMinitRuntimeIfNeeded
or will that be called by interop code (same question for a property instead of a method)yusuf3000
04/30/2019, 10:08 AMoleksandr.stepanov
04/30/2019, 1:17 PM:-1: e: /Users/oleksandr.stepanov/Documents/Kotlin/kotlin-native/samples/cocoapods/kotlin-library/src/commonMain/kotlin/model/WikiApi.kt: (3, 8): Unresolved reference: io
/Users/oleksandr.stepanov/Documents/Kotlin/kotlin-native/samples/cocoapods/kotlin-library/src/commonMain/kotlin/model/WikiApi.kt: (4, 8): Unresolved reference: io
/Users/oleksandr.stepanov/Documents/Kotlin/kotlin-native/samples/cocoapods/kotlin-library/src/commonMain/kotlin/model/WikiApi.kt: (5, 8): Unresolved reference: io
....
I have pushed my changes in the fork:
https://github.com/OlexandrStepanov/kotlin-native/tree/cocoapods-ktor-issue
Help what could be wrong in Gradle scripts would be much appreciated.
cc @svyatoslav.scherbinaJoakimForslund
04/30/2019, 1:27 PMbasher
04/30/2019, 5:31 PMserebit
04/30/2019, 7:47 PMDavid Stolarsky
05/02/2019, 9:58 AMandroidMain/
code. i try adding import platform.android.*
, which i've seen in various examples online, but I get Unresolved reference: platform
. I assume my build.gradle
is misconfigured, any ideas what I'm missing?David Stolarsky
05/02/2019, 9:59 AMbuild.gradle
kpgalligan
05/02/2019, 1:52 PMkevin.cianfarini
05/02/2019, 8:12 PMMichael Bryant
05/02/2019, 9:28 PMAny
struct to a primitive type? For example, if I know a particular instance of Any
contains an int, how can i get it out of the Any
struct? I tried int l = *(int *) kotlin_any.pinned;
, which doesn’t appear to workThomas
05/04/2019, 3:05 PMDavid Stolarsky
05/05/2019, 7:21 AM() -> Unit
to require a function that takes nothing and returns nothing. but to provide a function like this from Swift, the function has to return a KotlinUnit
. is there a way to avoid that?David Stolarsky
05/05/2019, 1:26 PMByteArray
to Swift Data
without copying every byte?Slackbot
05/06/2019, 10:06 AMThomas
05/06/2019, 12:35 PMinterface View : MvpView {
// shows a dialog which returns a String.
suspend fun showDialog(): String
}
I’m not sure how I can implement this for iOS. I thought the following workaround would work:
interface View : MvpView {
// implement this in Android (Kotlin)
suspend fun showDialog(): String = suspendCancellableCoroutine { showDialog(it) }
// implement this in iOS (Swift)
fun showDialog(cont: CancellableContinuation<String>): Unit = throw NotImplementedError()
}
This would allow me to use suspend functions from the calling code and the Android implementation, and just a normal function for iOS. However, it looks like default functions for interfaces are not supported. (https://github.com/JetBrains/kotlin-native/issues/2638)
What would be the best way to solve this? Not use suspend functions at all?Shameek Sarkar
05/06/2019, 12:47 PMDavid Stolarsky
05/07/2019, 5:43 AMlinkMyLibReleaseFrameworkIos
takes extremely long (multiple minutes) on my dev machine after a small change. i have like 2,000 lines of code. is this expected or is my build misconfigured?serebit
05/08/2019, 1:45 AMDavid Stolarsky
05/08/2019, 3:42 AMhmole
05/08/2019, 5:47 AMx86
and `x86_64`Android targets not supported? I'm looking at the sample https://github.com/JetBrains/kotlin-native/blob/master/samples/androidNativeActivity/build.gradle here and only seeing arm32
, arm64
ptmt
05/08/2019, 6:27 AMGetStackTraceThings
), is it worth trying to create stand-alone reproducible example?lsk
05/09/2019, 5:06 AM