Gyumin Sim | 0cc48e8 | 2020-09-23 17:29:20 +0900 | [diff] [blame] | 1 | /* |
Sungsoo Lim | 57f9f63 | 2020-06-30 21:53:32 +0900 | [diff] [blame] | 2 | * 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 Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 17 | import androidx.build.LibraryGroups |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 18 | import androidx.build.Publish |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 19 | |
Alan Viverette | badf2f8 | 2018-12-18 12:14:10 -0500 | [diff] [blame] | 20 | import static androidx.build.dependencies.DependenciesKt.* |
Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 21 | |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 22 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 23 | id("AndroidXPlugin") |
| 24 | id("com.android.library") |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 25 | } |
| 26 | |
Sungsoo Lim | 57f9f63 | 2020-06-30 21:53:32 +0900 | [diff] [blame] | 27 | apply(from: "../constants.gradle") |
| 28 | |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 29 | dependencies { |
Insun Kang | 29ed50a | 2019-04-16 14:00:06 +0900 | [diff] [blame] | 30 | api(project(":media2:media2-common")) |
Alan Viverette | 12a0a4e | 2019-05-22 15:39:53 -0400 | [diff] [blame] | 31 | api(GUAVA_LISTENABLE_FUTURE) |
Sungsoo Lim | 57f9f63 | 2020-06-30 21:53:32 +0900 | [diff] [blame] | 32 | implementation("androidx.collection:collection:" + COLLECTION_VERSION) |
| 33 | implementation("androidx.concurrent:concurrent-futures:" + CONCURRENT_FUTURE_VERSION) |
Andrew Lewis | 5a4d3dc | 2018-09-17 14:18:34 +0100 | [diff] [blame] | 34 | compileOnly(CHECKER_FRAMEWORK) |
Andrew Lewis | 6b4afef | 2018-08-02 12:01:52 +0100 | [diff] [blame] | 35 | // Depend on media2-exoplayer so that the library groupId is set to match media2. |
Insun Kang | 29ed50a | 2019-04-16 14:00:06 +0900 | [diff] [blame] | 36 | implementation(project(":media2:media2-exoplayer")) |
Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 37 | |
Dustin Lam | 3979d96 | 2019-04-08 10:40:19 -0700 | [diff] [blame] | 38 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 39 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 40 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 41 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Aurimas Liutikas | 3f9ceb6 | 2018-07-10 11:57:16 -0700 | [diff] [blame] | 42 | androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso) |
Ian Lake | 7abd043 | 2019-08-22 10:43:00 -0700 | [diff] [blame] | 43 | androidTestImplementation project(':internal-testutils-runtime') |
Ember Rose | 1e9486d | 2020-05-05 15:39:19 -0400 | [diff] [blame] | 44 | annotationProcessor(project(":versionedparcelable:versionedparcelable-compiler")) |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 45 | } |
| 46 | |
Oussama Ben Abdelbaki | 3dc9337 | 2018-12-05 17:25:05 -0500 | [diff] [blame] | 47 | android { |
Insun Kang | 7aad13b | 2018-11-13 19:14:16 +0900 | [diff] [blame] | 48 | defaultConfig { |
Jaewan Kim | 68ee392 | 2020-04-10 23:12:10 +0900 | [diff] [blame] | 49 | minSdkVersion 16 |
Insun Kang | 7aad13b | 2018-11-13 19:14:16 +0900 | [diff] [blame] | 50 | } |
Oussama Ben Abdelbaki | 3dc9337 | 2018-12-05 17:25:05 -0500 | [diff] [blame] | 51 | } |
| 52 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 53 | androidx { |
Insun Kang | 29ed50a | 2019-04-16 14:00:06 +0900 | [diff] [blame] | 54 | name = "AndroidX media2 player library" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 55 | publish = Publish.SNAPSHOT_AND_RELEASE |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 56 | mavenGroup = LibraryGroups.MEDIA2 |
| 57 | inceptionYear = "2018" |
Insun Kang | 29ed50a | 2019-04-16 14:00:06 +0900 | [diff] [blame] | 58 | description = "Media2 Player" |
Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 59 | failOnDeprecationWarnings = false |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 60 | } |