Skip to content

Conversation

@Voemp
Copy link
Collaborator

@Voemp Voemp commented Aug 5, 2025

Gradle Task Invocation

You can run it from the command line like this:

./gradlew :example:hotRunDesktop --auto

Or just use the Run Configuration in the IDE:

<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="example-hotRunDesktop" type="GradleRunConfiguration" factoryName="Gradle">
    <ExternalSystemSettings>
      <option name="executionName" />
      <option name="externalProjectPath" value="$PROJECT_DIR$/example" />
      <option name="externalSystemIdString" value="GRADLE" />
      <option name="scriptParameters" value="" />
      <option name="taskDescriptions">
        <list />
      </option>
      <option name="taskNames">
        <list>
          <option value="hotRunDesktop" />
          <option value="--auto" />
        </list>
      </option>
      <option name="vmOptions" />
    </ExternalSystemSettings>
    <ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
    <ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
    <DebugAllEnabled>false</DebugAllEnabled>
    <RunAsTest>false</RunAsTest>
    <method v="2" />
  </configuration>
</component>

@YuKongA YuKongA requested a review from Copilot August 5, 2025 09:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables Compose for Desktop Hot Reload functionality for the example project, allowing for faster development iterations by automatically recompiling and reloading the application when source code changes.

  • Adds the Compose Hot Reload plugin configuration to the project
  • Configures the desktop application to run in hot reload mode with visual indicators
  • Sets up a custom Gradle task configuration for hot reload execution

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
gradle/libs.versions.toml Adds compose-hotReload version and plugin declarations
example/build.gradle.kts Applies the hot reload plugin and configures the hotRunDesktop task
example/src/desktopMain/kotlin/Main.desktop.kt Adds hot reload mode detection and UI adjustments

@YuKongA YuKongA self-assigned this Aug 5, 2025
Copy link
Member

@YuKongA YuKongA left a comment

Choose a reason for hiding this comment

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

image

@YuKongA YuKongA merged commit 7ca2800 into compose-miuix-ui:main Aug 5, 2025
5 checks passed
@Voemp Voemp deleted the hotReload branch August 5, 2025 11:08
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