This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 145
/
build.gradle
114 lines (102 loc) · 3.45 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
// App version digits
versionMajor = 2
versionMinor = 6
versionPatch = 0
// Version name follows the <major>.<minor>.<patch> convention
computeVersionName = { ->
return String.format('%d.%d.%d', versionMajor, versionMinor, versionPatch)
}
// Version code is computed as: major + minor + patch + build number (where available)
computeVersionCode = { ->
if (versionPatch <= 9) {
return (versionMajor * 1000000) + (versionMinor * 100000) + (versionPatch * 10000) + Integer.valueOf(System.env.BUILD_NUMBER ?: 0)
}
else {
return (versionMajor * 1000000) + (versionMinor * 100000) + (9 * 10000) + (versionPatch * 100) + Integer.valueOf(System.env.BUILD_NUMBER ?: 0)
}
}
// App version
versionName = computeVersionName()
versionCode = computeVersionCode()
// SDK and tools
compileSdkVersion = 30
minSdkVersion = 24
targetSdkVersion = 30
buildToolsVersion = "30.0.2"
// App dependencies
kotlinVersion = '1.3.72'
navigationVersion = "2.3.0"
koinVersion = "2.1.4"
moshiVersion = "1.8.0"
retrofitVersion = "2.6.1"
okHttpVersion = "4.7.1"
coroutinesCoreVersion = "1.3.6"
coroutinesAndroidVersion = "1.3.0"
appcompatVersion = "1.1.0"
ktxCoreVersion = "1.2.0"
securityVersion = "1.1.0-alpha03"
materialVersion = "1.4.0-beta01"
glideVersion = "4.9.0"
lottieVersion = "3.4.0"
jUnitVersion = "4.12"
jsonVersion = "20140107"
mockkVersion = "1.9.3"
coreTestingVersion = "2.1.0"
androidxTestVersion = "1.1.1"
testRunnerVersion = "1.2.0"
espressoVersion = "3.2.0"
constraintLayoutVersion = "1.1.3"
vectordrawableVersion = "1.1.0"
androidxMediaVersion = "1.1.0"
fragmentVersion = "1.2.4"
lifecycleVersion = "2.2.0"
legacyVersion = "1.0.0"
recyclerviewVersion = "1.1.0"
workVersion = "2.3.4"
viewPager2Version = "1.0.0"
conscryptVersion = "2.4.0"
testCoreKtxVersion = "1.2.0"
testFragmentVersion = "1.2.4"
coseJavaVersion = "1.1.0"
jsonSchemaValidatorVersion = "2.2.6"
jacksonDataformatCborVersion = "2.12.3"
bcpkixVersion = "1.68"
jUnitJupiterVersion = "5.7.1"
hamcrestVersion = "2.2"
}
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0'
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.2.1"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
// Version should be inherited from parent
apply plugin: "org.jlleitschuh.gradle.ktlint"
// Optionally configure plugin
ktlint {
debug = true
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: "org.jlleitschuh.gradle.ktlint"