build.gradle (2550B)
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 javaCompileOptions { 21 annotationProcessorOptions { 22 arguments += ["room.incremental": "true"] 23 } 24 } 25 } 26 27 buildFeatures { 28 viewBinding = true 29 } 30 31 namespace = 'mozilla.components.feature.addons' 32 } 33 34 dependencies { 35 implementation project(':components:browser-state') 36 implementation project(':components:concept-engine') 37 implementation project(':components:concept-fetch') 38 implementation project(':components:concept-menu') 39 implementation project(':components:support-base') 40 implementation project(':components:support-ktx') 41 implementation project(':components:support-utils') 42 implementation project(':components:support-webextensions') 43 implementation project(':components:ui-colors') 44 implementation project(':components:ui-icons') 45 implementation project(':components:ui-widgets') 46 47 implementation libs.androidx.activity 48 implementation libs.androidx.appcompat 49 implementation libs.androidx.cardview 50 implementation libs.androidx.core.ktx 51 implementation libs.androidx.recyclerview 52 implementation libs.androidx.room.runtime 53 implementation libs.google.material 54 ksp libs.androidx.room.compiler 55 implementation libs.androidx.work.runtime 56 implementation libs.kotlinx.coroutines 57 58 testImplementation project(':components:browser-engine-gecko') 59 testImplementation project(':components:support-test') 60 testImplementation project(':components:support-test-libstate') 61 62 testImplementation libs.androidx.concurrent 63 testImplementation libs.androidx.test.core 64 testImplementation libs.androidx.test.junit 65 testImplementation libs.androidx.work.testing 66 testImplementation libs.kotlinx.coroutines.test 67 testImplementation libs.robolectric 68 } 69 70 apply from: '../../../common-config.gradle' 71 apply from: '../../../publish.gradle' 72 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)