google / dagger

A fast dependency injector for Android and Java.
https://dagger.dev
Apache License 2.0
17.45k stars 2.02k forks source link

AndroidInjection support for androidx Fragment #1217

Closed IgorB10 closed 6 years ago

IgorB10 commented 6 years ago

Hello,

I'd like to add a proposal to add support for injection in fragments from an androidx module.

JakeWharton commented 6 years ago

This already works when using dejetifier. I don't see a reason to add support for this prior to AndroidX going stable where you'll also need dejetifier if you're still in the support library world.

cyph3rcod3r commented 5 years ago

My code is still not compiling even after enabling jetifier. I am trying to use HasFragmentInjector or HasSupportFragmentInjector how would I move ahead with that

rafaz182 commented 5 years ago

change to version 2.16

jega-ms commented 5 years ago

please refer the android x working sample https://github.com/jega-ms/android-dagger2-mvp-rx