1*30877f79SAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project
2*30877f79SAndroid Build Coastguard Worker//
3*30877f79SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*30877f79SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*30877f79SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*30877f79SAndroid Build Coastguard Worker//
7*30877f79SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*30877f79SAndroid Build Coastguard Worker//
9*30877f79SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*30877f79SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*30877f79SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*30877f79SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*30877f79SAndroid Build Coastguard Worker// limitations under the License.
14*30877f79SAndroid Build Coastguard Workerapply from: "$gradle.ext.exoplayerSettingsDir/common_library_config.gradle"
15*30877f79SAndroid Build Coastguard Worker
16*30877f79SAndroid Build Coastguard Workerandroid {
17*30877f79SAndroid Build Coastguard Worker    buildTypes {
18*30877f79SAndroid Build Coastguard Worker        debug {
19*30877f79SAndroid Build Coastguard Worker            testCoverageEnabled = true
20*30877f79SAndroid Build Coastguard Worker        }
21*30877f79SAndroid Build Coastguard Worker    }
22*30877f79SAndroid Build Coastguard Worker}
23*30877f79SAndroid Build Coastguard Worker
24*30877f79SAndroid Build Coastguard Workerdependencies {
25*30877f79SAndroid Build Coastguard Worker    api ('com.google.guava:guava:' + guavaVersion) {
26*30877f79SAndroid Build Coastguard Worker        // Exclude dependencies that are only used by Guava at compile time
27*30877f79SAndroid Build Coastguard Worker        // (but declared as runtime deps) [internal b/168188131].
28*30877f79SAndroid Build Coastguard Worker        exclude group: 'com.google.code.findbugs', module: 'jsr305'
29*30877f79SAndroid Build Coastguard Worker        exclude group: 'org.checkerframework', module: 'checker-compat-qual'
30*30877f79SAndroid Build Coastguard Worker        exclude group: 'org.checkerframework', module: 'checker-qual'
31*30877f79SAndroid Build Coastguard Worker        exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
32*30877f79SAndroid Build Coastguard Worker        exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
33*30877f79SAndroid Build Coastguard Worker        exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
34*30877f79SAndroid Build Coastguard Worker    }
35*30877f79SAndroid Build Coastguard Worker    implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion
36*30877f79SAndroid Build Coastguard Worker    compileOnly 'com.google.code.findbugs:jsr305:' + jsr305Version
37*30877f79SAndroid Build Coastguard Worker    compileOnly 'com.google.errorprone:error_prone_annotations:' + errorProneVersion
38*30877f79SAndroid Build Coastguard Worker    compileOnly 'org.checkerframework:checker-compat-qual:' + checkerframeworkCompatVersion
39*30877f79SAndroid Build Coastguard Worker    compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
40*30877f79SAndroid Build Coastguard Worker    compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion
41*30877f79SAndroid Build Coastguard Worker    androidTestImplementation 'androidx.test:runner:' + androidxTestRunnerVersion
42*30877f79SAndroid Build Coastguard Worker    androidTestImplementation 'com.linkedin.dexmaker:dexmaker:' + dexmakerVersion
43*30877f79SAndroid Build Coastguard Worker    androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:' + dexmakerVersion
44*30877f79SAndroid Build Coastguard Worker    androidTestImplementation(project(modulePrefix + 'testutils')) {
45*30877f79SAndroid Build Coastguard Worker        exclude module: modulePrefix.substring(1) + 'library-core'
46*30877f79SAndroid Build Coastguard Worker    }
47*30877f79SAndroid Build Coastguard Worker    testImplementation 'org.mockito:mockito-core:' + mockitoVersion
48*30877f79SAndroid Build Coastguard Worker    testImplementation 'androidx.test:core:' + androidxTestCoreVersion
49*30877f79SAndroid Build Coastguard Worker    testImplementation 'androidx.test.ext:junit:' + androidxTestJUnitVersion
50*30877f79SAndroid Build Coastguard Worker    testImplementation 'junit:junit:' + junitVersion
51*30877f79SAndroid Build Coastguard Worker    testImplementation 'com.google.truth:truth:' + truthVersion
52*30877f79SAndroid Build Coastguard Worker    testImplementation 'org.robolectric:robolectric:' + robolectricVersion
53*30877f79SAndroid Build Coastguard Worker    testImplementation project(modulePrefix + 'testutils')
54*30877f79SAndroid Build Coastguard Worker}
55*30877f79SAndroid Build Coastguard Worker
56*30877f79SAndroid Build Coastguard Workerext {
57*30877f79SAndroid Build Coastguard Worker    javadocTitle = 'Common module'
58*30877f79SAndroid Build Coastguard Worker}
59*30877f79SAndroid Build Coastguard Workerapply from: '../../javadoc_library.gradle'
60*30877f79SAndroid Build Coastguard Worker
61*30877f79SAndroid Build Coastguard Workerext {
62*30877f79SAndroid Build Coastguard Worker    releaseArtifactId = 'exoplayer-common'
63*30877f79SAndroid Build Coastguard Worker    releaseDescription = 'The ExoPlayer library common module.'
64*30877f79SAndroid Build Coastguard Worker}
65*30877f79SAndroid Build Coastguard Workerapply from: '../../publish.gradle'
66