Dagger2 component with more than one dependencies

后端 未结 5 1344
轻奢々
轻奢々 2021-01-04 09:24

This is what I currently have and it works:

@FragmentScope
@Component(dependencies = {FacebookComponent.class}, 
            


        
5条回答
  •  Happy的楠姐
    2021-01-04 10:07

    Now Dagger supports a component that can depends on more than 1 scoped dependencies. Just update your dagger version to 2.27

    https://github.com/google/dagger/issues/1414

    api 'com.google.dagger:dagger:2.27'
    kapt 'com.google.dagger:dagger-compiler:2.27'
    

提交回复
热议问题