[components] Closes https://github.com/mozilla-mobile/android-components/issues/5715...
[gecko.git] / mobile / android / android-components / components / service / sync-logins / build.gradle
blobf45e41d1b3c10e80ec821e5abcc7686b5c867de0
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     }
16     lintOptions {
17         warningsAsErrors true
18         abortOnError true
19     }
21     buildTypes {
22         release {
23             minifyEnabled false
24             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
25             consumerProguardFiles 'proguard-rules-consumer.pro'
26         }
27     }
30 dependencies {
31     // Parts of this dependency are typealiase'd or are otherwise part of this module's public API.
32     api(Dependencies.mozilla_sync_logins) {
33       // Use our own version of the Glean dependency,
34       // which might be different from the version declared by A-S.
35       exclude group: 'org.mozilla.components', module: 'service-glean'
36     }
37     api Dependencies.mozilla_sync15
39     // Types defined in concept-sync are part of this module's public API.
40     api project(':concept-sync')
41     api project(':lib-dataprotect')
43     implementation project(':concept-storage')
44     implementation project(':support-sync-telemetry')
45     implementation project(':service-glean')
47     implementation Dependencies.kotlin_stdlib
48     implementation Dependencies.kotlin_coroutines
50     testImplementation Dependencies.mozilla_sync_logins
52     testImplementation Dependencies.androidx_test_core
53     testImplementation Dependencies.androidx_test_junit
54     testImplementation Dependencies.testing_junit
55     testImplementation Dependencies.testing_robolectric
56     testImplementation Dependencies.testing_mockito
57     testImplementation Dependencies.testing_coroutines
58     testImplementation project(':support-test')
61 apply from: '../../../publish.gradle'
62 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)