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

External request - make 'EppoClient.refreshConfiguration' public #52

Merged
merged 1 commit into from
May 31, 2024

Conversation

frodo-booksy
Copy link
Contributor

Hi guys, an Android dev here. Recently we have started using your Android SDK in our app and noticed that there is no possibility to refresh the configuration after the app initialization, because the function 'refreshConfiguration' is private.
Sometimes we may need to refresh the configuration during the app's session. Could you make this method public so we would be able to refresh the configuration when needed? It is possible in iOS SDK, so I assume it could be possible in Android SDK as well?

Best,
Pawel

Copy link
Contributor

@aarsilv aarsilv left a comment

Choose a reason for hiding this comment

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

Hey hey! Thanks for helping us improve our Android SDK. We'll merge this change, but I'm going to add a @Deprecated annotation to it.

The reason is that this particular method also does some cache loading stuff. Ideally, we'd pull out the HTTP stuff into a standalone public refresh method. That being said, this newly-exposed method will still accomplish what you want. It will load whatever was previously fetched from the cache and update it when the fetch completes. However, it's a roundabout way that does more work than it has to, and we have plans to expand the API to have a true refresh request--hence the "deprecation".

@aarsilv aarsilv merged commit 7e0fccf into Eppo-exp:main May 31, 2024
1 check passed
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