-
-
Save pavan5208/3bde34afc08a7a36f987965673fdebdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.datastore.core.DataStore | |
import androidx.datastore.dataStore | |
private val USER_DATA_STORE_FILE_NAME = "user_store.pb" | |
val Context.userDataStore: DataStore<UserStore> by dataStore( | |
fileName = USER_DATA_STORE_FILE_NAME, | |
serializer = UserStoreSerializer | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment