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 | |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 17 | import androidx.build.Publish |
Sergey Vasilinets | 15d5a9d | 2021-06-25 14:30:22 +0100 | [diff] [blame] | 18 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 19 | |
| 20 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 21 | id("AndroidXPlugin") |
| 22 | id("com.android.library") |
Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 23 | id("kotlin-android") |
| 24 | } |
| 25 | |
Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 26 | dependencies { |
Ian Lake | 06305aa | 2019-06-06 15:12:51 -0700 | [diff] [blame] | 27 | api(project(":fragment:fragment-ktx")) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 28 | api(libs.testCore) |
| 29 | api(libs.kotlinStdlib) |
| 30 | androidTestImplementation(libs.kotlinStdlib) |
| 31 | androidTestImplementation(libs.espressoCore) |
| 32 | androidTestImplementation(libs.testExtJunit) |
| 33 | androidTestImplementation(libs.testCore) |
| 34 | androidTestImplementation(libs.testRunner) |
| 35 | androidTestImplementation(libs.testRules) |
| 36 | androidTestImplementation(libs.truth) |
| 37 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has it"s own MockMaker |
| 38 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has it"s own MockMaker |
Aurimas Liutikas | 7d0d631 | 2022-06-14 14:38:21 -0700 | [diff] [blame] | 39 | androidTestImplementation(libs.multidex) |
Matthew Fraschilla | 4fead8c | 2019-10-22 16:21:52 -0700 | [diff] [blame] | 40 | |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 41 | lintPublish(project(":fragment:fragment-testing-lint")) |
Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 42 | } |
| 43 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 44 | androidx { |
Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 45 | name = "Fragment Test Extensions" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 46 | publish = Publish.SNAPSHOT_AND_RELEASE |
Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 47 | mavenGroup = LibraryGroups.FRAGMENT |
| 48 | inceptionYear = "2018" |
| 49 | description = "Extensions for testing 'fragment' artifact" |
Yuki Hamada | cb756d4 | 2018-10-05 16:50:28 -0700 | [diff] [blame] | 50 | } |
Sergey Vasilinets | 15d5a9d | 2021-06-25 14:30:22 +0100 | [diff] [blame] | 51 | |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 52 | android { |
| 53 | namespace "androidx.fragment.testing" |
Aurimas Liutikas | 7d0d631 | 2022-06-14 14:38:21 -0700 | [diff] [blame] | 54 | defaultConfig { |
| 55 | multiDexEnabled true |
| 56 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 57 | } |