Comments (5)
有两个途径,一是主项目提供一个接口返回ApplicationContext,二是将BaseApplication抽离到basicres或者basiclib里面,在BaseApplication提供一个静态方法来获取ApplicationContext。
from ddcomponentforandroid.
@mqzhangw
再问个问题
reader
这个组件在 isRunAlone
模式下,是如何知道要把 share
这个组件编译到apk的。我看没有 compile指令.
from ddcomponentforandroid.
这个是在reader的gradle.properties中配置的,而配置的解析的代码在build-gradle中,其本质还是compile,只不过做了一层隔离
from ddcomponentforandroid.
@mqzhangw
componentlib
和 basiclib
有什么区别吗?
basiclib 貌似这个工程没有被其他工程引用
from ddcomponentforandroid.
这个basiclib是用来演示一些基本库如何集成到项目中的,比如自定义的数据结构lib,自定义view的lib,工具类库等,将其作为底层的lib。而Componentlib封装了一个独立的组件module的抽象部分和router等关键的类。另外 a依赖b,b依赖c,都是通过compile module的方式添加依赖的话,a就没必要再显示的声明对c的依赖了。如果是AAR包的话会因为路径而出现一些问题。
from ddcomponentforandroid.
Related Issues (20)
- 项目报错Unable to find a matching configuration of project HOT 11
- android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? HOT 3
- 在实际公司组件化git部署用的哪种方式
- 打包后找不到子组件的类,怎么解决? HOT 1
- 建议
- basicres添加资源后编译失败 HOT 1
- 同时集成Bubly的Tinker1.9.6热修复时,打补丁包失败 HOT 2
- UI 跳转 List 数据的传递怎么使用? HOT 4
- 关于数据传递的问题 HOT 1
- 修改组件文件后,运行app,报错Failed to delete 组件名字\build\intermediates\intermediate-jars\debug\classes.jar HOT 5
- 没明白 AppShareBean不想将一些类下沉如何处理 是如何处理的 HOT 1
- 低版本无法运行的问题 HOT 1
- 低版本无法运行的问题
- 关于组件化dagger android使用相关问题 HOT 2
- gradle 5.1.1 BUG HOT 1
- 模块引入R文件报红
- 组件化,activity之间的共享动画如何处理呀? HOT 1
- 组件化库维护问题
- 依赖包版本compile 'com.android.support:appcompat-v7:26.+'
- 框架不支持App Bundle
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddcomponentforandroid.