Bug 1876335 - use GRADLE_MAVEN_REPOSITORIES in more places. r=owlish,geckoview-review...
[gecko.git] / mobile / android / android-components / components / support / remotesettings / build.gradle
blobf723948cc0505467013b7c51de435e0f280de0b2
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/. */
4 buildscript {
5     repositories {
6         gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
7             maven {
8                 url repository
9                 if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
10                     allowInsecureProtocol = true
11                 }
12             }
13         }
14     }
15     dependencies {
16         classpath  ComponentsDependencies.plugin_serialization
17     }
21 apply plugin: 'com.android.library'
22 apply plugin: 'kotlin-android'
23 apply plugin: 'kotlinx-serialization'
25 android {
26     compileSdkVersion config.compileSdkVersion
28     defaultConfig {
29         minSdkVersion config.minSdkVersion
30         compileSdk config.compileSdkVersion
31         targetSdkVersion config.targetSdkVersion
32     }
34     buildTypes {
35         release {
36             minifyEnabled false
37             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
38         }
39     }
41     namespace 'mozilla.components.support.remotesettings'
44 dependencies {
45     implementation project(':support-ktx')
46     implementation project(':support-base')
47     implementation ComponentsDependencies.mozilla_remote_settings
48     implementation ComponentsDependencies.kotlin_json
50     testImplementation ComponentsDependencies.testing_mockito
51     testImplementation ComponentsDependencies.androidx_test_junit
52     testImplementation ComponentsDependencies.testing_coroutines
53     testImplementation ComponentsDependencies.testing_robolectric
54     testImplementation ComponentsDependencies.mozilla_remote_settings
57 apply from: '../../../android-lint.gradle'
58 apply from: '../../../publish.gradle'
59 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)