Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | 526389b | 2018-02-27 14:01:24 -0800 | [diff] [blame] | 17 | import static androidx.build.dependencies.DependenciesKt.* |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 18 | |
Aurimas Liutikas | 238e480 | 2017-12-14 10:52:11 -0800 | [diff] [blame] | 19 | plugins { |
| 20 | id("SupportAndroidTestAppPlugin") |
| 21 | } |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 22 | |
| 23 | android { |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 24 | defaultConfig { |
Yigit Boyar | 64db0cc | 2017-04-17 13:18:56 -0700 | [diff] [blame] | 25 | applicationId "android.arch.lifecycle.testapp" |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 26 | } |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 27 | buildTypes { |
| 28 | // test coverage does not work w/ jack |
| 29 | debug { |
| 30 | testCoverageEnabled = false |
| 31 | } |
| 32 | release { |
| 33 | testCoverageEnabled = false |
| 34 | } |
| 35 | } |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | dependencies { |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 39 | // IJ canont figure out transitive dependencies so need to declare them. |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 40 | implementation(project(":lifecycle:common")) |
| 41 | implementation(project(":lifecycle:runtime")) |
| 42 | implementation(project(":lifecycle:extensions")) |
| 43 | annotationProcessor(project(":lifecycle:compiler")) |
Aurimas Liutikas | 87a16a5 | 2017-11-09 13:53:34 -0800 | [diff] [blame] | 44 | |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 45 | androidTestAnnotationProcessor(project(":lifecycle:compiler")) |
Jake Wharton | 843419a | 2017-12-06 11:16:56 -0500 | [diff] [blame] | 46 | androidTestImplementation(TEST_RUNNER) |
| 47 | androidTestImplementation(ESPRESSO_CORE) |
Aurimas Liutikas | 87a16a5 | 2017-11-09 13:53:34 -0800 | [diff] [blame] | 48 | |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 49 | testImplementation(JUNIT) |
| 50 | testImplementation(MOCKITO_CORE) |
| 51 | testAnnotationProcessor(project(":lifecycle:compiler")) |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 52 | } |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 53 | |
| 54 | tasks['check'].dependsOn(tasks['connectedCheck']) |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 55 | |
| 56 | uploadArchives.enabled = false |