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

Custom DataStorage not possible #22

Open
gourgouris opened this issue Dec 12, 2023 · 1 comment
Open

Custom DataStorage not possible #22

gourgouris opened this issue Dec 12, 2023 · 1 comment

Comments

@gourgouris
Copy link

gourgouris commented Dec 12, 2023

First of all, thank you so much for this project.
It is very helpful for using Google Sign In on Windows.

I am trying to override the default SharedPreferences DataStorage.
I understand I need to implement my own Store, akin the _SharedPreferencesStore.

However, I am not able to pass that implementation to the plugin because the DataStorage has only a private constructor.
I could implement DataStorage from scratch, however I am wondering if I am missing something obvious. Shouldn't it have a public constructor as well to pass custom Store implementations?

Thank you

@long1eu
Copy link
Owner

long1eu commented Dec 12, 2023

Try version 0.3.0. You are right, you should be able to pass the Store.

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

No branches or pull requests

2 participants