60 lines
1.7 KiB
Groovy
60 lines
1.7 KiB
Groovy
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
defaultConfig {
|
|
minSdkVersion = config.minSdkVersion
|
|
compileSdk = config.compileSdkVersion
|
|
targetSdkVersion = config.targetSdkVersion
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled = false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt')
|
|
}
|
|
}
|
|
|
|
// https://issuetracker.google.com/issues/379732901
|
|
packaging {
|
|
resources {
|
|
excludes += ['META-INF/versions/9/OSGI-INF/MANIFEST.MF']
|
|
}
|
|
}
|
|
|
|
namespace = 'mozilla.components.support.test'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':concept-fetch')
|
|
implementation project(':support-base')
|
|
|
|
implementation libs.kotlin.coroutines
|
|
implementation libs.kotlin.reflect
|
|
|
|
implementation libs.androidx.test.junit
|
|
api libs.testing.mockito
|
|
implementation libs.testing.coroutines
|
|
implementation libs.androidx.fragment
|
|
implementation (libs.testing.robolectric) {
|
|
exclude group: 'org.apache.maven'
|
|
}
|
|
|
|
testImplementation libs.testing.maven.ant.tasks
|
|
|
|
implementation libs.androidx.test.core
|
|
|
|
testImplementation libs.androidx.core
|
|
testImplementation libs.androidx.test.junit
|
|
testImplementation project(':support-ktx')
|
|
}
|
|
|
|
apply from: '../../../android-lint.gradle'
|
|
apply from: '../../../publish.gradle'
|
|
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)
|