AndroidAnnotations and Dagger 2

I read about Injections Dependency and found 2 libraries that attract my attention, AndroidAnnotations and Dagger 2. I saw that AA has a lot of functionality, including DI, but most developers use Dagger 2 for DI.

I was wondering what is the difference between DI with AA and DI with Dagger 2? If I use AA, then I don’t need dagger 2?

I could not find much information for DI with AA and comparisons with other libraries.

Any information will help a lot.

+4
source share
2 answers

I don’t think you can compare AA and Dagger.

. Android, Android , Java-. .

AndroidAnnotations - Android. ( ), . API- Android, , , , , , .. . AA .

AA , AA ( ).

: AndroidAnnotations.

+3

, Dagger 2 Android Architectural Components (Room and Viewmodel), , MVVM.

github

0

Source: https://habr.com/ru/post/1667159/


All Articles