Storage - DataStore

The Storage is an abstraction to support any storage implementation. The storage-datastore module provides an implementation based on the Android JetPack DataStore.

This module is placed inside the storage-datastore artifact and can simply be used like following:

object SettingsModel : SettingsModel(
    DataStoreStorage.create(
        name: String = "settings",
        encryption: StorageEncryption? = null,
        cache: Boolean = true
    )
) {
    // ...
}
object SettingsModel : SettingsModel(
    DataStoreStorage.create(
        folder: File,
        name: String = "settings",
        encryption: StorageEncryption? = null,
        cache: Boolean = true
    )
) {
    // ...
}