blob: c8fba58187eca03e68e0aeaf03265b3a077fa49f [file] [log] [blame]
Yigit Boyar2eb51992016-12-13 15:00:07 -08001/*
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 Liutikas526389b2018-02-27 14:01:24 -080017import static androidx.build.dependencies.DependenciesKt.*
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080018
Aurimas Liutikas238e4802017-12-14 10:52:11 -080019plugins {
20 id("SupportAndroidTestAppPlugin")
21}
Yigit Boyar2eb51992016-12-13 15:00:07 -080022
23android {
Yigit Boyar2eb51992016-12-13 15:00:07 -080024 defaultConfig {
Yigit Boyar64db0cc2017-04-17 13:18:56 -070025 applicationId "android.arch.lifecycle.testapp"
Yigit Boyar2eb51992016-12-13 15:00:07 -080026 }
Yigit Boyar450ed382017-03-02 09:48:25 -080027 buildTypes {
28 // test coverage does not work w/ jack
29 debug {
30 testCoverageEnabled = false
31 }
32 release {
33 testCoverageEnabled = false
34 }
35 }
Yigit Boyar2eb51992016-12-13 15:00:07 -080036}
37
38dependencies {
Yigit Boyar450ed382017-03-02 09:48:25 -080039 // IJ canont figure out transitive dependencies so need to declare them.
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080040 implementation(project(":lifecycle:common"))
41 implementation(project(":lifecycle:runtime"))
42 implementation(project(":lifecycle:extensions"))
43 annotationProcessor(project(":lifecycle:compiler"))
Aurimas Liutikas87a16a52017-11-09 13:53:34 -080044
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080045 androidTestAnnotationProcessor(project(":lifecycle:compiler"))
Jake Wharton843419a2017-12-06 11:16:56 -050046 androidTestImplementation(TEST_RUNNER)
47 androidTestImplementation(ESPRESSO_CORE)
Aurimas Liutikas87a16a52017-11-09 13:53:34 -080048
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080049 testImplementation(JUNIT)
50 testImplementation(MOCKITO_CORE)
51 testAnnotationProcessor(project(":lifecycle:compiler"))
Yigit Boyar2eb51992016-12-13 15:00:07 -080052}
Yigit Boyar2eb51992016-12-13 15:00:07 -080053
54tasks['check'].dependsOn(tasks['connectedCheck'])
Yigit Boyar450ed382017-03-02 09:48:25 -080055
56uploadArchives.enabled = false