build.gradle (2755B)
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 plugins { 6 alias(libs.plugins.kotlin.compose) 7 } 8 9 apply plugin: 'com.android.library' 10 apply plugin: 'kotlin-android' 11 apply plugin: 'kotlin-parcelize' 12 13 apply plugin: 'com.google.devtools.ksp' 14 15 android { 16 defaultConfig { 17 ksp { 18 arg("room.schemaLocation", "$projectDir/schemas".toString()) 19 arg("room.generateKotlin", "true") 20 } 21 22 javaCompileOptions { 23 annotationProcessorOptions { 24 arguments += ["room.incremental": "true"] 25 } 26 } 27 } 28 29 sourceSets { 30 androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) 31 } 32 33 namespace = 'mozilla.components.feature.sitepermissions' 34 35 buildFeatures { 36 compose = true 37 } 38 } 39 40 dependencies { 41 implementation project(':components:browser-state') 42 implementation project(':components:concept-engine') 43 implementation project(':components:feature-tabs') 44 implementation project(':components:support-ktx') 45 implementation project(':components:support-utils') 46 implementation project(':components:ui-icons') 47 implementation project(':components:compose-base') 48 49 implementation platform(libs.androidx.compose.bom) 50 implementation libs.androidx.compose.foundation 51 implementation libs.androidx.compose.ui.tooling.preview 52 implementation libs.androidx.compose.ui 53 implementation libs.androidx.compose.material3 54 debugImplementation libs.androidx.compose.ui.tooling 55 56 implementation libs.androidx.constraintlayout 57 implementation libs.androidx.core.ktx 58 implementation libs.androidx.lifecycle.livedata 59 implementation libs.androidx.paging 60 implementation libs.androidx.room.runtime 61 ksp libs.androidx.room.compiler 62 implementation libs.kotlinx.coroutines 63 64 testImplementation project(':components:support-test') 65 66 testImplementation libs.androidx.test.core 67 testImplementation libs.androidx.test.junit 68 testImplementation libs.kotlinx.coroutines.test 69 testImplementation libs.robolectric 70 71 androidTestImplementation project(':components:support-android-test') 72 73 androidTestImplementation libs.androidx.room.testing 74 androidTestImplementation libs.androidx.test.core 75 androidTestImplementation libs.androidx.test.rules 76 androidTestImplementation libs.androidx.test.runner 77 androidTestImplementation libs.kotlinx.coroutines.test 78 } 79 80 apply from: '../../../common-config.gradle' 81 apply from: '../../../publish.gradle' 82 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)