forked from tasks/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
190 lines (163 loc) · 6.71 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
apply plugin: 'com.android.application'
apply plugin: 'checkstyle'
apply plugin: 'io.fabric'
repositories {
jcenter()
google()
}
android {
lintOptions {
lintConfig file("lint.xml")
textOutput 'stdout'
textReport true
}
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
testApplicationId "org.tasks.test"
applicationId "org.tasks"
versionCode 532
versionName "6.0.6"
targetSdkVersion 27
minSdkVersion 15
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
signingConfigs {
release
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
debug {
multiDexEnabled true
testCoverageEnabled true
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
signingConfig signingConfigs.release
}
}
flavorDimensions 'store'
productFlavors {
generic {
dimension 'store'
proguardFile 'generic.pro'
}
googleplay {
dimension 'store'
}
// amazon {
// dimension 'store'
// }
}
if (project.hasProperty('keyAlias') &&
project.hasProperty('storeFile') &&
project.hasProperty('storePassword') &&
project.hasProperty('keyPassword')) {
android.signingConfigs.release.keyAlias = keyAlias
android.signingConfigs.release.storeFile = file(storeFile)
android.signingConfigs.release.storePassword = storePassword
android.signingConfigs.release.keyPassword = keyPassword
} else {
buildTypes.release.signingConfig = null
}
}
task checkstyle(type: Checkstyle) {
source fileTree('src')
include '**/*.java'
exclude '**/gen/**'
classpath = files()
showViolations true
reports {
xml.enabled = true
html.enabled = true
html.destination = "$project.buildDir/reports/checkstyle/checkstyle.html"
}
}
checkstyle {
configFile project.file('google_checks.xml')
toolVersion = '8.8'
}
configurations {
all*.exclude group: 'com.google.guava', module: 'guava-jdk5'
all*.exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
final DAGGER_VERSION = '2.9'
final BUTTERKNIFE_VERSION = '8.8.1'
final GPS_VERSION = '12.0.1'
final SUPPORT_VERSION = '27.1.1'
final ROOM_VERSION = '1.1.0-beta3'
final STETHO_VERSION = '1.5.0'
final TESTING_SUPPORT_VERSION = '1.0.0'
dependencies {
implementation project(':ical4android')
implementation project(':dav4android')
annotationProcessor "com.google.dagger:dagger-compiler:${DAGGER_VERSION}"
implementation "com.google.dagger:dagger:${DAGGER_VERSION}"
implementation "android.arch.persistence.room:rxjava2:${ROOM_VERSION}"
annotationProcessor "android.arch.persistence.room:compiler:${ROOM_VERSION}"
implementation "android.arch.lifecycle:extensions:1.1.1"
implementation "io.reactivex.rxjava2:rxandroid:2.0.1"
implementation "android.arch.paging:runtime:1.0.0-rc1"
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}"
implementation "com.jakewharton:butterknife:${BUTTERKNIFE_VERSION}"
debugImplementation ("com.facebook.stetho:stetho:${STETHO_VERSION}") {
exclude group: 'com.google.code.findbugs', module: 'jsr305'
}
debugImplementation "com.facebook.stetho:stetho-timber:${STETHO_VERSION}@aar"
//noinspection GradleDependency
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
debugImplementation 'com.android.support:multidex:1.0.3'
implementation 'com.evernote:android-job:1.2.5'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.github.rey5137:material:1.2.4'
implementation 'com.nononsenseapps:filepicker:4.1.0'
implementation "com.android.support:design:${SUPPORT_VERSION}"
implementation "com.android.support:support-annotations:${SUPPORT_VERSION}"
implementation "com.android.support:support-v13:${SUPPORT_VERSION}"
implementation "com.android.support:cardview-v7:${SUPPORT_VERSION}"
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.jakewharton.timber:timber:4.7.0'
implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5'
//noinspection GradleDependency
implementation 'com.google.guava:guava:20.0'
implementation 'com.jakewharton:process-phoenix:2.0.0'
implementation 'com.google.android.apps.dashclock:dashclock-api:2.0.0'
implementation 'com.twofortyfouram:android-plugin-api-for-locale:1.0.2'
implementation ('com.rubiconproject.oss:jchronic:0.2.6') {
transitive = false
}
implementation ('org.scala-saddle:google-rfc-2445:20110304') {
transitive = false
}
implementation ('com.wdullaer:materialdatetimepicker:3.5.1') {
exclude group: 'com.android.support', module: 'support-v4'
}
implementation "me.leolin:ShortcutBadger:1.1.18@aar"
implementation 'com.google.apis:google-api-services-tasks:v1-rev47-1.22.0'
implementation 'com.google.api-client:google-api-client-android:1.22.0'
implementation 'com.android.billingclient:billing:1.0'
googleplayImplementation 'com.crashlytics.sdk.android:crashlytics:2.9.1'
googleplayImplementation "com.google.firebase:firebase-core:${GPS_VERSION}"
googleplayImplementation "com.google.android.gms:play-services-location:${GPS_VERSION}"
googleplayImplementation "com.google.android.gms:play-services-auth:${GPS_VERSION}"
googleplayImplementation "com.google.android.gms:play-services-places:${GPS_VERSION}"
// amazonImplementation "com.google.android.gms:play-services-analytics:${GPS_VERSION}"
androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:${DAGGER_VERSION}"
androidTestAnnotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}"
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
androidTestImplementation 'com.natpryce:make-it-easy:4.0.1'
androidTestImplementation "com.android.support.test:runner:${TESTING_SUPPORT_VERSION}"
androidTestImplementation "com.android.support.test:rules:${TESTING_SUPPORT_VERSION}"
androidTestImplementation "com.android.support:support-annotations:${SUPPORT_VERSION}"
}
apply plugin: 'com.google.gms.google-services'