-
Notifications
You must be signed in to change notification settings - Fork 319
/
Copy pathdependencies.gradle
224 lines (201 loc) · 12.9 KB
/
dependencies.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
ext {
def kotlinVersion = "1.5.31"
androidVersions = [
minSdkVersion : 21,
targetSdkVersion : 34,
compileSdkVersion : 34,
carMinSdkVersion : 23
]
// Navigation Native CI can run SDK CI downstream with forced Navigation Native version
// in this case `FORCE_MAPBOX_NAVIGATION_NATIVE_VERSION` environment variable will contain
// version which we should use in this build
def mapboxNavigatorVersion = System.getenv("FORCE_MAPBOX_NAVIGATION_NATIVE_VERSION")
if (mapboxNavigatorVersion == null || mapboxNavigatorVersion == '') {
mapboxNavigatorVersion = '203.0.0'
}
println("Navigation Native version: " + mapboxNavigatorVersion)
def androidXWorkManagerVersion = project.hasProperty('WORK_MANAGER_VERSION') ? project.property('WORK_MANAGER_VERSION') : '2.7.0'
println("AndroidX Work Manager version: " + androidXWorkManagerVersion)
def androidXLifecycleVersion = project.hasProperty('ANDROIDX_LIFECYCLE_VERSION') ? project.property('ANDROIDX_LIFECYCLE_VERSION') : '2.4.0'
println("AndroidX Lifecycle version: " + androidXLifecycleVersion)
version = [
mapboxMapSdk : '10.16.6',
mapboxSdkServices : '6.15.0',
mapboxNavigator : "${mapboxNavigatorVersion}",
mapboxCommonNative : '23.9.1',
mapboxCrashMonitor : '2.0.0',
mapboxAnnotationPlugin : '0.8.0',
mapboxBaseAndroid : '0.8.0',
mapboxMapsAndroidAuto : '0.5.0',
mapboxSearchAndroidAuto : '1.0.0-rc.1',
androidXLifecycle : "${androidXLifecycleVersion}",
androidXCoreVersion : '1.6.0',
androidXArchCoreVersion : '2.1.0',
androidXAppCompatVersion : '1.3.1',
androidXPreferenceVersion : '1.1.0',
androidXAnnotationVersion : '1.2.0',
androidXFragmentVersion : '1.3.0',
androidXDataStore : '1.0.0',
androidXWorkManager : "${androidXWorkManagerVersion}",
cardViewVersion : '1.0.0',
recyclerViewVersion : '1.1.0',
materialDesignVersion : '1.1.0',
autoValue : '1.5.4',
autoValueParcel : '0.2.5',
junit : '4.12',
constraintLayout : '1.1.3',
mockito : '2.23.4',
mockkVersion : '1.12.1',
leakCanaryVersion : '2.9.1',
commonsIO : '2.6',
robolectric : '4.7.3',
mockwebserver : '4.9.0',
gmsLocation : '17.0.0',
ktlint : '0.47.1',
kotlinStdLib : kotlinVersion,
firebaseCrashlytics : '17.3.1',
multidex : '2.0.1',
json : '20180813',
coroutinesAndroid : '1.5.1',
okhttp : '4.9.0',
okio : '2.10.0',
androidxTestJunit : '1.1.3',
androidxTest : '1.4.0',
androidxTestOrchestrator : '1.4.1',
barista : '4.2.0',
svgParser : '1.4',
androidStartup : '1.0.0',
viewBinding : '7.2.1',
glide : '4.13.2',
]
dependenciesList = [
// mapbox
mapboxMapSdk : "com.mapbox.maps:android:${version.mapboxMapSdk}",
mapboxSdkServices : "com.mapbox.mapboxsdk:mapbox-sdk-services:${version.mapboxSdkServices}",
mapboxSdkServicesCore : "com.mapbox.mapboxsdk:mapbox-sdk-core:${version.mapboxSdkServices}",
mapboxSdkGeoJSON : "com.mapbox.mapboxsdk:mapbox-sdk-geojson:${version.mapboxSdkServices}",
mapboxSdkTurf : "com.mapbox.mapboxsdk:mapbox-sdk-turf:${version.mapboxSdkServices}",
mapboxSdkDirectionsModels : "com.mapbox.mapboxsdk:mapbox-sdk-directions-models:${version.mapboxSdkServices}",
mapboxSdkRefreshModels : "com.mapbox.mapboxsdk:mapbox-sdk-directions-refresh-models:${version.mapboxSdkServices}",
mapboxNavigator : "com.mapbox.navigator:mapbox-navigation-native:${version.mapboxNavigator}",
mapboxCommonNative : "com.mapbox.common:common:${version.mapboxCommonNative}",
mapboxMapsAndroidAuto : "com.mapbox.extension:maps-androidauto:${version.mapboxMapsAndroidAuto}",
mapboxSearchAndroidAuto : "com.mapbox.search:mapbox-search-android:${version.mapboxSearchAndroidAuto}",
/**
* explicitly define Mapbox OkHttp dependency so that we are sure it's in sync with the Common SDK version we define
* and we're not relying on Mapbox OKHttp coming in transitively
*/
mapboxCommonOkHttp : "com.mapbox.common:okhttp:${version.mapboxCommonNative}",
mapboxAnnotationPlugin : "com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:${version.mapboxAnnotationPlugin}",
mapboxCrashMonitor : "com.mapbox.crashmonitor:mapbox-crash-monitor-native:${version.mapboxCrashMonitor}",
mapboxAnnotations : "com.mapbox.base:annotations:${version.mapboxBaseAndroid}",
mapboxAnnotationsProcessor: "com.mapbox.base:annotations-processor:${version.mapboxBaseAndroid}",
mapboxAndroidCommon : "com.mapbox.base:common:${version.mapboxBaseAndroid}",
mapboxLogger : "com.mapbox.common:logger:${version.mapboxBaseAndroid}",
// Kotlin
kotlinStdLib : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${version.kotlinStdLib}",
kotlinReflect : "org.jetbrains.kotlin:kotlin-reflect:${version.kotlinStdLib}",
// Coroutines and Channels
coroutinesAndroid : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${version.coroutinesAndroid}",
coroutinesTestAndroid : "org.jetbrains.kotlinx:kotlinx-coroutines-test:${version.coroutinesAndroid}",
coroutinesCore : "org.jetbrains.kotlinx:kotlinx-coroutines-core:${version.coroutinesAndroid}",
// code style
ktlint : "com.pinterest:ktlint:${version.ktlint}",
// network
okhttp : "com.squareup.okhttp3:okhttp:${version.okhttp}",
okhttpInterceptor : "com.squareup.okhttp3:logging-interceptor:${version.okhttp}",
// I/O
okio : "com.squareup.okio:okio:${version.okio}",
// AutoValue
autoValue : "com.google.auto.value:auto-value:${version.autoValue}",
autoValuesParcel : "com.ryanharter.auto.value:auto-value-parcel:${version.autoValueParcel}",
autoValuesParcelAdapter : "com.ryanharter.auto.value:auto-value-parcel-adapter:${version.autoValueParcel}",
// support
androidXAnnotation : "androidx.annotation:annotation:${version.androidXAnnotationVersion}",
androidXAppCompat : "androidx.appcompat:appcompat:${version.androidXAppCompatVersion}",
androidXCore : "androidx.core:core:${version.androidXCoreVersion}",
androidXCoreKtx : "androidx.core:core-ktx:${version.androidXCoreVersion}",
materialDesign : "com.google.android.material:material:${version.materialDesignVersion}",
androidXRecyclerView : "androidx.recyclerview:recyclerview:${version.recyclerViewVersion}",
androidXCardView : "androidx.cardview:cardview:${version.cardViewVersion}",
androidXConstraintLayout : "androidx.constraintlayout:constraintlayout:${version.constraintLayout}",
androidXPreference : "androidx.preference:preference-ktx:${version.androidXPreferenceVersion}",
androidStartup : "androidx.startup:startup-runtime:${version.androidStartup}",
androidXFragment : "androidx.fragment:fragment-ktx:${version.androidXFragmentVersion}",
androidXArchCoreTesting : "androidx.arch.core:core-testing:${version.androidXArchCoreVersion}",
androidXDataStore : "androidx.datastore:datastore-preferences:${version.androidXDataStore}",
androidXWorkManager : "androidx.work:work-runtime-ktx:${version.androidXWorkManager}",
// lifecycle
androidXLifecycleRuntime : "androidx.lifecycle:lifecycle-runtime-ktx:${version.androidXLifecycle}",
androidXLifecycleLivedata : "androidx.lifecycle:lifecycle-livedata-ktx:${version.androidXLifecycle}",
androidXLifecycleViewmodel: "androidx.lifecycle:lifecycle-viewmodel-ktx:${version.androidXLifecycle}",
androidXLifecycleTesting : "androidx.lifecycle:lifecycle-runtime-testing:${version.androidXLifecycle}",
// square crew
leakCanaryDebug : "com.squareup.leakcanary:leakcanary-android:${version.leakCanaryVersion}",
// instrumentation test
testRunner : "androidx.test:runner:${version.androidxTest}",
testOrchestrator : "androidx.test:orchestrator:${version.androidxTestOrchestrator}",
testRules : "androidx.test:rules:${version.androidxTest}",
androidxTestJunit : "androidx.test.ext:junit:${version.androidxTestJunit}",
barista : "com.adevinta.android:barista:${version.barista}",
// unit test
junit : "junit:junit:${version.junit}",
mockito : "org.mockito:mockito-core:${version.mockito}",
mockk : "io.mockk:mockk:${version.mockkVersion}",
mockkAndroid : "io.mockk:mockk-android:${version.mockkVersion}",
commonsIO : "commons-io:commons-io:${version.commonsIO}",
robolectric : "org.robolectric:robolectric:${version.robolectric}",
mockwebserver : "com.squareup.okhttp3:mockwebserver:${version.mockwebserver}",
json : "org.json:json:${version.json}",
androidxTestCore : "androidx.test:core:${version.androidxTest}",
// play services
gmsLocation : "com.google.android.gms:play-services-location:${version.gmsLocation}",
multidex : "androidx.multidex:multidex:${version.multidex}",
svgParser : "com.caverock:androidsvg-aar:${version.svgParser}",
glide : "com.github.bumptech.glide:glide:${version.glide}",
viewBinding : "androidx.databinding:viewbinding:${version.viewBinding}",
// Test app crashlytics
firebaseCrashlyticsNdk : "com.google.firebase:firebase-crashlytics-ndk:${version.firebaseCrashlytics}"
]
pluginVersion = [
checkstyle : '8.2',
pmd : '5.8.1',
gradle : '7.2.2',
dependencyGraph : '0.5.0',
dependencyUpdates : '0.29.0',
kotlin : kotlinVersion,
license : '0.8.80',
// Used by license. Add this dependency explicitly,
// because the version used by license has been removed from the repository.
// This dependency may be removed when we bump license version.
kotlinHtmlJvm : '0.7.2',
jacoco : '0.2',
googleServices : '4.3.3',
mapboxSdkVersions : '1.1.3',
dokka : '1.6.21',
mapboxSdkRegistry : '0.7.0',
mapboxAccessToken : '0.2.1',
mapboxNativeDownload : '0.2.2',
firebaseCrashlytics : '2.5.1'
]
pluginDependencies = [
gradle : "com.android.tools.build:gradle:${pluginVersion.gradle}",
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:${pluginVersion.kotlin}",
checkstyle : "com.puppycrawl.tools:checkstyle:${pluginVersion.checkstyle}",
license : "com.jaredsburrows:gradle-license-plugin:${pluginVersion.license}",
// Used by license. Add this dependency explicitly,
// because the version used by license has been removed from the repository.
// This dependency may be removed when we bump license version.
kotlinHtmlJvm : "org.jetbrains.kotlinx:kotlinx-html-jvm:${pluginVersion.kotlinHtmlJvm}",
dependencyGraph : "com.vanniktech:gradle-dependency-graph-generator-plugin:${pluginVersion.dependencyGraph}",
dependencyUpdates : "com.github.ben-manes:gradle-versions-plugin:${pluginVersion.dependencyUpdates}",
jacoco : "com.hiya:jacoco-android:${pluginVersion.jacoco}",
googleServices : "com.google.gms:google-services:${pluginVersion.googleServices}",
mapboxSdkVersions : "com.mapbox.mapboxsdk:mapbox-android-sdk-versions:${pluginVersion.mapboxSdkVersions}",
dokka : "org.jetbrains.dokka:dokka-gradle-plugin:${pluginVersion.dokka}",
mapboxSdkRegistry : "com.mapbox.gradle.plugins:sdk-registry:${pluginVersion.mapboxSdkRegistry}",
mapboxAccessToken : "com.mapbox.gradle.plugins:access-token:${pluginVersion.mapboxAccessToken}",
mapboxNativeDownload : "com.mapbox.gradle.plugins:native-download:${pluginVersion.mapboxNativeDownload}",
firebaseCrashlytics : "com.google.firebase:firebase-crashlytics-gradle:${pluginVersion.firebaseCrashlytics}"
]
}