build.gradle (1949B)
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 17 sourceSets { 18 androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) 19 } 20 21 namespace = 'mozilla.components.feature.logins' 22 } 23 24 dependencies { 25 implementation project(':components:feature-prompts') 26 implementation project(':components:support-base') 27 implementation project(':components:support-ktx') 28 29 implementation libs.androidx.lifecycle.livedata 30 implementation libs.androidx.paging 31 implementation libs.androidx.room.runtime 32 ksp libs.androidx.room.compiler 33 implementation libs.kotlinx.coroutines 34 35 testImplementation project(':components:support-test') 36 37 testImplementation libs.androidx.test.core 38 testImplementation platform(libs.junit.bom) 39 testImplementation libs.junit4 40 testRuntimeOnly libs.junit.platform.launcher 41 testRuntimeOnly libs.junit.vintage 42 testImplementation libs.kotlinx.coroutines 43 testImplementation libs.robolectric 44 45 androidTestImplementation project(':components:support-android-test') 46 47 androidTestImplementation libs.androidx.arch.core.testing 48 androidTestImplementation libs.androidx.room.testing 49 androidTestImplementation libs.androidx.test.core 50 androidTestImplementation libs.androidx.test.rules 51 androidTestImplementation libs.androidx.test.runner 52 } 53 54 apply from: '../../../common-config.gradle' 55 apply from: '../../../publish.gradle' 56 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)