| Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | import static androidx.build.dependencies.DependenciesKt.* |
| 18 | import androidx.build.LibraryGroups |
| 19 | import androidx.build.LibraryVersions |
| 20 | |
| 21 | plugins { |
| 22 | id("SupportAndroidLibraryPlugin") |
| 23 | id("kotlin-android") |
| 24 | } |
| 25 | |
| 26 | android { |
| Ian Lake | 8bc01cc | 2018-10-23 09:30:11 -0700 | [diff] [blame] | 27 | buildTypes { |
| 28 | debug { |
| 29 | testCoverageEnabled = false // Breaks Kotlin compiler. |
| 30 | } |
| 31 | } |
| Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 32 | lintOptions { |
| 33 | fatal("UnknownNullness") |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | dependencies { |
| Ian Lake | 8bc01cc | 2018-10-23 09:30:11 -0700 | [diff] [blame] | 38 | api(project(":fragment-ktx")) |
| Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 39 | api(TEST_CORE) |
| Ian Lake | 8bc01cc | 2018-10-23 09:30:11 -0700 | [diff] [blame] | 40 | api(KOTLIN_STDLIB) |
| Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 41 | androidTestImplementation(KOTLIN_STDLIB) |
| Alan Viverette | badf2f8 | 2018-12-18 12:14:10 -0500 | [diff] [blame^] | 42 | androidTestImplementation(TEST_EXT_JUNIT) |
| 43 | androidTestImplementation(TEST_CORE) |
| Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 44 | androidTestImplementation(TEST_RUNNER) |
| 45 | androidTestImplementation(TEST_RULES) |
| Yuki Hamada | 4b1e10a | 2018-11-13 18:15:11 -0800 | [diff] [blame] | 46 | androidTestImplementation(TEST_EXT_JUNIT) |
| Alan Viverette | badf2f8 | 2018-12-18 12:14:10 -0500 | [diff] [blame^] | 47 | androidTestImplementation(TEST_CORE) |
| 48 | androidTestImplementation(TEST_RUNNER) |
| Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 49 | androidTestImplementation(TRUTH) |
| Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | supportLibrary { |
| 53 | name = "Fragment Test Extensions" |
| 54 | publish = true |
| 55 | mavenVersion = LibraryVersions.FRAGMENT |
| 56 | mavenGroup = LibraryGroups.FRAGMENT |
| 57 | inceptionYear = "2018" |
| 58 | description = "Extensions for testing 'fragment' artifact" |
| 59 | useMetalava = true |
| 60 | } |