forked from pipelka/roboTV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
44 lines (42 loc) · 1.01 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'org.ajoberstar:grgit:1.1.0'
}
}
allprojects {
repositories {
jcenter()
google()
maven {
url "https://maven.google.com"
}
}
project.ext {
minSdkVersion=22
compileSdkVersion=27
targetSdkVersion=24
buildToolsVersion='27.0.3'
exoPlayerVersion='2.6.1'
supportVersion='27.0.2'
glideVersion='4.4.0'
}
}
ext {
try {
git = org.ajoberstar.grgit.Grgit.open(file('.'))
gitRevision = git.head().id
gitAbbreviatedId = git.head().abbreviatedId;
gitBranch = git.branch.current.name;
}
catch(Exception e) {
gitRevision = "unknown"
gitAbbreviatedId = "unknown";
gitBranch = "unknown";
}
}