Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
MFlisar committed Sep 19, 2024
1 parent ba6f910 commit a0fe699
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.michaelflisar.kotpreferences.demo.settings

import com.michaelflisar.composedemobaseactivity.classes.DemoTheme
import com.michaelflisar.composethemer.ComposeTheme
import com.michaelflisar.composethemer.themes.themes.ThemeGreens
import com.michaelflisar.kotpreferences.core.SettingsModel
import com.michaelflisar.kotpreferences.core.enumPref
import com.michaelflisar.kotpreferences.core.initialisation.SettingSetup
Expand All @@ -17,11 +14,6 @@ object DemoSettingsModel : SettingsModel(
)
) {

// app settings
val baseTheme by enumPref(ComposeTheme.BaseTheme.System)
val theme by stringPref(ThemeGreens.KEY)
val dynamicTheme by boolPref(false)

// simple types
val testString by stringPref("initial value")
val testInt by intPref()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.michaelflisar.kotpreferences.demo


import com.michaelflisar.kotpreferences.core.SettingsModel
import com.michaelflisar.kotpreferences.storage.datastore.DataStoreStorage
import com.michaelflisar.kotpreferences.storage.datastore.create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.michaelflisar.kotpreferences.demo
import com.michaelflisar.kotpreferences.core.SettingsModel
import com.michaelflisar.kotpreferences.storage.keyvalue.KeyValueStorage
import com.michaelflisar.kotpreferences.storage.keyvalue.create
import okio.Path.Companion.toOkioPath
import java.io.File

object KeyValueModel : SettingsModel(
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ kotlinx-serialization-property = "1.7.2"
kotlinx-coroutines-test = "1.9.0"

androidx-core = "1.13.1"
androidx-lifecycle = "2.8.5"
androidx-lifecycle = "2.8.6"
androidx-datastoreprefs = "1.1.1"
androidx-startup = "1.1.1"
androidx-startup = "1.2.0"
androidx-activity = "1.9.2"

okio = "3.9.1"
Expand Down

0 comments on commit a0fe699

Please sign in to comment.