tor-browser

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

build.gradle (1591B)


      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 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
      6 
      7 apply plugin: 'com.android.library'
      8 apply plugin: 'kotlin-android'
      9 
     10 android {
     11    androidResources {
     12        ignoreAssetsPattern '!<dir>extensions'
     13    }
     14 
     15    namespace = 'mozilla.components.feature.accounts'
     16 }
     17 
     18 tasks.register("updateBuiltInExtensionVersion", Copy) { task ->
     19    updateExtensionVersion(task, 'src/main/assets/extensions/fxawebchannel')
     20 }
     21 
     22 dependencies {
     23    implementation project(":components:browser-state")
     24    implementation project(':components:concept-engine')
     25    implementation project(':components:feature-tabs')
     26    implementation project(':components:service-firefox-accounts')
     27    implementation project(':components:support-ktx')
     28    implementation project(':components:support-webextensions')
     29 
     30    implementation libs.androidx.work.runtime
     31    implementation libs.kotlinx.coroutines
     32 
     33    testImplementation project(':components:support-test')
     34 
     35    testImplementation ComponentsDependencies.mozilla_appservices_full_megazord_libsForTests
     36    testImplementation libs.androidx.test.junit
     37    testImplementation libs.kotlinx.coroutines.test
     38    testImplementation libs.robolectric
     39 }
     40 
     41 apply from: '../../../common-config.gradle'
     42 apply from: '../../../publish.gradle'
     43 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)
     44 
     45 preBuild.dependsOn updateBuiltInExtensionVersion