| Aurimas Liutikas | 6d20a52 | 2017-03-10 17:13:03 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 | |
| Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 17 | import androidx.build.LibraryType |
| 18 | |
| Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 19 | plugins { |
| Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
| shepshapard | ceeb304 | 2018-07-30 11:19:41 -0700 | [diff] [blame] | 22 | id("kotlin-android") |
| Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 23 | } |
| Aurimas Liutikas | 6d20a52 | 2017-03-10 17:13:03 -0800 | [diff] [blame] | 24 | |
| 25 | dependencies { |
| Ian Lake | 391dc4b | 2019-09-07 17:51:23 -0700 | [diff] [blame] | 26 | api("androidx.fragment:fragment:1.1.0") |
| Kirill Grouchnikov | 3743a7e | 2017-09-26 17:55:05 -0400 | [diff] [blame] | 27 | |
| Aurimas Liutikas | 0044296 | 2021-06-01 17:18:09 -0700 | [diff] [blame] | 28 | implementation(libs.testExtJunit) |
| 29 | implementation(libs.testCore) |
| 30 | implementation(libs.testRules) |
| 31 | implementation(libs.kotlinStdlib) |
| Aurimas Liutikas | 6d20a52 | 2017-03-10 17:13:03 -0800 | [diff] [blame] | 32 | } |
| 33 | |
| Aurimas Liutikas | 63f6016 | 2017-09-19 06:30:32 -0700 | [diff] [blame] | 34 | android { |
| Aurimas Liutikas | 63f6016 | 2017-09-19 06:30:32 -0700 | [diff] [blame] | 35 | lintOptions { |
| Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 36 | disable "InvalidPackage" // Lint is unhappy about junit package |
| Aurimas Liutikas | 63f6016 | 2017-09-19 06:30:32 -0700 | [diff] [blame] | 37 | } |
| Chris Craik | b947b35 | 2019-06-13 13:34:57 -0700 | [diff] [blame] | 38 | defaultConfig { |
| 39 | testInstrumentationRunner "androidx.testutils.ActivityRecyclingAndroidJUnitRunner" |
| 40 | } |
| Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 41 | namespace "androidx.testutils.runtime" |
| Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 42 | } |
| Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 43 | |
| 44 | androidx { |
| 45 | type = LibraryType.INTERNAL_TEST_LIBRARY |
| 46 | } |