forked from federicoiosue/Omni-Notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
207 lines (185 loc) · 7.53 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/*
* Copyright (C) 2015 Federico Iosue ([email protected])
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
android {
if (project.hasProperty("SIGN_PROPS")
&& new File(project.property("SIGN_PROPS").toString()).exists()) {
Properties props = new Properties()
props.load(new FileInputStream(file(project.property("SIGN_PROPS"))))
signingConfigs {
signConfig {
storeFile file(props['keystore'])
storePassword props['keystore.password']
keyAlias props['keystore.alias']
keyPassword props['keystore.alias.password']
}
}
}
compileSdkVersion Integer.parseInt(project.TARGET_SDK)
buildToolsVersion project.BUILD_TOOLS
defaultConfig {
applicationId project.PACKAGE
minSdkVersion project.MIN_SDK
targetSdkVersion project.TARGET_SDK
versionName project.VERSION_NAME
versionCode Integer.parseInt(project.VERSION_CODE)
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
multiDexEnabled true
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
buildTypes {
debug {
testCoverageEnabled false
}
release {
minifyEnabled true
shrinkResources false
multiDexEnabled false
testCoverageEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "OmniNotes-${variant.name}-${variant.versionName}.apk"
}
}
if (project.hasProperty("SIGN_PROPS")
&& new File(project.property("SIGN_PROPS").toString()).exists()) {
signingConfig signingConfigs.signConfig
}
}
}
flavorDimensions "standard"
productFlavors {
play {
dimension "standard"
}
foss {
dimension "standard"
applicationId project.PACKAGE + ".foss"
}
}
lintOptions {
abortOnError false
disable 'MissingTranslation'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'org.powermock:powermock:1.6.5'
testCompile 'org.powermock:powermock-module-junit4:1.6.5'
testCompile 'org.powermock:powermock-api-mockito:1.6.5'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
compile fileTree(include: '*.jar', dir: 'libs')
compile 'com.github.flavienlaurent.datetimepicker:library:0.0.2'
compile 'com.larswerkman:HoloColorPicker:1.4'
compile 'com.jakewharton:disklrucache:2.0.2'
compile 'de.keyboardsurfer.android.widget:crouton:1.8.4@aar'
compile 'com.google.android.apps.dashclock:dashclock-api:2.0.0'
compile('ch.acra:acra:4.8.5') {
exclude group: 'org.json'
}
compile 'com.github.gabrielemariotti.changeloglib:changelog:2.0.0'
compile 'be.billington.calendar.recurrencepicker:library:1.1.1'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:multidex:1.0.1'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.pushbullet:android-extensions:1.0.4@aar'
compile 'com.getbase:floatingactionbutton:1.10.1'
compile 'com.nhaarman.listviewanimations:lib-core:3.1.0@aar'
compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0@aar'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile('com.github.afollestad.material-dialogs:core:0.8.5.6@aar') {
transitive = true
}
compile('com.github.afollestad.material-dialogs:commons:0.8.5.6@aar') {
transitive = true
}
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
compile ('com.jakewharton:butterknife:8.5.1'){
exclude group: 'com.android.support'
}
compile('org.mnode.ical4j:ical4j:1.0.6') {
exclude group: 'commons.io'
}
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
compile 'com.pnikosis:materialish-progress:1.5'
compile 'com.github.paolorotolo:appintro:1.3.0'
compile 'io.reactivex:rxandroid:1.0.1'
compile 'io.reactivex:rxjava:1.0.14'
compile 'com.artemzin.rxjava:proguard-rules:1.0.14.2'
compile 'com.tbruyelle.rxpermissions:rxpermissions:0.4.2@aar'
compile 'org.ocpsoft.prettytime:prettytime:3.2.7.Final'
compile ('com.github.federicoiosue:SimpleGallery:2.0.0') {
exclude group: 'com.android.support'
}
compile 'com.github.federicoiosue:Springpad-Importer:1.0.1'
compile 'com.github.federicoiosue:Omni-Notes-Commons:1.2.0'
compile ('com.github.federicoiosue:checklistview:3.2.1') {
transitive=false
}
compile 'com.github.federicoiosue:pixlui:2.6'
// Flavors specific dependecies
playCompile 'io.nlopez.smartlocation:library:3.2.4'
fossCompile 'com.github.federicoiosue:smart-location-lib:3.2.5'
playCompile ('com.github.federicoiosue:analitica:0.0.3:googleAnalyticsRelease@aar'){
transitive=true
}
fossCompile ('com.github.federicoiosue:analitica:0.0.3:piwikRelease@aar'){
transitive=true
}
playCompile 'com.google.android.gms:play-services-analytics:9.0.2'
fossCompile ('org.piwik.sdk:piwik-sdk:1.0.2'){
exclude group: 'com.jakewharton.timber', module: 'timber'
}
fossCompile 'com.jakewharton.timber:timber:4.5.1'
testCompile 'junit:junit:4.12'
}
configurations.all {
exclude group: 'commons-logging', module: 'commons-logging'
resolutionStrategy.force 'com.android.support:support-annotations:24.0.0'
}
android.productFlavors.each { flavor ->
String analyticsUrl = flavor.name == 'foss' && ANALYTICS_PARAMS_FOSS?.trim() ? ANALYTICS_PARAMS_FOSS : ANALYTICS_PARAMS
flavor.buildConfigField 'String', 'ANALYTICS_PARAMS', '"' + analyticsUrl + '"'
flavor.buildConfigField 'String', 'CRASH_REPORTING_URL', '"' + CRASH_REPORTING_URL + '"'
flavor.buildConfigField 'String', 'VERSION_CHECK_URL', '"' + VERSION_CHECK_URL + '"'
flavor.buildConfigField 'String', 'MAPS_API_KEY', '"' + MAPS_API_KEY + '"'
}
apply plugin: 'jacoco-android'
jacocoAndroidUnitTestReport {
csv.enabled false
html.enabled true
xml.enabled true
}
jacoco {
toolVersion = "0.7.5.201505241946"
}