Bug 1802817 - Set namespace via DSL in gradle build files.
[gecko.git] / mobile / android / android-components / components / browser / menu2 / build.gradle
blob0b0d72eb3121cd3b5a794c3be70ddd079b21c6c3
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 apply plugin: 'com.android.library'
6 apply plugin: 'kotlin-android'
8 android {
9     compileSdkVersion config.compileSdkVersion
11     defaultConfig {
12         minSdkVersion config.minSdkVersion
13         targetSdkVersion config.targetSdkVersion
14     }
16     buildTypes {
17         release {
18             minifyEnabled false
19             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
20         }
21     }
23     namespace 'mozilla.components.browser.menu2'
26 dependencies {
27     implementation project(':concept-menu')
28     implementation project(':support-base')
29     implementation project(':support-ktx')
30     implementation project(':ui-icons')
32     implementation ComponentsDependencies.androidx_appcompat
33     implementation ComponentsDependencies.androidx_core_ktx
34     implementation ComponentsDependencies.androidx_recyclerview
35     implementation ComponentsDependencies.androidx_cardview
36     implementation ComponentsDependencies.androidx_constraintlayout
37     implementation ComponentsDependencies.androidx_coordinatorlayout
39     implementation ComponentsDependencies.kotlin_stdlib
40     implementation ComponentsDependencies.kotlin_coroutines
42     testImplementation project(':support-test')
44     testImplementation ComponentsDependencies.androidx_test_core
45     testImplementation ComponentsDependencies.androidx_test_junit
46     testImplementation ComponentsDependencies.testing_robolectric
47     testImplementation ComponentsDependencies.testing_mockito
48     testImplementation ComponentsDependencies.testing_coroutines
51 apply from: '../../../android-lint.gradle'
52 apply from: '../../../publish.gradle'
53 ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)