Skip to content

Commit

Permalink
add deprecated annotation and bump version (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarsilv authored May 31, 2024
1 parent 7e0fccf commit f5bb7ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eppo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "cloud.eppo"
version = "1.0.11"
version = "1.0.12"

android {
compileSdk 33
Expand Down
13 changes: 13 additions & 0 deletions eppo/src/main/java/cloud/eppo/android/EppoClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ public static EppoClient init(Application application, String apiKey, String hos
return instance;
}

/**
* Ability to ad-hoc kick off a configuration load.
* Will load from a filesystem cached file as well as fire off a HTTPS request for an updated
* configuration. If the cache load finishes first, those assignments will be used until the
* fetch completes.
*
* Deprecated, as we plan to make a more targeted and configurable way to do so in the future.
* @param callback methods to call when loading succeeds/fails. Note that the success callback
* will be called as soon as either a configuration is loaded from the cache or
* fetched--whichever finishes first. Error callback will called if both
* attempts fail.
*/
@Deprecated
public void refreshConfiguration(InitializationCallback callback) {
requestor.load(callback);
}
Expand Down

0 comments on commit f5bb7ed

Please sign in to comment.