blob: 2d36b956d86526e1aaf16d4e6fb2d88614e2effa [file] [log] [blame]
Yuki Hamadacb756d42018-10-05 16:50:28 -07001/*
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 Liutikas75e93a02019-05-28 16:31:38 -070017import androidx.build.Publish
Sergey Vasilinets15d5a9d2021-06-25 14:30:22 +010018import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Yuki Hamadacb756d42018-10-05 16:50:28 -070019
20plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010021 id("AndroidXPlugin")
22 id("com.android.library")
Yuki Hamadacb756d42018-10-05 16:50:28 -070023 id("kotlin-android")
24}
25
Yuki Hamadacb756d42018-10-05 16:50:28 -070026dependencies {
Ian Lake06305aa2019-06-06 15:12:51 -070027 api(project(":fragment:fragment-ktx"))
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070028 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 Liutikas7d0d6312022-06-14 14:38:21 -070039 androidTestImplementation(libs.multidex)
Matthew Fraschilla4fead8c2019-10-22 16:21:52 -070040
Jim Sproch9e38b4f2021-01-06 14:21:06 -080041 lintPublish(project(":fragment:fragment-testing-lint"))
Yuki Hamadacb756d42018-10-05 16:50:28 -070042}
43
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070044androidx {
Yuki Hamadacb756d42018-10-05 16:50:28 -070045 name = "Fragment Test Extensions"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070046 publish = Publish.SNAPSHOT_AND_RELEASE
Yuki Hamadacb756d42018-10-05 16:50:28 -070047 mavenGroup = LibraryGroups.FRAGMENT
48 inceptionYear = "2018"
49 description = "Extensions for testing 'fragment' artifact"
Yuki Hamadacb756d42018-10-05 16:50:28 -070050}
Sergey Vasilinets15d5a9d2021-06-25 14:30:22 +010051
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070052android {
53 namespace "androidx.fragment.testing"
Aurimas Liutikas7d0d6312022-06-14 14:38:21 -070054 defaultConfig {
55 multiDexEnabled true
56 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070057}