Update LaunchDarkly Android Client SDK to 5.11.0#5
Merged
kinyoklion merged 5 commits intomainfrom Mar 4, 2026
Merged
Conversation
Updates the launchdarkly-android-client-sdk dependency from 4.2.2 to 5.11.0, the latest release of the LaunchDarkly Android Client SDK. Co-Authored-By: rlamb@launchdarkly.com <rlamb@launchdarkly.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
SDK 5.11.0 requires newer build tooling. Updates: - AGP: 4.1.3 → 8.7.0 (migrated from buildscript to plugins DSL) - Gradle wrapper: 6.7 → 8.9 - compileSdk/targetSdk: 33 → 34 - minSdk: 21 → 24 - Added pluginManagement and dependencyResolutionManagement to settings.gradle - Moved namespace from AndroidManifest.xml to build.gradle (AGP 8.x requirement) Co-Authored-By: rlamb@launchdarkly.com <rlamb@launchdarkly.com>
tanderson-ld
approved these changes
Mar 3, 2026
Member
|
Devin, this PR needs more work. |
AGP 8.7.0 requires Java 17 to run. Updates: - CI workflows: java-version 11 → 17 - compileOptions: VERSION_1_8 → VERSION_17 Co-Authored-By: rlamb@launchdarkly.com <rlamb@launchdarkly.com>
Contributor
Author
|
Fixed the CI failures. The root cause was that AGP 8.7.0 requires Java 17, but the newly added CI workflows were configured for Java 11. Changes in latest commit:
|
SDK 5.x changed LDConfig.Builder to require an AutoEnvAttributes parameter. Updated to use AutoEnvAttributes.Enabled, matching the hello-android Kotlin example. Co-Authored-By: rlamb@launchdarkly.com <rlamb@launchdarkly.com>
kinyoklion
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps
launchdarkly-android-client-sdkfrom 4.2.2 to 5.11.0 — a major version upgrade (4.x → 5.x).SDK 5.11.0 requires newer build tooling than what the project previously used (AGP 4.1.3 / Gradle 6.7). The build configuration has been modernized to match, and application code was updated for SDK 5.x API changes.
Changes
Upgraded the entire build toolchain for SDK 5.11.0 compatibility:
Structural changes:
build.gradlefrom legacybuildscript/allprojectsDSL to modernpluginsDSLpluginManagementanddependencyResolutionManagementblocks tosettings.gradlenamespacefromAndroidManifest.xmlpackageattribute toapp/build.gradle(required by AGP 8.x)build.yml,run.yml) from Java 11 to Java 17 — AGP 8.7.0 requires Java 17 to runSDK 5.x API migration in
MainApplication.java:LDConfig.Builder()→LDConfig.Builder(AutoEnvAttributes.Enabled)(required parameter added in 5.x)com.launchdarkly.sdk.android.LDConfig.Builder.AutoEnvAttributesReview & Testing Checklist for Human
LDConfig.Buildernow requiresAutoEnvAttributes), but there may be others. The app also usesLDClient.get(),LDClient.init(),boolVariation(),registerFeatureFlagListener(),flush(), andLaunchDarklyException— verify these haven't changed signatures or behavior. Check the SDK changelog / migration guide.minSdk 24is actually required. This was bumped from 21 — confirm whether SDK 5.x truly requires API 24+. If not, revert to 21 to avoid dropping Android 5.0–6.x device support unnecessarily.VERSION_1_8toVERSION_17to match the AGP 8.x toolchain. Confirm this doesn't break runtime compatibility on target devices.Suggested test plan: Open the project in Android Studio, verify Gradle sync succeeds, build the debug APK, run on an emulator with a valid mobile key, and confirm the SDK initializes and evaluates a flag correctly.
Notes
AutoEnvAttributes.Enabledusage mirrors the hello-android (Kotlin) example, whose equivalent PR was already merged.