Bug 1876335 - use GRADLE_MAVEN_REPOSITORIES in more places. r=owlish,geckoview-review...
[gecko.git] / mobile / android / android-components / samples / glean / samples-glean-library / build.gradle
blob68df279fab53b7b7e5b11e72404f6f10a9eeb22a
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 buildscript {
6     repositories {
7         gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository ->
8             maven {
9                 url repository
10                 if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) {
11                     allowInsecureProtocol = true
12                 }
13             }
14         }
16         dependencies {
17             classpath "org.mozilla.telemetry:glean-gradle-plugin:${Versions.mozilla_glean}"
18         }
19     }
22 plugins {
23     id "com.jetbrains.python.envs" version "$python_envs_plugin"
26 apply plugin: 'com.android.library'
27 apply plugin: 'kotlin-android'
29 android {
30     defaultConfig {
31         minSdkVersion config.minSdkVersion
32         compileSdk config.compileSdkVersion
33         targetSdkVersion config.targetSdkVersion
34     }
36     buildTypes {
37         release {
38             minifyEnabled false
39             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
40         }
41     }
43     buildFeatures {
44         buildConfig true
45     }
47     namespace 'mozilla.samples.glean.library'
50 dependencies {
51     implementation project(':service-glean')
54 apply plugin: "org.mozilla.telemetry.glean-gradle-plugin"