Skip to content

Commit 7db2a43

Browse files
committed
Build: Update dependency analysis configuration on media placeholders
This 'unused' related advise for the 'media-placeholders' module is actually incorrect as the build is failing when the 'appcompat' dependency is removed. This is happening due to the fact that 'aztec' has classes like 'AztecText', which is being used on this module, but the Dependency Analysis plugin cannot understand that although there are no 'appcompat' related imports, those are actually needed nevertheless. Another dependency configuration might be able to solve this, but this was considered as being outside the scope of this change. ------------------------------------------------------------------------ Advice for :media-placeholders Unused dependencies which should be removed: implementation 'androidx.appcompat:appcompat:1.1.0'
1 parent 67c07fd commit 7db2a43

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

media-placeholders/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ dependencies {
4343
testImplementation "org.robolectric:robolectric:$robolectricVersion"
4444
}
4545

46+
dependencyAnalysis {
47+
issues {
48+
onUnusedDependencies {
49+
// This dependency is actually needed otherwise the build fails in multiple places.
50+
exclude("androidx.appcompat:appcompat")
51+
}
52+
}
53+
}
54+
4655
project.afterEvaluate {
4756
publishing {
4857
publications {

0 commit comments

Comments
 (0)