/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { alias(libs.plugins.dependency.analysis) } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-parcelize' apply plugin: 'com.google.devtools.ksp' android { defaultConfig { ksp { arg("room.schemaLocation", "$projectDir/schemas".toString()) arg("room.generateKotlin", "true") } } sourceSets { androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) } buildFeatures { viewBinding = true } testFixtures { enable = true } namespace = 'mozilla.components.feature.downloads' } dependencies { implementation project(':components:browser-state') implementation project(':components:concept-fetch') implementation project(':components:support-base') implementation project(':components:support-ktx') implementation project(':components:support-utils') implementation project(':components:ui-icons') implementation project(':components:ui-widgets') implementation libs.androidx.constraintlayout implementation libs.androidx.core.ktx implementation libs.androidx.lifecycle.livedata implementation libs.androidx.paging implementation libs.androidx.recyclerview implementation libs.androidx.room.runtime implementation libs.google.material ksp libs.androidx.room.compiler implementation libs.kotlinx.coroutines testImplementation project(':components:concept-engine') testImplementation project(':components:support-test') testImplementation project(':components:support-test-libstate') testFixturesImplementation libs.kotlinx.coroutines.core testImplementation libs.androidx.test.core testImplementation libs.androidx.test.junit testImplementation libs.kotlinx.coroutines.test testImplementation libs.robolectric androidTestImplementation project(':components:support-android-test') testImplementation testFixtures(project(':components:support-utils')) androidTestImplementation libs.androidx.arch.core.testing androidTestImplementation libs.androidx.room.testing androidTestImplementation libs.androidx.test.core androidTestImplementation libs.androidx.test.rules androidTestImplementation libs.androidx.test.runner androidTestImplementation libs.kotlinx.coroutines.test androidTestRuntimeOnly libs.okhttp } apply from: '../../../common-config.gradle' apply from: '../../../publish.gradle' ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)