tor-browser

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

build.gradle (2383B)


      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        androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
     25    }
     26 
     27    namespace = 'mozilla.components.feature.top.sites'
     28 }
     29 
     30 dependencies {
     31    implementation project(':components:browser-storage-sync')
     32    implementation project(':components:concept-toolbar')
     33    implementation project(':components:support-base')
     34    implementation project(':components:support-ktx')
     35    implementation project(':components:support-utils')
     36 
     37    implementation libs.androidx.lifecycle.livedata
     38    implementation libs.androidx.paging
     39    implementation libs.androidx.room.runtime
     40    ksp libs.androidx.room.compiler
     41    implementation libs.kotlinx.coroutines
     42 
     43    testImplementation project(':components:support-test')
     44 
     45    testImplementation libs.androidx.test.core
     46    testImplementation libs.androidx.test.junit
     47    testImplementation platform(libs.junit.bom)
     48    testImplementation libs.junit4
     49    testRuntimeOnly libs.junit.platform.launcher
     50    testRuntimeOnly libs.junit.vintage
     51    testImplementation libs.kotlinx.coroutines
     52    testImplementation libs.kotlinx.coroutines.test
     53    testImplementation libs.robolectric
     54 
     55    androidTestImplementation project(':components:support-android-test')
     56 
     57    androidTestImplementation libs.androidx.arch.core.testing
     58    androidTestImplementation libs.androidx.room.testing
     59    androidTestImplementation libs.androidx.test.core
     60    androidTestImplementation libs.androidx.test.rules
     61    androidTestImplementation libs.androidx.test.runner
     62    androidTestImplementation libs.kotlinx.coroutines.test
     63 }
     64 
     65 apply from: '../../../common-config.gradle'
     66 apply from: '../../../publish.gradle'
     67 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)