[go: nahoru, domu]

blob: 99c9c4a54b668f8b003bb3d4120ded6ff6090c5a [file] [log] [blame]
Sungsoo Lim57f9f632020-06-30 21:53:32 +09001/*
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 Liutikas75e93a02019-05-28 16:31:38 -070017import androidx.build.Publish
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070018
19plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010020 id("AndroidXPlugin")
21 id("com.android.library")
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070022}
23
Sungsoo Lim57f9f632020-06-30 21:53:32 +090024apply(from: "../constants.gradle")
25
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070026dependencies {
Insun Kang29ed50a2019-04-16 14:00:06 +090027 api(project(":media2:media2-common"))
Aurimas Liutikasbd3eb5a2021-05-24 16:29:53 -070028 api(libs.guavaListenableFuture)
Sungsoo Lim57f9f632020-06-30 21:53:32 +090029 implementation("androidx.collection:collection:" + COLLECTION_VERSION)
30 implementation("androidx.concurrent:concurrent-futures:" + CONCURRENT_FUTURE_VERSION)
Aurimas Liutikasbd3eb5a2021-05-24 16:29:53 -070031 compileOnly(libs.checkerframework)
Hyundo Moon999d7142018-06-19 14:30:19 +090032
Aurimas Liutikasbd3eb5a2021-05-24 16:29:53 -070033 androidTestImplementation(libs.testExtJunit)
34 androidTestImplementation(libs.testCore)
35 androidTestImplementation(libs.testRunner)
36 androidTestImplementation(libs.testRules)
37 androidTestImplementation(libs.espressoCore, excludes.espresso)
Jim Sproch9e38b4f2021-01-06 14:21:06 -080038 androidTestImplementation(project(":internal-testutils-runtime"))
Ember Rose1e9486d2020-05-05 15:39:19 -040039 annotationProcessor(project(":versionedparcelable:versionedparcelable-compiler"))
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070040}
41
Oussama Ben Abdelbaki3dc93372018-12-05 17:25:05 -050042android {
Insun Kang7aad13b2018-11-13 19:14:16 +090043 defaultConfig {
Jaewan Kim68ee3922020-04-10 23:12:10 +090044 minSdkVersion 16
Insun Kang7aad13b2018-11-13 19:14:16 +090045 }
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070046 buildFeatures {
47 aidl = true
48 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070049 namespace "androidx.media2.session"
Oussama Ben Abdelbaki3dc93372018-12-05 17:25:05 -050050}
51
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070052androidx {
Insun Kang29ed50a2019-04-16 14:00:06 +090053 name = "AndroidX media2 session library"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070054 publish = Publish.SNAPSHOT_AND_RELEASE
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070055 mavenGroup = LibraryGroups.MEDIA2
56 inceptionYear = "2018"
Insun Kang29ed50a2019-04-16 14:00:06 +090057 description = "Media2 Session"
Hyundo Moon999d7142018-06-19 14:30:19 +090058 failOnDeprecationWarnings = false
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070059}