tor-browser

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

build.gradle (2721B)


      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 apply plugin: 'kotlin-parcelize'
     10 
     11 apply plugin: 'com.google.devtools.ksp'
     12 
     13 android {
     14    defaultConfig {
     15        ksp {
     16            arg("room.schemaLocation", "$projectDir/schemas".toString())
     17            arg("room.generateKotlin", "true")
     18        }
     19    }
     20 
     21    sourceSets {
     22        androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
     23    }
     24 
     25    buildFeatures {
     26        viewBinding = true
     27    }
     28 
     29    testFixtures {
     30        enable = true
     31    }
     32 
     33    namespace = 'mozilla.components.feature.downloads'
     34 }
     35 
     36 dependencies {
     37    implementation project(':components:browser-state')
     38    implementation project(':components:concept-fetch')
     39    implementation project(':components:support-base')
     40    implementation project(':components:support-ktx')
     41    implementation project(':components:support-utils')
     42    implementation project(':components:ui-icons')
     43    implementation project(':components:ui-widgets')
     44 
     45    implementation libs.androidx.constraintlayout
     46    implementation libs.androidx.core.ktx
     47    implementation libs.androidx.lifecycle.livedata
     48    implementation libs.androidx.localbroadcastmanager
     49    implementation libs.androidx.paging
     50    implementation libs.androidx.recyclerview
     51    implementation libs.androidx.room.runtime
     52    implementation libs.google.material
     53    ksp libs.androidx.room.compiler
     54    implementation libs.kotlinx.coroutines
     55 
     56    testImplementation project(':components:concept-engine')
     57    testImplementation project(':components:support-test')
     58    testImplementation project(':components:support-test-libstate')
     59 
     60    testFixturesImplementation libs.kotlinx.coroutines.core
     61    testImplementation libs.androidx.test.core
     62    testImplementation libs.androidx.test.junit
     63    testImplementation libs.kotlinx.coroutines.test
     64    testImplementation libs.robolectric
     65 
     66    androidTestImplementation project(':components:support-android-test')
     67 
     68    androidTestImplementation libs.androidx.arch.core.testing
     69    androidTestImplementation libs.androidx.room.testing
     70    androidTestImplementation libs.androidx.test.core
     71    androidTestImplementation libs.androidx.test.rules
     72    androidTestImplementation libs.androidx.test.runner
     73    androidTestImplementation libs.kotlinx.coroutines.test
     74 }
     75 
     76 apply from: '../../../common-config.gradle'
     77 apply from: '../../../publish.gradle'
     78 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)