Initialize DataStore

This commit is contained in:
MM20 2021-09-26 23:03:04 +02:00
parent ac283f99b3
commit 68baeb0a34
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -0,0 +1,10 @@
package de.mm20.launcher2.preferences
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.dataStore
val Context.dataStore: DataStore<Settings> by dataStore(
fileName = "settings.pb",
serializer = SettingsSerializer
)