SetupWizardLibrary/library/self.gradle
Maurice Lam 3885d8491a [SuwLib] Support preference v14
Add SetupWizardPreferenceLayout to support Preference v14 framework.

Bug: 26994868
Change-Id: I3b7a4b57cb4df6c46fdd868357bcbdaad39f1feb
2016-02-08 20:24:50 -08:00

34 lines
861 B
Groovy

/**
* This self.gradle build file is only run when built in ub-setupwizard-* branches.
*/
apply plugin: 'dist'
apply from: 'build.gradle'
apply from: '../tools/gradle/docs.gradle'
task docs(dependsOn: 'javadocFullSupportRelease')
android.lintOptions {
abortOnError true
htmlReport true
textOutput 'stderr'
textReport true
xmlReport false
}
// Run lint for all variants
android.libraryVariants.all { variant ->
variant.assemble.dependsOn(tasks.findByName('lint'))
}
// Output all test APKs to the distribution folder
def distTask = tasks.findByName('dist')
if (distTask) {
android.testVariants.all { variant ->
// Make the dist task depend on the test variant, so the test APK will be built
distTask.dependsOn variant.assemble
// TODO: remap the different test variants to different file names
}
}