Skip to content

Conversation

@opatry
Copy link
Owner

@opatry opatry commented May 6, 2025

Description

It is possible to use Compose hot reload on desktop app by running the :tasks-app-desktop:runHot Gradle task.

You'll see a Compose icon near the top left corner of the window.
compose-hot-reload-icon

When clicking on it, it will open a new window with the hot reload status.
compose-hot-reload-console

Checklist

  • I have read the CONTRIBUTING guide
  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing

@opatry opatry force-pushed the compose-hot-reload branch from d4f9c2f to aa049f2 Compare May 6, 2025 18:27
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

©️ Stale credits for :tasks-app-desktop

diff --git a/tasks-app-desktop/src/main/resources/licenses_desktop.json b/tasks-app-desktop/src/main/resources/licenses_desktop.json
index 753de60..177513e 100644
--- a/tasks-app-desktop/src/main/resources/licenses_desktop.json
+++ b/tasks-app-desktop/src/main/resources/licenses_desktop.json
@@ -949,6 +949,34 @@
"Apache-2.0"
]
},
+ {
+ "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-runtime-api",
+ "developers": [
+ {
+ "name": "JetBrains Team"
+ }
+ ],
+ "artifactVersion": "1.0.0-alpha09",
+ "description": "Compose Hot Reload implementation",
+ "name": "hot-reload-runtime-api",
+ "licenses": [
+ "Apache-2.0"
+ ]
+ },
+ {
+ "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-runtime-jvm",
+ "developers": [
+ {
+ "name": "JetBrains Team"
+ }
+ ],
+ "artifactVersion": "1.0.0-alpha09",
+ "description": "Compose Hot Reload implementation",
+ "name": "hot-reload-runtime-jvm",
+ "licenses": [
+ "Apache-2.0"
+ ]
+ },
{
"uniqueId": "org.jetbrains.compose.material3.adaptive:adaptive",
"developers": [

Run ./gradlew :tasks-app-desktop:exportLibraryDefinitions and commit resulting diff to fix the issue.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

©️ Stale credits for :tasks-app-desktop

diff --git a/tasks-app-desktop/src/main/resources/licenses_desktop.json b/tasks-app-desktop/src/main/resources/licenses_desktop.json
index 753de60..177513e 100644
--- a/tasks-app-desktop/src/main/resources/licenses_desktop.json
+++ b/tasks-app-desktop/src/main/resources/licenses_desktop.json
@@ -949,6 +949,34 @@
"Apache-2.0"
]
},
+ {
+ "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-runtime-api",
+ "developers": [
+ {
+ "name": "JetBrains Team"
+ }
+ ],
+ "artifactVersion": "1.0.0-alpha09",
+ "description": "Compose Hot Reload implementation",
+ "name": "hot-reload-runtime-api",
+ "licenses": [
+ "Apache-2.0"
+ ]
+ },
+ {
+ "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-runtime-jvm",
+ "developers": [
+ {
+ "name": "JetBrains Team"
+ }
+ ],
+ "artifactVersion": "1.0.0-alpha09",
+ "description": "Compose Hot Reload implementation",
+ "name": "hot-reload-runtime-jvm",
+ "licenses": [
+ "Apache-2.0"
+ ]
+ },
{
"uniqueId": "org.jetbrains.compose.material3.adaptive:adaptive",
"developers": [

Run ./gradlew :tasks-app-desktop:exportLibraryDefinitions and commit resulting diff to fix the issue.

@opatry opatry force-pushed the compose-hot-reload branch from aa049f2 to 74012b0 Compare May 6, 2025 18:30
@opatry opatry merged commit 7371608 into main May 6, 2025
2 checks passed
@opatry opatry deleted the compose-hot-reload branch May 6, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants