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

在 onInit 阶段是否可以获取到 packageName 等 PackageParam 数据呢? #3

Closed
WankkoRee opened this issue Mar 28, 2022 · 3 comments

Comments

@WankkoRee
Copy link
Contributor

因为还不太了解这个开发框架的Hook生命周期,所以特地来问问。

主要是想在打日志的时候顺带输出packageName,然后又懒得每次传参,所以盯上了debugTag这个config

@fankes
Copy link
Collaborator

fankes commented Mar 28, 2022

onInit 阶段是用来初始化模块配置的,是一个代码美化的写法,你可以在任意地方配置 configs
只有在 encase 方法内得到 PackageParam 实例后,也就是宿主实例,才能获取宿主的信息

@fankes
Copy link
Collaborator

fankes commented Mar 28, 2022

可参考 Wiki 自行查看更多相关信息

@WankkoRee
Copy link
Contributor Author

ok了解,谢谢啦!

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