2.Dagger2模块化引入
作者:
wingoo | 来源:发表于
2017-07-13 10:59 被阅读0次
1.Module中includes引入
@Module(includes = {importModule.class})
public class MyModule{
}
2.Component中引入
@Component(modules = {Module1.class,importModule.class})
public interface MyComponent {
}
3.dependence中引入
@Component(modules = {Module1.class},dependencies = ImportComponent .class)
public interface MyComponent {
}
@Component(modules = {importModule.class})
public interface ImportComponent {
}
本文标题:2.Dagger2模块化引入
本文链接:https://www.haomeiwen.com/subject/angmhxtx.html
网友评论