Skip to content

fix: tidy optional-dependency handling in core (0.4.0)#15

Merged
Fiona2016 merged 1 commit into
publishfrom
fix/optional-deps-cleanup
May 31, 2026
Merged

fix: tidy optional-dependency handling in core (0.4.0)#15
Fiona2016 merged 1 commit into
publishfrom
fix/optional-deps-cleanup

Conversation

@Fiona2016
Copy link
Copy Markdown
Collaborator

@Fiona2016 Fiona2016 commented May 29, 2026

What

Cleanup pass over the compileOnly optional-dependency work landed since v0.3.0, and version bump to 0.4.0 for release.

Why 0.4.0 (not 0.3.1): the compileOnly change is breaking for integrators (apps must now provide okhttp/gson themselves), so a minor bump reflects the impact better than a patch.

Changes

  • Stop leaking internal helpers into the public APIWorkManagerUtils.isInitialized(Context) is now internal, and the unused getWorkManagerOrNull(Context) helper is removed. Both were exported in the public API surface (apiSurface / dd-sdk-android-core.api); the baselines are regenerated accordingly.
  • Remove dead codegetWorkManagerOrNull had no call sites.
  • Drop now-unused importsandroidx.work.WorkManager in ProcessLifecycleCallback and DatadogExceptionHandler (their only use, WorkManager.isInitialized(), was replaced by the context-aware helper).
  • Minor tidy — use the imported Log.e instead of a fully-qualified call in Datadog; translate the WorkManagerUtils comments to English; add a trailing newline.
  • Version — bump the default snapshot version to 0.4.0 in AndroidConfig.
  • CHANGELOG — add the 0.4.0 entry (documents the compileOnly breaking change, WorkManager-optional behavior, and new no-op modules), plus a divider clarifying that FlashCat releases are versioned 0.x while the inherited upstream Datadog history is 3.x.

Verification

  • :dd-sdk-android-core:compileReleaseKotlin — passes (forced recompile).
  • :dd-sdk-android-core:apiDump — regenerated baselines match the hand-edited files exactly (zero churn); leaked symbols confirmed gone.

Release as tag v0.4.0 once merged.

🤖 Generated with Claude Code

Release this as 0.4.0 (minor bump): the compileOnly dependency change is
breaking for integrators, so a patch (0.3.1) understates the impact.

- Make WorkManagerUtils.isInitialized internal and drop the unused
  getWorkManagerOrNull helper, so neither leaks into the public API.
- Remove the now-unused androidx.work.WorkManager imports from
  ProcessLifecycleCallback and DatadogExceptionHandler.
- Use the imported Log.e instead of a fully-qualified call in Datadog.
- Translate WorkManagerUtils comments to English and add a trailing newline.
- Regenerate the core API surface baselines accordingly.
- Bump the default snapshot version to 0.4.0 in AndroidConfig.
- Add the 0.4.0 CHANGELOG entry and a divider clarifying that FlashCat
  releases are versioned 0.x while the inherited upstream Datadog history
  is 3.x.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Fiona2016 Fiona2016 force-pushed the fix/optional-deps-cleanup branch from e87d26b to b843798 Compare May 30, 2026 04:46
@Fiona2016 Fiona2016 changed the title fix: tidy optional-dependency handling in core (0.3.1) fix: tidy optional-dependency handling in core (0.4.0) May 30, 2026
@Fiona2016 Fiona2016 merged commit 9b2dc65 into publish May 31, 2026
2 checks 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.

1 participant