Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Oct 30, 2019
2 parents 646fed9 + 6c8ba36 commit 929b105
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 30 deletions.
2 changes: 1 addition & 1 deletion adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

group = 'com.github.xiazunyang'
version = '1.0'
version = '0.1.0'

android {
compileSdkVersion 29
Expand Down
25 changes: 0 additions & 25 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ dependencies {

api project(':http')
api project(':brick')
api project(':common')
api project(':adapter')
api project(':starter')
api project(':delegate')
Expand All @@ -70,28 +69,4 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}


//下面的jarPackage和afterEvaluate负责让这个aar再生成一个输出jar包的任务
def jarPackage(buildType) {
return tasks.create("jar${buildType.capitalize()}Package", Copy) {
def aarFile = file(project.buildDir.path + "/outputs/aar/${project.name}-${buildType}.aar")
def outputDir = file("../plugins/wandroid-lib/libs")
from zipTree(aarFile)
into outputDir
include 'classes.jar'
rename 'classes.jar', "${project.name}-${buildType}.jar"
group = 'build'
description = '生成jar包'
}.dependsOn(project.getTasksByName("assemble${buildType.capitalize()}", false).first())
}

afterEvaluate {
android {
buildTypes.findAll().each { buildType ->
def buildTypeName = buildType.getName()
jarPackage(buildTypeName)
}
}
}
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.xiazunyang'
version = '1.0'
version = '0.1.0'

dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:1.3.50"
Expand Down
2 changes: 1 addition & 1 deletion http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.xiazunyang'
version = '1.0'
version = '0.1.0'

dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:1.3.50"
Expand Down
2 changes: 1 addition & 1 deletion result/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.xiazunyang'
version = '1.0'
version = '0.1.0'

android {
compileSdkVersion 29
Expand Down
2 changes: 1 addition & 1 deletion rx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.xiazunyang'
version = '1.0'
version = '0.1.0'

android {
compileSdkVersion 29
Expand Down

0 comments on commit 929b105

Please sign in to comment.