forked from SimpleAppProjects/SimpleWeather-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
121 lines (101 loc) · 3.76 KB
/
build.gradle
File metadata and controls
121 lines (101 loc) · 3.76 KB
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
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
}
android {
compileSdk 31
defaultConfig {
minSdk 21
targetSdk 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
vectorDrawables.useSupportLibrary = true
javaCompileOptions {
annotationProcessorOptions {
arguments += [
"room.schemaLocation": "$projectDir/schemas".toString(),
"room.incremental": "true",
"room.expandProjection": "true"
]
}
}
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled true
}
}
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
sourceSets {
androidTest {
// Adds exported schema location as test app assets.
assets.srcDirs += files("$projectDir/schemas".toString())
}
}
flavorDimensions 'gms'
productFlavors {
nongms {
dimension 'gms'
buildConfigField "boolean", "IS_NONGMS", "true"
}
fullgms {
dimension 'gms'
buildConfigField "boolean", "IS_NONGMS", "false"
}
}
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
// Unit Testing
androidTestImplementation 'androidx.test:core:1.4.0'
// AndroidJUnitRunner and JUnit Rules
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
// Assertions
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.ext:truth:1.4.0'
androidTestImplementation 'com.google.truth:truth:1.1.3'
// Kotlin
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinx_version"
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
// Room migration testing
androidTestImplementation "androidx.room:room-testing:$room_version"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.paging:paging-runtime-ktx:3.1.1'
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
implementation 'com.jakewharton.timber:timber:5.0.1'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.ibm.icu:icu4j:71.1'
fullgmsImplementation 'com.google.android.gms:play-services-base:18.1.0'
fullgmsImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$kotlinx_version"
// Firebase
fullgmsImplementation platform("com.google.firebase:firebase-bom:$firebase_version")
fullgmsImplementation 'com.google.firebase:firebase-analytics'
fullgmsImplementation 'com.google.firebase:firebase-crashlytics'
fullgmsImplementation 'com.google.firebase:firebase-auth'
fullgmsImplementation 'com.google.firebase:firebase-firestore'
fullgmsImplementation 'com.google.firebase:firebase-storage'
fullgmsImplementation 'com.google.firebase:firebase-database'
fullgmsImplementation ('com.google.firebase:firebase-config') {
version {
strictly '21.0.2'
}
}
}