-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- wrapper for general mutliplatform settings implementation. Example…
… usage of the wrapper in our good old POC greeting-related code. Note this commit make all apps crash because methods are throwing not implemented exceptions on purpose
- Loading branch information
Showing
7 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
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
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
38 changes: 38 additions & 0 deletions
38
...in/src/commonMain/kotlin/network/bisq/mobile/domain/data/persistance/KeyValuePersister.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package network.bisq.mobile.domain.data.persistance | ||
|
||
import com.russhwolf.settings.Settings | ||
import network.bisq.mobile.domain.data.model.BaseModel | ||
|
||
/** | ||
* This implementation relies on multiplatform settings | ||
*/ | ||
class KeyValuePersister(settings: Settings): PersistenceSource { | ||
override suspend fun <T : BaseModel> save(item: T) { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override suspend fun <T : BaseModel> saveAll(items: List<T>) { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override suspend fun <T : BaseModel> get(): T? { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override suspend fun <T : BaseModel> getAll(): List<T> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override suspend fun <T : BaseModel> delete(item: T) { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override suspend fun deleteAll() { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override suspend fun clear() { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
} |
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
3 changes: 2 additions & 1 deletion
3
...d/domain/src/commonMain/kotlin/network/bisq/mobile/domain/data/repository/Repositories.kt
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
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
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