• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 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"
15android {
16
17    defaultConfig {
18        minSdkVersion 21
19        // The following argument makes the Android Test Orchestrator run its
20        // "pm clear" command after each test invocation. This command ensures
21        // that the app's state is completely cleared between tests.
22        testInstrumentationRunnerArguments clearPackageData: 'true'
23        multiDexEnabled true
24    }
25
26    buildTypes {
27        debug {
28            testCoverageEnabled = true
29        }
30    }
31
32    sourceSets {
33        androidTest.assets.srcDir '../test_data/src/test/assets/' //copybara:media3-only
34        androidTest.assets.srcDir '../../testdata/src/test/assets/'
35        test.assets.srcDir '../../testdata/src/test/assets/'
36    }
37}
38
39dependencies {
40    implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion
41    implementation project(modulePrefix + 'library-core')
42    compileOnly 'com.google.errorprone:error_prone_annotations:' + errorProneVersion
43    compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
44    compileOnly 'org.checkerframework:checker-compat-qual:' + checkerframeworkCompatVersion
45    compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion
46    testImplementation project(modulePrefix + 'robolectricutils')
47    testImplementation project(modulePrefix + 'testutils')
48    testImplementation project(modulePrefix + 'testdata')
49    testImplementation 'org.robolectric:robolectric:' + robolectricVersion
50    testImplementation 'com.google.truth:truth:' + truthVersion
51    androidTestImplementation 'junit:junit:' + junitVersion
52    androidTestImplementation 'androidx.test:runner:' + androidxTestRunnerVersion
53    androidTestImplementation 'com.google.truth:truth:' + truthVersion
54    androidTestImplementation project(modulePrefix + 'testutils')
55}
56
57ext {
58    javadocTitle = 'Transformer module'
59}
60apply from: '../../javadoc_library.gradle'
61
62ext {
63    releaseArtifactId = 'exoplayer-transformer'
64    releaseDescription = 'The ExoPlayer library transformer module.'
65}
66apply from: '../../publish.gradle'
67