oleksandr.stepanov
10/19/2018, 4:04 PMMatej Kormuth
10/19/2018, 4:18 PMJaroslav
10/22/2018, 10:59 AMinterface Transport {
suspend fun <T : Any> send(command: Command<T>, data: String): String
}
but when generated ios framework, there is no such method generated:
__attribute__((swift_name("Transport")))
@protocol IosTransport
@required
@end;
what’s wrong?hultgren
10/22/2018, 11:07 PMyuya_horita
10/23/2018, 2:29 AMspierce7
10/23/2018, 3:17 AMIvan
10/23/2018, 1:54 PMmiha-x64
10/23/2018, 6:34 PMJaroslav
10/24/2018, 7:31 AMNSForwarding: warning: object 0x60000140a800 of class 'MyLib_stage.RpcTransport' does not implement methodSignatureForSelector: -- trouble ahead
Unrecognized selector -[MyLib_stage.RpcTransport toKotlin:]
What are methodSignatureForSelector
and toKotlin
methods?Sam
10/24/2018, 12:46 PMbootstraponline
10/24/2018, 6:11 PMNo enum constant org.jetbrains.kotlin.konan.MetaVersion.RChas anyone seen this issue before? i updated to
1.3.0-rc-146
and gradle errors.bootstraponline
10/25/2018, 1:54 PMGitHubKt.getGitHub()
call hangs forever on iOS. Is that expected or a bug?
https://github.com/bootstraponline/run_blockingbootstraponline
10/25/2018, 1:59 PMKaren
10/25/2018, 7:16 PMwarning: flag is not supported by this version of the compiler: -Xembed-bitcode
and the generated frameworks do not contain bitcode. I was wondering what I'm doing wrong and how can I necessarily update the version of the compiler?Ellen Shapiro
10/26/2018, 9:19 AMNSString.create
returns an NSString
, but I’m getting cast will never succeed
errors when I try to do a cast from NSString
to a kotlin stringMatej Kormuth
10/26/2018, 10:04 AMint func(const char* src...);
that I use with cinterop. I want to pass inside CPointer<ByteVar>
or CPointer<UByteVar>
as a parameter (because char* is pointer to char) that a aquired from previous native call. However the function has in kotlin binding header public fun func(source: kotlin.String?...
accepting kotlin string. How do I do it? Do I need to call toKString()
? Doesn't toKString()
involve some allocation? Does it correctly translates the CPointer<ByteVar>
buffer to string (without some corruption due to encoding for example)? Isn't it useless step as the KString will have to be translated back to C char array later?Steven McLaughlin
10/26/2018, 5:31 PMbootstraponline
10/26/2018, 5:32 PMRuckus
10/26/2018, 6:33 PMpatjackson52
10/27/2018, 1:36 AMConfigure project :commonKotlin Multiplatform Projects are an experimental feature.
Task commoncompileKotlinIoserror: compilation failed: null * Source files: ExpectSuccess.kt, MyFile.kt, Extensions.kt, GameEngine.kt, Constants.kt * Compiler version info: Konan: 0.9.3 / Kotlin: 1.3.0 * Output kind: LIBRARY exception: kotlin.KotlinNullPointerException org.jetbrains.kotlin.backend.konan.optimizations.Devirtualization$DevirtualizationAnalysis$InstantiationsSearcher.processVirtualCall(Devirtualization.kt:281)
jkbbwr
10/27/2018, 5:04 AMtadej
10/28/2018, 10:59 AMiosMain
module, where the IDE complains about Kotlin not being configured, while androidMain
and common
dir/module work fine. I've added it as a sourceSet
in build.gradle
, with and without the stdlib, tried the plugin DSL, restarted the IDE, invalidated caches, all with no avail.
Additionally, there seem to be no native dependencies available, meaning any import from e.g. platform
is unrecognized. I've added the <https://dl.bintray.com/jetbrains/kotlin-native-dependencies>
repo, but the issue remains.
Any ideas on how to resolve the two problems?Hamza
10/29/2018, 12:24 AMheaders = git2.h
linkerOpts.osx = -L/opt/local/lib -L/usr/local/lib -lgit2
linkerOpts.linux = -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu -lgit2
headerFilter = git2/** git2.h
Why is this using .h files? And if I have .a files what reference should I follow to get it working?msink
10/29/2018, 10:28 AMKonstantin Petrukhnov
10/29/2018, 12:20 PMJaroslav
10/29/2018, 2:31 PMDeferred
object to swift?Hamza
10/29/2018, 3:13 PMMcEna
10/30/2018, 5:58 AMadeln
10/30/2018, 12:20 PMSebastian Owodzin
10/30/2018, 2:13 PMkotlin {
targets {
fromPreset(presets.jvm, 'jvm')
// This preset is for iPhone emulator
// Switch here to presets.iosArm64 to build library for iPhone device
fromPreset(presets.iosX64, 'ios') {
compilations.main {
outputKinds('FRAMEWORK')
}
//customFrameworkName??
}
}
...