Skip to content

Commit

Permalink
发布2.0.3,Fix Helper库的依赖问题,十分抱歉。
Browse files Browse the repository at this point in the history
  • Loading branch information
litao committed Apr 28, 2019
1 parent 6ac37e2 commit 107715b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -33,7 +33,7 @@ signingConfigs {
``` groovy
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.leon.channel:plugin:2.0.2'
classpath 'com.leon.channel:plugin:2.0.3'
}
```
## 引用VasDolly Plugin
Expand All @@ -45,7 +45,7 @@ apply plugin: 'channel'
在主App工程的`build.gradle`中,添加读取渠道信息的helper类库依赖:
``` groovy
dependencies {
   api 'com.leon.channel:helper:2.0.2'
   api 'com.leon.channel:helper:2.0.3'
}
```
## 配置渠道列表
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Expand Up @@ -11,7 +11,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.leon.channel:plugin:2.0.1'
classpath 'com.leon.channel:plugin:2.0.3'
}
}

Expand Down Expand Up @@ -85,7 +85,7 @@ dependencies {
})
api 'com.android.support:appcompat-v7:26.1.0'
//api:同老版本compile作用一样,即本module将会向外暴露其依赖的module变化,即若'helper'库发生了改变,那么本module以及所有依赖于本module的module都要重新编译
api 'com.leon.channel:helper:2.0.1'
api 'com.leon.channel:helper:2.0.3'
//implementation:本module不会向外暴露其依赖的module变化,即若'junit'库发生改变,只会重编译本module,不会重编依赖于本module的外部module,即不会向外传播
testImplementation 'junit:junit:4.12'
}
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -9,7 +9,7 @@ ext {


GROUP = 'com.leon.channel'
VERSION = '2.0.2'
VERSION = '2.0.3'

//POM_PACKAGING = "pom"
POM_DESCRIPTION = "VasDolly"
Expand Down
7 changes: 3 additions & 4 deletions helper/build.gradle
Expand Up @@ -29,9 +29,9 @@ android {
}

dependencies {
api fileTree(dir: 'libs', include: ['*.jar'])
api project(':reader')
testImplementation 'junit:junit:4.12'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':reader')
testCompile 'junit:junit:4.12'
}

/**
Expand All @@ -55,7 +55,6 @@ dependencies {
* 而api和implementation引用的类库,生成的maven pom不会带类库依赖信息
*
* 如果没有helper类库的依赖信息,那么就会导致在使用helper类库时,只会把helper类库打包到APK,而helper依赖的类库不会打包到APK,导致运行时找不到类
*
*/


0 comments on commit 107715b

Please sign in to comment.