This repository contains recent experiments for Hot Reloading Compose Applications.
The intent is to upstream this repository into an official JetBrains product.
No guarantees apply.
The project publishes experimental builds
(settings.gradle.kts)
pluginManagement {
repositories {
maven("https://packages.jetbrains.team/maven/p/firework/dev")
}
}
dependencyResolutionManagement {
repositories {
maven("https://packages.jetbrains.team/maven/p/firework/dev")
}
}
plugins {
kotlin("multiplatform") version "2.1.0-firework.31" // <- Use special builds of Kotlin
kotlin("plugin.compose") version "2.1.0-firework.31" // <- Use special builds of Kotlin/Compose Compiler
id("org.jetbrains.compose")
id("org.jetbrains.compose-hot-reload") version "1.0.0-dev.31.6" // <- add this additionally
}
composeCompiler {
featureFlags.add(ComposeFeatureFlag.OptimizeNonSkippingGroups)
}
// build.gradle.kts
tasks.register<ComposeHotRun>("runHot") {
mainClass.set("my.app.MainKt")
}
https://github.com/gradle/foojay-toolchains
// settings.gradle.kts
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
@Composable
fun App() {
DevelopmentEntryPoint {
MainPage()
}
}