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
  • m

    Marko Novakovic

    12/20/2021, 4:11 PM
    https://github.com/rickclephas/KMP-NativeCoroutines are you able to actually set this up and run the app? it breaks my app every single time I import it
    r
    j
    23 replies · 3 participants
  • p

    Paul Weber

    12/20/2021, 8:25 PM
    I’m trying to expose an extension function on
    ByteArray
    on
    KotlinByteArray
    in swift.
    fun ByteArray.toUIImage(): UIImage = this.usePinned {
        val nsData = NSData.create(bytes = it.addressOf(0), this.size.convert())
        return UIImage(data = nsData)
    }
    I can’t see this function in Swift though. Is this not possible or am I missing something? How do you properly pass image data to swift from kotlin?
    ✅ 1
    1 reply · 1 participant
  • w

    William Persall

    12/20/2021, 11:27 PM
    How can I configure the multiplatform tasks that are part of the plugin, so that yarn will not load eslint-scope-3.7.2 but a different version. The 3.7.2 that appears to come as part of the yarn build 1.22.10 that is part of the plugin, has a known vulnerability. I can't seem to fi d documentation on how to do this?
    1 reply · 1 participant
  • x

    xxfast

    12/21/2021, 6:16 AM
    Is there a reason why the KMM plugin not being available for intelij IDEA?
    k
    1 reply · 2 participants
  • e

    Eirik Vale Aase

    12/21/2021, 10:12 AM
    We’re having some difficulties with thrown exceptions from the shared code that we handle in the iOS side. We annotate suspending functions in our domain/data layer with
    Throws(Throwable:class)
    and we log these errors to Crashlytics. Problem is, the error we get (when we cast it as an NSError) has a user info dictionary with a KotlinException entry, and it has a code of 0 and a domain of “KotlinException”. This causes all errors logged to crashlytics to be grouped under the same bucket. The Kotlin throwable has a message which looks something like this (this is formatted for readability, it’s still a string)
    Exception in http request:
        Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline."
        UserInfo={
            _kCFStreamErrorCodeKey=50,
            NSUnderlyingError=0x28035a940 {
                Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)"
                UserInfo={
                    _NSURLErrorNWPathKey=unsatisfied (No network route),
                    _kCFStreamErrorCodeKey=50,
                    _kCFStreamErrorDomainKey=1
                }
            },
            _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <595E528B-8F59-4D85-88EE-DD084FC43CE7>.<1>,
            _NSURLErrorRelatedURLSessionTaskErrorKey=(
                "LocalDataTask <595E528B-8F59-4D85-88EE-DD084FC43CE7>.<1>"
            ),
            NSLocalizedDescription=The Internet connection appears to be offline.,
            NSErrorFailingURLStringKey=SOME URL,
            NSErrorFailingURLKey=SOME URL,
            _kCFStreamErrorDomainKey=1
        }
    I could try and parse this string, extract regex matches etc, but I was wondering if there is a better way. It seems like Kotlin packs all of the interesting stuff and concatenates their string representations and just stuffs it into the userInfo entry. I would very much have liked to get the actual error instance. How do people handle this?
    👀 3
    r
    k
    +1
    28 replies · 4 participants
  • b

    breandan

    12/21/2021, 9:36 PM
    One issue I've been having with multiplatform development is that I am no longer able to run anything from inside the IDE. Maybe there is some issue with the Gradle build script, but after switching my project to KMP I cannot run anything by right-clicking on a functions and selecting "Run" or "Debug" - instead I must setup a special task in Gradle and do everything from the command line. Has anyone else encountered this issue? How can I debug KMP code?
    b
    2 replies · 2 participants
  • s

    Sunil Kumar

    12/22/2021, 4:13 PM
    Hi all, i am working on kotlin multiplatform app and i have created two separate projects for android and ios, and inside android project i have setup the kmm shared module. Then i am importing the shared module in ios project in xcode by setting the hardcoded path for both framework search path and run script. And it was working perfectly. But now due to some issue, i had to import the project from git and created the project in separate directory on my macbook and then accordingly changed the paths in xcode as well. But now its showing build error there as following:-
    Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
    Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
    Important point: What is different that i have seen from my previous project(which was working) is that inside new android project's shared/build/ directory, no xcode-frameworks and bin folders found there, these folders are not available there inside new project.  I have been following everything from this link since the beginning for setting up the project:https://kotlinlang.org/docs/kmm-integrate-in-existing-app.html#connect-the-framework-to-your-ios-project. Guys Please help me with this. Struggling a lot with this. Thanks
    a
    1 reply · 2 participants
  • a

    Anton Afanasev

    12/22/2021, 9:37 PM
    Hi. Are there any convenient way for KMM to access network state for both Android and iOS? Looking to monitor connectivity lost/change. Considering that I am supposed to be a 3-rd party library.
    b
    j
    +4
    8 replies · 7 participants
  • p

    Pavel Gorgulov

    12/23/2021, 2:37 PM
    Hi! I have a JVM library. We are now making it multiplatform. One of the features of the library is the different implementations. On the JVM, this is done via SPI (Service Provider Interface). Help, please, do you know a way to do the same for kotlin-js and kotlin-native?
    b
    4 replies · 2 participants
  • p

    Pavel Repkin

    12/23/2021, 6:27 PM
    Hi! I’ve got a large byte array (a bitmap) on Swift side inside UInt8[] array. How do I pass it to Kotlin? I have found this answer on Stack Overflow, but it looks very inefficient - every byte is copied in cycle. Is there a more effective way to transfer the byte array?
    b
    2 replies · 2 participants
  • j

    Jeff

    12/26/2021, 7:17 AM
    I get this error in a fresh KMM mobile project: Please, check that podfile contains following lines in header: source 'https://cdn.cocoapods.org'
    o
    s
    +2
    6 replies · 5 participants
  • p

    Paul Weber

    12/27/2021, 1:51 PM
    I'm trying to add Stripe via cocoapods to my KMM project. I've added it via
    pod("Stripe")
    to my
    build.gradle.kts
    but now syncing the project fails with the task
    ':shared:cinteropStripeIosArm64'
    producing the following error:
    Exception in thread "main" java.lang.Error: /Users/paulweber/Development/Spenderino/shared/build/cocoapods/synthetic/IOS/shared/build/Release-iphoneos/Stripe/Stripe.framework/Headers/Stripe-Swift.h:722:10: error: no type or protocol named 'PKContactField'
        at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:192)
    I can use Stripe inside Xcode with this configuration, but building my shared kotlin module fails due to the aforementioned task failing. I'm guessing this has something to do with the gradle task not having access to Apple's
    PassKit
    which is however needed for compiling the Stripe pod? Has someone successfully integrated Stripe in a KMM project or run into a similar error with cocoapods?
    1 reply · 1 participant
  • t

    tylerwilson

    12/27/2021, 4:17 PM
    So I have a KMP module, with ios, mac, jvm, js targets. The mac source looks fine, but the iOS is full of Unresolved References for all iOS classes/methods. I am using the latest Android Studio and KMM plugin. Any ideas why this is happening?
    m
    2 replies · 2 participants
  • s

    Solomon Tolu Samuel

    12/28/2021, 2:18 PM
    Hello, I am getting this error on my newly created KMM project when i try to run the IOS app from android studio
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring project ':shared'.
    > The project must have a target for at least one of the following platforms: ios_simulator_arm64.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at <https://help.gradle.org>
    
    BUILD FAILED in 415ms
    ** BUILD FAILED **
    
    
    The following build commands failed:
    	PhaseScriptExecution [CP-User]\ Build\ shared /Users/tolusolomon/AndroidStudioProjects/MyApplication/build/ios/Pods.build/Debug-iphonesimulator/shared.build/Script-4552119A071AC6BAB7327E6434237EC3.sh (in target 'shared' from project 'Pods')
    (1 failure)
    Command PhaseScriptExecution failed with a nonzero exit code
    And a build time error when i try to run the iosApp on Xcode:
    "cannot find 'Greeting 'in scope"
    and also this error
    Failed to register bundle identifier (The app identifier "orgIdentifier.iosApp" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.)
    please help out, thanks
    p
    4 replies · 2 participants
  • a

    azemar

    12/28/2021, 8:53 PM
    Does anyone have working example of custom xcframework cinterop implementation? Context: Trying to achieve similar approach to firebase-kotlin-sdk, i.e. take custom iOS and Android libraries, add common code and publish it to maven for easy KMM consumption. Unfortunately copying their gradle configuration doesn't work for me, and tweaking it results in different kind of errors (e.g. linkDebugTestIos failures). Perhaps it's related to how xcframework is configured, I am not using Carthage or Cocoapods 🤷 Nonetheless would be great to see working examples of similar solutions if anyone has any.
    👀 1
    p
    k
    36 replies · 3 participants
  • j

    John O'Reilly

    12/29/2021, 11:19 AM
    Are there any good examples available yet using new Kotlinx Coroutines 1.6
    runtTest
    in
    commonTest
    tests? I have a basic test that tests flow which works if run for Android or JVM but for iOS target I'm getting following.
    UncompletedCoroutinesError: After waiting for 60000 ms, the test coroutine is not completing
    m
    14 replies · 2 participants
  • a

    Alexander Suraphel

    12/30/2021, 2:42 PM
    I just tried to create a new KMM project with Android studio and got this error when it tried to build:
    'pod install' command failed with code 1.
    Error message:
    Please, check that podfile contains following lines in header:
    source '<https://cdn.cocoapods.org>'
    How do fix this?
    p
    j
    6 replies · 3 participants
  • r

    Radoslaw Juszczyk

    12/30/2021, 5:23 PM
    guys, do we still have to add this dependency to androidMain:
    api("org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines")
    in a kotlin multiplatform project where
    api("org.jetbrains.kotlinx:kotlinx-coroutines-core")
    is inside commonMain ?
    l
    e
    3 replies · 3 participants
  • s

    spierce7

    12/30/2021, 5:27 PM
    Why is there no such a thing as Volatile for Kotlin Native?
    p
    m
    9 replies · 3 participants
  • b

    brabo-hi

    12/31/2021, 1:41 AM
    Hi all, when using kmm, how to handle BigDecimal ?
    e
    k
    4 replies · 3 participants
  • s

    spierce7

    12/31/2021, 4:03 PM
    Why isn’t the
    iosSimulatorArm64()
    target part of the
    ios()
    target yet? Same for
    tvosSimulatorArm64()
    and
    tvos()
    .
    👀 3
    s
    r
    +1
    12 replies · 4 participants
  • s

    Solomon Tolu Samuel

    01/01/2022, 8:46 PM
    hello guys, please i need help with this. Whenever i add the ktor dependency to the iosMain in my build.gradle.kts(:shared), the ios app fails to build but after removing it builds. This is the shared gradle:
    val iosX64Main by getting
    val iosArm64Main by getting
    val iosSimulatorArm64Main by getting
    val iosMain by creating {
        dependsOn(commonMain)
        iosX64Main.dependsOn(this)
        iosArm64Main.dependsOn(this)
        iosSimulatorArm64Main.dependsOn(this)
        dependencies{
            implementation(Dep.Ktor.ios)
        }
    }
    And this is the error i get:
    BUILD FAILED in 3s
    7 actionable tasks: 2 executed, 5 up-to-date Command PhaseScriptExecution failed with a nonzero exit code * BUILD FAILED * The following build commands failed: PhaseScriptExecution [CP-User]\ Build\ shared /Users/tolusolomon/AndroidStudioProjects/Link/build/ios/Pods.build/Debug-iphonesimulator/shared.build/Script- (1 failure)
    m
    r
    5 replies · 3 participants
  • d

    darkmoon_uk

    01/02/2022, 11:06 AM
    Anyone aware of a Multiplatform library to format (human readable) data sizes e.g.
    17238
     → 
    17.24 kB
    ? Must include JS. Used Package Search but nothing came up 🤷
    j
    3 replies · 2 participants
  • s

    Solomon Tolu Samuel

    01/02/2022, 5:25 PM
    Hello guys, does anyone know why the iosApp on a fresh KMM project won't run when the iosSimulatorArm64() target is commented out?
    FAILURE: Build failed with an exception.
    * What went wrong: A problem occurred configuring project ':shared'.
    The project must have a target for at least one of the following platforms: ios_simulator_arm64.
    The following build commands failed: PhaseScriptExecution [CP-User]\ Build\ shared /Users/tolusolomon/AndroidStudioProjects/Link/build/ios/Pods.build/Debug-iphonesimulator/shared.build/Script-882AF45D8B8C4938AC461F4FBA0FE197.sh (in target 'shared' from project 'Pods') (1 failure) Command PhaseScriptExecution failed with a nonzero exit code
    r
    2 replies · 2 participants
  • r

    rkechols

    01/02/2022, 6:28 PM
    I'm trying to figure out which tools work well with KMM and haven't found any clear answers. Do these tools work well with KMM? • Android Jetpack • Dependency injection (Koin?) Or, do they cause significant problems with KMM? And if they do, what tools are recommended for similar purposes?
    p
    p
    +3
    11 replies · 6 participants
  • d

    darkmoon_uk

    01/03/2022, 11:24 AM
    🎁 In case anyone finds it useful, here's a ✨ Human Readable Data Size formatting function ✨ that uses only Kotlin Multiplatform Common API's. Just drop it into your common source set & go 😄 Other implementations I found 😒tackoverflow: either use string formatting or other functions not found in 'common Kotlin'; this gets it done with what's available. Welcome any suggestions for improvement!
    👍🏼 1
    👍 7
    e
    e
    6 replies · 3 participants
  • x

    xxfast

    01/03/2022, 8:50 PM
    Are there any multiplatform shared-resource library that can target js? I know of moko-resources, but they dont support js.
    👀 1
    1 reply · 1 participant
  • k

    Kaushalya

    01/04/2022, 2:25 AM
    Anyone tried KMM recently, how was your experience? • How is new memory model? • Has tooling improved? • Has performance on iOS improved? • Where things are lacking currently?
    e
    k
    11 replies · 3 participants
  • r

    Rohan Maity

    01/04/2022, 5:19 AM
    Hello while working on multiplatform project, I am sharing mu compose UI between android and Web I have created a
    composable
    shared multiplatform module, inside that I have put some compose libraries as
    commonMain
    Android app runs fine, but when I try to run
    ./gradlew jsBrowserRun
    it fails to resolve all the compose dependencies
    c
    d
    5 replies · 3 participants
  • m

    mzgreen

    01/04/2022, 5:57 PM
    Hey, I've recently started playing with a Kotlin Multiplatform. I have a bunch of native targets and I wanted to group them under
    nativeMain
    target. I did this:
    val commonMain by sourceSets.getting
            val commonTest by sourceSets.getting
    
            val nativeMain by sourceSets.creating
            nativeMain.dependsOn(commonMain)
    
            targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget>().all {
                val mainSourceSet = compilations.getByName("main").defaultSourceSet
                val testSourceSet = compilations.getByName("test").defaultSourceSet
    
                mainSourceSet.dependsOn(nativeMain)
                testSourceSet.dependsOn(commonTest)
            }
    I also added
    Okio
    library as a dependency in
    commonMain
    . Now I'm trying to use Okio in a kotlin file inside 
    nativeMain
     directory but it doesn't work. Looks like the dependency is not being correctly picked up. If instead of creating this custom 
    nativeMain
     source set I just use a single one like 
    macosX64
     and then put my kotlin file inside 
    macosX64
     directory then I can use the Okio and it works fine. What am I doing wrong that the dependency doesn't work in my custom 
    nativeMain
    source set?
    p
    k
    5 replies · 3 participants
