blob: ae1d8e4d3cedae27863539f8ba5767db26d02f15 [file] [log] [blame]
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -07001import androidx.build.LibraryGroups
2import androidx.build.LibraryVersions
3
Andrew Lewis51999562018-07-24 11:03:01 +01004import static androidx.build.dependencies.DependenciesKt.CHECKER_FRAMEWORK
Aurimas Liutikas3f9ceb62018-07-10 11:57:16 -07005import static androidx.build.dependencies.DependenciesKt.ESPRESSO_CORE
6import static androidx.build.dependencies.DependenciesKt.TEST_RULES
7import static androidx.build.dependencies.DependenciesKt.TEST_RUNNER
Hyundo Moon999d7142018-06-19 14:30:19 +09008
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -07009plugins {
10 id("SupportAndroidLibraryPlugin")
11}
12
13dependencies {
Hyundo Moon999d7142018-06-19 14:30:19 +090014 api(project(":media"))
Insun Kang5834ff52018-06-13 09:22:31 -070015 api(project(':versionedparcelable'))
Andrew Lewis51999562018-07-24 11:03:01 +010016 compileOnly(CHECKER_FRAMEWORK)
17 if (System.getProperties()['idea.platform.prefix'] != null) {
18 // :media2-exoplayer merges the ExoPlayer JAR into its outputs, but Android Studio can't see
19 // the symbols, so depend on the JAR directly.
20 compileOnly fileTree(dir: "media2-exoplayer/src/main/libs",
21 include: ["exoplayer-core-media2.jar"])
Andrew Lewis51999562018-07-24 11:03:01 +010022 }
Andrew Lewis6b4afef2018-08-02 12:01:52 +010023 // Depend on media2-exoplayer so that the library groupId is set to match media2.
24 implementation(project(":media2-exoplayer"))
Hyundo Moon999d7142018-06-19 14:30:19 +090025
Aurimas Liutikas3f9ceb62018-07-10 11:57:16 -070026 androidTestImplementation(TEST_RUNNER)
27 androidTestImplementation(TEST_RULES)
28 androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso)
Hyundo Moon999d7142018-06-19 14:30:19 +090029 androidTestImplementation project(':internal-testutils')
Insun Kang5834ff52018-06-13 09:22:31 -070030 annotationProcessor(project(":versionedparcelable-annotation"))
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070031}
32
33supportLibrary {
34 name = "AndroidX media2 library"
35 publish = true
Aurimas Liutikasa97ea032018-06-18 15:07:04 -070036 mavenVersion = LibraryVersions.MEDIA2
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070037 mavenGroup = LibraryGroups.MEDIA2
38 inceptionYear = "2018"
39 description = "Media2"
Hyundo Moon999d7142018-06-19 14:30:19 +090040 failOnUncheckedWarnings = false
41 failOnDeprecationWarnings = false
Aurimas Liutikas6b7a4992018-06-06 16:07:02 -070042}