Backport fixes and enable new Dagger Validations
This corrects a duplicated binding of UnfoldTransitionModule
which will become an error in future Dagger releases. With
this change, the checks are also raised to error to prevent
further regressions:
dagger.explicitBindingConflictsWithInject=ERROR
dagger.strictMultibindingValidation=enabled
This change unblocks an upgrade of external/dagger2
Test: m SystemUI-core; compiles without error
Test: Treehugger presubmit
Flag: NA (backport of a fix from internal main)
Change-Id: I7a887cf6ac200a9080893dd4dde969aef7ceef5b
Merged-In: I0aef5464000d30b27097ddaed9548d128bedccf6
diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp
index 62b8cb7..dd7f8d5 100644
--- a/packages/SystemUI/Android.bp
+++ b/packages/SystemUI/Android.bp
@@ -214,6 +214,8 @@
javacflags: [
"-Adagger.fastInit=enabled",
+ "-Adagger.explicitBindingConflictsWithInject=ERROR",
+ "-Adagger.strictMultibindingValidation=enabled",
"-Aroom.schemaLocation=frameworks/base/packages/SystemUI/schemas",
],
kotlincflags: ["-Xjvm-default=all"],