chore: fix dependabot security alerts and upgrade AGP#285
chore: fix dependabot security alerts and upgrade AGP#285jonathannorris wants to merge 6 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates dependency versions and Gradle resolution rules to address Dependabot security alerts affecting both runtime (Jackson) and build-time transitive dependencies (AGP toolchain).
Changes:
- Bump Jackson-related versions used by
android-client-sdkto2.21.1. - Add
resolutionStrategy.forceoverrides for several vulnerable transitive dependencies (netty, jose4j, jdom2, protobuf, commons-compress) in the root build.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
build.gradle |
Adds forced dependency versions via resolutionStrategy for the buildscript classpath and all subproject configurations. |
android-client-sdk/build.gradle |
Updates Jackson version variables used by SDK dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
6106ba4 to
dc1ec8b
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the Android build tooling and key dependencies to address Dependabot security alerts, primarily by upgrading Jackson and the Android Gradle Plugin/Gradle, and by forcing patched versions of vulnerable transitive build dependencies.
Changes:
- Upgraded Gradle wrapper to 8.13 and Android Gradle Plugin (AGP) to 8.13.2.
- Bumped Jackson versions used by the SDK, including moving core-related artifacts to 2.21.1.
- Added
resolutionStrategy.forcerules to pin patched versions of several vulnerable transitive dependencies (netty, jose4j, jdom2, protobuf, commons-compress).
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
gradle/wrapper/gradle-wrapper.properties |
Updates Gradle wrapper distribution to 8.13. |
build.gradle |
Upgrades AGP and adds global dependency forcing for vulnerable transitive deps. |
android-client-sdk/build.gradle |
Updates Jackson versions used by the Android client SDK (with an exception for jackson-module-kotlin). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
This PR focuses on addressing Dependabot security alerts in the Android build by upgrading build tooling/dependencies (AGP, Gradle, Jackson) and enforcing patched versions for vulnerable transitive build-time artifacts.
Changes:
- Upgrade Android Gradle Plugin to
8.13.2and Gradle wrapper to8.13. - Bump Jackson versions in
android-client-sdkfrom2.19.1to2.21.1. - Add Gradle
resolutionStrategy.forcerules for several vulnerable transitive dependencies (Netty, jose4j, jdom2, protobuf, commons-compress), and raiseminSdkfrom 23 to 26 across modules.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
build.gradle |
Bumps AGP and adds forced resolution strategy overrides for vulnerable transitives in buildscript + subprojects. |
gradle/wrapper/gradle-wrapper.properties |
Updates Gradle wrapper distribution to 8.13. |
android-client-sdk/build.gradle |
Updates Jackson versions and raises library minSdk to 26. |
java-example/build.gradle |
Raises example app minSdk to 26. |
kotlin-example/build.gradle |
Raises example app minSdk to 26. |
openfeature-example/build.gradle |
Raises example app minSdk to 26. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
Updates Android build/tooling and dependency versions to address Dependabot security alerts, including upgrading Jackson and Android build infrastructure, and raising minSdk to support newer Jackson Kotlin module requirements.
Changes:
- Bump Jackson dependencies to
2.21.1and raiseminSdkfrom 23 → 26 across SDK + example apps. - Upgrade Android Gradle Plugin to
8.13.2and Gradle wrapper to8.13. - Add Gradle
resolutionStrategy.forceoverrides to pin patched versions of vulnerable transitive build-time dependencies; update README requirement.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| openfeature-example/build.gradle | Raises example app minSdk to 26 to match SDK requirements. |
| kotlin-example/build.gradle | Raises example app minSdk to 26 to match SDK requirements. |
| java-example/build.gradle | Raises example app minSdk to 26 to match SDK requirements. |
| gradle/wrapper/gradle-wrapper.properties | Upgrades Gradle wrapper distribution to 8.13. |
| build.gradle | Upgrades AGP and adds dependency forcing for vulnerable transitive build deps. |
| android-client-sdk/build.gradle | Raises SDK minSdk to 26 and bumps Jackson versions to 2.21.1. |
| README.md | Documents the new minimum supported Android API level (26). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
…ise JVM target to 11
Summary
jackson-coreasync parser (high severity DoS)minSdkfrom 23 to 26 (Android 8.0 Oreo, released August 2017) to supportjackson-module-kotlin2.21+ which usesMethodHandle.invokeExactresolutionStrategyforce directives for vulnerable transitive build-time dependencies that AGP still pulls in (netty, jose4j, jdom2, protobuf, commons-compress)Details
The Jackson update is a direct dependency bump. The remaining vulnerable packages are transitive build-time dependencies from AGP's internal tooling (gRPC, lint, analytics) — they don't ship with the published SDK artifact. The AGP upgrade alone doesn't bump these transitive deps, so
resolutionStrategyforce directives are still needed.minSdkraised from 23 (Android 6.0, October 2015) to 26 (Android 8.0, August 2017) to allow aligning all Jackson modules to 2.21.1. API 26+ covers >95% of active Android devices. The 2.21+jackson-module-kotlinusesMethodHandle.invokeExactwhich requires API 26+.jackson-corenetty-*jose4jjdom2protobuf-java/kotlincommons-compressminSdk 26 modernization
Build.VERSION.SDK_INTchecks that are always true at API 26+ (DevCycleLogger.kt,PopulatedUser.kt)android.enableJetifier=true— all dependencies are already AndroidX-nativejava.nio.file.PathProGuard keep rule (class is always available at API 26+)