Skip to content

bump compose hot reload version to 1.0.0-alpha10 #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gallery-demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.serialization)
id("org.jetbrains.compose.hot-reload") version "1.0.0-alpha03"
id("org.jetbrains.compose.hot-reload") version "1.0.0-alpha10"
}

class StorytaleCompilerPlugin : KotlinCompilerPluginSupportPlugin {
Expand Down Expand Up @@ -116,6 +116,7 @@ composeCompiler {
featureFlags.add(ComposeFeatureFlag.OptimizeNonSkippingGroups)
}

tasks.register<ComposeHotRun>("runHot") {
// ./gradlew :gallery-demo:desktopRunHot --auto
tasks.withType<ComposeHotRun>().configureEach {
mainClass.set("storytale.gallery.demo.MainKt")
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ package org.jetbrains.compose.storytale.generated
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.WindowState
import androidx.compose.ui.window.singleWindowApplication
import org.jetbrains.compose.reload.DevelopmentEntryPoint
import org.jetbrains.compose.storytale.gallery.material3.StorytaleGalleryApp

// To let the Storytale compiler plugin add the initializations for stories
@Suppress("ktlint:standard:function-naming")
fun MainViewController() {
singleWindowApplication(
state = WindowState(width = 800.dp, height = 800.dp),
alwaysOnTop = true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need to always stay on top? 👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's just a little bit more convenint when working with a gallery without an extra screen - when I have an IDE and the gallery app on one monitor and change the code, so I don't have to constantly re-open the gallery app to see the change

) {
DevelopmentEntryPoint {
StorytaleGalleryApp()
}
StorytaleGalleryApp()
}
}