Skip to content

Commit 2b01f18

Browse files
authored
Merge pull request #1 from mrgaolei/master
优化README视觉呈现
2 parents 9bed0a2 + 88c538a commit 2b01f18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ demo解读请参考文章[Android彻底组件化demo发布](http://www.jianshu.c
1414
### 使用指南
1515
#### 1、主项目引用编译脚本
1616
在根目录的gradle.properties文件中,增加属性:
17-
```
17+
```ini
1818
mainmodulename=app
1919
```
2020
其中mainmodulename是项目中的host工程,一般为app
2121

2222
在根目录的build.gradle中增加配置
23-
```
23+
```gradle
2424
buildscript {
2525
repositories {
2626
maven {
@@ -36,7 +36,7 @@ buildscript {
3636

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

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

5353
同时增加以下extension配置:
54-
```
54+
```gradle
5555
combuild {
5656
applicatonName = 'com.mrzhang.reader.runalone.application.ReaderApplication'
5757
isRegisterCompoAuto = false

0 commit comments

Comments
 (0)