Skip to content

Commit

Permalink
chore: prep for release v4.5.0 (#152)
Browse files Browse the repository at this point in the history
* polling wip

* fix how the default value for jitter is set

* feat: pause/resume polling for added control

* use latest common

* example app: pause and resume polling on app lifecycle

* tests

* bump version
  • Loading branch information
typotter authored Feb 12, 2025
1 parent b5c3cdc commit 17c3707
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eppo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "cloud.eppo"
version = "4.5.0-SNAPSHOT"
version = "4.5.0"

android {
buildFeatures.buildConfig true
Expand Down Expand Up @@ -68,7 +68,7 @@ ext.versions = [
]

dependencies {
api 'cloud.eppo:sdk-common-jvm:3.7.0'
api 'cloud.eppo:sdk-common-jvm:3.7.1'

implementation 'org.slf4j:slf4j-api:2.0.16'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ public void testPollingClient() throws ExecutionException, InterruptedException

verify(mockHttpClient, atLeast(1)).get(anyString());
assertTrue(eppoClient.getBooleanAssignment("bool_flag", "subject1", false));

eppoClient.stopPolling();
}

@Test
Expand Down
4 changes: 2 additions & 2 deletions eppo/src/main/java/cloud/eppo/android/EppoClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class EppoClient extends BaseEppoClient {
private static final long DEFAULT_POLLING_INTERVAL_MS = 5 * 60 * 1000;
private static final long DEFAULT_JITTER_INTERVAL_RATIO = 10;

private long pollingIntervalMs, pollingJitterMs;

@Nullable private static EppoClient instance;

private EppoClient(
Expand Down Expand Up @@ -371,8 +373,6 @@ public EppoClient buildAndInit() {
}
}

private long pollingIntervalMs, pollingJitterMs;

protected void stopPolling() {
super.stopPolling();
}
Expand Down

0 comments on commit 17c3707

Please sign in to comment.