What are the advantages of Dagger 2 over Dagger 1?
So far I found (just) 2:
- Dagger 2 allows you to use code obfuscation with proguard
- Dagger 2 is faster (which is not much of an advantage when using it for android application but it is sure an important thing if you use it for some kind of server)
In the same time I found one big disadvantage: you cannot have module overrides (@Module(overrides = true)
) in Dagger 2, which is largely annoying at least for me - it was very useful for unit test.
Are there other advantages / disadvantages?