https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
multiplatform
  • f

    Ferran

    11/11/2020, 9:53 AM
    For creating a multiplatform project we have to create a kotlin multiplatform module in our project. Is there a way to create submodules inside the multiplatform module so that we can apply clean architecture separation within the module, for example having a module for repositories/data and another submodule for usecases
    t
    a
    m
    • 4
    • 7
  • d

    dan.the.man

    11/11/2020, 4:20 PM
    I'm using KMP with Ktor, but when I go to make a network request in Android, I'm gettiing
    java.security.cert.CertificateException: Domain specific configurations require that hostname aware checkServerTrusted(X509Certificate[], String, String) is used
    but I can make the exact same request with retrofit no problem, it's a simple GET and works in a browser/postman etc
    • 1
    • 2
  • a

    Alex Anisimov

    11/12/2020, 3:29 PM
    📣📣📣 Attention all Kotlin Multiplatform users! Our users are the best source of information about Kotlin and we continue to rely on their help while making decisions about the future of the technology. Every single change that has been made to Kotlin has been based on feedback from thousands of Kotlin users around the world. Today we want to give you a chance to help create the future of Kotlin Multiplatform! Take part in the first Kotlin Multiplatform user survey, share your thoughts and feedback, and help us make Kotlin Multiplatform even better! As a token of thanks, everyone that participates in this survey will also be entered into a raffle for the chance to win a special prize from the Kotlin team! 🏆 ➡️ https://kotl.in/KMP_survey
    👍 17
    :kotlin: 5
    ✅ 3
    m
    l
    • 3
    • 2
  • r

    rsetkus

    11/12/2020, 4:06 PM
    Hi. Published Kotlin Multiplatform Android library on local maven but when importing library into an app as dependency getting error:
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    > Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
       > Could not resolve xx.yy.mpp:kommon-android:0.0.1.
         Required by:
             project :app
          > No matching variant of xx.yy.mpp:kommon-android:0.0.1 was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
              - Variant 'android-releaseApiElements' capability xx.yy.mpp:kommon-android:0.0.1 declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
                  - Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
              - Variant 'android-releaseRuntimeElements' capability xx.yy.mpp:kommon-android:0.0.1 declares a runtime of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
                  - Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
              - Variant 'metadata-api' capability xx.yy.mpp:kommon-android:0.0.1:
                  - Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'
                  - Other compatible attribute:
                      - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
              - Variant 'metadata-commonMainMetadataElements' capability xx.yy.mpp:kommon-android:0.0.1:
                  - Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'
                  - Other compatible attribute:
                      - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
    Feeling it is more
    maven-publish
    plugin issue but since it is KMP project I thought somebody else has faced with the same issue.
    b
    b
    • 3
    • 15
  • p

    Patrick Doering

    11/12/2020, 7:50 PM
    Hey is it possible to set up a Jacoco coverage report in a multiplatform project on the jvmTest task? Does anybody have an example?
    d
    t
    m
    • 4
    • 4
  • w

    william

    11/12/2020, 9:09 PM
    does anyone know of some swift code gen plugins? i.e. something that allows me to annotate an enum and then it will generate the swift code for the enum and maybe appropriate methods to convert the objc "enum" thing into a swift enum? or used for other purposes? I found https://github.com/outfoxx/swiftpoet which I am curious if people have taken advantage of for iOS interop
    c
    • 2
    • 2
  • s

    Sebastien Leclerc Lavallee

    11/12/2020, 9:34 PM
    Hey! I wanted to know if it’s possible to set the version ( among other fields ) when generating a podspec file using the gradle task? By default, it outputs:
    spec.version                  = 'unspecified'
    which is not OK for Cocoapods and we need to set a version. I did set the version manually but for some reason, when executing Fastlane to bundle and upload my app, the
    shared:podspec
    task is executed. I don’t exactly where and why it’s executed, I’m still trying to figure it out. But I would prefer to have a way to set it by code inside my gradle file. Thanks 🙂
    a
    • 2
    • 2
  • l

    Lukasz Kalnik

    11/13/2020, 10:57 AM
    Hello, I'm looking for a way to bundle and load text files as resources in an Android/iOS multiplatform project.
    👀 1
    j
    • 2
    • 2
  • f

    Ferran

    11/13/2020, 11:29 AM
    do you know if
    SharedFlow
    is available from
    org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1
    ? if not, which dependency shall I add for the
    commonMain
    sourceset?
    :yes: 2
    👀 1
    r
    l
    • 3
    • 19
  • h

    Hauke Radtki

    11/13/2020, 12:42 PM
    Is there a way to reference an extension function by package? My issue: I want to
    expect
    an extension function that is available on some targets and not on others. E.g.:
    File.readBytes():ByteArray
    is defined in jvm but not on native. So I want to have an actual expression that references the existing extension function (located in
    <http://kotlin.io|kotlin.io>
    ) for jvm and roll my own implementation for native targets.
    i
    • 2
    • 2
  • s

    Slackbot

    11/13/2020, 3:10 PM
    This message was deleted.
    k
    • 2
    • 2
  • e

    Elka

    11/13/2020, 4:16 PM
    Hello, After I enabled hierarchical source sets as I have need a special implementation for
    iosArm32
    kotlin.mpp.enableGranularSourceSetsMetadata=true
    kotlin.native.enableDependencyPropagation=false
    I am getting
    Gradle import errors
    and the IDE is not recognizing anything (no code highlighting, no code navigation…) The error is
    Unable to build Kotlin project configuration
    Details: java.lang.reflect.InvocationTargetException: null
    Caused by: java.lang.IllegalStateException: Couldn't resolve metadata artifact for ModuleDependencyIdentifier(groupId=org.jetbrains.kotlinx, moduleId=kotlinx-coroutines-core) in configuration ':shared:iosArm32CompileKlibraries'
    HOWEVER, when I don’t use the coroutines-native-mt branch the gradle configuration works fine.
    implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines") {
        version {
            strictly '1.3.9-native-mt'
        }
    }
    • 1
    • 1
  • d

    Daniele B

    11/13/2020, 5:19 PM
    Next week I will be publishing a Medium article, where I will summarize my 6-month research into DeclarativeUIs and Kotlin MultiPlatform, connected via the MVI pattern. This diagram is a preview. Next week I will be linking the full article, with more details about the overall architecture. These are paragraphs of the article I am writing: - The Past - The Future - The 3 pillars for the future of apps - The D-KMP architecture - Declarative UIs have landed on Android and iOS! - Why declarative UIs? - Kotlin 1.4 has made MultiPlatform real! - Why Kotlin MultiPlatform is the future? - KMP vs Flutter vs ReactNative - Platform-specific code in D-KMP is just 15% - MVI pattern: the third pillar of D-KMP - StateFlow: the MVI pattern enabler on KMP - StateFlow on the different platforms - Rich client vs Thin client - Multi-Platform: why Kotlin and not Swift? - Team organization - The legacies - KMP libraries - D-KMP for Web
    👀 6
    👍 11
    k
    r
    +2
    • 5
    • 20
  • j

    Jide

    11/14/2020, 8:15 AM
    What's the proper way to consume flow observables in iOS? Can't see any sample beyond third party observable libraries
    j
    r
    d
    • 4
    • 7
  • a

    Andrew

    11/15/2020, 3:56 AM
    If you omit the full package names in a KMP project is there a way to have the java code built with prefixing the full package. For example if you used "package mypackage" can the java code be built as if you used "package com.example.mypackage"?
    g
    l
    • 3
    • 16
  • d

    Dr.jacky

    11/15/2020, 2:59 PM
    Hey guys I have a problem My sample project was working perfectly on kotlin 1.3.70 and when I upgrade to 1.4.10, 14.20-rc and upgrade Kodein, Ktor, Serialization, ... the iOS app crashes but, Android run without problem. I struggled a lot but, couldn’t figure out what is wrong with the iOS app! Could anyone give me a hand on this? https://github.com/Drjacky/TMDbMultiplatform/tree/feature/kotlin1410… I appreciate that __ Before kotlin migration, I could see the app launch and see the list of movies on the list. Now on iOS, it shows a white screen for a second then, the app will close. I cleared the log system, then just run the app. It starts, then stopped:
    Nov 14 19:52:22 Drjacky-MacBookPro ios[11152]: assertion failed: 20B29 18B79: libxpc.dylib + 50260 [BDCDB527-0E34-3346-8444-E8CEEF0377ED]: 0x7d
    Nov 14 19:52:22 Drjacky-MacBookPro http://com.apple.CoreSimulator.SimDevice.623058DA-0F47-4361-BDE0-4F9E80184FF0[11005] (UIKitApplication:app.web.drjackycv.ios.debug[2196][rb-legacy][11152]): Service exited with abnormal code: 1
    Nov 14 19:52:23 Drjacky-MacBookPro ios[11153]: assertion failed: 20B29 18B79: libxpc.dylib + 50260 [BDCDB527-0E34-3346-8444-E8CEEF0377ED]: 0x7d
    Nov 14 19:52:23 Drjacky-MacBookPro http://com.apple.CoreSimulator.SimDevice.623058DA-0F47-4361-BDE0-4F9E80184FF0[11005] (UIKitApplication:app.web.drjackycv.ios.debug[96f0][rb-legacy][11153]): Service exited with abnormal code: 1
    I’ve set all library version to the ones that use kotlin 1.4.0. I thought maybe this is the reason but, didn’t help. For example: ‍‍‍‍‍
    reactiveVersion=1.1.17
    ktorVersion=1.4.0
    kotlinVersion=1.4.0
    kodeinVersion=7.1.0
    plugings { kotlin("plugin.serialization") version "1.4.0"
    m
    • 2
    • 1
  • a

    Azur Haljeta

    11/15/2020, 4:19 PM
    In the spirit of practicing expect/actual constructs, I need a code which validates an email for iOS targets, but this turned to be harder than I thought 👇
    c
    g
    • 3
    • 8
  • w

    william

    11/15/2020, 7:09 PM
    anyone have recommendations for multiplatform collections like trees, sets, ordered sets?
    a
    • 2
    • 1
  • s

    Skolson5903

    11/15/2020, 8:44 PM
    I seem to be encountering an Android Studio issue in a project with MP modules that have android(), jvm(), and ios() targets, and am wondering if anyone else has seen this. Environment is kotlin 1.4.20-RC, gradle 6.7, Android Studio 4.1. Gradle builds of the MP modules in question work fine, so the gradle config is decent. I have an actual class implementation in the jvmMain sourceset that displays in android studio fine, with no errors. The exact same source in androidMain, which gradle also builds fine, shows in Android Studio with every import of a java package as an error. The "java" prefix in each package import is red as if the IDE doesn't see the jdk8 dependency only in the androidMain sourceset. But gradle sees it fine and builds the source with no errors, so the dependencies in the gradle config are corrrect. This doesn't happen in all my Kotlin MP projects, so there is something different about this one that I'm still trying to figure out. The same question with more detail (build.gradle.kts) is on Stack Overflow, at this link: Stack Overflow question . Thanks in advance for any info.
    k
    • 2
    • 3
  • s

    Santiago Avila

    11/15/2020, 11:27 PM
    Hi everyone, I’m compiling an iOS app and I’m getting this error
    Native interop types constructors must not be called directly
    in line 34, does anyone knows how can I fix it? Thanks!
    a
    • 2
    • 2
  • x

    xiaobailong24

    11/16/2020, 5:01 AM
    Anyone get this error? Thanks https://stackoverflow.com/questions/64852833/could-not-get-resource-https-plugins-gradle-org-m2-org-gradle-kotlin-plugins
    g
    • 2
    • 1
  • a

    ankushg

    11/16/2020, 7:59 PM
    Is there a way to expose an
    interface
    from Kotlin which declares `suspend fun`s (or some other async construct), and have an iOS app app directly implement the interface in Swift, rather than implementing it through KMP? Our mobile data layers are currently platform-specific and have a ton of moving parts. It's definitely not a short-term project to convert them to KMP (and we're not sure if we would ever really want to). We do however want to migrate more logic into KMP! We were hoping there's a way to: • define KMP interfaces for Use Cases/Interactors, • implement those interfaces using our (non-KMP) data layers in iOS/Android, and then • constructor-inject those Use Case implementations into a KMP ViewModel, using them from common code Anyone have any insight?
    👀 5
    s
    b
    +2
    • 5
    • 11
  • g

    German Politov

    11/17/2020, 1:01 PM
    Hello everyone! Does somebody know if there is any public repository with the multiplatform sample project that supports three targets simultaneously:
    Android
    ,
    iOS
    and
    JS
    ? I've already successfully developed KMP targeting Android and iOS with simple shared code that makes API call to Google Photos endpoint and shows fetched photos in the apps on both platforms(Android/iOS), now I want to add JS support to the project by creating a simple JS(or React) page that will use that shared code also. Please share the links to repositories or documentation how to combine three targets in one KMP if you know such.
    s
    j
    • 3
    • 4
  • d

    Daniele B

    11/17/2020, 3:05 PM
    Does the KMM portal load to you? It doesn’t to me: https://kotlinlang.org/docs/mobile/getting-started.html
    a
    l
    • 3
    • 2
  • u

    Umar Ata

    11/17/2020, 5:55 PM
    Hi there,
    I have a method in commonMain in SharedClass 
    @Throws(Exception::class)
         fun feed(value: DoubleArray) {
    ..
    }
    and it inputs DoubleArray and I can pass that without any issues from Android Kotlin project but in iOS there is no such data type and I have
     let floatArray1 = Array(UnsafeBufferPointer(start: buf.floatChannelData![1], count:Int(buf.frameLength)))
    but I cannot pass it to my method in commonMain
    so for this I created another method in Kotlin in which first I convert the float array in swift to NSMutable String array then pass it to that method and in that method I create a DoubleArray and then initialise in ForEachIndex loop
    
    @Throws(Exception::class)
        fun getDoubleArrayFromStringList(doubleArray: ArrayList<String>, printLog: Boolean?): DoubleArray {
            if (printLog == true) println("given array:$doubleArray")
            val signal = DoubleArray(doubleArray.count())
            doubleArray.forEachIndexed { index, str ->
                    val doubleValue = (str.toDouble())
                    signal[index] = doubleValue
            }
            if (printLog == true) println("converted array:${signal.contentToString()}")
            return signal
        }
    Is there any easy solution for my problem
    a
    • 2
    • 3
  • e

    Elnur Jeksenov

    11/18/2020, 5:17 AM
    Hi guys👋 My android project contains three modules: 1. app 2. ui(jetpack compose) 3. sdk(kotlin multiplatform, ktor client) So I’m making requests to server in sdk(kotlin multiplatform) module. I want to upload file via multipart-form-data, but there is no support for java.io.file in kotlin multiplatform. Have you got any idea to solve this problem?
    a
    a
    • 3
    • 10
  • r

    Rhony

    11/18/2020, 10:38 AM
    Anybody here already use moko mvvm and mobile-multiplatform-gradle-plugin ? I try to learn kmm using this library but still fail to build ios project. I’m also try to follow their cocoapods setup but still unable to build the ios package. Really appreciate If anybody want to make a pull request on my public repository.
    g
    a
    • 3
    • 13
  • d

    Daniele B

    11/18/2020, 12:52 PM
    As announced last week, I am now finally publishing the article about my research in KMP and Declarating UIs, using the MVI pattern. I am presenting the D-KMP architecture, which allows 85% of shared code. I hope this can bring useful elements to promote Kotlin MultiPlatform! https://twitter.com/dbaroncellimob/status/1329044480515772420?s=09
    ❤️ 3
    🔥 8
    👏 5
    👍 6
    t
    s
    +4
    • 7
    • 45
  • a

    Azur Haljeta

    11/18/2020, 3:08 PM
    What do I need to do to have a KMM project working well with Xcode and cocoapods? I want to drop the
    packForXcode
    task and instead use cocoapods. And I also want to be able to add iOS-specific libraries directly into
    build.gradle.kts
    , like AFNetworking. I know that this is possible and doable but... Is there a complete example out there? I've tried the following but there ae always some issues...
    k
    r
    • 3
    • 9
  • o

    Oleh

    11/18/2020, 4:11 PM
    Anyone had issue on ios side with
    Ktor native HttpClient requires kotlinx.coroutines version with 'native-mt' suffix (like '1.3.9-native-mt'). Consider checking the dependencies.
    message? I’m using 1.4.1 
    ktor
     in the multiplatform project?
    j
    • 2
    • 4
Powered by Linen
Title
o

Oleh

11/18/2020, 4:11 PM
Anyone had issue on ios side with
Ktor native HttpClient requires kotlinx.coroutines version with 'native-mt' suffix (like '1.3.9-native-mt'). Consider checking the dependencies.
message? I’m using 1.4.1 
ktor
 in the multiplatform project?
j

John O'Reilly

11/18/2020, 4:15 PM
Ktor depends on having
native-mt
version of Kotlinx Coroutines and unfortunately that's only available for 1.3.9 right now (though hope I think is that 1.4.1 version will be available this week)
o

Oleh

11/18/2020, 4:18 PM
oh, ok, I thought coroutines releases going consistently with versions for all branches
j

John O'Reilly

11/18/2020, 4:18 PM
https://kotlinlang.slack.com/archives/C1CFAFJSK/p1605611001148000
o

Oleh

11/18/2020, 4:24 PM
Cheers!
View count: 3