tor-browser

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

build.gradle (2632B)


      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: 'com.google.devtools.ksp'
     10 
     11 android {
     12    defaultConfig {
     13        ksp {
     14            arg("room.schemaLocation", "$projectDir/schemas".toString())
     15            arg("room.generateKotlin", "true")
     16        }
     17 
     18        javaCompileOptions {
     19            annotationProcessorOptions {
     20                arguments += ["room.incremental": "true"]
     21            }
     22        }
     23    }
     24 
     25    sourceSets {
     26        androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
     27    }
     28 
     29    namespace = 'mozilla.components.feature.pwa'
     30 }
     31 
     32 dependencies {
     33    implementation project(':components:browser-icons')
     34    implementation project(':components:browser-state')
     35    implementation project(':components:concept-engine')
     36    implementation project(':components:concept-fetch')
     37    implementation project(':components:feature-customtabs')
     38    implementation project(':components:feature-intent')
     39    implementation project(':components:feature-session')
     40    implementation project(':components:feature-tabs')
     41    implementation project(':components:service-digitalassetlinks')
     42    implementation project(':components:support-base')
     43    implementation project(':components:support-images')
     44    implementation project(':components:support-ktx')
     45    implementation project(':components:support-utils')
     46 
     47    implementation libs.androidx.browser
     48    implementation libs.androidx.core.ktx
     49    implementation libs.androidx.lifecycle.runtime
     50    implementation libs.androidx.room.runtime
     51    ksp libs.androidx.room.compiler
     52    implementation libs.kotlinx.coroutines
     53 
     54    testImplementation project(':components:support-test')
     55    testImplementation project(':components:support-test-libstate')
     56 
     57    testImplementation libs.androidx.test.core
     58    testImplementation libs.androidx.test.junit
     59    testImplementation libs.kotlin.reflect
     60    testImplementation libs.kotlinx.coroutines.test
     61    testImplementation libs.robolectric
     62 
     63    androidTestImplementation libs.androidx.test.core
     64    androidTestImplementation libs.androidx.test.rules
     65    androidTestImplementation libs.androidx.test.runner
     66    androidTestImplementation libs.androidx.room.testing
     67 }
     68 
     69 apply from: '../../../common-config.gradle'
     70 apply from: '../../../publish.gradle'
     71 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)