summaryrefslogtreecommitdiffstats
path: root/mobile/android/android-components/components/concept/engine/build.gradle
blob: a84492bacb70fb8cce38d736d095672f7c046d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* 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/. */

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'

android {
    defaultConfig {
        minSdkVersion config.minSdkVersion
        compileSdk config.compileSdkVersion
        targetSdkVersion config.targetSdkVersion
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    namespace 'mozilla.components.concept.engine'
}

dependencies {
    implementation project(':support-ktx')

    implementation ComponentsDependencies.kotlin_coroutines

    implementation ComponentsDependencies.androidx_annotation
    implementation ComponentsDependencies.androidx_paging

    // We expose this as API because we are using Observable in our public API and do not want every
    // consumer to have to manually import "base".
    api project(':support-base')
    api project(':browser-errorpages')
    api project(':concept-storage')
    api project(':concept-fetch')

    testImplementation project(':support-utils')
    testImplementation ComponentsDependencies.androidx_test_core
    testImplementation ComponentsDependencies.androidx_test_junit
    testImplementation ComponentsDependencies.testing_robolectric
    testImplementation ComponentsDependencies.kotlin_reflect

    testImplementation project(':support-test')
}

apply from: '../../../android-lint.gradle'
apply from: '../../../publish.gradle'
ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)