Skip to content

chore(deps): bump dev.openfeature:kotlin-sdk to 0.8.0 - #315

Merged
jonathannorris merged 3 commits into
mainfrom
chore/of-sdk-bump
Aug 7, 2026
Merged

chore(deps): bump dev.openfeature:kotlin-sdk to 0.8.0#315
jonathannorris merged 3 commits into
mainfrom
chore/of-sdk-bump

Conversation

@jonathannorris

@jonathannorris jonathannorris commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Bumps dev.openfeature:kotlin-sdk from 0.6.2 to 0.8.0 in the SDK and the OpenFeature example
  • Adapts DevCycleProvider.kt to the breaking OpenFeatureProviderEvents change in 0.7.0
  • assembleDebug passes for the SDK and all three example apps; 167 unit tests pass

Implementation

0.7.0 turned OpenFeatureProviderEvents from a sealed interface with object variants into a sealed class of data classes carrying eventDetails, and ProviderError's first positional parameter is now eventDetails rather than the now-deprecated error. Four call sites in DevCycleProvider.kt:

  • ProviderConfigurationChanged to ProviderConfigurationChanged() (2 sites)
  • Both ProviderError(OpenFeatureError.GeneralError(...)) calls now pass eventDetails = EventDetails(message, errorCode = ErrorCode.GENERAL). ErrorCode.GENERAL maps back through toOpenFeatureStatusError() to a non-fatal OpenFeatureStatus.Error, so the previous semantics hold.

FeatureProvider is unchanged between the two tags and HookContext's new hookData param has a default, so nothing else needed touching.

Notes

Since 0.7.1 setProvider calls shutdown() on the previous provider, so DevCycleProvider.shutdown() now closes the DevCycle client on provider swaps where it previously did not. Correct, but currently untested.

@jonathannorris
jonathannorris marked this pull request as ready for review August 5, 2026 20:21
Copilot AI review requested due to automatic review settings August 5, 2026 20:21
@jonathannorris
jonathannorris requested a review from a team as a code owner August 5, 2026 20:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates this Android client SDK and its OpenFeature example to OpenFeature Kotlin SDK 0.8.0, including adapting the DevCycleProvider implementation to the OpenFeatureProviderEvents breaking change introduced in 0.7.0.

Changes:

  • Bump dev.openfeature:kotlin-sdk from 0.6.2 to 0.8.0 in the SDK module and OpenFeature example.
  • Update DevCycleProvider to emit the new OpenFeatureProviderEvents variants (instantiated event classes and EventDetails for errors).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
openfeature-example/build.gradle Bumps OpenFeature Kotlin SDK dependency to 0.8.0 for the example app.
android-client-sdk/build.gradle Bumps OpenFeature Kotlin SDK dependency to 0.8.0 for the SDK module.
android-client-sdk/src/main/java/com/devcycle/sdk/android/openfeature/DevCycleProvider.kt Adapts provider event emissions to the updated OpenFeatureProviderEvents API shape.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jonathannorris
jonathannorris enabled auto-merge (squash) August 6, 2026 20:03
Signed-off-by: Jonathan Norris <jonathan.norris@dynatrace.com>
@jonathannorris
jonathannorris merged commit 600e87b into main Aug 7, 2026
6 checks passed
@jonathannorris
jonathannorris deleted the chore/of-sdk-bump branch August 7, 2026 15:46
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.

4 participants