-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle
269 lines (200 loc) · 7.75 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
buildscript {
ext.kotlin_version = '1.3.72'
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.karumi.kotlinsnapshot:plugin:2.1.0'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
}
}
repositories {
mavenCentral()
mavenLocal()
google()
maven { url 'https://jitpack.io' }
maven{
url "https://github.com/omadahealth/omada-nexus/raw/master/release"
}
jcenter()
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.karumi.kotlin-snapshot'
android {
dexOptions {
javaMaxHeapSize = "4g"
}
compileSdkVersion 29
buildToolsVersion '29.0.2'
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 133
versionName "0.26.0"
applicationId "com.criptext.mail"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
kotlinOptions {
jvmTarget = "1.8"
}
applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName
}
testOptions {
unitTests {
includeAndroidResources = true
unitTests.returnDefaultValues = true
}
}
packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/main.kotlin_module'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/proguard/coroutines.pro'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
}
}
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:26.1.0'
force 'com.android.support:support-annotations:26.1.0'
cacheChangingModulesFor 0, 'seconds'
}
exclude group: 'com.android.support', module: 'support-v13'
exclude group: 'com.google.guava', module: 'listenablefuture'
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents'
}
dependencies {
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.google.android.play:core-ktx:1.8.1'
// instrumentation tests
androidTestImplementation 'androidx.annotation:annotation:1.0.1'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test:rules:1.1.1'
//Firebase
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
// Room
implementation 'androidx.room:room-runtime:2.1.0-alpha03'
implementation 'androidx.room:room-rxjava2:2.1.0-alpha03'
kapt "androidx.room:room-compiler:2.1.0-alpha03"
//sqlite-android
implementation 'io.requery:sqlite-android:3.27.2'
// Robolectric
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:3.5.1'
// test utils
testImplementation "io.mockk:mockk:1.9.1"
androidTestImplementation "io.mockk:mockk-android:1.9.1"
//testImplementation 'com.github.GAumala:KotlinSnapshot:0.1'
// Kluent
testImplementation 'org.amshove.kluent:kluent:1.41'
androidTestImplementation 'org.amshove.kluent:kluent-android:1.41'
// Support v4
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
//easy dialog
implementation 'com.github.michaelye.easydialog:easydialog:1.4'
// Result
implementation 'com.github.kittinunf.result:result:1.0.5'
// notification badge
implementation 'com.nex3z:notification-badge:0.2.0'
//Circle Image View
implementation 'de.hdodenhof:circleimageview:3.1.0'
//Caligraphy
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'
//Picasso
implementation 'com.squareup.picasso:picasso:2.71828'
//Gifs
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.1.+'
//Swipe Option
implementation 'com.github.jorgeblacio:SwipeRevealLayout:android_x-SNAPSHOT'
//Http client
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
testImplementation 'com.squareup.okhttp3:mockwebserver:3.9.1'
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:3.9.1'
// autocomplete
implementation 'com.github.splitwise:TokenAutoComplete:7006df0'
// signal
implementation 'org.whispersystems:signal-protocol-android:2.3.0'
//org.json
testImplementation 'org.json:json:20180130'
// Stetho core
implementation 'com.facebook.stetho:stetho:1.5.1'
//network helper
implementation 'com.facebook.stetho:stetho-okhttp:1.5.1'
// missMe -> ProgressDialog alternative
implementation 'com.lmntrx.android.library.livin.missme:missme:0.1.5'
// easy permissions
implementation 'pub.devrel:easypermissions:0.3.1'
// jsoup -> Parse html
implementation 'org.jsoup:jsoup:1.10.1'
// constraint layout
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
//Rich Editor
implementation 'jp.wasabeef:richeditor-android:1.2.2'
//neovisionaries
implementation 'com.neovisionaries:nv-websocket-client:1.31'
//Firebase Crashlytics SDK.
implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
implementation 'com.github.danieltigse:TimeDurationPicker:0.3'
implementation 'androidx.multidex:multidex:2.0.0'
// file picker
implementation 'com.github.jorgeblacio:Android-FilePicker:fixes-SNAPSHOT'
implementation 'com.madgag.spongycastle:core:1.54.0.0'
implementation 'com.airbnb.android:lottie:3.5.0'
implementation 'com.inkapplications.viewpageindicator:library:2.4.4'
implementation 'com.beardedhen:androidbootstrap:2.3.2'
implementation 'com.otaliastudios:zoomlayout:1.3.0'
//Lollipin
implementation ('com.github.jorgeblacio:LolliPin:fingerprint_fix-SNAPSHOT'){
transitive = true
}
// Tap view target for Start Guide
implementation 'uk.co.samuelwall:material-tap-target-prompt:2.14.0'
//SemVer comparator
implementation 'com.g00fy2:versioncompare:1.2.8'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.http-client:google-http-client-gson:1.29.2'
implementation('com.google.api-client:google-api-client-android:1.29.2')
implementation('com.google.apis:google-api-services-drive:v3-rev165-1.25.0')
//JOB SCHEDULER
implementation 'com.evernote:android-job:1.4.2'
//WorkManager
def work_version = "2.3.4"
// Kotlin + coroutines
implementation "androidx.work:work-runtime-ktx:$work_version"
// optional - RxJava2 support
implementation "androidx.work:work-rxjava2:$work_version"
// optional - GCMNetworkManager support
implementation "androidx.work:work-gcm:$work_version"
}
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'