self.gradle revision a211294e1caba648822d11f8935593b6ca2b9279
1cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten/**
2cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten * This self.gradle build file is only run when built in ub-setupwizard-* branches.
3cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten */
4cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten
5cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kastenapply plugin: 'dist'
6cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten
7cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kastenapply from: 'build.gradle'
8cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kastenapply from: '../tools/gradle/docs.gradle'
9cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten
10cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kastentask docs(dependsOn: 'javadocPlatformRelease')
11cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten
12cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten// Output all test APKs to the distribution folder
13cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kastendef distTask = tasks.findByName('dist');
14cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kastenif (distTask) {
15cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten    android.testVariants.all { variant ->
16cafa51fdd8b3f29ebaa0682070100825a9cce2a8Glenn Kasten        // Make the dist task depend on the test variant, so the test APK will be built
1763c002ab68761be0eace98f28320d8eb2f3f7695Jean-Michel Trivi        distTask.dependsOn variant.assemble
1847550bf6cf5cf08a402a54b1589f4b64582a5120Glenn Kasten        // TODO: remap the different test variants to different file names
196cce136651f6fd2c7aecd45bc553270152d75462Jean-Michel Trivi    }
2063c002ab68761be0eace98f28320d8eb2f3f7695Jean-Michel Trivi}
2163c002ab68761be0eace98f28320d8eb2f3f7695Jean-Michel Trivi