self.gradle revision e23a451a802972ad3bf8c2cf3803f222f3c6ac51
1/**
2 * This self.gradle build file is only run when built in ub-setupwizard-* branches.
3 */
4
5apply plugin: 'dist'
6
7apply from: 'build.gradle'
8apply from: '../tools/gradle/docs.gradle'
9
10task docs(dependsOn: 'javadocPlatformRelease')
11
12android.lintOptions {
13    abortOnError true
14    htmlReport true
15    textOutput 'stderr'
16    textReport true
17    xmlReport false
18}
19
20// Run lint for all variants
21android.libraryVariants.all { variant ->
22    variant.assemble.dependsOn(tasks.findByName('lint'))
23}
24
25// Output all test APKs to the distribution folder
26def distTask = tasks.findByName('dist')
27if (distTask) {
28    android.testVariants.all { variant ->
29        // Make the dist task depend on the test variant, so the test APK will be built
30        distTask.dependsOn variant.assemble
31        // TODO: remap the different test variants to different file names
32    }
33}
34