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
1414### 使用指南
1515#### 1、主项目引用编译脚本
1616在根目录的gradle.properties文件中,增加属性:
17- ```
17+ ``` ini
1818mainmodulename =app
1919```
2020其中mainmodulename是项目中的host工程,一般为app
2121
2222在根目录的build.gradle中增加配置
23- ```
23+ ``` gradle
2424buildscript {
2525 repositories {
2626 maven {
@@ -36,7 +36,7 @@ buildscript {
3636
3737#### 2、拆分组件为module工程
3838在每个组件的工程目录下新建文件gradle.properties文件,增加以下配置:
39- ```
39+ ``` ini
4040isRunAlone =true
4141debugComponent =sharecomponent
4242compileComponent =com.mrzhang.share:sharecomponent
@@ -45,13 +45,13 @@ compileComponent=com.mrzhang.share:sharecomponent
4545
4646#### 3、应用组件化编译脚本
4747在组件和host的build.gradle都增加配置:
48- ```
48+ ``` gradle
4949apply plugin: 'com.dd.comgradle'
5050```
5151不需要在引用com.android.application或者com.android.library
5252
5353同时增加以下extension配置:
54- ```
54+ ``` gradle
5555combuild {
5656 applicatonName = 'com.mrzhang.reader.runalone.application.ReaderApplication'
5757 isRegisterCompoAuto = false
You can’t perform that action at this time.
0 commit comments