Skip to content

Commit 918006e

Browse files
committed
Build: Update dependency analysis configuration on sampleapp
This 'unused' related advise for the 'sampleapp' module is actually correct and 'mediapicker:source-wordpress' can be removed as a dependency since it is actually unused and not being utilized from within the sample app. However, I chose to keep it there and suppress the advise instead in order to preserve the sample app default configuration, its purpose being to test all those individual modules: - mediapicker:source-device - mediapicker:source-gif - mediapicker:source-wordpress - mediapicker:source-camera As such this advice is instead suppressed and the 'onUnusedDependencies' exclusion configuration were used to achieve that. ------------------------------------------------------------------------ Advice for :sampleapp Unused dependencies which should be removed: implementation project(':mediapicker:source-wordpress')
1 parent 52289fe commit 918006e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sampleapp/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,12 @@ dependencies {
6767
implementation "com.google.dagger:hilt-android:$gradle.ext.daggerVersion"
6868
kapt "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"
6969
}
70+
71+
dependencyAnalysis {
72+
issues {
73+
onUnusedDependencies {
74+
// This dependency is not needed but it is kept to preserve the module's default configuration.
75+
exclude(":mediapicker:source-wordpress")
76+
}
77+
}
78+
}

0 commit comments

Comments
 (0)