/* 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/. */ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'com.google.devtools.ksp' android { defaultConfig { minSdkVersion = config.minSdkVersion compileSdk = config.compileSdkVersion targetSdkVersion = config.targetSdkVersion testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ksp { arg("room.schemaLocation", "$projectDir/schemas".toString()) arg("room.generateKotlin", "true") } javaCompileOptions { annotationProcessorOptions { arguments += ["room.incremental": "true"] } } } buildTypes { release { minifyEnabled = false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) } namespace = 'mozilla.components.feature.share' } dependencies { implementation project(':support-ktx') implementation project(':support-base') implementation libs.kotlin.coroutines implementation libs.androidx.lifecycle.runtime implementation libs.androidx.room.runtime ksp libs.androidx.room.compiler testImplementation project(':support-test') testImplementation libs.androidx.test.core testImplementation libs.junit.vintage testImplementation libs.testing.robolectric testImplementation libs.testing.coroutines androidTestImplementation project(':support-android-test') androidTestImplementation libs.androidx.room.testing androidTestImplementation libs.androidx.test.core androidTestImplementation libs.androidx.test.runner androidTestImplementation libs.androidx.test.rules } apply from: '../../../android-lint.gradle' apply from: '../../../publish.gradle' ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)