build.gradle (1608B)
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 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile 6 7 apply plugin: 'com.android.library' 8 apply plugin: 'kotlin-android' 9 10 android { 11 namespace = 'mozilla.components.feature.readerview' 12 } 13 14 tasks.register("updateBuiltInExtensionVersion", Copy) { task -> 15 updateExtensionVersion(task, 'src/main/assets/extensions/readerview') 16 } 17 18 dependencies { 19 implementation project(':components:browser-menu') 20 implementation project(':components:browser-state') 21 implementation project(':components:concept-engine') 22 implementation project(':components:support-base') 23 implementation project(':components:support-ktx') 24 implementation project(':components:support-utils') 25 implementation project(':components:support-webextensions') 26 implementation project(':components:ui-icons') 27 28 implementation libs.androidx.constraintlayout 29 implementation libs.androidx.core.ktx 30 implementation libs.kotlinx.coroutines 31 32 testImplementation project(':components:support-test') 33 34 testImplementation libs.androidx.test.core 35 testImplementation libs.androidx.test.junit 36 testImplementation libs.kotlinx.coroutines.test 37 testImplementation libs.robolectric 38 } 39 40 apply from: '../../../common-config.gradle' 41 apply from: '../../../publish.gradle' 42 ext.configurePublish(config.componentsGroupId, project.name, project.ext.description) 43 44 preBuild.dependsOn updateBuiltInExtensionVersion