This repository has been archived by the owner on Jan 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathbuild.gradle
111 lines (88 loc) · 3.21 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
107
108
109
110
111
apply plugin: 'com.android.application'
apply plugin: 'crashlytics'
apply plugin: 'newrelic'
android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
lintOptions {
abortOnError false
disable 'MissingTranslation', 'ExtraTranslation'
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
signingConfigs {
release
}
defaultConfig {
applicationId 'com.xda.one'
minSdkVersion 14
targetSdkVersion 21
}
buildTypes {
debug {
applicationIdSuffix '.dev'
}
release {
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
productFlavors {
simple {
ext.enableCrashlytics = false
}
full {
ext.enableCrashlytics = true
}
}
defaultPublishConfig "simpleDebug"
}
dependencies {
compile 'com.google.android.gms:play-services-plus:6.5.+'
compile 'com.google.android.gms:play-services-identity:6.5.+'
compile 'com.crashlytics.android:crashlytics:1.+'
compile 'com.android.support:support-v4:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:cardview-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.squareup.retrofit:retrofit:1.8.0'
compile 'com.squareup.retrofit:converter-jackson:1.8.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.0-rc1'
compile 'com.fasterxml.jackson.core:jackson-core:2.5.0-rc1'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.0-rc1'
compile 'com.squareup:otto:1.3.5'
compile 'net.nightwhistler.htmlspanner:htmlspanner:0.5-SNAPSHOT'
compile 'com.makeramen:roundedimageview:1.3.0'
compile 'me.grantland:autofittextview:0.2.0'
compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'commons-io:commons-io:2.4'
compile 'com.newrelic.agent.android:android-agent:4.+'
compile fileTree(dir: 'libs', include: '*.jar')
}
def Properties props = new Properties()
def propFile = new File('signing.properties')
if (propFile.canRead()) {
props.load(new FileInputStream(propFile))
if (props != null && props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') &&
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
} else {
println 'signing.properties found but some entries are missing'
android.buildTypes.release.signingConfig = null
}
} else {
println 'signing.properties not found'
android.buildTypes.release.signingConfig = null
}