-
Notifications
You must be signed in to change notification settings - Fork 318
/
dependencies.gradle
198 lines (177 loc) · 11.1 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
ext {
def kotlinVersion = "1.5.31"
androidVersions = [
minSdkVersion : 21,
targetSdkVersion : 30,
compileSdkVersion : 31,
]
// 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 = '82.0.0'
}
println("Navigation Native version: " + mapboxNavigatorVersion)
version = [
mapboxMapSdk : '10.2.0-rc.1',
mapboxSdkServices : '6.2.0-beta.2',
mapboxEvents : '8.1.0',
mapboxCore : '5.0.0',
mapboxNavigator : "${mapboxNavigatorVersion}",
mapboxCommonNative : '21.0.0-rc.2',
mapboxCrashMonitor : '2.0.0',
mapboxAnnotationPlugin : '0.8.0',
mapboxBaseAndroid : '0.5.0',
androidXLifecycle : '2.4.0',
androidXCoreVersion : '1.6.0',
androidXAppCompatVersion : '1.3.1',
androidXPreferenceVersion : '1.1.0',
androidXAnnotationVersion : '1.2.0',
androidXFragmentVersion : '1.4.0',
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',
butterknife : '10.1.0',
leakCanaryVersion : '2.7',
espressoVersion : '3.1.0',
commonsIO : '2.6',
robolectric : '4.7.3',
mockwebserver : '4.9.0',
gmsLocation : '17.0.0',
ktlint : '0.41.0',
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.1',
androidxTest : '1.3.0',
barista : '3.2.0',
svgParser : '1.4',
androidStartup : '1.0.0',
]
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}",
mapboxEvents : "com.mapbox.mapboxsdk:mapbox-android-telemetry:${version.mapboxEvents}",
mapboxCore : "com.mapbox.mapboxsdk:mapbox-android-core:${version.mapboxCore}",
mapboxNavigator : "com.mapbox.navigator:mapbox-navigation-native:${version.mapboxNavigator}",
mapboxCommonNative : "com.mapbox.common:common:${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}",
// butterknife
butterKnife : "com.jakewharton:butterknife:${version.butterknife}",
butterKnifeProcessor : "com.jakewharton:butterknife-compiler:${version.butterknife}",
// 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}",
// 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}",
// square crew
leakCanaryDebug : "com.squareup.leakcanary:leakcanary-android:${version.leakCanaryVersion}",
// instrumentation test
testRunner : "androidx.test:runner:${version.androidxTest}",
testOrchestrator : "androidx.test:orchestrator:${version.androidxTest}",
testRules : "androidx.test:rules:${version.androidxTest}",
testEspressoCore : "androidx.test.espresso:espresso-core:${version.espressoVersion}",
testEspressoContrib : "androidx.test.espresso:espresso-contrib:${version.espressoVersion}",
testEspressoIntents : "androidx.test.espresso:espresso-intents:${version.espressoVersion}",
androidxTestJunit : "androidx.test.ext:junit:${version.androidxTestJunit}",
barista : "com.schibsted.spain:barista:${version.barista}",
// unit test
junit : "junit:junit:${version.junit}",
mockito : "org.mockito:mockito-core:${version.mockito}",
mockk : "io.mockk:mockk:${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}",
// Test app crashlytics
firebaseCrashlyticsNdk : "com.google.firebase:firebase-crashlytics-ndk:${version.firebaseCrashlytics}"
]
pluginVersion = [
checkstyle : '8.2',
pmd : '5.8.1',
gradle : '7.0.4',
dependencyGraph : '0.5.0',
dependencyUpdates : '0.29.0',
kotlin : kotlinVersion,
license : '0.8.5',
jacoco : '0.2',
googleServices : '4.3.3',
mapboxSdkVersions : '1.1.3',
dokka : '1.4.20',
mapboxSdkRegistry : '0.4.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}",
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}"
]
}