File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ demo解读请参考文章[Android彻底组件化demo发布](http://www.jianshu.c
14
14
### 使用指南
15
15
#### 1、主项目引用编译脚本
16
16
在根目录的gradle.properties文件中,增加属性:
17
- ```
17
+ ``` ini
18
18
mainmodulename =app
19
19
```
20
20
其中mainmodulename是项目中的host工程,一般为app
21
21
22
22
在根目录的build.gradle中增加配置
23
- ```
23
+ ``` gradle
24
24
buildscript {
25
25
repositories {
26
26
maven {
@@ -36,7 +36,7 @@ buildscript {
36
36
37
37
#### 2、拆分组件为module工程
38
38
在每个组件的工程目录下新建文件gradle.properties文件,增加以下配置:
39
- ```
39
+ ``` ini
40
40
isRunAlone =true
41
41
debugComponent =sharecomponent
42
42
compileComponent =com.mrzhang.share:sharecomponent
@@ -45,13 +45,13 @@ compileComponent=com.mrzhang.share:sharecomponent
45
45
46
46
#### 3、应用组件化编译脚本
47
47
在组件和host的build.gradle都增加配置:
48
- ```
48
+ ``` gradle
49
49
apply plugin: 'com.dd.comgradle'
50
50
```
51
51
不需要在引用com.android.application或者com.android.library
52
52
53
53
同时增加以下extension配置:
54
- ```
54
+ ``` gradle
55
55
combuild {
56
56
applicatonName = 'com.mrzhang.reader.runalone.application.ReaderApplication'
57
57
isRegisterCompoAuto = false
You can’t perform that action at this time.
0 commit comments