build.gradle (2066B)
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.containers' 28 } 29 30 dependencies { 31 implementation project(':components:browser-state') 32 implementation project(':components:support-base') 33 implementation project(':components:support-ktx') 34 35 implementation libs.androidx.lifecycle.livedata 36 implementation libs.androidx.paging 37 implementation libs.androidx.room.runtime 38 ksp libs.androidx.room.compiler 39 implementation libs.kotlinx.coroutines 40 41 testImplementation project(':components:support-test') 42 testImplementation project(':components:support-test-libstate') 43 44 testImplementation libs.androidx.test.junit 45 testImplementation libs.kotlinx.coroutines.test 46 testImplementation libs.robolectric 47 48 androidTestImplementation project(':components:support-android-test') 49 50 androidTestImplementation libs.androidx.arch.core.testing 51 androidTestImplementation libs.androidx.room.testing 52 androidTestImplementation libs.androidx.test.core 53 androidTestImplementation libs.androidx.test.rules 54 androidTestImplementation libs.androidx.test.runner 55 androidTestImplementation libs.kotlinx.coroutines.test 56 } 57 58 apply from: '../../../common-config.gradle' 59 apply from: '../../../publish.gradle' 60 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)