|
1
|
1 |
import com.geekorum.build.configureJavaVersion
|
|
|
2 |
|
|
|
3 |
plugins {
|
|
|
4 |
id("com.android.library")
|
|
|
5 |
kotlin("android")
|
|
|
6 |
id("com.geekorum.build.android-tests")
|
|
|
7 |
id("com.geekorum.build.android-avdl")
|
|
|
8 |
}
|
|
|
9 |
|
|
|
10 |
val artifactId by extra(name)
|
|
|
11 |
|
|
|
12 |
android {
|
|
|
13 |
val compileSdkVersion: String by rootProject.extra
|
|
|
14 |
compileSdkVersion(compileSdkVersion)
|
|
|
15 |
|
|
|
16 |
defaultConfig {
|
|
|
17 |
minSdkVersion(24)
|
|
|
18 |
targetSdkVersion(29)
|
|
|
19 |
}
|
|
|
20 |
configureJavaVersion()
|
|
|
21 |
|
|
|
22 |
buildTypes {
|
|
|
23 |
getByName("release") {
|
|
|
24 |
isMinifyEnabled = false
|
|
|
25 |
proguardFiles(getDefaultProguardFile("proguard-android.txt"),
|
|
|
26 |
"proguard-rules.pro")
|
|
|
27 |
}
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
lintOptions {
|
|
|
31 |
isAbortOnError = false
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
dependencies {
|
|
|
37 |
implementation(enforcedPlatform(kotlin("bom")))
|
|
|
38 |
implementation(kotlin("stdlib-jdk8"))
|
|
|
39 |
|
|
|
40 |
implementation(enforcedPlatform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.3.5"))
|
|
|
41 |
api("org.jetbrains.kotlinx:kotlinx-coroutines-core")
|
|
|
42 |
api("org.jetbrains.kotlinx:kotlinx-coroutines-play-services")
|
|
|
43 |
|
|
|
44 |
implementation("com.jakewharton.timber:timber:4.7.1")
|
|
|
45 |
|
|
|
46 |
implementation("com.crashlytics.sdk.android:crashlytics:2.10.1")
|
|
|
47 |
implementation("com.google.firebase:firebase-crashlytics:17.0.0-beta02")
|
|
|
48 |
|
|
|
49 |
api("com.google.firebase:firebase-firestore-ktx:21.4.1")
|
|
|
50 |
implementation("com.google.firebase:firebase-auth:19.3.0")
|
|
|
51 |
|
|
|
52 |
// not firebase but they often work together so here we are
|
|
|
53 |
implementation("com.google.android.gms:play-services-location:17.0.0")
|
|
|
54 |
|
|
|
55 |
// not firebase but similar to gms api
|
|
|
56 |
implementation("com.google.android.play:core:1.7.1")
|
|
|
57 |
|
|
|
58 |
// fix for guava conflict
|
|
|
59 |
// firebase depends on a older version of these dependencies while testImplementation dependencies
|
|
|
60 |
// depends on new version
|
|
|
61 |
implementation("org.checkerframework:checker-compat-qual:2.5.5")
|
|
|
62 |
implementation("com.google.guava:guava:27.0.1-android")
|
|
|
63 |
}
|