The sample apps' layouts used unstyled buttons. Apply the shared Mozac.Widgets.NeutralButton style (adding the ui-widgets dependency where needed) and drop the ButtonStyleXmlDetector baseline entries. Differential Revision: https://phabricator.services.mozilla.com/D310438
92 lines
3.0 KiB
Groovy
92 lines
3.0 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 {
|
|
gradle.configureMavenRepositories(delegate)
|
|
|
|
dependencies {
|
|
classpath libs.mozilla.glean.gradle.plugin
|
|
}
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'com.android.application'
|
|
alias(libs.plugins.dependency.analysis)
|
|
alias(libs.plugins.python.envs.plugin)
|
|
}
|
|
|
|
|
|
android {
|
|
compileSdk { version = release(config.compileSdkMajorVersion) { minorApiLevel = config.compileSdkMinorVersion } }
|
|
|
|
defaultConfig {
|
|
applicationId "org.mozilla.samples.glean"
|
|
minSdk config.minSdkVersion
|
|
targetSdk config.targetSdkVersion
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled = false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
applicationIdSuffix ".debug"
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
buildConfig = true
|
|
}
|
|
|
|
namespace = 'org.mozilla.samples.glean'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':components:lib-fetch-httpurlconnection')
|
|
implementation project(':components:samples-glean-library')
|
|
implementation project(':components:service-glean')
|
|
implementation project(':components:service-nimbus')
|
|
implementation project(':components:support-appservices')
|
|
implementation project(':components:support-base')
|
|
implementation project(':components:ui-widgets')
|
|
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.browser
|
|
implementation libs.kotlinx.coroutines
|
|
implementation libs.mozilla.glean
|
|
|
|
androidTestImplementation libs.androidx.test.core
|
|
androidTestImplementation libs.androidx.test.espresso.core
|
|
androidTestImplementation libs.androidx.test.junit
|
|
androidTestImplementation libs.androidx.test.monitor
|
|
androidTestImplementation libs.androidx.test.rules
|
|
androidTestImplementation libs.androidx.test.runner
|
|
androidTestImplementation libs.androidx.test.uiautomator
|
|
androidTestImplementation libs.androidx.work.testing
|
|
androidTestImplementation libs.kotlin.test
|
|
androidTestImplementation libs.mockwebserver
|
|
androidTestImplementation libs.okhttp
|
|
androidTestRuntimeOnly libs.okio
|
|
constraints {
|
|
// Various AndroidX dependencies pull in 1.1.1 transitively; OkHttp 5 requires 1.2.0.
|
|
implementation(libs.androidx.startup.runtime)
|
|
// okhttp is test-only; prevents older releases being resolved on the main classpath.
|
|
implementation(libs.okio)
|
|
}
|
|
}
|
|
|
|
ext {
|
|
gleanNamespace = "mozilla.telemetry.glean"
|
|
gleanPythonEnvDir = gradle.mozconfig.substs.GRADLE_GLEAN_PARSER_VENV
|
|
}
|
|
apply plugin: "org.mozilla.telemetry.glean-gradle-plugin"
|