tor-browser

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

build.gradle (2238B)


      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 apply plugin: 'com.android.library'
      6 apply plugin: 'kotlin-android'
      7 apply plugin: 'com.google.devtools.ksp'
      8 
      9 android {
     10    defaultConfig {
     11        ksp {
     12            arg("room.schemaLocation", "$projectDir/schemas".toString())
     13            arg("room.generateKotlin", "true")
     14        }
     15 
     16        javaCompileOptions {
     17            annotationProcessorOptions {
     18                arguments += ["room.incremental": "true"]
     19            }
     20        }
     21    }
     22 
     23    sourceSets {
     24        test.assets.srcDirs += files("$projectDir/schemas".toString())
     25    }
     26 
     27    namespace = 'mozilla.components.feature.recentlyclosed'
     28 }
     29 
     30 dependencies {
     31    implementation project(':components:browser-session-storage')
     32    implementation project(':components:browser-state')
     33    implementation project(':components:concept-engine')
     34    implementation project(':components:support-base')
     35    implementation project(':components:support-ktx')
     36 
     37    implementation libs.androidx.lifecycle.livedata
     38    implementation libs.androidx.room.runtime
     39    ksp libs.androidx.room.compiler
     40    implementation libs.kotlinx.coroutines
     41 
     42    testImplementation project(':components:feature-session')
     43    testImplementation project(':components:support-test')
     44    testImplementation project(':components:support-test-libstate')
     45 
     46    testImplementation libs.androidx.test.core
     47    testImplementation libs.androidx.test.junit
     48    testImplementation platform(libs.junit.bom)
     49    testImplementation libs.junit4
     50    testRuntimeOnly libs.junit.platform.launcher
     51    testRuntimeOnly libs.junit.vintage
     52    testImplementation libs.kotlinx.coroutines
     53    testImplementation libs.kotlinx.coroutines.test
     54    testImplementation libs.robolectric
     55 
     56    androidTestImplementation project(':components:support-test-fakes')
     57 
     58    androidTestImplementation libs.androidx.test.core
     59    androidTestImplementation libs.androidx.test.runner
     60 }
     61 
     62 apply from: '../../../common-config.gradle'
     63 apply from: '../../../publish.gradle'
     64 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)