-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (49 loc) · 1.46 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
import java.text.SimpleDateFormat
buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
vBuildTools = "27.0.3"
vMinSdk = 15
vTargetSdk = 27
vCompileSdk = 27
vMajor = 1
vMinor = 0
vPatch = 5
pidgetLibVersionCode = vMajor*100 + vMinor*10 + vPatch
pidgetLibVersionName = "${vMajor}.${vMinor}.${vPatch}"
supportPackage = "com.android.support"
vSupportLibrary = "27.1.0"
vLeakCanary = '1.5.4'
dependencies = [
appcompat : "$supportPackage:appcompat-v7:$vSupportLibrary" ,
design : "$supportPackage:design:$vSupportLibrary" ,
pidgets : "io.github.farhad:pidgets:$vMajor.$vMinor.$vPatch" ,
leak_canary_debug : "com.squareup.leakcanary:leakcanary-android:$vLeakCanary" ,
leak_canary_release : "com.squareup.leakcanary:leakcanary-android-no-op:$vLeakCanary"
]
}
def getBuildTime() {
def df = new SimpleDateFormat("yyyy-MM-dd-HH:mm")
df.setTimeZone(TimeZone.getTimeZone("Asia/Tehran"))
return df.format(new Date())
}