Use dependency injection to access dataStore, not the context.dataStore extension

This commit is contained in:
MM20
2022-01-02 21:58:53 +01:00
parent 9d6ca3d613
commit 11e6a3ceb3
9 changed files with 10 additions and 597 deletions
@@ -10,7 +10,7 @@ import de.mm20.launcher2.preferences.migrations.FactorySettingsMigration
typealias LauncherDataStore = DataStore<Settings>
val Context.dataStore: LauncherDataStore by dataStore(
internal val Context.dataStore: LauncherDataStore by dataStore(
fileName = "settings.pb",
serializer = SettingsSerializer,
produceMigrations = {