DaggerMock icon indicating copy to clipboard operation
DaggerMock copied to clipboard

Fixes bug with newest dagger version

Open Frisch12 opened this issue 6 years ago • 1 comments
trafficstars

In the newest dagger version the builder is not created with methods for setting the modules but with fields for holding the modules. This fix will try to look for the method and if no method with module name is found, it will search for a field named as the module. So every combination of dagger versions is possible.

Frisch12 avatar Dec 30 '18 18:12 Frisch12

Thanks for the PR! Is there an alternative way to do it and avoid using an api available only on Android 24+? The library is a java module so it shouldn't contain any android library dependency

fabioCollini avatar Jan 02 '19 18:01 fabioCollini