| Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 1 | import androidx.build.LibraryGroups |
| 2 | import androidx.build.LibraryVersions |
| 3 | |
| Andrew Lewis | 5199956 | 2018-07-24 11:03:01 +0100 | [diff] [blame] | 4 | import static androidx.build.dependencies.DependenciesKt.CHECKER_FRAMEWORK |
| Aurimas Liutikas | 3f9ceb6 | 2018-07-10 11:57:16 -0700 | [diff] [blame] | 5 | import static androidx.build.dependencies.DependenciesKt.ESPRESSO_CORE |
| 6 | import static androidx.build.dependencies.DependenciesKt.TEST_RULES |
| 7 | import static androidx.build.dependencies.DependenciesKt.TEST_RUNNER |
| Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 8 | |
| Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 9 | plugins { |
| 10 | id("SupportAndroidLibraryPlugin") |
| 11 | } |
| 12 | |
| 13 | dependencies { |
| Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 14 | api(project(":media")) |
| Insun Kang | 5834ff5 | 2018-06-13 09:22:31 -0700 | [diff] [blame] | 15 | api(project(':versionedparcelable')) |
| Andrew Lewis | 5199956 | 2018-07-24 11:03:01 +0100 | [diff] [blame] | 16 | 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 Lewis | 5199956 | 2018-07-24 11:03:01 +0100 | [diff] [blame] | 22 | } |
| Andrew Lewis | 6b4afef | 2018-08-02 12:01:52 +0100 | [diff] [blame^] | 23 | // Depend on media2-exoplayer so that the library groupId is set to match media2. |
| 24 | implementation(project(":media2-exoplayer")) |
| Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 25 | |
| Aurimas Liutikas | 3f9ceb6 | 2018-07-10 11:57:16 -0700 | [diff] [blame] | 26 | androidTestImplementation(TEST_RUNNER) |
| 27 | androidTestImplementation(TEST_RULES) |
| 28 | androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso) |
| Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 29 | androidTestImplementation project(':internal-testutils') |
| Insun Kang | 5834ff5 | 2018-06-13 09:22:31 -0700 | [diff] [blame] | 30 | annotationProcessor(project(":versionedparcelable-annotation")) |
| Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | supportLibrary { |
| 34 | name = "AndroidX media2 library" |
| 35 | publish = true |
| Aurimas Liutikas | a97ea03 | 2018-06-18 15:07:04 -0700 | [diff] [blame] | 36 | mavenVersion = LibraryVersions.MEDIA2 |
| Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 37 | mavenGroup = LibraryGroups.MEDIA2 |
| 38 | inceptionYear = "2018" |
| 39 | description = "Media2" |
| Hyundo Moon | 999d714 | 2018-06-19 14:30:19 +0900 | [diff] [blame] | 40 | failOnUncheckedWarnings = false |
| 41 | failOnDeprecationWarnings = false |
| Aurimas Liutikas | 6b7a499 | 2018-06-06 16:07:02 -0700 | [diff] [blame] | 42 | } |