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

Refactor API to use an interface. #47

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Conversation

jadar
Copy link

@jadar jadar commented Jul 6, 2023

Interfaces allow mocking libraries to mock our types more easily. This will prevent users of KVault from having to wrap KVault with another type when they want to test code which uses it.

This will be a breaking API change, unfortunately, because any users which extend the KVault class will have to extend KVaultImpl instead.

This follows the Kotlin coding convention pattern, here

Closes #42

Interfaces allow mocking libraries to mock our types more easily. This
will prevent users of KVault from having to wrap KVault with another
type when they want to test code which uses it.
@benjohnde
Copy link
Member

@jadar sry due to other PRs this one is no conflicting. Do you mind resolving the conflicts? Overall your implementation looks promising, breaking changes cannot be avoided which is fine IMHO.

@jadar
Copy link
Author

jadar commented Oct 18, 2023

@benjohnde I merged the upstream master branch. Should be up-to-date now.

@benjohnde
Copy link
Member

@canonall @ductavius @tknoelle we don't need to use a new published version with breaking api changes soon, but before merge I wanted to get a short confirm from you guys as well!

@benjohnde
Copy link
Member

Thanks a million @jadar !

@tknoelle
Copy link
Member

The changes are fine for me @benjohnde.

Thanks a lot @jadar

@benjohnde benjohnde merged commit deb0317 into Liftric:master Oct 25, 2023
1 check failed
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.

API as an interface
3 participants