-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.gradle
106 lines (96 loc) · 2.47 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
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
maven { url "http://dl.bintray.com/populov/maven" }
maven { url "https://jcenter.bintray.com" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
mavenCentral()
}
}
apply plugin: 'com.android.application'
repositories {
mavenCentral()
}
dependencies {
compile project(':commonlib2')
compile project(':ecogallery2')
compile 'com.android.support:support-v4:22.2.1'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
}
def gitSha1 = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
}
//def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def buildTime() {
return new Date().format("dd.MM.yyyy", TimeZone.getTimeZone('UTC')); ;
}
android {
compileSdkVersion 21
buildToolsVersion '25.0.0'
signingConfigs {
release {
storeFile file(PROM_KEY_PATH)
storePassword KEYSTORE_PASSWORD
keyAlias PROM_KEY_ALIAS
keyPassword KEY_PASSWORD
}
debug {
storeFile file("i:\\androidKey\\mysign1")
storePassword "Fyfyfc"
keyAlias "111"
keyPassword "Fyfyfc"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
buildConfigField 'String', 'BUILD_TIME', '"' + buildTime() + '"'
}
debug {
signingConfig signingConfigs.debug
buildConfigField 'String', 'BUILD_TIME', 'null'
}
}
sourceSets {
main {
manifest {
srcFile 'AndroidManifest.xml'
}
java {
srcDir 'src'
}
res {
srcDir 'res'
}
assets {
srcDir 'assets'
}
resources {
srcDir 'src'
}
aidl {
srcDir 'src'
}
jni {
srcDirs = []
}
jniLibs {
srcDirs 'libs'
}
}
}
}
apply plugin: 'com.google.gms.google-services'