forked from woohyeok-choi/ABC-Logger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
257 lines (218 loc) · 7.9 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
apply plugin: "com.android.application"
apply plugin: "kotlin-android"
apply plugin: "kotlin-android-extensions"
apply plugin: "kotlin-kapt"
apply plugin: "com.google.protobuf"
apply plugin: "com.google.firebase.crashlytics"
apply plugin: "com.google.gms.google-services"
apply plugin: "io.objectbox"
apply plugin: "androidx.navigation.safeargs.kotlin"
apply from: "../config.gradle"
kapt {
correctErrorTypes = true
}
android {
signingConfigs {
abclogger {
storeFile file(rootProject.ext.keystore_path)
storePassword rootProject.ext.keystore_password
keyAlias rootProject.ext.key_alias
keyPassword rootProject.ext.key_password
}
}
compileSdkVersion 30
buildToolsVersion "30.0.2"
packagingOptions {
exclude("META-INF/proguard/androidx-annotations.pro")
}
buildFeatures {
dataBinding true
viewBinding true
}
dexOptions {
maxProcessCount 6
javaMaxHeapSize "4g"
}
defaultConfig {
applicationId "kaist.iclab.abclogger"
minSdkVersion 24
targetSdkVersion 30
versionCode 43
versionName "0.9.9-omicron"
setProperty("archivesBaseName", "$applicationId-v.$versionName")
buildConfigField("Boolean", "GENERATE_DUMMY_ENTITY", "false")
buildConfigField("String", "SERVER_ADDRESS", "\"${rootProject.ext.server_address}\"")
buildConfigField("String", "SERVER_AUTH_TOKEN", "\"${rootProject.ext.server_auth_token}\"")
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.abclogger
}
debug {
debuggable true
signingConfig signingConfigs.abclogger
}
staging {
debuggable true
buildConfigField("String", "SERVER_ADDRESS", "\"${rootProject.ext.test_server_address}\"")
buildConfigField("Boolean", "GENERATE_DUMMY_ENTITY", "true")
signingConfig signingConfigs.abclogger
}
}
sourceSets {
main.java.srcDirs += "src/main/kotlin"
test.java.srcDirs += "src/test/kotlin"
main.proto.srcDirs += "grpc"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ["*.aar"], dir: "libs")
/**
* Kotlin
*/
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.20"
implementation "org.jetbrains.kotlin:kotlin-reflect:1.4.20"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.3.9"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"
implementation "javax.annotation:javax.annotation-api:1.3.2"
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
/**
* Koin for dependency injection
*/
implementation "org.koin:koin-core:2.1.6"
implementation "org.koin:koin-android:2.1.6"
implementation "org.koin:koin-androidx-viewmodel:2.1.6"
/**
* Eventbus for delivering events
*/
implementation 'org.greenrobot:eventbus:3.2.0'
/**
* Firebase
*/
implementation "com.google.firebase:firebase-core:20.0.0"
implementation "com.google.firebase:firebase-iid:21.1.0"
implementation "com.google.firebase:firebase-auth:21.0.1"
implementation "com.google.firebase:firebase-crashlytics:18.2.4"
/**
* Material UI
*/
implementation "com.google.android.material:material:1.3.0-alpha03"
/**
* Android X Support libraries
*/
implementation "androidx.core:core-ktx:1.3.1" // DO NOT update this (1.3.1): (error) LifecycleOwners must call register before they are STARTED.
implementation "androidx.activity:activity-ktx:1.2.0-alpha08" // DO NOT update this (1.2.0-alpha08): (error) LifecycleOwners must call register before they are STARTED.
implementation "androidx.fragment:fragment-ktx:1.3.0-alpha08" // DO NOT update this (1.3.0-alpha08): (error) LifecycleOwners must call register before they are STARTED.
implementation "androidx.core:core-ktx:1.3.2"
implementation "androidx.preference:preference-ktx:1.1.1"
implementation "androidx.paging:paging-common-ktx:3.0.0-alpha08"
implementation "androidx.paging:paging-runtime-ktx:3.0.0-alpha08"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
implementation "androidx.lifecycle:lifecycle-livedata-core-ktx:2.2.0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0"
implementation "androidx.work:work-runtime-ktx:2.4.0"
implementation "androidx.navigation:navigation-fragment-ktx:2.3.1"
implementation "androidx.navigation:navigation-ui-ktx:2.3.1"
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation "androidx.appcompat:appcompat:1.2.0"
implementation "androidx.media:media:1.2.0"
implementation "androidx.recyclerview:recyclerview:1.2.0-alpha06"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
/**
* Google GMS libraries for login, location, and fitness data retrieval
*/
implementation "com.google.android.gms:play-services-auth:19.2.0"
implementation "com.google.android.gms:play-services-location:18.0.0"
implementation "com.google.android.gms:play-services-fitness:20.0.0"
/**
* Tedpermission to grant simply users" permission
*/
implementation "gun0912.ted:tedpermission-rx2:2.2.3"
/**
* Koap for easy-to-use of shared preferences
*/
implementation "com.github.AgustaRC.koap:koap:1.0.1"
implementation "com.github.AgustaRC.koap:koap-gson-serializer:1.0.1"
implementation "com.google.code.gson:gson:2.8.6"
/**
* Objectbox for android database
*/
implementation "io.objectbox:objectbox-kotlin:2.7.1"
/**
* Moshi for jsonifing object
*/
implementation 'com.squareup.moshi:moshi:1.11.0'
implementation 'com.squareup.moshi:moshi-kotlin:1.11.0'
implementation 'com.squareup.moshi:moshi-adapters:1.11.0'
/**
* Fuel for http connection
*/
implementation 'com.github.kittinunf.fuel:fuel:2.3.0'
implementation 'com.github.kittinunf.fuel:fuel-android:2.3.0'
implementation 'com.github.kittinunf.fuel:fuel-coroutines:2.3.0'
/**
* rxJava 3.0.0 for reactive pattern
*/
implementation 'io.reactivex.rxjava3:rxjava:3.0.6'
/**
* gRPC
*/
implementation "io.grpc:grpc-okhttp:1.32.1"
implementation "io.grpc:grpc-protobuf:1.32.1"
implementation 'io.grpc:grpc-stub:1.32.1'
implementation 'io.grpc:grpc-kotlin-stub:0.2.0'
/**
* For compatibility of Polar API
*/
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
/**
* Other utils
*/
implementation "commons-io:commons-io:2.6"
implementation "com.ibm.icu:icu4j:67.1"
implementation "com.github.bumptech.glide:glide:4.11.0"
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.13.0"
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:1.32.1"
}
grpckt {
artifact = "io.grpc:protoc-gen-grpc-kotlin:0.1.5"
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option "lite"
}
}
task.plugins {
grpc {
option "lite"
}
grpckt {
option "lite"
}
}
}
}
}