luckybilly / CC

业界首个支持渐进式组件化改造的Android组件化开源框架,支持跨进程调用。Componentize your android project gradually.
https://luckybilly.github.io/CC-website/
Apache License 2.0
4.04k stars 636 forks source link

addComponent maven 方式依赖具体是怎么使用? #131

Closed RFlame closed 5 years ago

RFlame commented 5 years ago

我有的module上传maven后,需要以什么方式依赖进来?

RFlame commented 5 years ago

这些上传的module是其他项目里的,需要引入到基于CC框架的项目里,需要怎么引入?

luckybilly commented 5 years ago
addComponent 'module_name_or_any_other_word', 'your.pkg.name:your-artifact-name:1.1.0'

第一个参数:作为这个组件module的标识,可以为对应module的名称,也可以是一个任意值 第二个参数:指向maven依赖

luckybilly commented 5 years ago

demo/build.gradle中有注释详细说明

CC文档: 集成CC step2:创建组件 第1.5节 也有明确说明哦

RFlame commented 5 years ago

懂了,多谢