build.gradle 1.63 KB
Newer Older
1
2
3
4
5
6
7
8
/*
 * SPDX-FileCopyrightText: 2020, microG Project Team
 * SPDX-License-Identifier: Apache-2.0
 */

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
Marvin W.'s avatar
Marvin W. committed
9
10
apply plugin: 'maven-publish'
apply plugin: 'signing'
11
12
13
14
15
16
17
18

dependencies {
    implementation project(':play-services-nearby-core')
    implementation project(':play-services-base-core-ui')

    // AndroidX UI
    implementation "androidx.multidex:multidex:$multidexVersion"
    implementation "androidx.appcompat:appcompat:$appcompatVersion"
Marvin W.'s avatar
Marvin W. committed
19
    implementation "androidx.preference:preference-ktx:$preferenceVersion"
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

    // Navigation
    implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
    implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"

    implementation "androidx.lifecycle:lifecycle-service:$lifecycleVersion"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
}

android {
    compileSdkVersion androidCompileSdk
    buildToolsVersion "$androidBuildVersionTools"

    defaultConfig {
        versionName version
        minSdkVersion androidMinSdk
        targetSdkVersion androidTargetSdk
    }

Marvin W.'s avatar
Marvin W. committed
39
40
    buildFeatures {
        dataBinding = true
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
    }

    sourceSets {
        main {
            java.srcDirs = ['src/main/kotlin']
        }
    }

    lintOptions {
        disable 'MissingTranslation'
    }

    compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }
57
58
59
60

    kotlinOptions {
        jvmTarget = 1.8
    }
61
}
Marvin W.'s avatar
Marvin W. committed
62
63

apply from: '../gradle/publish-android.gradle'
Marvin W.'s avatar
Marvin W. committed
64
65

description = 'UI for microG service implementation for play-services-nearby'