diff --git a/.github/workflows/instrumented.yml b/.github/workflows/instrumented.yml index 65e760879..ad07f29d9 100644 --- a/.github/workflows/instrumented.yml +++ b/.github/workflows/instrumented.yml @@ -9,7 +9,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: fail-fast: false diff --git a/CHANGES.txt b/CHANGES.txt index c9a631aef..5df09b929 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +5.1.0 (Jan 17, 2025) +- Added support for the new impressions tracking toggle available on feature flags, both respecting the setting and including the new field being returned on SplitView type objects. Read more in our docs. + 5.0.1 (Nov 22, 2024) - Optimized persistence of impressions deduplication cache. diff --git a/build.gradle b/build.gradle index bccdbed65..37af751b0 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ apply plugin: 'kotlin-android' apply from: 'spec.gradle' ext { - splitVersion = '5.1.0-alpha.3' + splitVersion = '5.1.0' } android { diff --git a/src/androidTest/java/tests/integration/rollout/RolloutCacheManagerIntegrationTest.java b/src/androidTest/java/tests/integration/rollout/RolloutCacheManagerIntegrationTest.java index 2efb3d933..be821fde0 100644 --- a/src/androidTest/java/tests/integration/rollout/RolloutCacheManagerIntegrationTest.java +++ b/src/androidTest/java/tests/integration/rollout/RolloutCacheManagerIntegrationTest.java @@ -25,6 +25,7 @@ import helper.DatabaseHelper; import helper.FileHelper; import helper.IntegrationHelper; +import helper.TestableSplitConfigBuilder; import io.split.android.client.RolloutCacheConfiguration; import io.split.android.client.ServiceEndpoints; import io.split.android.client.SplitClientConfig; @@ -39,7 +40,6 @@ import io.split.android.client.storage.db.SplitEntity; import io.split.android.client.storage.db.SplitRoomDatabase; import io.split.android.client.utils.Json; -import io.split.android.client.utils.logger.SplitLogLevel; import okhttp3.mockwebserver.Dispatcher; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; @@ -215,13 +215,13 @@ private SplitFactory getSplitFactory(RolloutCacheConfiguration rolloutCacheConfi final String url = mWebServer.url("/").url().toString(); ServiceEndpoints endpoints = ServiceEndpoints.builder() .apiEndpoint(url).eventsEndpoint(url).build(); - SplitClientConfig.Builder builder = new SplitClientConfig.Builder() + TestableSplitConfigBuilder builder = new TestableSplitConfigBuilder() .serviceEndpoints(endpoints) .streamingEnabled(false) .featuresRefreshRate(9999) .segmentsRefreshRate(9999) .impressionsRefreshRate(9999) - .logLevel(SplitLogLevel.VERBOSE) + .enableDebug() .streamingEnabled(false); if (rolloutCacheConfiguration != null) { diff --git a/src/main/java/io/split/android/client/SplitClientConfig.java b/src/main/java/io/split/android/client/SplitClientConfig.java index 00af53115..d9f55df7c 100644 --- a/src/main/java/io/split/android/client/SplitClientConfig.java +++ b/src/main/java/io/split/android/client/SplitClientConfig.java @@ -1118,7 +1118,7 @@ public Builder impressionsDedupeTimeInterval(long impressionsDedupeTimeInterval) * @param rolloutCacheConfiguration Configuration object * @return This builder */ - public Builder rolloutCacheConfiguration(@NonNull RolloutCacheConfiguration rolloutCacheConfiguration) { + Builder rolloutCacheConfiguration(@NonNull RolloutCacheConfiguration rolloutCacheConfiguration) { if (rolloutCacheConfiguration == null) { Logger.w("Rollout cache configuration is null. Setting to default value."); mRolloutCacheConfiguration = RolloutCacheConfiguration.builder().build();