forked from covid19cz/erouska-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (53 loc) · 1.82 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
// KOTLIN_VERSION
ext.commitCount = {
def stdOut = new ByteArrayOutputStream()
exec {
commandLine "git", "rev-list", "--count", "HEAD"
standardOutput = stdOut
}
return Integer.valueOf(stdOut.toString().trim())
}
ext {
compileSdkVersion = 29
minSdkVersion = 23
targetSdkVersion = 29
final VERSION_MAJOR = 2
final VERSION_MINOR = 1
versionName = "${VERSION_MAJOR}.${VERSION_MINOR}.${commitCount()}"
}
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
classpath 'com.google.gms:google-services:4.3.3'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.0"
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.12"
classpath "com.google.dagger:hilt-android-gradle-plugin:2.29.1-alpha"
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'http://dl.bintray.com/amulyakhare/maven' }
maven { url 'https://jitpack.io' }
maven {
url 'http://www.idescout.com/maven/repo/'
name 'IDEScout, Inc.'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}