-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
134 lines (110 loc) · 4.64 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
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'com.google.gms.google-services'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
id 'androidx.navigation.safeargs.kotlin'
id 'kotlin-parcelize'
id 'com.google.firebase.crashlytics'
}
android {
compileSdk 31
defaultConfig {
applicationId "dev.forcecodes.truckme"
minSdk 23
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
kapt {
javacOptions {
// These options are normally set automatically via the Hilt Gradle plugin, but we
// set them manually to workaround a bug in the Kotlin 1.5.20
option("-Adagger.fastInit=ENABLED")
option("-Adagger.hilt.android.internal.disableAndroidSuperclassValidation=true")
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
//noinspection DataBindingWithoutKapt
dataBinding true
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs += [
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi",
"-Xuse-experimental=kotlinx.coroutines.FlowPreview"
]
}
flavorDimensions "truckme"
productFlavors {
admin {
dimension "truckme"
applicationIdSuffix ".admin"
versionNameSuffix "-admin"
resValue "string", "app_name", "Truck Me Admin"
}
driver {
dimension "truckme"
applicationIdSuffix ".driver"
versionNameSuffix "-driver"
resValue "string", "app_name", "Truck Me Driver"
}
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation project(path: ':core')
implementation project(path: ':libs')
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
def nav_version = "2.4.0-alpha10"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
implementation 'androidx.hilt:hilt-navigation-fragment:1.0.0'
implementation platform('com.google.firebase:firebase-bom:28.4.0')
implementation 'com.google.firebase:firebase-auth-ktx'
implementation 'com.google.firebase:firebase-storage-ktx'
implementation 'com.google.firebase:firebase-firestore-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'
implementation "androidx.lifecycle:lifecycle-common-java8:2.3.1"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0-alpha03'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0-alpha03"
implementation "com.google.dagger:hilt-android:2.38.1"
kapt "com.google.dagger:hilt-compiler:2.38.1"
implementation 'com.nambimobile.widgets:expandable-fab:1.1.1'
implementation 'com.github.bumptech.glide:glide:4.12.0'
kapt 'com.github.bumptech.glide:compiler:4.12.0'
implementation "androidx.recyclerview:recyclerview:1.3.0-alpha01"
implementation 'com.google.android.gms:play-services-maps:17.0.1'
implementation 'com.google.maps.android:maps-ktx:3.1.0'
implementation "com.google.android.gms:play-services-location:18.0.0"
implementation 'com.google.android.libraries.places:places:2.4.0'
implementation 'com.google.maps.android:android-maps-utils:2.2.6'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.4.1'
// suppress
// Method getAlpnSelectedProtocol not supported for object SSL socket over Socket
implementation "io.grpc:grpc-okhttp:1.32.2"
implementation "com.github.skydoves:powerspinner:1.1.9"
}