Source code
Revision control
Copy as Markdown
Other Tools
/* 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
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'), 'proguard-rules.pro'
}
}
namespace = 'mozilla.components.support.ktx'
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions.freeCompilerArgs += [
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" // flatMapConcat
]
}
dependencies {
implementation project(':components:support-base')
implementation project(':components:support-utils')
implementation project(':components:lib-publicsuffixlist')
implementation libs.androidx.core
implementation libs.androidx.core.ktx
implementation libs.kotlin.coroutines
testImplementation project(':components:support-test')
testImplementation project(':components:support-test-fakes')
testImplementation libs.androidx.test.core
testImplementation libs.androidx.test.junit
testImplementation libs.kotlin.reflect
testImplementation libs.testing.coroutines
testImplementation libs.testing.robolectric
androidTestImplementation project(':components:support-android-test')
androidTestImplementation libs.androidx.test.core
androidTestImplementation libs.androidx.test.runner
androidTestImplementation libs.androidx.test.rules
androidTestImplementation libs.androidx.test.junit
}
apply from: '../../../android-lint.gradle'
apply from: '../../../publish.gradle'
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)