tor-browser

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

build.gradle (2409B)


      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 plugins {
      6    alias(libs.plugins.kotlin.android)
      7    alias(libs.plugins.kotlin.compose)
      8 }
      9 
     10 apply plugin: 'com.android.library'
     11 
     12 android {
     13    sourceSets {
     14        androidTest {
     15            // Use the same resources as the unit tests
     16            resources.srcDirs += ['src/test/resources']
     17        }
     18    }
     19 
     20    buildFeatures {
     21        compose = true
     22    }
     23 
     24    namespace = 'mozilla.components.browser.icons'
     25 }
     26 
     27 tasks.register("updateBuiltInExtensionVersion", Copy) { task ->
     28    updateExtensionVersion(task, 'src/main/assets/extensions/browser-icons')
     29 }
     30 
     31 dependencies {
     32    api project(':components:support-images')
     33 
     34    implementation project(':components:browser-state')
     35    implementation project(':components:concept-base')
     36    implementation project(':components:concept-engine')
     37    implementation project(':components:concept-fetch')
     38    implementation project(':components:support-ktx')
     39 
     40    implementation libs.androidsvg
     41    implementation libs.androidx.annotation
     42    implementation platform(libs.androidx.compose.bom)
     43    implementation libs.androidx.compose.material3
     44    implementation libs.androidx.compose.ui
     45    implementation libs.androidx.core.ktx
     46    implementation libs.androidx.palette
     47    implementation libs.disklrucache
     48    implementation libs.kotlinx.coroutines
     49 
     50    testImplementation project(':components:lib-fetch-httpurlconnection')
     51    testImplementation project(':components:lib-fetch-okhttp')
     52    testImplementation project(':components:support-test')
     53 
     54    testImplementation libs.androidx.test.core
     55    testImplementation libs.androidx.test.junit
     56    testImplementation libs.kotlin.reflect
     57    testImplementation libs.kotlinx.coroutines.test
     58    testImplementation libs.mockwebserver
     59    testImplementation libs.robolectric
     60 
     61    androidTestImplementation libs.androidx.test.core
     62    androidTestImplementation libs.androidx.test.rules
     63    androidTestImplementation libs.androidx.test.runner
     64    androidTestImplementation libs.kotlinx.coroutines.test
     65 }
     66 
     67 apply from: '../../../common-config.gradle'
     68 apply from: '../../../publish.gradle'
     69 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)
     70 
     71 preBuild.dependsOn updateBuiltInExtensionVersion