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

    eygraber

    10/23/2022, 2:19 AM
    XPosting https://kotlinlang.slack.com/archives/C3PQML5NU/p1666217518478089?thread_ts=1666217518.478089&cid=C3PQML5NU
  • k

    kpgalligan

    10/25/2022, 8:25 PM
    message has been deleted
  • k

    Kirill Zhukov

    10/25/2022, 10:11 PM
    @kpgalligan, I heard you mentioning in one of your talks from couple months ago that you guys are internally working on custom Swift codegen for improving Kotlin/Native interop. How far is it from being published, very excited to try it out!
    t
    • 2
    • 2
  • e

    Eric Williams

    10/28/2022, 1:15 PM
    Hey guys! I'm walking through the kmmbridge quickstart and I've run into a snag with importing the SPM package into Xcode. It fails to download the archive. I'm seeing the releases in Github being built. I don't think I missed a step. Wondering if anyone else has run into this. Happy to share my repo!
    k
    k
    • 3
    • 54
  • l

    Lim Chee Keong

    10/31/2022, 3:35 AM
    Harlo, how can we mock in the iosTest under the shared business logic? We use mockk but it seems that iosTest cannot have dependency to the mockk.
    p
    r
    • 3
    • 2
  • t

    tkach13

    11/01/2022, 1:16 PM
    Hey everybody, Is there any way to use private Azure devops repos to host shared modules using kmm bridge, our team wants to host repo in a private repository which is only accessible via vpn.
    r
    • 2
    • 7
  • n

    Niek

    11/02/2022, 8:42 AM
    👋 We're using a shared KMM module in an Android/iOS monorepo, so team members can modify KMM code whilst developing for the app. This allows us to develop KMM code and app code simultaneously, without having to first 'publish' KMM code to a repository. We're doing this by assembling an XCFramework into our local
    build
    folder which the XCode project then includes. Unfortunately this assemble step takes about 2 minutes for every minor code change. What I've read here and there is that Touchlab recommends the latter option, by publishing KMM code as a Swift Package to a GitHub repository and then pulling it in into the XCode project. I'm curious about a few things here, before I dig deeper: • Could publishing KMM code through SPM be quicker than our assemble step? • Is there a way (possibly through KMMBridge) we could set this up in a monorepo?
    k
    • 2
    • 4
  • e

    Eric Williams

    11/02/2022, 8:36 PM
    I might have missed this in the docs but for KMMBridge how do I set the
    groupId
    and
    artifactId
    for Maven packages?
    r
    • 2
    • 2
  • a

    Anouar di Kali

    11/06/2022, 3:18 PM
    hello folks, I'm happy to join you ❤️
  • c

    chislett

    11/13/2022, 8:33 PM
    message has been deleted
  • s

    Stefan Oltmann

    11/15/2022, 8:23 AM
    I use SQLDelight 1.5.4 on JVM and I want to avoid primary key constraint violations in my geolocation cache. First I tried to append a
    WHERE NOT EXISTS
    to my
    INSERT INTO LocationDb VALUES ?;
    , but that seems to be not supported. Then I tried to put that into an
    transaction
    like this:
    queries.transaction {
    
        val locationDb = queries.find(
            latitude = gpsCoordinates.latitude,
            longitude = gpsCoordinates.longitude
        ).executeAsOneOrNull()
    
        if (locationDb == null) {
    
            queries.add(
                LocationDb(
                    latitude = gpsCoordinates.latitude,
                    longitude = gpsCoordinates.longitude,
                    locationName = location.name,
                    city = location.city,
                    state = location.state,
                    country = location.country
                )
            )
        }
    }
    This results in
    [SQLITE_BUSY]  The database file is locked (database is locked)
    I found online that this can be due to multiple connections and the recommendation is to have just one. I don't know how many I have using the SQLiteJDBCDriver. I create the drive like this:
    actual fun createDriver(): SqlDriver {
    
        val filePath = getFilePath()
    
        val driver = JdbcSqliteDriver(
            "jdbc:sqlite:$filePath",
            Properties().apply {
    
                /* Use foreign keys and cascade deletions. */
                put("foreign_keys", "true")
            }
        )
    
        PhotosDatabase.Schema.create(driver)
    
        return driver
    }
    I only have one instance of the Database proxy... How can I do my insert without primary key violation? How can I set the max connections?
    e
    • 2
    • 5
  • a

    Arun Joseph

    11/17/2022, 12:24 PM
    Hi All, https://github.com/touchlab/KMMBridgeKickStart is a great template to start. Thanks! I have a question. Is it expected that each time I run
    All-Publish
    action, version increments for SPM package(for example to
    0.1.1
    ). But for Android package it keeps initial version
    0.1
    ?
    k
    r
    • 3
    • 5
  • a

    apvasanth03

    11/18/2022, 4:58 AM
    Hi All, Reg - Touchlab KMM Resources are not delivering to mail. I registered for the Touchlab KMM Resources but the resource doesn't arrive in my mailbox. Please share it with me. CC - @kpgalligan @Sam Hill Thanks
    c
    p
    • 3
    • 4
  • s

    shahroz

    11/25/2022, 10:54 AM
    Hey folks, Every-time i create a local branch,
    KMMBridge
    gives me this error. For branches with remote, it works fine. Is there any solution to this? using version, 0.3.2
    error: There is no tracking information for the current branch.
    error: Please specify which branch you want to merge with.
    error: See git-pull(1) for details.
    error: 
    error:     git pull <remote> <branch>
    error: 
    error: If you wish to set tracking information for this branch you can do so with:
    error: 
    error:     git branch --set-upstream-to=origin/<branch> shahroz/fix-remote-issues
    
    Caused by: org.gradle.api.GradleException: Process failed: git pull --tags
    	at co.touchlab.faktory.internal.ProcessHelperKt.procRun(ProcessHelper.kt:38)
    	at co.touchlab.faktory.internal.ProcessHelperKt.procRunFailLog(ProcessHelper.kt:74)
    	at co.touchlab.faktory.versionmanager.GitTagBasedVersionManager.getVersion(GitTagBasedVersionManager.kt:28)
    	at co.touchlab.faktory.KMMBridgePlugin.configureArtifactManagerAndDeploy(KMMBridge.kt:104)
    	at co.touchlab.faktory.KMMBridgePlugin.access$configureArtifactManagerAndDeploy(KMMBridge.kt:31)
    	at co.touchlab.faktory.KMMBridgePlugin$apply$$inlined$with$lambda$1.execute(KMMBridge.kt:51)
    	at co.touchlab.faktory.KMMBridgePlugin$apply$$inlined$with$lambda$1.execute(KMMBridge.kt:31)
    k
    • 2
    • 8
  • a

    ayodele

    11/28/2022, 4:27 PM
    I'm no iOS expert but if the KaMPKit project shared code up to the viewModel level, why is the shared viewModel wrapped inside an
    ObservableObject
    on the iOS side??
    k
    r
    • 3
    • 4
  • j

    John O'Reilly

    12/02/2022, 8:51 PM
    ./gradlew spmDevBuild
    works in version 0.3.1 but doesn't seem to in 0.3.3
    Task 'spmDevBuild' not found in root project
    r
    • 2
    • 2
  • k

    kpgalligan

    12/02/2022, 8:55 PM
    Ugh. Unintended consequences of a fix for something else. Assume you're in a local branch?
  • j

    John O'Reilly

    12/02/2022, 8:56 PM
    yeah, just pulling in kmmbridge as plugin and running locally with repo here
  • k

    kpgalligan

    12/02/2022, 9:11 PM
    We'll need to fix that. Local SPM dev flow was a late stage addition and is a casualty to the fact that you can't pull tags from a remote for versioning. Long story. I'll take a look later. For now, you either need to push the branch so that call doesn't fail, change version manager to timestamp or manual (they don't rely on git tags), or going back to 0.3.1
  • j

    John O'Reilly

    12/02/2022, 9:13 PM
    yeah, can go back to 0.3.1
  • k

    kpgalligan

    12/03/2022, 2:20 AM
    Deploying
    0.3.4-SNAPSHOT
    which has the fix. Had to rework our CI for Gradle stuff, but should be cranking away (https://github.com/touchlab/KMMBridge/pull/170). Will shoot for a stable fix release Monday-ish (unless I just push over the weekend :)
  • k

    kpgalligan

    12/03/2022, 2:21 AM
    We’re going to start designing a more robust SPM dev flow, as it’ll be critical for KMM adoption. Russell’s mostly working on that, and we should be looking for feedback soon on features.
  • m

    Matthew Ramotar

    12/04/2022, 7:31 PM
    Hey! We are using KMM Bridge for Store 5. We want to generate Swift Package only on release. Is it currently possible to configure KMM Bridge to run conditional on version name?
    k
    • 2
    • 11
  • a

    Archie

    12/07/2022, 6:47 AM
    Hi, wondering if multi-module KMM module could be configured in a project. I’ve been trying to separate our common module out to smaller modules to no success. If I move out modules, some modules will have its own
    cocoapods
    intergration but the problem is I do not know how to integrate them back to a single
    common
    module without an issue. Just wondering if anyone has tried this out? Is it even possible at the moment? Would really appreciate any tips. Thanks in advance
    a
    r
    l
    • 4
    • 44
  • d

    dorche

    12/07/2022, 10:22 PM
    Hi everyone, we’d like to start sharing code with between our iOS and Android repo and KMMBridge seems to perfectly fit our use case but there’s one caveat - we’re using Bitbucket instead of Github so I am wondering if anyone has any reading materials for setup with Bitbucket (private repos, unfortunately we can’t go public..) ? 🙏
    r
    • 2
    • 2
  • c

    Carlos Monzon

    12/21/2022, 12:11 PM
    Hi 👋 I have an multi module android app and looking for ways to share many of those modules to iOS through SPM Does KMMBridge support a publishing multiple SPM packages from the same monorepo?
    r
    s
    s
    • 4
    • 6
  • p

    Peter Hsu

    12/28/2022, 6:59 PM
    Hi all! Is the xcode-kotlin plugin still active? I'm a little confused how it works.
    k
    l
    p
    • 4
    • 25
  • m

    Matt Rea

    01/06/2023, 6:27 PM
    👋 First off, love the tools you guys produce, big fan I'm using KMMBridge for a few projects currently. I noticed yesterday that the latest canary AGP 8.0.0-alpha11 requires JDK 17
    Caused by: com.android.builder.errors.EvalIssueException: Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
     Your current JDK is located in /Users/runner/hostedtoolcache/Java_Adopt_jdk/11.0.17-8/x64/Contents/Home
    It looks like
    faktorybuildbranches.yml
    currently sets Java 11. Would it be possible to add a
    java-version
    input argument for this?
  • k

    kpgalligan

    01/06/2023, 7:00 PM
    Hmm. Interesting. I’m surprised AGP needs that. Will add an issue.
  • e

    eygraber

    01/06/2023, 7:42 PM
    I believe that is intentional going forward with AGP 8
Powered by Linen
Title
e

eygraber

01/06/2023, 7:42 PM
I believe that is intentional going forward with AGP 8
View count: 19