forked from covid19cz/erouska-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (56 loc) · 1.87 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
// 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' }
maven {
url 'https://maven.fabric.io/public'
}
}
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 'io.fabric.tools:gradle:1.31.2'
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"
}
}
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
}