tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

build.gradle (2797B)


      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 
      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        }
     15 
     16        dependencies {
     17            classpath libs.mozilla.glean.gradle.plugin
     18        }
     19    }
     20 }
     21 
     22 plugins {
     23    alias(libs.plugins.python.envs.plugin)
     24 }
     25 
     26 apply plugin: 'com.android.application'
     27 apply plugin: 'kotlin-android'
     28 
     29 android {
     30    compileSdk { version = release(config.compileSdkMajorVersion) { minorApiLevel = config.compileSdkMinorVersion } }
     31 
     32    defaultConfig {
     33        applicationId "org.mozilla.samples.glean"
     34        minSdk config.minSdkVersion
     35        targetSdk config.targetSdkVersion
     36        versionCode 1
     37        versionName "1.0"
     38 
     39        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     40    }
     41 
     42    buildTypes {
     43        release {
     44            minifyEnabled = false
     45            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
     46        }
     47        debug {
     48            applicationIdSuffix ".debug"
     49        }
     50    }
     51 
     52    buildFeatures {
     53        viewBinding = true
     54        buildConfig = true
     55    }
     56 
     57    namespace = 'org.mozilla.samples.glean'
     58 }
     59 
     60 dependencies {
     61    implementation project(':components:lib-fetch-httpurlconnection')
     62    implementation project(':components:samples-glean-library')
     63    implementation project(':components:service-glean')
     64    implementation project(':components:service-nimbus')
     65    implementation project(':components:support-appservices')
     66    implementation project(':components:support-base')
     67 
     68    implementation libs.androidx.appcompat
     69    implementation libs.androidx.browser
     70    implementation libs.kotlinx.coroutines
     71    implementation libs.mozilla.glean
     72 
     73    androidTestImplementation libs.androidx.test.core
     74    androidTestImplementation libs.androidx.test.espresso.core
     75    androidTestImplementation libs.androidx.test.junit
     76    androidTestImplementation libs.androidx.test.monitor
     77    androidTestImplementation libs.androidx.test.rules
     78    androidTestImplementation libs.androidx.test.runner
     79    androidTestImplementation libs.androidx.test.uiautomator
     80    androidTestImplementation libs.androidx.work.testing
     81    androidTestImplementation libs.mockwebserver
     82 }
     83 
     84 ext {
     85    gleanNamespace = "mozilla.telemetry.glean"
     86    gleanPythonEnvDir = gradle.mozconfig.substs.GRADLE_GLEAN_PARSER_VENV
     87 }
     88 apply plugin: "org.mozilla.telemetry.glean-gradle-plugin"