81 lines
2.6 KiB
Groovy
81 lines
2.6 KiB
Groovy
/* 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
|
|
|
|
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-parcelize'
|
|
|
|
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.sitepermissions'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':browser-state')
|
|
implementation project(':concept-engine')
|
|
implementation project(':ui-icons')
|
|
implementation project(':support-ktx')
|
|
implementation project(':feature-tabs')
|
|
implementation project(':support-utils')
|
|
|
|
implementation libs.kotlin.coroutines
|
|
|
|
implementation libs.androidx.core.ktx
|
|
implementation libs.androidx.constraintlayout
|
|
implementation libs.androidx.lifecycle.livedata
|
|
implementation libs.androidx.paging
|
|
implementation libs.androidx.room.runtime
|
|
ksp libs.androidx.room.compiler
|
|
|
|
testImplementation project(':support-test')
|
|
|
|
testImplementation libs.androidx.test.core
|
|
testImplementation libs.androidx.test.junit
|
|
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
|
|
androidTestImplementation libs.testing.coroutines
|
|
}
|
|
|
|
apply from: '../../../android-lint.gradle'
|
|
apply from: '../../../publish.gradle'
|
|
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)
|