-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (72 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
/*
* Copyright (C) 2019 Song Byeong Jun <potados99@gmail.com>
*
* This file is part of GeoMms.
*
* GeoMms is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GeoMms 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeoMms. If not, see <http://www.gnu.org/licenses/>.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
/** THE VERSION NAME! */
ext.version_name = '0.1.0'
ext.kotlin_version = '1.3.61'
ext.androidx_appcompat_version = '1.1.0'
ext.androidx_exifinterface_version = '1.1.0'
ext.androidx_core_version = '1.1.0'
ext.timber_version = '4.7.1'
ext.coroutine_version = '1.3.1'
ext.play_services_version = '17.0.0'
ext.aac_version = '1.1.1'
ext.circularimageview_version = '4.0.1'
ext.koin_version = '2.0.1'
ext.preference_version = '1.1.0'
ext.glide_version = '4.10.0'
ext.rxandroid_version = '2.1.1'
ext.rxjava_version = '2.2.12'
ext.rxkotlin_version = '2.4.0'
ext.realm_version = '5.8.0'
ext.realm_adapters_version = '3.1.0'
ext.gson_version = '2.8.5'
ext.oss_license_plugin_version = '0.9.5'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.realm:realm-gradle-plugin:$realm_version"
classpath "com.google.android.gms:oss-licenses-plugin:$oss_license_plugin_version"
}
}
allprojects {
// These should be applied to all modules in this project.
project.ext.set("versionCode", getRevisionCount())
project.ext.set("versionName", version_name)
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
/**
* We will use the git revision count as a version code.
* @return the git revision count, integer.
*/
static def getRevisionCount() {
return Integer.parseInt('git rev-list --count HEAD'.execute().text.trim())
}