Sergio Casero
10/18/2018, 11:12 AMio.ktor:ktor-client-json
doesn't exists for JS, so I can't build the JS module, the dataSource is here -> https://github.com/sergiocasero/votlin-app/blob/feature/network_calls_common_client/common/src/main/kotlin/com/votlin/client/data/datasource/remote/CommonRemoteDataSource.ktDias
10/18/2018, 1:10 PMDias
10/18/2018, 3:33 PMrusshwolf
10/18/2018, 5:27 PMkotlin-multiplatform
gradle plugin. None of the ktor or coroutine dependencies resolve on the ios side when I build (./gradlew clean build test
). I pushed a github repo of a minimal demo of what I'm trying to do, based on a fresh project with the IDEA "Kotlin (Mobile Android/iOS)" template. Here's the relevant commit: https://github.com/russhwolf/ktor-demo/commit/dfee772bfdc4fb97e6e84938780bd95b5589e0e6russhwolf
10/18/2018, 9:09 PMJoris PZ
10/19/2018, 1:10 PMUDPSocketBuilder
) , there seems to be no way to create a Multicast socket in ktor.
Is that correct? And if so, does anyone know if it's on a roadmap?Alex
10/19/2018, 3:12 PMenleur
10/19/2018, 6:07 PMcoletz
10/19/2018, 7:13 PMHamza
10/20/2018, 4:03 AMmp
10/21/2018, 1:36 AMdave08
10/21/2018, 12:25 PMsamir
10/21/2018, 5:24 PM1.0.0-beta-1
and now all my usages of ApplicationConfig
are generating warnings saying usage should be marked with KtorExperimentalAPI
. What is the reason for this change ? Is there another way to use ApplicationConfig
now ?Sergio Casero
10/21/2018, 9:29 PM<--------Parallel execution is an incubating feature.
> Task :ios:compileDebugIos_arm64KotlinNative FAILED
Undefined symbols for architecture arm64:
"_kfun:io.ktor.client.engine.ios.IosClient()io.ktor.client.engine.HttpClientEngineFactory<io.ktor.client.engine.HttpClientEngineConfig>", referenced from:
_kfun:io.ktor.client.HttpClient(kotlin.Function1<io.ktor.client.HttpClientConfig<#STAR>,kotlin.Unit>)io.ktor.client.HttpClient in combined.o
"_kfun:kotlinx.coroutines.CoroutineScope.<get-isActive>()ValueType", referenced from:
_kmethods:io.ktor.util.pipeline.PipelineContext in combined.o
_kmethods:io.ktor.client.call.HttpClientCall in combined.o
_kmethods:io.ktor.client.HttpClient in combined.o
ld: symbol(s) not found for architecture arm64
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
FAILURE: Build failed with an exception.
Looks like it can't find the ktor client methods, no?
The coroutines version is 1.0.0-RC1, and ktor client is 1.0.0-beta1. Android and JS works fineenleur
10/22/2018, 11:49 AMlegzo
10/22/2018, 1:46 PMDias
10/22/2018, 1:57 PMlegzo
10/22/2018, 2:56 PMcoletz
10/22/2018, 3:54 PMheaders[HttpHeaders.ContentType] = ContentType.Application.Json.toString()
and contentType(ContentType.Application.Json)
but I get an exception: io.ktor.http.UnsafeHeaderException: Header Content-Type is controlled by the engine and cannot be set explicitly
. How to set it with the engine? Considering I'm using ios so I'm not sure I can use ktor-client-jsonbootstraponline
10/22/2018, 5:34 PMoshai
10/22/2018, 9:38 PMNGupta
10/23/2018, 9:52 AMkiffin
10/23/2018, 9:58 AMkiffin
10/23/2018, 9:59 AMkiffin
10/23/2018, 10:01 AMmvn build
?coletz
10/23/2018, 10:52 AMrocketraman
10/23/2018, 5:43 PMjava.lang.NoSuchMethodError: kotlinx.coroutines.ExecutorsKt.asCoroutineDispatcher(Ljava/util/concurrent/ExecutorService;)Lkotlinx/coroutines/ExecutorCoroutineDispatcher
Sergio Casero
10/23/2018, 5:49 PMspierce7
10/23/2018, 7:22 PMpatjackson52
10/24/2018, 2:00 PM