tor-browser

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

build.gradle (1697B)


      1 plugins {
      2    alias(libs.plugins.kotlin.android)
      3 }
      4 
      5 apply plugin: 'com.android.application'
      6 
      7 android {
      8    buildToolsVersion = project.ext.buildToolsVersion
      9    compileSdk {
     10        version = release(project.ext.compileSdkMajorVersion) { minorApiLevel = project.ext.compileSdkMinorVersion }
     11    }
     12 
     13    defaultConfig {
     14        targetSdk project.ext.targetSdkVersion
     15        minSdk project.ext.minSdkVersion
     16        manifestPlaceholders = project.ext.manifestPlaceholders
     17 
     18        applicationId "org.mozilla.geckoview_example"
     19        versionCode project.ext.versionCode
     20        versionName project.ext.versionName
     21    }
     22 
     23    buildTypes {
     24        release {
     25            minifyEnabled false
     26            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
     27        }
     28    }
     29 
     30    // By default the android plugins ignores folders that start with `_`, but
     31    // we need those in web extensions.
     32    // See also:
     33    //  - https://issuetracker.google.com/issues/36911326
     34    //  - https://stackoverflow.com/questions/9206117/how-to-workaround-autoomitting-fiiles-folders-starting-with-underscore-in
     35    aaptOptions {
     36        ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
     37        noCompress 'ja'
     38    }
     39 
     40    buildFeatures {
     41        buildConfig = true
     42    }
     43 
     44    namespace = 'org.mozilla.geckoview_example'
     45 }
     46 
     47 dependencies {
     48    implementation project(path: ':geckoview')
     49 
     50    implementation libs.androidx.annotation
     51    implementation libs.androidx.appcompat
     52    implementation libs.androidx.constraintlayout
     53    implementation libs.androidx.core
     54    implementation libs.androidx.preferences
     55    implementation libs.google.material
     56 }