Skip to content

Instantly share code, notes, and snippets.

@mukeshsolanki
Last active September 14, 2023 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mukeshsolanki/6cdfeaad1ce70d4c320be230ed52119d to your computer and use it in GitHub Desktop.
Save mukeshsolanki/6cdfeaad1ce70d4c320be230ed52119d to your computer and use it in GitHub Desktop.
// Create a test DataStore for Preferences DataStore
val testContext = ApplicationProvider.getApplicationContext<Context>()
val testPreferencesDataStore = testContext.createDataStore(
name = "test_preferences",
serializer = PreferencesSerializer
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment