Dominaezzz
12/20/2018, 11:33 AMIvan
12/20/2018, 12:56 PMjdiaz
12/20/2018, 2:51 PMpajatopmr
12/20/2018, 10:24 PMimplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.3.11"
which Gradle is not happy with. What is the right version to use? And is Maven Central the correct repository to use?thevery
12/21/2018, 8:25 AMdef binary = kotlin.targets.iosSim.compilations.test.getBinary('EXECUTABLE', 'DEBUG')
doesn't work anymore in eap-52, what it the new way to get test binary?nestserau
12/21/2018, 10:21 AMrunBlocking
is not available for iOS, but what’s the proper way to unit test suspend functions on iOS Simulator then?Lucas
12/23/2018, 5:43 AM.klib
file manually when using the Gradle plugin? I'm trying to call a function named reverse
written in C from a Kotlin code, but running ./gradlew runProgram
show the error below.
> Configure project :
Kotlin Multiplatform Projects are an experimental feature.
> Task :cinteropReverseLinux UP-TO-DATE
> Task :linkReleaseExecutableLinux
/home/lucas/.konan/dependencies/clang-llvm-6.0.1-linux-x86-64/bin/ld.lld: error: undefined symbol: reverse
>>> referenced by ld-temp.o
>>> /tmp/konan_temp3346060776025102598/combined.o:(reverse_kniBridge0)
error: /home/lucas/.konan/dependencies/clang-llvm-6.0.1-linux-x86-64/bin/ld.lld invocation reported errors
> Task :linkReleaseExecutableLinux FAILED
Sample: https://github.com/lucasvalenteds/kotlin-native-cinteroppajatopmr
12/23/2018, 6:17 PMyuya_horita
12/26/2018, 9:34 AMclass MainDispatcher: CoroutineDispatcher() {
override fun dispatch(context: CoroutineContext, block: Runnable) {
dispatch_async(dispatch_get_main_queue()) { block.run() }
}
}
Matej Kormuth
12/26/2018, 11:21 PMdata class B(val a: Float, val b: Float)
data class A(val a: Float, val b: Float) {
override fun equals(other: Any?): Boolean {
if(other is A) {
return a == other.a && b == other.b
}
return false
}
}
fun main(args: Array<String>) {
println(0.0f == -0.0f) // true
println(B(0.0f, 0.0f) == B(0.0f, -0.0f)) // false
println(B(2f, 4f) == B(2f, 4f)) // true
println(A(0.0f, 0.0f) == A(0.0f, -0.0f)) // true (workaround)
}
spierce7
12/26/2018, 11:22 PMmikehearn
12/27/2018, 9:41 PMkyonifer
12/27/2018, 10:19 PMerror: compilation failed: Could not find "XX-cinterop-YY" in [...]
. Is metadata enabled required to resolve cinterop klibs uploaded to a maven repo?Sam
12/28/2018, 4:09 AMclass Exports() {
var libraryTypeA: LibaryTypeA? = null
}
//LibraryTypeA is declared in library as extending NSOBject
class LibraryTypeA(): NSObject(): AnObjCDelegate {
//Some methods
}
The generated header in the app framework was exposing the type of libraryTypeA
as NSObject and not LibraryTypeA
. The reason I was inheriting from NSObject was because I was implementing a delegate declared in an ObjC Framework (CoreBluetooth). I'm able to work around this by encapsulating the delegate into an internal object. Is there a way to force the exported type declaration to be LibraryTypeA
instead of NSObject
?yuya_horita
12/28/2018, 10:07 AMcharleskorn
12/29/2018, 10:39 AMunsigned char *
. How do I take a Kotlin string and convert it to that? (cinterop has given the parameter the type CValuesRef<UByteVar>
, which means I can’t just use .cstr
or .wcstr
)serebit
12/30/2018, 5:25 PMjeremy
12/30/2018, 7:27 PMlsk
12/31/2018, 10:32 AMconst passing_t**
in C and converted to Kotlin native as passing: CPointer<CPointerVar<passing_t>>?
? I don't know how to get sizeOf the array to itteratelsk
01/01/2019, 7:55 PMStrum355
01/02/2019, 4:58 PMchadmorrow
01/02/2019, 5:28 PMcoletz
01/02/2019, 9:32 PMlsk
01/03/2019, 3:19 PMlsk
01/03/2019, 5:01 PMimport platform.posix.*
? I am testing on Clion and it does not. It does see generated code, this is greatSam
01/05/2019, 10:43 PMCBCentralManagerDelegate
https://developer.apple.com/documentation/corebluetooth/cbcentralmanagerdelegate. The conflicting methods are didDisconnect
and didFailToConnect
.lsk
01/06/2019, 7:14 PM...ld.lld: error: undefined symbol...
to what I have in native libsdeleuze
01/06/2019, 10:15 PMBrian
01/07/2019, 3:02 PM-Xembed-bitcode
actually supported as stated in the FAQs?
With the Kotlin Gradle plugin v1.3.10 I still get a warning, suggesting that the bitcode is not embedded.
This was asked earlier: https://kotlinlang.slack.com/archives/C3SGXARS6/p1540494962000100kpgalligan
01/07/2019, 7:30 PM