Skip to content

chore: replace deprecated LDClient.init() with timeout variant#38

Draft
kinyoklion wants to merge 1 commit into
mainfrom
devin/1783328972-fix-deprecated-init
Draft

chore: replace deprecated LDClient.init() with timeout variant#38
kinyoklion wants to merge 1 commit into
mainfrom
devin/1783328972-fix-deprecated-init

Conversation

@kinyoklion

Copy link
Copy Markdown
Member

Summary

LDClient.init(Application, LDConfig, LDContext) (no timeout) was deprecated in SDK 5.2.0. Replaced with the timeout overload:

- LDClient.init(this@MainApplication, ldConfig, context)
+ LDClient.init(this@MainApplication, ldConfig, context, 5)

Uses a 5-second startup wait, consistent with the SDK's recommended usage pattern. The SDK version (5.13.1) is already at the latest stable release — no dependency bump needed.

Link to Devin session: https://app.devin.ai/sessions/ade60c53c28c4ebaa7f9ad394c3dcd9d
Requested by: @kinyoklion

The no-timeout overload of LDClient.init() was deprecated in SDK 5.2.0.
Use init(Application, LDConfig, LDContext, int) with a 5-second timeout.

Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
@kinyoklion kinyoklion self-assigned this Jul 6, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant