Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Move test APKs to DIST_DIR" into mnc-ub-dev
Browse files Browse the repository at this point in the history
am: c01d6ec

* commit 'c01d6ec6e410ab0460164004ba5549ca76578f4c':
  Move test APKs to DIST_DIR
  • Loading branch information
yigit authored and android-build-merger committed Nov 11, 2015
2 parents e9fe360 + c01d6ec commit 12736df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Expand Up @@ -34,6 +34,7 @@ if (System.env.DIST_DIR != null && System.env.OUT_DIR != null) {
}

ext.supportRepoOut = new File(buildDir, 'support_repo')
ext.testApkDistOut = new File(buildDir, 'test_apks')

// Main task called by the build server.
task(createArchive) << {
Expand Down
11 changes: 11 additions & 0 deletions v7/recyclerview/build.gradle
Expand Up @@ -78,6 +78,17 @@ android.libraryVariants.all { variant ->
artifacts.add('archives', sourcesJarTask);
}

// TODO make this generic for all projects
afterEvaluate {
def originalTask = tasks['packageDebugAndroidTest']
tasks['assembleDebugAndroidTest'].doLast {
copy {
from(originalTask.outputFile)
into(rootProject.ext.testApkDistOut)
}
}
}

uploadArchives {
repositories {
mavenDeployer {
Expand Down

0 comments on commit 12736df

Please sign in to comment.