blob: 812d65ff3f1f6c77933dc6e7c659d556b9f1bbc2 [file] [log] [blame]
Aurimas Liutikas526389b2018-02-27 14:01:24 -08001import static androidx.build.dependencies.DependenciesKt.*
2import androidx.build.LibraryGroups
3import androidx.build.LibraryVersions
Aurimas Liutikas44d7d862017-10-27 17:55:06 -07004
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07005plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +01006 id("AndroidXPlugin")
7 id("com.android.library")
Sergey Vasilinets9823ca62018-08-23 18:41:17 -07008 id("kotlin-android")
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07009}
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070010
Ian Lakef89afb02018-09-11 15:44:56 -070011android {
12 lintOptions {
13 fatal("UnknownNullness")
14 }
15}
16
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070017dependencies {
Ian Lake37f2d452018-11-29 15:01:38 -080018 api(project(":annotation"))
19 api(project(":core")) {
20 exclude group: 'androidx.annotation'
21 }
Jake Wharton53786fb2019-01-29 10:14:56 -050022 api(project(":collection"))
Nick Anthony44470292018-11-12 18:33:34 -050023 api("androidx.viewpager:viewpager:1.0.0")
Oussama Ben Abdelbaki237c8942019-02-11 15:57:21 -050024 api(project(":annotation"))
Nick Anthony44470292018-11-12 18:33:34 -050025 api("androidx.loader:loader:1.0.0")
Ian Lake6e53bd192018-08-31 10:59:49 -070026 api(project(":activity"))
Ian Lake979ba972018-01-02 14:13:35 -080027 api(ARCH_LIFECYCLE_VIEWMODEL, libs.exclude_annotations_transitive)
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080028
Sergey Vasilinets9823ca62018-08-23 18:41:17 -070029 androidTestImplementation(KOTLIN_STDLIB)
Dustin Lam3979d962019-04-08 10:40:19 -070030 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
31 androidTestImplementation(ANDROIDX_TEST_CORE)
32 androidTestImplementation(ANDROIDX_TEST_RUNNER)
33 androidTestImplementation(ANDROIDX_TEST_RULES)
Ian Lakeb4e3e172018-10-15 13:22:44 -070034 androidTestImplementation(TRUTH)
Aurimas Liutikas3f9ceb62018-07-10 11:57:16 -070035 androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso)
Aurimas Liutikasb8fd9b62017-11-22 12:55:43 -080036 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
37 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
Aurimas Liutikas67171c82018-02-27 13:10:25 -080038 androidTestImplementation project(':internal-testutils'), {
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080039 exclude group: 'androidx.fragment', module: 'fragment'
Kirill Grouchnikov3743a7e2017-09-26 17:55:05 -040040 }
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070041}
42
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070043androidx {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080044 name = "Android Support Library fragment"
45 publish = true
Chris Banesb019e152018-08-27 12:31:49 +100046 mavenVersion = LibraryVersions.FRAGMENT
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080047 mavenGroup = LibraryGroups.FRAGMENT
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080048 inceptionYear = "2011"
49 description = "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren\'t a part of the framework APIs. Compatible on devices running API 14 or later."
Aurimas Liutikasbfef0932018-04-04 13:25:38 -070050 failOnUncheckedWarnings = false
51 failOnDeprecationWarnings = false
Aurimas Liutikas16cd13b2017-01-04 15:00:13 -080052}