Skip to content

Commit 9b64532

Browse files
committed
🗑️ chore: cleaning
Signed-off-by: shub39 <cptnshubham39@gmail.com>
1 parent 1f860c7 commit 9b64532

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ kotlinx-serialization-json = "1.11.0"
3131
spotless = "8.6.0"
3232
filekit = "0.14.1"
3333
ktfmt = "0.61"
34+
browser-preloader = "1.0.3"
3435

3536
[libraries]
3637
# Android and compose stuff
@@ -93,3 +94,4 @@ compose-multiplatform = { id = "org.jetbrains.compose", version.ref = "compose-m
9394
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
9495
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
9596
koin-compiler = { id = "io.insert-koin.compiler.plugin", version.ref = "koin-plugin" }
97+
kotlin-browser-preloader = { id = "com.ryinex.kotlin.browser.preloader", version.ref = "browser-preloader" }

webDemo/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
alias(libs.plugins.compose.compiler)
2525
alias(libs.plugins.kotlin.serialization)
2626
alias(libs.plugins.koin.compiler)
27-
id("com.ryinex.kotlin.browser.preloader") version "1.0.3"
27+
alias(libs.plugins.kotlin.browser.preloader)
2828
}
2929

3030
koinCompiler {

webDemo/src/commonMain/kotlin/com/shub39/grit/web_demo/stubs/RuntimeStubs.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ class SettingsDatastoreStub : SettingsDatastore {
170170
class TaskRepoStub : TaskRepo {
171171
private val _tasks = MutableStateFlow<List<Task>>(emptyList())
172172
private val _categories =
173-
MutableStateFlow<List<Category>>(
174-
listOf(Category(id = 1, name = "General", index = 0, color = "#FFFFFF"))
175-
)
173+
MutableStateFlow(listOf(Category(id = 1, name = "General", index = 0, color = "#FFFFFF")))
176174

177175
init {
178176
val work = Category(id = 2, name = "Work", index = 1, color = "#4285F4")
@@ -181,10 +179,10 @@ class TaskRepoStub : TaskRepo {
181179

182180
_tasks.update {
183181
listOf(
184-
Task(id = 1, categoryId = 1, title = "Welcome to Grit! 🚀"),
182+
Task(id = 1, categoryId = 1, title = "Welcome to Grit!"),
185183
Task(id = 2, categoryId = 2, title = "Complete project documentation"),
186184
Task(id = 3, categoryId = 2, title = "Team meeting", status = true),
187-
Task(id = 4, categoryId = 3, title = "Buy groceries 🛒"),
185+
Task(id = 4, categoryId = 3, title = "Buy groceries"),
188186
)
189187
}
190188
}

0 commit comments

Comments
 (0)