[go: nahoru, domu]

blob: 24bf0ce59d8f7f990102c3a747e7e3f9718cfcaa [file] [log] [blame]
Gyumin Sim0cc48e82020-09-23 17:29:20 +09001/*
Sungsoo Lim57f9f632020-06-30 21:53:32 +09002 * Copyright 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070017import androidx.build.LibraryGroups
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070018import androidx.build.Publish
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070019
Alan Viverettebadf2f82018-12-18 12:14:10 -050020import static androidx.build.dependencies.DependenciesKt.*
Hyundo Moon999d7142018-06-19 14:30:19 +090021
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070022plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010023 id("AndroidXPlugin")
24 id("com.android.library")
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070025}
26
Sungsoo Lim57f9f632020-06-30 21:53:32 +090027apply(from: "../constants.gradle")
28
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070029dependencies {
Insun Kang29ed50a2019-04-16 14:00:06 +090030 api(project(":media2:media2-common"))
Alan Viverette12a0a4e2019-05-22 15:39:53 -040031 api(GUAVA_LISTENABLE_FUTURE)
Sungsoo Lim57f9f632020-06-30 21:53:32 +090032 implementation("androidx.collection:collection:" + COLLECTION_VERSION)
33 implementation("androidx.concurrent:concurrent-futures:" + CONCURRENT_FUTURE_VERSION)
Andrew Lewis5a4d3dc2018-09-17 14:18:34 +010034 compileOnly(CHECKER_FRAMEWORK)
Andrew Lewis6b4afef2018-08-02 12:01:52 +010035 // Depend on media2-exoplayer so that the library groupId is set to match media2.
Insun Kang29ed50a2019-04-16 14:00:06 +090036 implementation(project(":media2:media2-exoplayer"))
Hyundo Moon999d7142018-06-19 14:30:19 +090037
Dustin Lam3979d962019-04-08 10:40:19 -070038 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
39 androidTestImplementation(ANDROIDX_TEST_CORE)
40 androidTestImplementation(ANDROIDX_TEST_RUNNER)
41 androidTestImplementation(ANDROIDX_TEST_RULES)
Aurimas Liutikas3f9ceb62018-07-10 11:57:16 -070042 androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso)
Ian Lake7abd0432019-08-22 10:43:00 -070043 androidTestImplementation project(':internal-testutils-runtime')
Ember Rose1e9486d2020-05-05 15:39:19 -040044 annotationProcessor(project(":versionedparcelable:versionedparcelable-compiler"))
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070045}
46
Oussama Ben Abdelbaki3dc93372018-12-05 17:25:05 -050047android {
Insun Kang7aad13b2018-11-13 19:14:16 +090048 defaultConfig {
Jaewan Kim68ee3922020-04-10 23:12:10 +090049 minSdkVersion 16
Insun Kang7aad13b2018-11-13 19:14:16 +090050 }
Oussama Ben Abdelbaki3dc93372018-12-05 17:25:05 -050051}
52
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070053androidx {
Insun Kang29ed50a2019-04-16 14:00:06 +090054 name = "AndroidX media2 player library"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070055 publish = Publish.SNAPSHOT_AND_RELEASE
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070056 mavenGroup = LibraryGroups.MEDIA2
57 inceptionYear = "2018"
Insun Kang29ed50a2019-04-16 14:00:06 +090058 description = "Media2 Player"
Hyundo Moon999d7142018-06-19 14:30:19 +090059 failOnDeprecationWarnings = false
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070060}