https://kotlinlang.org logo
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
compose-desktop
  • b

    Big Chungus

    11/01/2022, 3:04 PM
    Thought I'd drop an idea for our technical writers here. It would be great to have some sort of guide, example or just a simple PoC of distributing CfD app via flatpak.
    a
    • 2
    • 3
  • a

    Alex Styl

    11/02/2022, 9:13 AM
    How can I move a window to front?
    c
    s
    +2
    • 5
    • 19
  • c

    czuckie

    11/02/2022, 1:21 PM
    How are people sharing resources between an android app and desktop app using the multiplatform stuff? Is everyone else doing a thing where they have an expected object that has a list of
    @Composable
    functions that return
    Painter
    instances?
    m
    s
    x
    • 4
    • 5
  • l

    Lucas

    11/02/2022, 4:22 PM
    Is live edit supported in compose desktop?
    x
    • 2
    • 1
  • a

    Alex Styl

    11/03/2022, 6:03 AM
    How can I build an Intel version of my mac os app? I tried including
    implementation(compose.desktop.macos_x64)
    in my dependencies, but when i do
    ./gradlew runReleaseDistributable
    on my M1, the app crashes with “Failed to launch JVM”
    t
    • 2
    • 5
  • m

    mikehearn

    11/03/2022, 11:56 AM
    If you don't need the MAS then Conveyor can do this. It cross-builds for every target from your laptop. Unfortunately, we don't currently support making uploads to the app store. It's on the todo list, but unless you want the integrated billing or discovery out-of-store distribution seems to work just as well (Conveyor makes a download page for you, provides sparkle updates and other things you'd need).
    a
    • 2
    • 2
  • a

    Alex Styl

    11/03/2022, 3:36 PM
    Is it possible to dismiss Tray Notifications? I had a look at the available functions in both Tray and Notifications but I couldn’t find anything related
    a
    • 2
    • 10
  • a

    Abdelilah El Aissaoui

    11/03/2022, 6:36 PM
    I've noticed that my compose app has the light title bar when windows is using dark mode and everyapp has the dark title bar. Has someone faced the same issue? I've only found comments about macOS but nothing about windows
    k
    • 2
    • 5
  • a

    adte

    11/04/2022, 5:24 PM
    I've been working with persistent data structures for my font editor, which has been interesting. I have an object model like in the image. I am tracking the selected points with a PersistentSet - however, this makes it hard to update the selection: when I move the points for example, it creates new instances and so I need to update the selection set to remove the old and add the new ones, which is cumbersome. Does anyone have an idea how to track selection for immutable classes more easily?
    z
    d
    • 3
    • 11
  • s

    Stylianos Gakis

    11/05/2022, 12:31 AM
    I am in a
    jvm
    module, and I want to have access to some compose classes. I get a problem, where I get an error which among other things says
    AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains.skiko:skiko androidRuntimeElements-published awtRuntimeElements-published
    Looks a lot like this issue but isn’t quite the same. Anyone experienced this before? Not sure if it’s the right channel but thought I’d give it a try.
    • 1
    • 4
  • a

    Alex Styl

    11/05/2022, 4:19 AM
    What is the difference between
    createDistributable
    createReleaseDistributable
    ,
    packageDmg
    and
    packageReleaseDmg
    ?
    i
    • 2
    • 3
  • a

    Alex Styl

    11/05/2022, 8:34 AM
    @Aman Kapoor did you figure this out?
  • a

    Alex Styl

    11/05/2022, 12:52 PM
    is there any way to check if the app is development during runtime (like Android’s BuildConfig.DEBUG)? I am currently using the build config plugin and have a IS_DEBUG boolean which returns if gradle is not running on CI. Wondering if there’s anything out of the box i should know of
    o
    d
    • 3
    • 2
  • a

    Alex Styl

    11/06/2022, 4:12 AM
    Did Bugsnag work out of the box for you? When I run a release build with proguard on, then the errors are not sent to the dashboard. proguard was also failing without adding Jackson specific proguard rules. that’s weird cause i havent seen that mentioned in the documentation or here
  • a

    Alex Styl

    11/06/2022, 6:14 AM
    where are proguard mapping files stored in a jetpack compose desktop app? can’t find a ‘mapping.txt’ file anywhere
  • a

    Alex Styl

    11/06/2022, 6:15 AM
    what i am trying to achieve is upload the mappings to sentry.io. if anyone has done this for their desktop app, i would appreciate the pointers
  • c

    carlos.paulino

    11/07/2022, 3:07 AM
    Hello, Does anyone knows how Jetbrains Toolbox
    Tray
    Composable was styled?
    d
    • 2
    • 5
  • a

    Alex Styl

    11/07/2022, 4:49 AM
    I am trying to sign my mac os app (
    .app
    created by
    ./createDistributable
    & share it outside of the app store). I am following the Signing and notarizing distributions for macOS tutorial and I am getting
    Unnotarized Developer ID
    when I check if the app is signed (using
    spctl -vvv --assess --type exec /path/to/*.app
    ). Can’t find online what that error message means
  • a

    Alex Styl

    11/07/2022, 5:38 AM
    Updates on the notarization process (https://kotlinlang.slack.com/archives/C01D6HTPATV/p1667796592609049) Notarizing the app takes time. When you create a distributable with a valid developer ID, it starts a notarization process. You will get an email when the process is done. only there you can check with the above terminal command if the app is safe or not. this took way too long to figure out
  • m

    mikehearn

    11/07/2022, 11:28 AM
    Yes, notarization can be annoying. Remember to staple the ticket to the app! Conveyor does the upload and then polls Apple's servers until the ticket is available, so once the build process completes you know you have a fully notarized app. They seem to have sped it up recently. It used to take several minutes for notarization to complete, now it's more like one minute or a bit less.
    a
    • 2
    • 2
  • a

    Alex Styl

    11/08/2022, 5:01 AM
    Is there a task to notarize an app? In the notarization tutorial the
    createDistributable
    is mentioned which creates an
    .app
    file, but i only see notarize gradle tasks for pkg and dmgs
    s
    m
    m
    • 4
    • 4
  • a

    adte

    11/08/2022, 9:05 AM
    How can I set up the gradle files to add unit tests?
  • a

    Alex Styl

    11/08/2022, 2:07 PM
    Is it possible to have access to platform specific APIs? What I am trying to achieve is display and hide Mac OS notifications from my jvm app. I am away of Tray notifications but that is limited as I cannot hide notifications. To my understanding there are no kotlin or jetpack compose desktop APIs for that and I would need to figure out my way through the JNI. is that right?
    c
    a
    m
    • 4
    • 17
  • a

    arekolek

    11/08/2022, 6:45 PM
    can you opt-out of notifications on macOS when the app is packaged as
    .dmg
    ? I didn’t do anything to include notifications, but when I run the app there is a notification shown (reposted to add screenshot)
    c
    • 2
    • 6
  • p

    PHondogo

    11/09/2022, 10:49 PM
    Hello! When updated to version 1.3.0-alpha01-dev849 got some strange behaviour of androidx.compose.material3.ModalNavigationDrawer. It's drawerContent become not fully hidden. And when resizing window larger in width then drawerContent takes all extra width (in hidden state). How to make it hidden fully? Usage example:
    ModalNavigationDrawer(
            drawerContent = {
                Column {
                    repeat(10) {
                        NavigationDrawerItem(label = { Text("Menu item $it") }, selected = false, onClick = {})
                    }
                }
            }
        )
  • a

    Alex Styl

    11/10/2022, 2:16 AM
    was anyone able to add their mac os app to the ‘share to’ menu? i am trying to forward files (or paths to files) to my app by right clicking a file on Finder
    • 1
    • 1
  • a

    Alex Styl

    11/10/2022, 9:23 AM
    Is it possible to include more files in the packaged
    .app
    ? I made a mac os share extension that I would like to include in the packaged jetapck compose app on macos
    • 1
    • 4
  • x

    Xad Kile

    11/11/2022, 7:47 AM
    Hi, I need to implement a custom focus managing logic, and I intend to store some
    FocusRequester
    in my state object and use them to focus on the views. I tried this approach on a sample app and it works, but is it advisable to do that? Is that a bad practice? Thank you
  • j

    Jerry Yion

    11/11/2022, 8:58 AM
    Hi all, I am trying to load image from url and randomly encounter the error as below
    Failed to Image::makeFromEncoded
    a
    • 2
    • 2
  • a

    Abdelilah El Aissaoui

    11/11/2022, 7:31 PM
    I've got a lazy column of text lines wrapped with a SelectionContainer. It works quite nicely as long as I don't scroll, if I scroll, the selection simply stops randomly, like if I released the mouse click. I think there was an issue related to this but I haven't been able to find it, I'll create one otherwise. Sample to reproduce it:
    SelectionContainer {
            LazyColumn {
                items(100) {
                    Text("Line number $it")
                }
            }
        }
    I've also noticed some items can be skipped like in the attached image. Text selection in lazy columns is quite buggy in general, not sure if I can do something to improve it. CodeViewer demo has the same issue.
    a
    • 2
    • 4
Powered by Linen
Title
a

Abdelilah El Aissaoui

11/11/2022, 7:31 PM
I've got a lazy column of text lines wrapped with a SelectionContainer. It works quite nicely as long as I don't scroll, if I scroll, the selection simply stops randomly, like if I released the mouse click. I think there was an issue related to this but I haven't been able to find it, I'll create one otherwise. Sample to reproduce it:
SelectionContainer {
        LazyColumn {
            items(100) {
                Text("Line number $it")
            }
        }
    }
I've also noticed some items can be skipped like in the attached image. Text selection in lazy columns is quite buggy in general, not sure if I can do something to improve it. CodeViewer demo has the same issue.
Playing around this issue a bit more, I've found that it happens whenever the first items selected is scrolled out (so no longer visible). Yikes
The issue seems to be present also in Android
a

Alex Styl

11/12/2022, 1:39 PM
this feels like a compose issue than desktop specific. i would have mentioned in in #compose or open an issue if i were you
a

Abdelilah El Aissaoui

11/12/2022, 1:40 PM
Yeah, I've done it. In case someone else is interested: Compose chat message: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1668256814437359 Google issue tracker: https://issuetracker.google.com/issues/258781270
View count: 11