Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/multiplatform settings persistence #76

Merged

Conversation

rodvar
Copy link
Collaborator

@rodvar rodvar commented Nov 26, 2024

  • Implementation of Shared Repositories: Multiplatform Settings #39
  • key value store common implementation based on most used KMP lib
  • provided common tests with mocked implementation
  • using SettingsRepository for an example of real usage: url and connected flag gets saved now and loaded every time the app starts (xClients)
  • tested on the 3 apps, using keychain for iOS

@rodvar rodvar self-assigned this Nov 26, 2024
@rodvar rodvar mentioned this pull request Nov 26, 2024
Copy link
Contributor

@HenrikJannsen HenrikJannsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me it is not clear why an id with null is permitted. Then the prefix is the only map key, no?

@rodvar rodvar force-pushed the feature/multiplatform_settings_persistance branch from 6de999b to 19cdeaf Compare November 27, 2024 01:05
@rodvar
Copy link
Collaborator Author

rodvar commented Nov 27, 2024

rebased to latest main changes

@rodvar rodvar requested a review from HenrikJannsen November 27, 2024 03:48
 - added mp lib for settings
 - configuration for both platforms
 - implementation of proposed persistanceSource interface
 - adaptation of base model for serialzation
 - adaption on Settings model used as example for testing
 - common tests to proof working as expected
   construction and uses data from a protype of the involved T
 - repositories that doesn't use persistance don't need to provide
   prototype
@rodvar rodvar force-pushed the feature/multiplatform_settings_persistance branch from ac1d1fd to aa4a715 Compare November 27, 2024 23:50
@rodvar
Copy link
Collaborator Author

rodvar commented Nov 27, 2024

rebased branch to latest main changes

@rodvar rodvar merged commit eee645d into bisq-network:main Nov 28, 2024
1 check passed
@rodvar rodvar deleted the feature/multiplatform_settings_persistance branch November 28, 2024 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants