1// Copyright (C) 2020 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14apply from: "$gradle.ext.exoplayerSettingsDir/common_library_config.gradle" 15 16android { 17 defaultConfig { 18 multiDexEnabled true 19 } 20 21 buildTypes { 22 debug { 23 testCoverageEnabled = true 24 } 25 } 26 27 sourceSets { 28 androidTest.assets.srcDir '../../testdata/src/test/assets/' 29 test.assets.srcDir '../../testdata/src/test/assets/' 30 } 31} 32 33dependencies { 34 implementation project(modulePrefix + 'library-common') 35 implementation project(modulePrefix + 'library-database') 36 implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion 37 compileOnly 'com.google.code.findbugs:jsr305:' + jsr305Version 38 compileOnly 'com.google.errorprone:error_prone_annotations:' + errorProneVersion 39 compileOnly 'org.checkerframework:checker-compat-qual:' + checkerframeworkCompatVersion 40 compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion 41 compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion 42 androidTestImplementation 'androidx.test:runner:' + androidxTestRunnerVersion 43 androidTestImplementation 'com.linkedin.dexmaker:dexmaker:' + dexmakerVersion 44 androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:' + dexmakerVersion 45 androidTestImplementation 'com.squareup.okhttp3:mockwebserver:' + okhttpVersion 46 androidTestImplementation(project(modulePrefix + 'testutils')) { 47 exclude module: modulePrefix.substring(1) + 'library-core' 48 } 49 testImplementation 'org.mockito:mockito-core:' + mockitoVersion 50 testImplementation 'androidx.test:core:' + androidxTestCoreVersion 51 testImplementation 'androidx.test.ext:junit:' + androidxTestJUnitVersion 52 testImplementation 'com.google.truth:truth:' + truthVersion 53 testImplementation 'com.squareup.okhttp3:mockwebserver:' + okhttpVersion 54 testImplementation 'org.robolectric:robolectric:' + robolectricVersion 55 testImplementation project(modulePrefix + 'testutils') 56} 57 58ext { 59 javadocTitle = 'DataSource module' 60} 61apply from: '../../javadoc_library.gradle' 62 63ext { 64 releaseArtifactId = 'exoplayer-datasource' 65 releaseDescription = 'The ExoPlayer library DataSource module.' 66} 67apply from: '../../publish.gradle' 68