Powered by Linen
Title
m

mzgreen

01/04/2022, 5:57 PM
Hey, I've recently started playing with a Kotlin Multiplatform. I have a bunch of native targets and I wanted to group them under
nativeMain
target. I did this:
val commonMain by sourceSets.getting
        val commonTest by sourceSets.getting

        val nativeMain by sourceSets.creating
        nativeMain.dependsOn(commonMain)

        targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget>().all {
            val mainSourceSet = compilations.getByName("main").defaultSourceSet
            val testSourceSet = compilations.getByName("test").defaultSourceSet

            mainSourceSet.dependsOn(nativeMain)
            testSourceSet.dependsOn(commonTest)
        }
I also added
Okio
library as a dependency in
commonMain
. Now I'm trying to use Okio in a kotlin file inside 
nativeMain
 directory but it doesn't work. Looks like the dependency is not being correctly picked up. If instead of creating this custom 
nativeMain
 source set I just use a single one like 
macosX64
 and then put my kotlin file inside 
macosX64
 directory then I can use the Okio and it works fine. What am I doing wrong that the dependency doesn't work in my custom 
nativeMain
source set?
p

Paul Woitaschek

01/04/2022, 5:57 PM
Enable hmpp
Basically this section: https://kotlinlang.org/docs/mpp-share-on-platforms.html#use-native-libraries-in-the-hierarchical-structure
m

mzgreen

01/04/2022, 6:01 PM
Oh I've seen this doc but I somehow missed this section, thank you! 🙏
It worked for one lib but not for Okio, Can it be because Okio doesn't support hmpp or something? I don't know if it doesn't, I'm guessing now
k

kpgalligan

01/04/2022, 6:24 PM
Yeah, issues but they look to be resolved in the next release: https://github.com/square/okio/pull/980
👍 1
🙌 2
View count: 38