Skip to content

Commit

Permalink
Force dependency version to avoid vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyicker committed Dec 5, 2024
1 parent 4ebe157 commit 5352003
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions flo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ android {
namespace = "com.tidal.sdk.flo"
}

configurations.all {
resolutionStrategy.eachDependency {
if (requested.group != "com.google.guava") {
return@eachDependency
}
if (requested.name != "guava") {
return@eachDependency
}
// https://nvd.nist.gov/vuln/detail/cve-2023-2976, comes via moshi-kotlin-codegen 1.15.1
if (requested.version == "30.1.1-jre") {
useVersion("32.0.1-jre")
}
}
}

dependencies {
ksp(libs.moshi.codegen)
implementation(libs.moshi)
Expand Down

0 comments on commit 5352003

Please sign in to comment.