Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Invinciblelee committed Jun 27, 2019
1 parent a24f796 commit 015c428
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def getVersionCode() {// 获取版本号
versionProps.load(new FileInputStream(versionFile))
def versionCode = versionProps['VERSION_CODE'].toInteger()// 读取文件里面的版本号
def runTasks = gradle.startParameter.taskNames
if ('assembleRelease' in runTasks) {//仅在assembleRelease任务是增加版本号,其他渠道包在此分别配置
if ('assemble' in runTasks) {//仅在assembleRelease任务是增加版本号,其他渠道包在此分别配置
// 版本号自增之后再写入文件(此处是关键,版本号自增+1)
versionProps['VERSION_CODE'] = (++versionCode).toString()
versionProps.store(versionFile.newWriter(), null)
Expand Down Expand Up @@ -116,7 +116,7 @@ configurations.all {

dependencies {
implementation project(':basemvplib')
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13-beta-3'
//support
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.media:media:1.1.0-rc01'
Expand Down
16 changes: 8 additions & 8 deletions basemvplib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ android {

dependencies {
//support
api 'androidx.core:core:1.2.0-alpha01'
api 'androidx.appcompat:appcompat:1.1.0-alpha05'
api 'androidx.core:core:1.2.0-alpha02'
api 'androidx.appcompat:appcompat:1.1.0-beta01'
//RxAndroid
api 'io.reactivex.rxjava2:rxandroid:2.1.0'
api 'io.reactivex.rxjava2:rxandroid:2.1.1'
api 'io.reactivex.rxjava2:rxjava:2.2.6'
//Retrofit
api 'com.squareup.okhttp3:logging-interceptor:3.14.0'
api 'com.squareup.retrofit2:retrofit:2.5.0'
api 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
api 'com.squareup.retrofit2:converter-scalars:2.5.0'
api 'com.squareup.okhttp3:logging-interceptor:4.0.0'
api 'com.squareup.retrofit2:retrofit:2.6.0'
api 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'
api 'com.squareup.retrofit2:converter-scalars:2.6.0'
//RxBus
api('com.hwangjr.rxbus:rxbus:2.0.0') {
api('com.hwangjr.rxbus:rxbus:2.0.1') {
exclude group: 'com.jakewharton.timber', module: 'timber'
}
//J_SOUP
Expand Down

0 comments on commit 015c428

Please sign in to comment.