79 lines
2.4 KiB
Groovy
79 lines
2.4 KiB
Groovy
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||
|
|
||
|
buildscript {
|
||
|
repositories {
|
||
|
maven {
|
||
|
url "https://maven.mozilla.org/maven2"
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
classpath "org.mozilla.telemetry:glean-gradle-plugin:${Versions.mozilla_glean}"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
plugins {
|
||
|
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
||
|
}
|
||
|
|
||
|
apply plugin: 'com.android.application'
|
||
|
apply plugin: 'kotlin-android'
|
||
|
|
||
|
android {
|
||
|
defaultConfig {
|
||
|
applicationId "org.mozilla.samples.glean"
|
||
|
minSdkVersion config.minSdkVersion
|
||
|
compileSdk config.compileSdkVersion
|
||
|
targetSdkVersion config.targetSdkVersion
|
||
|
versionCode 1
|
||
|
versionName "1.0"
|
||
|
|
||
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
|
}
|
||
|
debug {
|
||
|
applicationIdSuffix ".debug"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
buildFeatures {
|
||
|
viewBinding true
|
||
|
}
|
||
|
|
||
|
namespace 'org.mozilla.samples.glean'
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation project(':service-glean')
|
||
|
implementation project(':service-nimbus')
|
||
|
implementation project(':support-base')
|
||
|
implementation project(':support-rusthttp')
|
||
|
implementation project(':support-rustlog')
|
||
|
implementation project(':lib-fetch-httpurlconnection')
|
||
|
|
||
|
implementation ComponentsDependencies.kotlin_coroutines
|
||
|
|
||
|
implementation ComponentsDependencies.androidx_appcompat
|
||
|
implementation ComponentsDependencies.androidx_browser
|
||
|
|
||
|
implementation project(':samples-glean-library')
|
||
|
|
||
|
androidTestImplementation ComponentsDependencies.androidx_test_core
|
||
|
androidTestImplementation ComponentsDependencies.androidx_test_runner
|
||
|
androidTestImplementation ComponentsDependencies.androidx_test_rules
|
||
|
androidTestImplementation ComponentsDependencies.androidx_test_junit
|
||
|
androidTestImplementation ComponentsDependencies.androidx_test_uiautomator
|
||
|
androidTestImplementation ComponentsDependencies.androidx_espresso_core
|
||
|
androidTestImplementation ComponentsDependencies.androidx_work_testing
|
||
|
androidTestImplementation ComponentsDependencies.testing_mockwebserver
|
||
|
}
|
||
|
|
||
|
apply plugin: "org.mozilla.telemetry.glean-gradle-plugin"
|