1 /** 2 * This self.gradle build file is only run when built in ub-setupwizard-* branches. 3 */ 4 5 apply plugin: 'dist' 6 7 apply from: 'build.gradle' 8 apply from: '../tools/gradle/docs.gradle' 9 10 task docs(dependsOn: 'javadocFullSupportRelease') 11 12 android.lintOptions { 13 abortOnError true 14 htmlReport true 15 textOutput 'stderr' 16 textReport true 17 xmlReport false 18 } 19 20 // Run lint for all variants 21 android.libraryVariants.all { variant -> 22 variant.assemble.dependsOn(tasks.findByName('lint')) 23 } 24 25 // Output all test APKs to the distribution folder 26 def distTask = tasks.findByName('dist') 27 if (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