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

    Giancarlo Buenaflor

    09/07/2022, 8:52 AM
    is anybody else having trouble building their kmm projects through github actions right now? after they upgraded the runner from 2.296.0 to 2.296.1 my iosArm64 target returns a compilation error. I reran old workflows that were successful a month ago and they are also now failing
  • s

    Smorg

    09/07/2022, 3:44 PM
    Hi, new to KMM. Wondering what the recommended approach to navigation is for a Android/iOS app target? Is there some kind of library that can be used to handle navigation on both platforms, or is it better to just handle navigation independently on each platform (since navigation is related to UI, and it's better to write UIs independently)?
    a
    k
    +7
    • 10
    • 15
  • j

    John O'Reilly

    09/07/2022, 6:03 PM
    anyone aware if there's plans to have KMM plugin generate Compose code by default for the android client?
    a
    o
    • 3
    • 2
  • x

    xxfast

    09/07/2022, 10:39 PM
    Love the idea of online meetups. We should definitely keep this going 🙌
    s
    l
    +2
    • 5
    • 12
  • p

    PHondogo

    09/07/2022, 11:35 PM
    Hello! Is it possible to exclude common dependency from target?
  • z

    zt

    09/08/2022, 3:00 AM
    Is there a multiplatform library that wraps an API using ktor that I could look at?
    j
    s
    • 3
    • 2
  • k

    kpgalligan

    09/08/2022, 1:00 PM
    We’re starting to focus in on how teams manage their work rather than just the mechanics of how the tech itself works. Shared code workflows present issues that aren’t generally a problem with multiple separate codebases. It’s one of those things that seems simple, then can get messy in the real world. Looking for feedback on what teams do (or have tried to do). Please reach out if interested (some context in this thread) https://twitter.com/kpgalligan/status/1567856440743792640?s=20&t=4FMDC1As_yUv_QRDOhJOmw
    m
    • 2
    • 1
  • c

    Cristina Suciu

    09/08/2022, 7:03 PM
    hi, I'm experimenting with referencing a KMM framework from within an iOS framework, I'm running
    ./gradlew :shared:embedAndSignAppleFrameworkForXcode
    script at pre-compile time on the framework's project file and I'm getting this runtime error: dyld[87584]: Library not loaded: @rpath/shared.framework/shared I'm following this documentation https://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html#connect-the-framework-to-your-ios-project does anyone know what other build settings I'm missing here?
    s
    k
    k
    • 4
    • 11
  • n

    n8ebel

    09/08/2022, 10:50 PM
    Is there any rhyme or reason to when inline classes are mapped to their underlying type in objective-c versus being mapped to id? For context, we’re trying to use an inline class as a non-null property in another DTO This line in the interop doc seems to suggest it’s at least sometimes possible to represent as the underlying type
    • inline classes (arguments are mapped as either underlying primitive type or
    id
    )
    However, any implementation I’ve tried seems to result in a type of
    id
    being exposed in the XCFramework
    p
    • 2
    • 2
  • x

    xxfast

    09/08/2022, 11:12 PM
    for multiplatform tests, do you have to link the test source sets to the platform source sets for the tests to be able to see the
    actual
    declarations? More in the 🧵
    val nativeMain by getting {
      dependencies { .. }
    }
    
    // Tests won't compile without this
    val nativeTest by getting {
      dependsOn(nativeMain)
    }
    s
    • 2
    • 6
  • j

    jun chen

    09/09/2022, 4:17 AM
    anyone know how to add pod compile option in KMM I want to add below pod_target_xcconfig in my build.gradle.kts file cocoapods block,but I don't know how to add s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
    k
    • 2
    • 3
  • p

    PHondogo

    09/09/2022, 9:50 AM
    Hello! Is it possible for compilation to depend on other compilation (not sourceset) in the same module?
    k
    • 2
    • 3
  • j

    Jose Garcia

    09/08/2022, 10:56 AM
    Hi, debugging the iOS platform on KMP is proving to be a bit complicated. I am not sure if I am doing something wrong, but is it not possible to inspect variables or evaluate expressions using the intelliJ debugger? I can set the breakpoints fine but when it comes to seeing the snapshot of my objects I don’t get any output, just errors.
    k
    j
    k
    • 4
    • 54
  • j

    jun chen

    09/09/2022, 10:45 AM
    podspec user_target_xcconfig add GCC_PREPROCESSOR_DEFINITIONS option not work in KMM
    k
    • 2
    • 3
  • x

    xxfast

    09/09/2022, 11:51 AM
    With KMP, are you able to target Apple Carplay and Android Automotive/Auto?
  • m

    mattinger

    09/09/2022, 7:47 PM
    Have a quick question. If i have a KMM project, it’s making me declare either/or/both iosArm64 or iosX64. However, both projects would probably have some common source code. I’m not quite sure how to configure my project for shared source code between iOS architectures. Any pointers? I tried adding an iOS common source set:
    val iosCommon by creating
    val iosArm64Main by getting {
        dependsOn(iosCommon)
    }
    But it still fails compilation when i move an actual object implementation into iosCommon instead of iOSArm64main
    x
    • 2
    • 2
  • r

    rrg

    09/09/2022, 8:02 PM
    Hello all, we're looking into moving to the KMM framework as a base for our Android and iOS apps and am tasked with investigating what the storage options are that work in the KMM framework for both Android and iOS. It looks like SQLDelight is a popular option, are there any others? Is there a comparison or review available somewhere of these options and pros and cons etc?
    j
    r
    +3
    • 6
    • 12
  • m

    mkrussel

    09/09/2022, 8:40 PM
    How do you specify the
    CFBundleVersion
    and
    CFBundleShortVersionString
    that gets placed in the
    Info.plist
    file generated with the framework executable?
    m
    • 2
    • 1
  • x

    xxfast

    09/10/2022, 9:08 AM
    How do I publish sources for a multiplatform library with
    maven-publish
    plugin?
    e
    s
    • 3
    • 6
  • x

    xxfast

    09/12/2022, 12:34 AM
    My first multiplatform library open for feedback. https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1662937749366859
    m
    • 2
    • 8
  • m

    Mihai Voicescu

    09/12/2022, 12:44 PM
    For some reason, my project is trying to pull some prebuilt versions of my other libraries for iOS... Any ideas why it's doing this or how I can fix it?
    e: Could not find "io.almer:gaia-api" in [/Users/mihaivo/AndroidStudioProjects/AlmerCompanion, /Users/mihaivo/.konan/klib, /Users/mihaivo/.konan/kotlin-native-prebuilt-macos-x86_64-1.7.10/klib/common, /Users/mihaivo/.konan/kotlin-native-prebuilt-macos-x86_64-1.7.10/klib/platform/ios_arm64]
  • s

    Sebastian Sellmair [JB]

    09/12/2022, 1:47 PM
    message has been deleted
  • r

    rocketraman

    09/12/2022, 9:44 PM
    Are there any tricks to getting Previews to work in XCode (13.2.1) with a Kotlin shared lib? All I see is "Command CompileSwiftSources failed with a nonzero exit code" with no root cause as far as I can tell.
    s
    • 2
    • 5
  • a

    Akram Bensalem

    09/12/2022, 9:49 PM
    I want to add protobuf to my kotlin multiplatform project that contain "Android and Desktop" so it's JVM only the plugin by default compiles protobuf source from "src/main/proto" rather than "src/commonMain/proto" Do you know how to fix that issue ?
    v
    • 2
    • 2
  • e

    epool

    09/12/2022, 11:12 PM
    hi! could somebody help me with this? thanks in advance!
  • x

    xxfast

    09/13/2022, 6:06 AM
    Docs say
    To avoid duplicate publications of modules that can be built on several platforms (like JVM and JS), configure the publishing tasks for these modules to run conditionally.
    What are the repercussions if we don't do this? i.e. running
    publishAllPublicationsToMavenRepository
    from each build on each target platform?
    a
    • 2
    • 12
  • s

    Slackbot

    09/13/2022, 9:50 AM
    This message was deleted.
    a
    x
    • 3
    • 3
  • r

    rocketraman

    09/13/2022, 1:30 PM
    Building the shared cocoapod regularly fails when running from within xcode because the
    LANG
    environment variable isn't defined. Does anyone know the best place to define
    LANG
    inside an Xcode project?
    • 1
    • 1
  • d

    Damiano Giusti

    09/13/2022, 1:30 PM
    Hi there! Anyone ever compiled an iOS framework that includes SQLCipher via cocoapods, and ever been able to use sqlcipher functions such as
    sqlcipher_export
    at runtime? I’m constantly getting this error when running the iOS app that includes the kmp framework:
    no such function: sqlcipher_export in "SELECT sqlcipher_export('plaintext');"
    any ideas? thanks!
    k
    • 2
    • 11
  • d

    Damiano Giusti

    09/13/2022, 1:33 PM
    the main idea is to have a feature module written in kotlin multiplatform which also manages data persistence, and I need to encrypt the database. Such module will be used both on Android and iOS
Powered by Linen
Title
d

Damiano Giusti

09/13/2022, 1:33 PM
the main idea is to have a feature module written in kotlin multiplatform which also manages data persistence, and I need to encrypt the database. Such module will be used both on Android and iOS
View count: 13