Skip to content

Commit 829d811

Browse files
Merge pull request #132 from snappdevelopment/add-hot-reload
Add hot reload for jvm sample app
2 parents 6d6c7ba + ba40b06 commit 829d811

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed

.idea/compiler.xml

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/desktopAppHotReload.xml

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradle/libs.versions.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ java-toolchain = "17"
66

77
compose = "1.7.3"
88
agp = "8.7.2"
9-
kotlin = "2.1.0"
9+
kotlin = "2.1.20"
1010
publish = "0.30.0"
1111
api-validator = "0.17.0"
1212
atomicfu = "0.27.0"
1313
androidx-activity-compose = "1.10.0"
1414
kotlinx-serialization-json = "1.8.0"
1515
kotlinx-coroutines = "1.10.1"
1616
detekt = "1.23.8"
17+
hotreload = "1.0.0-alpha10"
1718

1819
[libraries]
1920
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
@@ -36,4 +37,5 @@ compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "
3637
publish = { id = "com.vanniktech.maven.publish", version.ref = "publish" }
3738
api-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "api-validator" }
3839
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
39-
kotlinx-atomicfu = { id = "org.jetbrains.kotlinx.atomicfu", version.ref = "atomicfu" }
40+
kotlinx-atomicfu = { id = "org.jetbrains.kotlinx.atomicfu", version.ref = "atomicfu" }
41+
hotreload = { id = "org.jetbrains.compose.hot-reload", version.ref = "hotreload" }

sample/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins {
77
alias(libs.plugins.kotlinx.atomicfu)
88
alias(libs.plugins.compose)
99
alias(libs.plugins.compose.compiler)
10+
alias(libs.plugins.hotreload)
1011
}
1112

1213
group = "com.sebastianneubauer.jsontreesample"

0 commit comments

Comments
 (0)