Alina Dolgikh [JB]
03/15/2023, 1:32 PMAlina Dolgikh [JB]
03/15/2023, 1:33 PMMario Javier Medina Cocom
03/17/2023, 6:54 AM姜尚
03/17/2023, 9:43 AMPHondogo
03/19/2023, 1:33 PMSamuel Ochuba
03/19/2023, 8:22 PMAdam Brown
03/19/2023, 8:51 PMDialog
that i've set the size to Unspecified
rememberDialogState(size = DpSize.Unspecified)
But now some, but not all, of my dialogs are throwing IllegalStateException: DpSize is unspecified
Even if I give the internal views a definite size, something like
Box(modifier = Modifier.size(200.dp).padding(Ui.Padding.XL)) {
spierce7
03/19/2023, 10:16 PMJurriaan Mous
03/20/2023, 7:24 AM@OptIn(ExperimentalComposeUiApi::class)
fun main() = application {
val windows = rememberSaveable { mutableStateOf(listOf(0)) }
val newWindowId = rememberSaveable { mutableStateOf(1) }
fun onClose(windowId: Int) {
if (windows.value.isEmpty()) {
exitApplication()
}
windows.value = windows.value.filter { it != windowId }
}
windows.value.map { windowId ->
Window(onCloseRequest = { onClose(windowId) }, title = "Window") {
MenuBar {
Menu("File", mnemonic = 'F') {
Item(
"New Window",
onClick = {
windows.value = windows.value + newWindowId.value
newWindowId.value += 1
},
shortcut = KeyShortcut(Key.N, meta = true, alt = true)
)
}
}
App()
}
}
}
Stefan Oltmann
03/20/2023, 12:09 PMskiko.directx.gpu.priority
to discrete
?
Will it fall back to integrated
if no dedicated graphics card is available?
I wonder why the auto
setting prefers the integrated card.
A user of my app has a notebook with Intel HD graphics and an extra NVIDIA card, which of course has more power. It's strange that this is not used by default.
Will setting it to discrete
break my app for all users without dedicated graphics card?Stefan Oltmann
03/20/2023, 12:44 PMSlackbot
03/20/2023, 10:47 PMczuckie
03/22/2023, 8:51 AMandroidx.compose.foundation:foundation:1.4.0-rc01
are only android libraries and cannot be used in MPP? Is there anyway to determine whether an artifact being used as a dependency only targets a single platform?Franklin
03/22/2023, 10:30 AMKirill Grouchnikov
03/22/2023, 12:51 PMRyan Smith
03/22/2023, 11:30 PMmikehearn
03/23/2023, 3:04 PMAhmad Hassan
03/24/2023, 9:13 AM./gradlew package
but facing an issue.
Check the Logs inside the thread.Artem Chepurnoy
03/24/2023, 9:20 AMError occurred during initialization of VM
Could not reserve enough space for code cache (245760K)
that now happens for me in new the builds, I've tried to add the entitlements file:
entitlements.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "<http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.debugger</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<!-- Added to fix: Could not reserve enough space for code cache -->
<!-- <https://github.com/iterate-ch/cyberduck/issues/13347> -->
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
</plist>
build.gradle.kts
macOS {
bundleID = "hello.world"
entitlementsFile.set(project.file("entitlements.plist"))
signing {
// Config here.
}
notarization {
// Config here.
}
}
the build now fails with an error Error: Invalid Option: [--mac-entitlements]
.
I'm using Kotlin 1.8.10 and Compose 1.3.1 + ./gradlew :desktop:packageDmg :desktop:notarizeDmg
to compile it.John O'Reilly
03/24/2023, 4:52 PMAdam Brown
03/24/2023, 5:39 PMKirill Grouchnikov
03/24/2023, 6:52 PM1.4.0-alpha01-dev980
build of compose-multiplatform.YentaBot
03/24/2023, 7:07 PM@yentabot
You can also emoji-react to a message with ❓ or 🤖.
Feel free to give me feedback by replying to my answers in a thread or leaving emoji-reacts to my answers.Radoslaw Juszczyk
03/25/2023, 7:56 AMloloof64
03/25/2023, 9:46 AMdimsuz
03/25/2023, 4:45 PMModifier.onPointerEvent
and save it to mutableStateOf, but that sounds like a bit of an overkill for cases when I want to only react on clicks.loloof64
03/25/2023, 6:10 PMMarcello Galhardo
03/26/2023, 3:27 PMNish Patel
03/27/2023, 5:57 PMadte
03/29/2023, 1:53 AMadte
03/29/2023, 1:53 AM