Javier
10/05/2021, 3:34 PMjvm("desktop")
to get it working? I am getting issues where I can reference the functions from this lib in consumers. I have same publish logic than others kmp libraries, only difference is it has compose plugin and libsSrSouza
10/06/2021, 3:50 PMAnatame
10/06/2021, 6:44 PMKirill Grouchnikov
10/07/2021, 7:16 PMComposeWindow
that gets parent composition is gone. But it's still there in https://github.com/androidx/androidx/blob/androidx-main/compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/awt/ComposeWindow.desktop.kt#L85. Is there a different branch that 396 is cut from, and if so, what is the new way to propagate all composition locals from the parent window to the new window?Sean Proctor
10/10/2021, 1:04 PMJakob
10/11/2021, 12:12 AMBasicTextField
. However I ran into some serious performance issues. Is there a better way to write a basic code editor in compose?Jakob
10/11/2021, 12:13 AMAkram Bensalem
10/11/2021, 10:48 AMLGoodDatePicker
but I didn't know how to import it!
https://github.com/LGoodDatePicker/LGoodDatePickerbartosz.malkowski
10/11/2021, 3:33 PMPublishSubject
. I also have @Composable
function where I want to show notification based on data received from subject. How to do that?
@Composable
fun test(component: MainComponent){
val subject: Observable<NotificationData> = component.notification
val trayState = rememberTrayState()
Tray(state = trayState,
icon = TODO())
val n = rememberNotification("Title From NotificationData", "Message from NotificationData")
trayState.sendNotification(n)
}
spierce7
10/11/2021, 8:20 PMImageBitmap
pixels directly? If I wanted to create a filter for ImageBitmap
it doesn’t seem very intuitive. Is ImageBitmap even the best abstraction for me to create a filtering system on?Akram Bensalem
10/12/2021, 10:30 AMbartosz.malkowski
10/12/2021, 12:06 PMColton Idle
10/12/2021, 1:30 PMCompilation is not supported for following modules: rollertoaster.desktop.commonMain, rollertoaster.commoncomposables.androidAndroidTestRelease, rollertoaster.commoncomposables.androidTestFixtures, rollertoaster.commoncomposables.androidTestFixturesDebug, rollertoaster.commoncomposables.androidTestFixturesRelease, rollertoaster.commoncomposables.commonMain, rollertoaster.commoncomposables.commonTest, rollertoaster.commoncomposables.desktopMain, rollertoaster.commoncomposables.desktopTest. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
Did I setup something incorrectly? Maybe that's the reason why I'm seeing this error? https://github.com/JetBrains/compose-jb/issues/1132Stefan Oltmann
10/13/2021, 11:53 AMFile(".").absolutePath
returns the working directory which I could change in a symlink.
Server.class.getProtectionDomain().getCodeSource().getLocation().getPath()
results in NullPointer if started from the EXE.
Is there something compose specific to find that out?Cody Mikol
10/13/2021, 1:23 PMWaqas Tahir
10/13/2021, 3:23 PMJakob
10/13/2021, 7:32 PMJComponent
inside a compose component that gets scaled. The jetpack components scale but the JComponent
doesn't. How would I go about getting the JComponent
to scale also?
If I can get the local scale factor and a callback for when it changes then I can scale the JComponent
manually. But LocalDensity
doesn't have this and I'm not sure where else to find it.andylamax
10/14/2021, 3:12 AMbartosz.malkowski
10/14/2021, 11:26 AMException in thread "AWT-EventQueue-0" kotlin.UninitializedPropertyAccessException: lateinit property relocationRequesterNode has not been initialized
at androidx.compose.ui.layout.RelocationRequesterModifier.getRelocationRequesterNode(RelocationRequesterModifier.kt:32)
at androidx.compose.ui.layout.RelocationRequester.bringIntoView(RelocationRequester.kt:61)
at androidx.compose.ui.layout.RelocationRequester.bringIntoView$default(RelocationRequester.kt:59)
at androidx.compose.foundation.FocusableKt$focusable$2$4$1.invokeSuspend(Focusable.kt:108)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at androidx.compose.ui.platform.FlushCoroutineDispatcher$dispatch$2.invokeSuspend(CoroutineDispatchers.desktop.kt:55)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
wilddev
10/14/2021, 6:35 PMStefan Oltmann
10/15/2021, 12:10 PMMyApp.exe hello
results in Failed to launch JVM
Background: My use case is that I registered a custom URI scheme "myapp://" on Windows and I want to pass all that into my EXE to get back the OAuth response.
Is it really possible that the EXE produced by jpackage is not capable of passing cmd line arguments? 🤔Slackbot
10/15/2021, 10:46 PMWaqas Tahir
10/16/2021, 7:58 AMsuppressKotlinVersionCompatibilityCheck
but don't say I didn't warn you!).
FAILURE: Build failed with an exception.
with this build.gradle file
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose") version "1.0.0-alpha3"
id("com.android.library")
id("kotlin-android-extensions")
// id("com.vanniktech.maven.publish")
id("maven-publish")
}
group = BuildConfig.Info.group
version = BuildConfig.Info.version
android {
compileSdkVersion(BuildConfig.Android.compileSdkVersion)
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdkVersion(BuildConfig.Android.minSdkVersion)
targetSdkVersion(BuildConfig.Android.targetSdkVersion)
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
kotlin {
android {
publishLibraryVariants("release", "debug")
}
jvm("desktop") {
compilations.all {
kotlinOptions.jvmTarget = "11"
}
}
sourceSets {
val commonMain by getting {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material)
implementation(project(":core"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val androidMain by getting
val androidTest by getting {
dependencies {
implementation("junit:junit:4.13.2")
}
}
val desktopMain by getting {
dependencies {
api(compose.preview)
}
}
val desktopTest by getting
}
}
mcpiroman
10/16/2021, 7:51 PMexample from cutter▾
Box
or `Layout`and Modifier.offset
elements? Or maybe a skika canvas? Would that support efficiently offscreen content?
Or maybe I should ask in #compose?darkmoon_uk
10/16/2021, 11:06 PMCatry
10/17/2021, 1:14 PMCatry
10/18/2021, 7:16 AMAyfri
10/18/2021, 4:19 PM@Composable
function (with a content: @Composable () -> Unit
argument) like in the Button
Composable ?darkmoon_uk
10/19/2021, 2:15 AMeygraber
10/19/2021, 4:09 AMjava.lang.IllegalArgumentException: Failed requirement.
) should I file that in issuetracker or https://github.com/JetBrains/compose-jb?
Full stack trace and repo in 🧵eygraber
10/19/2021, 4:09 AMjava.lang.IllegalArgumentException: Failed requirement.
) should I file that in issuetracker or https://github.com/JetBrains/compose-jb?
Full stack trace and repo in 🧵