forked from pdvrieze/darwin-android-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
123 lines (110 loc) · 3.77 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
* 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/>.
*/
ext {
if (!rootProject.hasProperty('androidCompatVersion')) {
androidCompatVersion = '27.1.1'
}
}
buildscript {
ext {
if (!rootProject.hasProperty('androidPluginVersion')) {
androidPluginVersion = '3.1.2'
}
if (!rootProject.hasProperty('kotlin_version')) {
androidPluginVersion = '1.2.41'
}
}
repositories {
mavenLocal()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
version = '1.2.5'
description = 'Authentication library providing accounts that link against android.'
dependencies {
implementation "com.android.support:support-annotations:${androidCompatVersion}"
implementation "com.android.support:recyclerview-v7:${androidCompatVersion}"
implementation "com.android.support:appcompat-v7:${androidCompatVersion}"
implementation "com.android.support:cardview-v7:${androidCompatVersion}"
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.esotericsoftware:kryo:4.0.1'
implementation 'net.devrieze:android-coroutines:0.6.3'
implementation "android.arch.lifecycle:extensions:1.1.1"
kapt "com.android.databinding:compiler:$androidPluginVersion"
kapt "android.arch.lifecycle:compiler:1.1.1"
}
android {
compileSdkVersion 27
defaultConfig {
applicationId 'uk.ac.bournemouth.darwin.auth'
minSdkVersion 14
targetSdkVersion 27
versionCode 1002005
versionName version
resValue 'string', 'applicationId', applicationId
}
dataBinding {
enabled = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
resValue 'string', 'applicationId', android.defaultConfig.applicationId + applicationIdSuffix
}
debugMinified {
applicationIdSuffix ".debugmini"
versionNameSuffix "-debugmini"
resValue 'string', 'applicationId', android.defaultConfig.applicationId + applicationIdSuffix
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-project.txt'
}
release {
// signingConfig signingConfigs.releaseConfig
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-project.txt'
}
}
lintOptions {
abortOnError false
}
}
kotlin {
experimental {
coroutines "enable"
}
}
androidExtensions {
experimental = true
}