Skip to content

Commit d2d663a

Browse files
committed
fix(android): plugin build fix
1 parent 44a1f82 commit d2d663a

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

packages/ui-mapbox/platforms/android/include.gradle

+19-15
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,31 @@ dependencies {
1010
def mapboxPluginsVersion = project.hasProperty("mapboxPluginsVersion") ? project.mapboxPluginsVersion : "v9"
1111
def mapboxAnnotationPluginVersion = project.hasProperty("mapboxAnnotationPluginVersion") ? project.mapboxAnnotationPluginVersion : "0.9.0"
1212
def mapboxGesturesVersion = project.hasProperty("mapboxGesturesVersion") ? project.mapboxGesturesVersion : "0.7.0"
13-
def squareupVersion = project.hasProperty("squareupVersion") ? project.mapboxGesturesVersion : "4.9.0"
14-
15-
implementation "com.mapbox.mapboxsdk:mapbox-android-telemetry:$mapboxTelemetryVersion"
16-
17-
implementation "com.mapbox.mapboxsdk:mapbox-sdk-geojson:$mapboxServicesVersion"
18-
19-
implementation ("com.mapbox.mapboxsdk:mapbox-android-sdk:$mapboxVersion"){
13+
def okHttpVersion = project.hasProperty("okHttpVersion") ? project.okHttpVersion : "4.9.0"
14+
implementation ("com.mapbox.mapboxsdk:mapbox-android-sdk:$mapboxVersion") {
2015
transitive=false
2116
}
2217

23-
implementation "com.mapbox.mapboxsdk:mapbox-android-gestures:$mapboxGesturesVersion"
24-
25-
// service library
26-
27-
implementation "com.mapbox.mapboxsdk:mapbox-sdk-services:$mapboxServicesVersion"
18+
implementation ("com.mapbox.mapboxsdk:mapbox-android-telemetry:$mapboxTelemetryVersion") {
19+
transitive=false
20+
}
21+
implementation ("com.mapbox.mapboxsdk:mapbox-sdk-geojson:$mapboxServicesVersion"){
22+
transitive=false
23+
}
24+
implementation ("com.mapbox.mapboxsdk:mapbox-android-gestures:$mapboxGesturesVersion"){
25+
transitive=false
26+
}
27+
implementation ("com.mapbox.mapboxsdk:mapbox-sdk-services:$mapboxServicesVersion"){
28+
transitive=false
29+
}
30+
implementation ("com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-$mapboxPluginsVersion:$mapboxAnnotationPluginVersion"){
31+
transitive=false
32+
}
2833

29-
// Annotation Plugin
34+
implementation "com.squareup.okhttp3:okhttp:$okHttpVersion"
3035

31-
implementation "com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-$mapboxPluginsVersion:$mapboxAnnotationPluginVersion"
36+
println 'com.mapbox.mapboxsdk:mapbox-android-sdk:$mapboxVersion'
3237

33-
implementation "com.squareup.okhttp3:okhttp:$squareupVersion"
3438
}
3539

3640
android {

0 commit comments

Comments
 (0)