1*30877f79SAndroid Build Coastguard Worker// Copyright (C) 2017 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 defaultConfig { 18*30877f79SAndroid Build Coastguard Worker // Enable multidex for androidTests. 19*30877f79SAndroid Build Coastguard Worker multiDexEnabled true 20*30877f79SAndroid Build Coastguard Worker } 21*30877f79SAndroid Build Coastguard Worker 22*30877f79SAndroid Build Coastguard Worker sourceSets { 23*30877f79SAndroid Build Coastguard Worker androidTest.assets.srcDir '../../testdata/src/test/assets/' 24*30877f79SAndroid Build Coastguard Worker } 25*30877f79SAndroid Build Coastguard Worker} 26*30877f79SAndroid Build Coastguard Worker 27*30877f79SAndroid Build Coastguard Workerdependencies { 28*30877f79SAndroid Build Coastguard Worker api 'com.google.ads.interactivemedia.v3:interactivemedia:3.26.0' 29*30877f79SAndroid Build Coastguard Worker implementation project(modulePrefix + 'library-core') 30*30877f79SAndroid Build Coastguard Worker implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion 31*30877f79SAndroid Build Coastguard Worker compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion 32*30877f79SAndroid Build Coastguard Worker compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion 33*30877f79SAndroid Build Coastguard Worker androidTestImplementation project(modulePrefix + 'testutils') 34*30877f79SAndroid Build Coastguard Worker androidTestImplementation 'androidx.multidex:multidex:' + androidxMultidexVersion 35*30877f79SAndroid Build Coastguard Worker androidTestImplementation 'androidx.test:rules:' + androidxTestRulesVersion 36*30877f79SAndroid Build Coastguard Worker androidTestImplementation 'androidx.test:runner:' + androidxTestRunnerVersion 37*30877f79SAndroid Build Coastguard Worker androidTestCompileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion 38*30877f79SAndroid Build Coastguard Worker testImplementation project(modulePrefix + 'testutils') 39*30877f79SAndroid Build Coastguard Worker testImplementation 'org.robolectric:robolectric:' + robolectricVersion 40*30877f79SAndroid Build Coastguard Worker} 41*30877f79SAndroid Build Coastguard Worker 42*30877f79SAndroid Build Coastguard Workerext { 43*30877f79SAndroid Build Coastguard Worker javadocTitle = 'IMA extension' 44*30877f79SAndroid Build Coastguard Worker} 45*30877f79SAndroid Build Coastguard Workerapply from: '../../javadoc_library.gradle' 46*30877f79SAndroid Build Coastguard Worker 47*30877f79SAndroid Build Coastguard Workerext { 48*30877f79SAndroid Build Coastguard Worker releaseArtifactId = 'extension-ima' 49*30877f79SAndroid Build Coastguard Worker releaseDescription = 'Interactive Media Ads extension for ExoPlayer.' 50*30877f79SAndroid Build Coastguard Worker} 51*30877f79SAndroid Build Coastguard Workerapply from: '../../publish.gradle' 52