tor-browser

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

build.gradle (2538B)


      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.tab.collections'
     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:feature-tabs')
     35    implementation project(':components:support-base')
     36    implementation project(':components:support-ktx')
     37 
     38    implementation libs.androidx.lifecycle.livedata
     39    implementation libs.androidx.paging
     40    implementation libs.androidx.room.runtime
     41    ksp libs.androidx.room.compiler
     42    implementation libs.kotlinx.coroutines
     43 
     44    testImplementation project(':components:support-test')
     45    testImplementation project(':components:support-test-libstate')
     46 
     47    testImplementation libs.androidx.test.core
     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-android-test')
     57    androidTestImplementation project(':components:support-test-fakes')
     58 
     59    androidTestImplementation libs.androidx.arch.core.testing
     60    androidTestImplementation libs.androidx.room.testing
     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)