Skip to content

Instantly share code, notes, and snippets.

@SergeiMikhailovskii
Created November 14, 2022 21:08
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 SergeiMikhailovskii/aa93a70462918c95c6ff8a4e355e0256 to your computer and use it in GitHub Desktop.
Save SergeiMikhailovskii/aa93a70462918c95c6ff8a4e355e0256 to your computer and use it in GitHub Desktop.
internal fun getDataStore(path: String, migrations: List<DataMigration<Preferences>>) =
PreferenceDataStoreFactory.createWithPath(migrations = migrations) { path.toPath() }
internal const val dataStoreFileName = "fitnest.preferences_pb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment