createPlainPreferencesDataStore
fun createPlainPreferencesDataStore(locator: StoreLocator, migrations: List<DataMigration<Preferences>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<Preferences>? = null): DataStore<Preferences>
Canonical plain Preferences factory. Prefer PrefsStoreLocator.Platform from commonMain (Okio on file targets, localStorage on JS/Wasm).
fun createPlainPreferencesDataStore(producePath: () -> Path, migrations: List<DataMigration<Preferences>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<Preferences>? = null): DataStore<Preferences>
Okio Preferences path factory (unencrypted). Requires a .preferences_pb suffix. Prefer PrefsStoreLocator.File / PrefsStoreLocator.Platform from shared code.