Sungsoo Lim | 57f9f63 | 2020-06-30 21:53:32 +0900 | [diff] [blame] | 1 | /* |
| 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 | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 17 | import androidx.build.Publish |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 18 | |
| 19 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 22 | } |
| 23 | |
Sungsoo Lim | 57f9f63 | 2020-06-30 21:53:32 +0900 | [diff] [blame] | 24 | apply(from: "../constants.gradle") |
| 25 | |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 26 | dependencies { |
Insun Kang | 29ed50a | 2019-04-16 14:00:06 +0900 | [diff] [blame] | 27 | api(project(":media2:media2-common")) |
Aurimas Liutikas | bd3eb5a | 2021-05-24 16:29:53 -0700 | [diff] [blame] | 28 | api(libs.guavaListenableFuture) |
Sungsoo Lim | 57f9f63 | 2020-06-30 21:53:32 +0900 | [diff] [blame] | 29 | implementation("androidx.collection:collection:" + COLLECTION_VERSION) |
| 30 | implementation("androidx.concurrent:concurrent-futures:" + CONCURRENT_FUTURE_VERSION) |
Aurimas Liutikas | bd3eb5a | 2021-05-24 16:29:53 -0700 | [diff] [blame] | 31 | compileOnly(libs.checkerframework) |
Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 32 | |
Aurimas Liutikas | bd3eb5a | 2021-05-24 16:29:53 -0700 | [diff] [blame] | 33 | androidTestImplementation(libs.testExtJunit) |
| 34 | androidTestImplementation(libs.testCore) |
| 35 | androidTestImplementation(libs.testRunner) |
| 36 | androidTestImplementation(libs.testRules) |
| 37 | androidTestImplementation(libs.espressoCore, excludes.espresso) |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 38 | androidTestImplementation(project(":internal-testutils-runtime")) |
Ember Rose | 1e9486d | 2020-05-05 15:39:19 -0400 | [diff] [blame] | 39 | annotationProcessor(project(":versionedparcelable:versionedparcelable-compiler")) |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Oussama Ben Abdelbaki | 3dc9337 | 2018-12-05 17:25:05 -0500 | [diff] [blame] | 42 | android { |
Insun Kang | 7aad13b | 2018-11-13 19:14:16 +0900 | [diff] [blame] | 43 | defaultConfig { |
Jaewan Kim | 68ee392 | 2020-04-10 23:12:10 +0900 | [diff] [blame] | 44 | minSdkVersion 16 |
Insun Kang | 7aad13b | 2018-11-13 19:14:16 +0900 | [diff] [blame] | 45 | } |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 46 | buildFeatures { |
| 47 | aidl = true |
| 48 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 49 | namespace "androidx.media2.session" |
Oussama Ben Abdelbaki | 3dc9337 | 2018-12-05 17:25:05 -0500 | [diff] [blame] | 50 | } |
| 51 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 52 | androidx { |
Insun Kang | 29ed50a | 2019-04-16 14:00:06 +0900 | [diff] [blame] | 53 | name = "AndroidX media2 session library" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 54 | publish = Publish.SNAPSHOT_AND_RELEASE |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 55 | mavenGroup = LibraryGroups.MEDIA2 |
| 56 | inceptionYear = "2018" |
Insun Kang | 29ed50a | 2019-04-16 14:00:06 +0900 | [diff] [blame] | 57 | description = "Media2 Session" |
Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 58 | failOnDeprecationWarnings = false |
Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 59 | } |