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'
9 compileSdkVersion config.compileSdkVersion
12 minSdkVersion config.minSdkVersion
13 targetSdkVersion config.targetSdkVersion
14 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
26 excludes += ['META-INF/proguard/androidx-annotations.pro']
30 namespace 'mozilla.components.browser.thumbnails'
33 tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
35 freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
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)