build.gradle 1.81 KB
Newer Older
Marvin W.'s avatar
Marvin W. committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright 2013-2015 microG Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

apply plugin: 'com.android.library'
18
apply plugin: 'kotlin-android'
Marvin W.'s avatar
Marvin W. committed
19
20
apply plugin: 'maven-publish'
apply plugin: 'signing'
Marvin W.'s avatar
Marvin W. committed
21
22
23
24
25
26
27

dependencies {
    api "org.microg:safe-parcel:$safeParcelVersion"

    implementation "androidx.annotation:annotation:$annotationVersion"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
}
Marvin W.'s avatar
Marvin W. committed
28
29

android {
Marvin W.'s avatar
Marvin W. committed
30
    compileSdkVersion androidCompileSdk
31
    buildToolsVersion "$androidBuildVersionTools"
Marvin W.'s avatar
Marvin W. committed
32

Marvin W.'s avatar
Marvin W. committed
33
    aidlPackageWhiteList "com/google/android/gms/common/api/Status.aidl"
Marvin W.'s avatar
Marvin W. committed
34
    aidlPackageWhiteList "com/google/android/gms/common/internal/ICancelToken.aidl"
Marvin W.'s avatar
Marvin W. committed
35
    aidlPackageWhiteList "com/google/android/gms/common/server/FavaDiagnosticsEntity.aidl"
Marvin W.'s avatar
Marvin W. committed
36
37
38
    aidlPackageWhiteList "com/google/android/gms/dynamic/IObjectWrapper.aidl"

    defaultConfig {
Marvin W.'s avatar
Marvin W. committed
39
40
41
        versionName version
        minSdkVersion androidMinSdk
        targetSdkVersion androidTargetSdk
Marvin W.'s avatar
Marvin W. committed
42
        buildConfigField "int", "VERSION_CODE", "$appVersionCode"
Marvin W.'s avatar
Marvin W. committed
43
44
    }

45
46
47
48
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

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

apply from: '../gradle/publish-android.gradle'
Marvin W.'s avatar
Marvin W. committed
56
57

description = 'microG implementation of play-services-basement'