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/. */
5 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
7 apply plugin: 'com.android.library'
8 apply plugin: 'kotlin-android'
9 apply plugin: 'com.google.devtools.ksp'
13 minSdkVersion config.minSdkVersion
14 compileSdk config.compileSdkVersion
15 targetSdkVersion config.targetSdkVersion
16 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19 arg("room.schemaLocation", "$projectDir/schemas".toString())
23 annotationProcessorOptions {
24 arguments += ["room.incremental": "true"]
32 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
37 androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
40 namespace 'mozilla.components.feature.pwa'
43 tasks.withType(KotlinCompile).configureEach {
44 kotlinOptions.freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
48 implementation project(':browser-icons')
49 implementation project(':browser-state')
50 implementation project(':concept-engine')
51 implementation project(':concept-fetch')
52 implementation project(':feature-customtabs')
53 implementation project(':feature-tabs')
54 implementation project(':feature-intent')
55 implementation project(':feature-session')
56 implementation project(':service-digitalassetlinks')
57 implementation project(':support-base')
58 implementation project(':support-images')
59 implementation project(':support-ktx')
60 implementation project(':support-utils')
62 implementation ComponentsDependencies.androidx_browser
63 implementation ComponentsDependencies.androidx_core_ktx
64 implementation ComponentsDependencies.androidx_lifecycle_runtime
66 implementation ComponentsDependencies.kotlin_coroutines
68 implementation ComponentsDependencies.androidx_room_runtime
69 ksp ComponentsDependencies.androidx_room_compiler
71 testImplementation project(':support-test')
72 testImplementation project(':support-test-libstate')
74 testImplementation ComponentsDependencies.androidx_test_core
75 testImplementation ComponentsDependencies.androidx_test_junit
76 testImplementation ComponentsDependencies.kotlin_reflect
77 testImplementation ComponentsDependencies.testing_coroutines
78 testImplementation ComponentsDependencies.testing_robolectric
80 androidTestImplementation ComponentsDependencies.androidx_test_core
81 androidTestImplementation ComponentsDependencies.androidx_test_runner
82 androidTestImplementation ComponentsDependencies.androidx_test_rules
83 androidTestImplementation ComponentsDependencies.androidx_room_testing
86 apply from: '../../../android-lint.gradle'
87 apply from: '../../../publish.gradle'
88 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)