https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Alex Anisimov

06/02/2021, 12:18 PM
Hey folks! The KMM team is wondering what libraries you lack the most? Please share areas where you would like to have more libraries in the comments.
m

mbonnin

06/02/2021, 12:19 PM
Url parsing! (Although there might be something in ktor now that I think about it?)
d

Dominaezzz

06/02/2021, 12:23 PM
There is but it feels somewhat limited.
Security. Multiplatform md5, sha256, AES, etc.
19
💯 10
IO! Byte streams and buffers.
7
👍 9
m

mbonnin

06/02/2021, 12:30 PM
Why not Okio for IO? (don't want to divert this thread though so I could take this question somewhere else)
☝️ 1
d

Dominaezzz

06/02/2021, 12:37 PM
For something as fundamental as IO, I would much rather use a 1st party library. Although if Jetbrains officially say they are never going to revisit kotlinx-io, then I'll use okio. Otherwise, I'd rather not get too involved with fragmentation.
👍 7
s

solidogen

06/02/2021, 12:41 PM
well, since Android 5.0 httpurlconnection uses okhttp internally, so I’d argue that okio is somewhat 1st party 🙂
🤖 1
k

Kris Wong

06/02/2021, 12:41 PM
DI and mocking
10
💉 4
really a focus on testing and code coverage would be awesome
14
k

KamilH

06/02/2021, 1:02 PM
Having 1st party, multiplatform DI library would be really awesome @Dominaezzz this answer from Kotlin’s team member seems to indicate there is not going to be any development effort in a near future in kotlinx-io: https://www.reddit.com/r/Kotlin/comments/nm2eaf/kotlin_team_ama_3_ask_us_anything/gzn9abw
j

Javier

06/02/2021, 1:15 PM
IO and DI
r

rudolf.hladik

06/02/2021, 1:16 PM
DI 💉 and
kotlinx-coroutines-test
🙏
9
💯 7
j

Javier

06/02/2021, 1:18 PM
Ah yeah, coroutines test plus fix this issue before IO and DI https://github.com/Kotlin/kotlinx.coroutines/issues/1204
r

russhwolf

06/02/2021, 1:38 PM
Regarding IO, it would be nice to have something that could integrate with kotlinx-serialization, whether its okio or kotlinx-io.
9
c

Carter

06/02/2021, 1:57 PM
Assuming we’re talking about first-party libraries to address gaps that are often provided by frameworks like Java or Apple Foundation. • UUIDs (currently using https://github.com/benasher44/uuid) • Ability to read/write gzip streams (currently using JVM, so this part of my codebase is not multiplatform) • Database (wrote a wrapper to support wrapping DBs in the future, although currently using currently using Exposed in the JVM target. This is for a non-mobile app, so SQLDelight isn’t ideal). • Coverage (currently using Jacoco for commonMain/jvmMain but lack coverage for code under jsMain and native targets)
c

Casey Brooks

06/02/2021, 2:42 PM
- IO is definitely the big one, as everyone else is mentioning - Multiplatform parameterized tests
a

audriusk

06/02/2021, 2:46 PM
Coroutines testing in MPP. With time control • Official logging API in MPP. Community can build implementation. But I think Kotlin MPP should have unified API which should be used in all MPP kotlin libraries. Current situation is that there is like 10 different interfaces to implement to have unified logging when app is using http lib, AB testing, graphql client, auth, analytics, etc, because every lib provides it's own.
4
🙏 1
c

Casey Brooks

06/02/2021, 2:49 PM
Yes, logging! I’d love to see an official SLF4J-type thing for Kotlin
👍 1
r

russhwolf

06/02/2021, 2:58 PM
Another thing I've seen people looking for a bunch (though I don't know that it needs a first party solution) is mocking
g

Glen

06/03/2021, 12:15 AM
By the way, @Dominaezzz, you can check out this project for multiplatform cryptographic primitives: https://github.com/appmattus/crypto and also : https://github.com/korlibs/krypto
👍 2
There is also #cryptography you can check out.
g

Greg Steckman

06/05/2021, 4:17 PM
In the C++ world there are the Boost libraries. Many of the libraries developed under that project eventually get folded into the standard library. I think an organization like this would be good for Kotlin Multiplatform library development and the community - using only Kotlin and no platform specific library dependencies so it is truly multiplatform. The community appears to be quite fractured in developing many libraries having overlapping feature sets and few with critical mass of adoption. @Big Chungus has developed this nice catalog of all the Kotlin libraries on Github - 4479 in total!
l

louiscad

06/08/2021, 6:55 PM
Firebase.
4
k

Kartik Prakash

07/12/2021, 1:50 AM
mocking library
4 Views