Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ demo解读请参考文章[Android彻底组件化demo发布](http://www.jianshu.c
### 使用指南
#### 1、主项目引用编译脚本
在根目录的gradle.properties文件中,增加属性:
```
```ini
mainmodulename=app
```
其中mainmodulename是项目中的host工程,一般为app

在根目录的build.gradle中增加配置
```
```gradle
buildscript {
repositories {
maven {
Expand All @@ -36,7 +36,7 @@ buildscript {

#### 2、拆分组件为module工程
在每个组件的工程目录下新建文件gradle.properties文件,增加以下配置:
```
```ini
isRunAlone=true
debugComponent=sharecomponent
compileComponent=com.mrzhang.share:sharecomponent
Expand All @@ -45,13 +45,13 @@ compileComponent=com.mrzhang.share:sharecomponent

#### 3、应用组件化编译脚本
在组件和host的build.gradle都增加配置:
```
```gradle
apply plugin: 'com.dd.comgradle'
```
不需要在引用com.android.application或者com.android.library

同时增加以下extension配置:
```
```gradle
combuild {
applicatonName = 'com.mrzhang.reader.runalone.application.ReaderApplication'
isRegisterCompoAuto = false
Expand Down