forked from pdvrieze/darwinlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (80 loc) · 2.51 KB
/
build.gradle
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* Copyright (c) 2018.
*
* This file is part of ProcessManager.
*
* ProcessManager is free software: you can redistribute it and/or modify it under the terms of version 3 of the
* GNU Lesser General Public License as published by the Free Software Foundation.
*
* ProcessManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with ProcessManager. If not,
* see <http://www.gnu.org/licenses/>.
*/
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
version = '1.1.99'
description = 'Android support library for darwin functionality'
//group = 'android'
ext {
if (!rootProject.hasProperty('androidTarget')) {
androidTarget = 28
}
if (!rootProject.hasProperty('androidCompatVersion')) {
androidCompatVersion = androidTarget == '28.0.0-alpha1'
}
}
buildscript {
ext {
if (!has('androidPluginVersion')) {
androidPluginVersion = '3.1.3'
}
if (!has('kotlin_version')) {
kotlin_version = '1.2.50'
}
}
repositories {
mavenLocal()
jcenter()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:$androidPluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.8'
}
android {
compileSdkVersion androidTarget
defaultConfig {
minSdkVersion 14
targetSdkVersion androidTarget
versionCode 2
versionName version
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation "com.android.support:appcompat-v7:${androidCompatVersion}"
implementation "com.android.support:support-compat:${androidCompatVersion}"
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
api "net.devrieze:android-coroutines-appcompat:0.7.0"
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.23.3"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
kotlin {
experimental {
coroutines "enable"
}
}