Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt...
[gecko.git] / mobile / android / android-components / components / browser / thumbnails / build.gradle
blob0dbb95ec98f2f573aaea80820374bd9fd7fe57f5
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 apply plugin: 'com.android.library'
6 apply plugin: 'kotlin-android'
8 android {
9     compileSdkVersion config.compileSdkVersion
11     defaultConfig {
12         minSdkVersion config.minSdkVersion
13         targetSdkVersion config.targetSdkVersion
14         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15     }
17     buildTypes {
18         release {
19             minifyEnabled false
20             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
21         }
22     }
24     packagingOptions {
25         resources {
26             excludes += ['META-INF/proguard/androidx-annotations.pro']
27         }
28     }
30     namespace 'mozilla.components.browser.thumbnails'
33 tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
34     kotlinOptions {
35         freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
36     }
39 dependencies {
40     implementation project(':browser-state')
41     implementation project(':concept-engine')
42     implementation project(':concept-base')
43     implementation project(':support-ktx')
44     implementation project(':support-images')
46     implementation ComponentsDependencies.androidx_annotation
47     implementation ComponentsDependencies.androidx_core_ktx
49     implementation ComponentsDependencies.kotlin_coroutines
51     implementation ComponentsDependencies.thirdparty_disklrucache
53     testImplementation project(':support-test')
54     testImplementation project(':support-test-libstate')
56     testImplementation ComponentsDependencies.androidx_test_core
57     testImplementation ComponentsDependencies.androidx_test_junit
58     testImplementation ComponentsDependencies.testing_mockito
59     testImplementation ComponentsDependencies.testing_robolectric
60     testImplementation ComponentsDependencies.testing_coroutines
63 apply from: '../../../android-lint.gradle'
64 apply from: '../../../publish.gradle'
65 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)