1// Copyright 2019 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 16dependencies { 17 implementation project(modulePrefix + 'library-common') 18 implementation 'androidx.collection:collection:' + androidxCollectionVersion 19 implementation 'androidx.concurrent:concurrent-futures:' + androidxFuturesVersion 20 api 'androidx.media2:media2-session:' + androidxMedia2Version 21 compileOnly 'org.checkerframework:checker-compat-qual:' + checkerframeworkCompatVersion 22 compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion 23 compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion 24 androidTestImplementation project(modulePrefix + 'library-core') 25 androidTestImplementation 'androidx.test.ext:junit:' + androidxTestJUnitVersion 26 androidTestImplementation 'androidx.test:core:' + androidxTestCoreVersion 27 androidTestImplementation 'androidx.test:runner:' + androidxTestRunnerVersion 28 androidTestImplementation 'androidx.test:rules:' + androidxTestRulesVersion 29 androidTestImplementation 'com.google.truth:truth:' + truthVersion 30} 31 32ext { 33 javadocTitle = 'Media2 extension' 34} 35apply from: '../../javadoc_library.gradle' 36 37ext { 38 releaseArtifactId = 'extension-media2' 39 releaseDescription = 'Media2 extension for ExoPlayer.' 40} 41apply from: '../../publish.gradle' 42