We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
现在发现很多实体类和layout文件等 各个组件都需要用到 是各个组件单独维护做隔离呢 还是下沉处理 一直闹不明白
The text was updated successfully, but these errors were encountered:
抱歉这么晚回复,目前JIMU跨组件调用的主要思路:约定暴露服务的API,提供者注册实现到下层的IOC容器(Router),使用者通过IOC容器获得实例访问控制。所以需要对牵涉到的API接口(ComponentService)以及相关的数据bean、回调接口等都需要做下沉处理。
ps:APPShareBean是不完善的代码,当时我在JIMU中添加了事件机制支持,打算重新整理下sample,出于很多原因搁置了。
回到刚才的问题,对于class,只要是跨组件调用所需要的,下沉处理;存在通用性的(例如UserInfo)下沉处理;对于res,color、style等全局规范类的推荐下沉、公用的基础性文案(Strings资源)推荐下沉;其他的组件单独维护即可。
Sorry, something went wrong.
No branches or pull requests
现在发现很多实体类和layout文件等 各个组件都需要用到 是各个组件单独维护做隔离呢 还是下沉处理 一直闹不明白
The text was updated successfully, but these errors were encountered: