Hi. I wanted to implement dynamic features with in...
# android
b
Hi. I wanted to implement dynamic features with instant support in my app. It is almost working except di with dagger. in my app module i do not have access to my activity in the feature module. so i can not do the following in my dagger FragmentsModules.kt
Copy code
@ContributesAndroidInjector(modules = [FooFragmentModule::class])
abstract fun bindFooFragment(): FooFragment -> FooFragment can not be accessed
Does someone have an solution for this issue? Slack Conversation
s
You can check Plaid's GitHub they have a working setup with dagger if I'm not wrong.
I ended up using koin for simplicity and less code
You can check the posts module in my sample project
b
thanks for your solutions. plaid is doing it with dagger. but it is a lot of code. i am searching a simpler solution
s
I had the same initial feeling, check out koin I'm using it in the sample project above