1
+ apply plugin : ' com.android.library'
2
+
3
+ android {
4
+ compileSdkVersion rootProject. ext. compileSdkVersion
5
+
6
+ defaultConfig {
7
+ minSdkVersion rootProject. ext. miniSdkVersion
8
+ }
9
+ resourcePrefix ' scene_'
10
+
11
+ testOptions {
12
+ unitTests {
13
+ includeAndroidResources = true
14
+ }
15
+ }
16
+ }
17
+
18
+ dependencies {
19
+ implementation APPCOMPAT_LIB
20
+ implementation DESIGN_LIB
21
+ api project(path : ' :library:scene' )
22
+
23
+ testImplementation ROBOLECTRIC
24
+ testImplementation JUNIT
25
+ testAnnotationProcessor AUTO_SERVICE
26
+ testCompileOnly AUTO_SERVICE
27
+ }
28
+
29
+ tasks. withType(Test ) {
30
+ testLogging {
31
+ events " failed"
32
+ }
33
+
34
+ afterSuite { desc , result ->
35
+ if (! desc. parent)
36
+ println (" ${ result.resultType} " +
37
+ " (${ result.testCount} tests, " +
38
+ " ${ result.successfulTestCount} successes, " +
39
+ " ${ result.failedTestCount} failures, " +
40
+ " ${ result.skippedTestCount} skipped)" )
41
+ }
42
+ }
43
+
44
+ task javadoc (type : Javadoc ) {
45
+ source = android. sourceSets. main. java. srcDirs
46
+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
47
+ destinationDir = file(" ../javadoc/scene_dialog/" )
48
+ failOnError false
49
+ title = null
50
+
51
+ options {
52
+ doclet = " com.google.doclava.Doclava"
53
+ docletpath(new File (project. rootDir, " tools/doclava-1.0.6.jar" ))
54
+ locale " en_US"
55
+ encoding " UTF-8"
56
+ }
57
+ }
0 commit comments