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
touchlab-tools
  • a

    ankushg

    11/16/2021, 8:45 PM
    Another Q for touchlab folks regarding Stately: Any reason that
    isolate
    and
    iso-collections
    are published as
    -a1
    while everything else is not? Would be a bit easier to wrangle dependency versions if those two were published under the regular version numbers, or if the other dependencies were also published under the
    -a1
    suffix
    r
    p
    • 3
    • 6
  • r

    Rak

    11/17/2021, 12:38 PM
    Hi, I have written some unit tests and was wondering how the iOS test target worked? I don’t have a phone or simulator but the tests still pass?
    r
    • 2
    • 2
  • a

    Alexander Suraphel

    11/23/2021, 4:53 PM
    Android studio is giving me this warning:
    Compilation is not supported for following modules: KaMPKit. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
    Shall I ignore it?
    r
    • 2
    • 2
  • a

    Andrew O Hart

    11/29/2021, 2:26 PM
    I know there is an example of sqlcipher in the kampkitsqlcipher github, but I can't find any examples of working with sqlcipher for ios there. Anybody experience with making calls sqlite3_open in multiplatform?
    k
    • 2
    • 8
  • a

    Archie

    12/11/2021, 4:32 PM
    Hi guys, just wanted to ask about your KMM strategy around Analytics. Do you keep the analytics code to platform specific? or do you build a common class/module for them as well and then use that in the platform specific code? Thanks in advance
    k
    • 2
    • 4
  • a

    Archie

    12/16/2021, 2:11 PM
    Hi guys another question, I am working on making a library work in KMM. Using Android library and Ios Library and trying to pipe them into a a common code. My question is how do you guys deal with platform specific things? for example, when Android context is needed to create an instance of a class while the same class in ios needs a ios specific thing? Is there a way to work around this? Thanks in advance 🤔
    m
    r
    +2
    • 5
    • 38
  • m

    Matti MK

    12/30/2021, 10:33 AM
    Regarding the use of
    Kermit
    in `KaMPKit`: I can see that a logger instance is created for every location where it’s being used (https://github.com/touchlab/KaMPKit/blob/main/shared/src/commonMain/kotlin/co/touchlab/kampkit/Koin.kt#L63). Is this simply for the
    tag
    ? If there’s no need to switch tags, then is there any upside to injecting
    Logger
    vs just calling the static methods like
    Logger.i { "something" }
    k
    • 2
    • 7
  • a

    Andrew O Hart

    02/24/2022, 3:45 PM
    Copy and pasting from multiplatform channel as I forgot this was a channel: Hey small question, I am looking at KampKit currently for examples of how to do the build.gradle file in a cleaner way. So far its working great, the only issue I'm having is with tests. I see in Kamp Kit they are making use of import kotlin.test.Test in testing classes, however, when I build, this test package is not found. I'm wondering what its geting included as from the libs file If I include
    implementation(kotlin("test"))
    In the commonTest in build.gradle, it works, but I don't see something like this being declared in kampkit
    m
    • 2
    • 4
  • k

    kpgalligan

    02/27/2022, 12:23 AM
    This group is specifically KaMP KIt. I think you’ll get some answers regardless, but there’s much more activity for general KMM questions in #multiplatform
    v
    • 2
    • 1
  • e

    edenman

    03/03/2022, 4:54 AM
    hey, i've been using KaMP Kit this week for a hack week project, it is mostly excellent at getting a project up and running quickly. One request: • default to bundling the iOS code as a binary Framework (checked in?) so iOS devs don't need JVM/AndroidSDK • have a build flag or separate target on the iOS side that does the full "build the framework from source" pass I've never done much iOS build tinkering, but this would be super helpful for getting iOS folks onboarded in a painless way and it would make the build times much faster in the "i'm not changing any KMP code" path
    r
    • 2
    • 2
  • v

    Vivek Modi

    03/05/2022, 11:12 PM
    Hey I want to contribute in kampit, so I increased my knowledge in KMM. I only find a this repository. Can someone guide me how to contribute in ?
    b
    m
    • 3
    • 7
  • a

    arrmixer

    03/17/2022, 11:51 AM
    Hey everybody! I cloned the project and try to gradle sync the project on AS Bumblebee but get this error: Unsupported Modules Detected: Compilation is not supported for following modules: KaMPKit. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
    r
    • 2
    • 4
  • j

    Jacob Rhoda

    03/28/2022, 3:23 PM
    Hello! I am looking at KMP and found KaMPKit which has been really helpful coming from an iOS developer’s perspective. I’m a little confused because the readme has the KN concurrency all struck out as outdated. However, I can’t figure out how it’s outdated. Does that mean all blog posts about KN concurrency from ~2019 are outdated? I know that it’s on the roadmap to overhaul the memory management / concurrency model, but it feels a little like limbo period. Could someone point me to some up-to-date resources on KMP concurrency? Thanks!
    r
    • 2
    • 4
  • k

    kpgalligan

    03/30/2022, 3:33 PM
    At the time, if you added a pod in the Kotlin cocoapods plugin config, you couldn’t run
    ./gradlew build
    because the Kotlin gradle plugin couldn’t handle it. I’m not sure if that is still true.
    r
    • 2
    • 1
  • a

    Andrew O Hart

    04/06/2022, 11:57 AM
    Is there any examples of migrating a db? I created a new .sq file that has a create table and it crashes when i run on top of our prod build because its saying the table isnt created
    r
    k
    • 3
    • 13
  • t

    Trey

    04/22/2022, 8:07 PM
    I'm trying to pull in elements of KaMP Kit into a new project so I can understand all of the parts. Right now I'm struggling with adding Koin and Kermit. When I try to add the line to my main activity that injects the logger like in KaMP Kit, it fails to resolve injectLogger(). I have the line where the injectLogger method is added to KoinComponent, but it won't use it. The error states that none of the following candidates is applicable because of receiver type mismatch. Is there some kotlin setting that I have missed?
    m
    • 2
    • 7
  • t

    Trey

    04/27/2022, 2:21 PM
    I see that the HttpClient is declared in the data source. Is there a reason why the HttpClient instance wasn't injected into the data source? I'm asking because my app has to connect to two different servers that use the same auth token. It would be cool if I could share the HttpClient and leverage the bearer logic to refresh the token when necessary. Would that be a bad design?
    r
    • 2
    • 1
  • t

    Trey

    06/02/2022, 6:52 PM
    Can somebody explain "KoinIOSKt.doInitKoinIos()" to me? I'm trying to understand the implicit logic that resolves doInitKoinIos to the function initKoinIos. Where is KoinIOSKt defined?
    r
    h
    • 3
    • 3
  • t

    Trey

    06/03/2022, 8:28 PM
    I'm trying to debug why some code isn't being executed on iOS and I'm wondering if anybody can give me some debugging tips. I'm not seeing any errors. It is basically calling into code structured like "refreshBreeds()" in KaMPKit. I see that it goes into the method in the BreedViewModel equivalent for refreshBreeds. I can step over the call to viewModelScope.launch, but the code in the launch block isn't ever executed.
    r
    • 2
    • 7
  • p

    Paul Woitaschek

    06/21/2022, 10:00 AM
    Issue up: https://github.com/touchlab/Kermit/issues/260
  • k

    kpgalligan

    06/22/2022, 2:39 AM
    💥 https://twitter.com/kpgalligan/status/1539437512619327488?s=20&t=5M88EPC9-B37NzAdOCGw0g
    👍 1
    🎉 3
  • a

    Archie

    09/27/2022, 7:11 AM
    Hi @kpgalligan, just wondering how you guys manage static analysis and/or test coverage tools for you KMM modules?
  • k

    kpgalligan

    10/12/2022, 4:30 PM
    With the launch of KMM Beta, Touchlab is releasing new tools to support the growth of the ecosystem and new teams adopting and integrating KMM. This channel is now a central space to get support and give feedback about Touchlab tools and libraries. We’ll still discuss these topics in the other channels, of course, but we wanted a space where we can focus discussions on our offerings. As the community has grown, there’s a lot of other discussions in the “main” channels, and having a central channel, we can make sure discussions get highlighted to the folks who can best engage with them.
  • k

    kpgalligan

    10/12/2022, 4:30 PM
    Our new tools are largely focused around team process and iOS dev experience, and in many ways, these tools are solving new problems that general ‘mobile dev libraries’ have existing parallels for. Your feedback is critical to solving these new problems and improving these tools. We greatly value your feedback, and highly encourage you to reach out!
  • k

    kpgalligan

    10/12/2022, 4:31 PM
    This channel was previously just for KaMPKit questions, and we still very much welcome questions and feedback for that too 🙂
  • s

    Stefan Oltmann

    10/17/2022, 1:29 PM
    Hello, I wanted to ask here about https://github.com/touchlab/SQLiter/issues/86 if there is Kotlin 1.7.20 support planned in the near future.
    k
    • 2
    • 4
  • k

    Kirill Zhukov

    10/18/2022, 2:31 AM
    Any reason why dependency managers can’t be configured on their own with KMMBridge? It seems to complains that I have to set up artifact manager. I just want to generate Swift packages for all of my KMM modules and integrate into iOS app / other packages without needing to publish KMM modules as artifacts anywhere.
    r
    • 2
    • 9
  • s

    shahroz

    10/20/2022, 8:17 PM
    Hey folks, is there a way to just publish framework via SPM ? while using https://touchlab.github.io/KMMBridge/intro ? I managed to publish it via SPM, but it seems to have added all of the other modules that for
    android/jvm etc
    ? i just wanted shared module Framework from kotlin native so i can use its classes in my iOS app?
    r
    • 2
    • 9
  • l

    lilypuchi

    10/21/2022, 11:26 PM
    How do I configure KMMBridge for multiple modules in a single repo? Running
    spmDevBuild
    on the project updates
    Package.swift
    to only the latest module. For example for a project structure as,
    - root
      - domain
        - build.gradle.kts // kmmBridge { .. } implemented
      - strings
        - build.gradle.kts // kmmBridge { .. } implemented
      - util
        - build.gradle.kts // kmmBridge { .. } implemented
    When I run
    ./gradlew spmDevBuild
    the
    Package.swift
    is always
    // swift-tools-version:5.3
    import PackageDescription
    
    let packageName = "util"
    
    let package = Package(
        name: packageName,
        platforms: [
            .iOS(.v13)
        ],
        products: [
            .library(
                name: packageName,
                targets: [packageName]
            ),
        ],
        targets: [
            .binaryTarget(
                name: packageName,
                path: "./core-util/build/XCFrameworks/debug/\(packageName).xcframework"
            )
            ,
        ]
    )
    I would have to manually update the Package.swift finally in CI ? 🤔
    r
    k
    • 3
    • 2
  • c

    Carlos Monzon

    10/22/2022, 8:19 AM
    Hello 👋 I am trying KMMBridge and I am running the following issue when running kmmBridgePublish. It failed in GitHub Actions and in my local env. Execution failed for task ':uploadXCFramework'.
    okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
    k
    • 2
    • 3
Powered by Linen
Title
c

Carlos Monzon

10/22/2022, 8:19 AM
Hello 👋 I am trying KMMBridge and I am running the following issue when running kmmBridgePublish. It failed in GitHub Actions and in my local env. Execution failed for task ':uploadXCFramework'.
okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
k

kpgalligan

10/22/2022, 2:46 PM
What's your config setup?
c

Carlos Monzon

10/23/2022, 12:09 AM
Looks like I found the issue but not sure why it failed. This was my configuration:
kmmbridge {
    githubReleaseArtifacts("release-") // <-- issue with artifactRelease name 
    githubReleaseVersions()
    spm()
    versionPrefix.set("0.1")
}
After removing the artifact release name worked fine ✅ I found that in this page https://touchlab.github.io/KMMBridge/general/GROOVY_BUILD_SCRIPTS
k

kpgalligan

10/25/2022, 3:33 AM
I’d also suggest looking at this update. publish to Github Packages instead! https://touchlab.co/quick-start-with-kmmbridge-1-hour-tutorial/
View count: 4