[go: nahoru, domu]

blob: 2eead2df8650ef2292d412436f5be48cf5e0a127 [file] [log] [blame]
/*
* Copyright 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This file was created using the `create_project.py` script located in the
* `<AndroidX root>/development/project-creator` directory.
*
* Please use that script when creating a new project, rather than copying an existing project and
* modifying its settings.
*/
import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
}
dependencies {
api("androidx.media:media:1.4.1")
api(libs.guavaListenableFuture)
// We should keep androidx.core up-to-date to keep an up-to-date BuildCompat dependency.
// See b/283315121 for context, However we cannot depend on tip of the tree dependency because
// it prevents our library releases, so we should update this dependency manually whenever
// there is a new stable release of it.
implementation("androidx.core:core:1.10.1")
implementation("androidx.appcompat:appcompat:1.1.0")
implementation("androidx.palette:palette:1.0.0")
implementation("androidx.recyclerview:recyclerview:1.1.0")
implementation("androidx.appcompat:appcompat-resources:1.2.0")
// TODO(b/307906685) Change to the stable version with the next release.
// See b/307906685#comment6 for details.
implementation("androidx.annotation:annotation-experimental:1.4.0-rc01")
testImplementation(libs.junit)
testImplementation(libs.testCore)
testImplementation(libs.truth)
testImplementation(libs.robolectric)
androidTestImplementation(libs.multidex)
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.testCore)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.truth)
androidTestImplementation(libs.espressoCore, excludes.espresso)
androidTestImplementation(project(":media:version-compat-tests:lib"))
androidTestImplementation(project(":mediarouter:mediarouter-testing"))
}
android {
buildTypes.configureEach {
consumerProguardFiles "proguard-rules.pro"
}
defaultConfig {
multiDexEnabled true
}
namespace "androidx.mediarouter"
}
androidx {
name = "MediaRouter"
type = LibraryType.PUBLISHED_LIBRARY
inceptionYear = "2013"
description = "Android MediaRouter Support Library"
failOnDeprecationWarnings = false
metalavaK2UastEnabled = true
}