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

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
Marvin W.'s avatar
Marvin W. committed
8
9
apply plugin: 'maven-publish'
apply plugin: 'signing'
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

dependencies {
    api project(':play-services-nearby-api')

    implementation project(':play-services-base-core')
    implementation project(':play-services-nearby-core-proto')

    implementation "androidx.annotation:annotation:$annotationVersion"
    implementation "androidx.lifecycle:lifecycle-service:$lifecycleVersion"
    implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
    implementation "androidx.preference:preference:$preferenceVersion"

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion"

    implementation "com.squareup.wire:wire-runtime:$wireVersion"

Marvin W.'s avatar
Marvin W. committed
28
    testImplementation 'junit:junit:4.13.2'
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
}

android {
    compileSdkVersion androidCompileSdk
    buildToolsVersion "$androidBuildVersionTools"

    defaultConfig {
        versionName version
        minSdkVersion androidMinSdk
        targetSdkVersion androidTargetSdk
    }

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

Marvin W.'s avatar
Marvin W. committed
47
48
49
50
    lintOptions {
        disable 'MissingTranslation'
    }

51
52
53
54
55
    compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }
}
Marvin W.'s avatar
Marvin W. committed
56
57

apply from: '../gradle/publish-android.gradle'
Marvin W.'s avatar
Marvin W. committed
58
59

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