tor-browser

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

build.gradle (1529B)


      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.library'
     27 apply plugin: 'kotlin-android'
     28 
     29 android {
     30    compileSdk { version = release(config.compileSdkMajorVersion) { minorApiLevel = config.compileSdkMinorVersion } }
     31 
     32    defaultConfig {
     33        minSdk config.minSdkVersion
     34        targetSdk config.targetSdkVersion
     35    }
     36 
     37    buildTypes {
     38        release {
     39            minifyEnabled = false
     40            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
     41        }
     42    }
     43 
     44    buildFeatures {
     45        buildConfig = true
     46    }
     47 
     48    namespace = 'mozilla.samples.glean.library'
     49 }
     50 
     51 dependencies {
     52    implementation libs.mozilla.glean
     53 }
     54 
     55 ext {
     56    gleanNamespace = "mozilla.telemetry.glean"
     57    gleanPythonEnvDir = gradle.mozconfig.substs.GRADLE_GLEAN_PARSER_VENV
     58 }
     59 apply plugin: "org.mozilla.telemetry.glean-gradle-plugin"