Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一点建议,希望能结合provider初始化的优点 #19

Open
edwardZj opened this issue Sep 6, 2021 · 1 comment
Open

一点建议,希望能结合provider初始化的优点 #19

edwardZj opened this issue Sep 6, 2021 · 1 comment

Comments

@edwardZj
Copy link

edwardZj commented Sep 6, 2021

显示的初始化,不利于组件解耦和组件单独运行,所以希望能结合provider初始化的优点
1组件的初始化依然继承AndroidStartup,但是把声明信息放到组件自己的AndroidManifest.xml的下的<meta-data里
2android-startup库使用provider初始化自身,然后读取<meta-data的配置初始化各个AndroidStartup
3 dependencies方法返回值使用String,使用绝对地址"com.xxx.xxx.xxStartup"
4或者可以选择使用注解来声明初始化信息,注解处理器在编译时处理,生成相应初始化代码

@idisfkj
Copy link
Owner

idisfkj commented Sep 8, 2021

可以考虑,但由于本人时间有限,不能马上列入进程。

所以希望能有志同道合的朋友加入进来,欢迎大家提交自己的PR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants