Skip to content

Commit ef51704

Browse files
domdomeggneslihanturan
authored andcommitted
Update mapbox sdk (commons-app#2176)
1 parent fb3136a commit ef51704

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ dependencies {
3232
implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
3333
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
3434
implementation 'com.github.pedrovgs:renderers:3.3.3'
35-
36-
implementation 'com.mapzen.android:lost:3.0.4'
37-
implementation('com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.0@aar') {
38-
transitive = true
39-
}
35+
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:6.8.0'
4036
implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0'
4137
implementation 'com.dinuscxj:circleprogressbar:1.1.1'
4238
implementation 'com.karumi:dexter:5.0.0'

app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import com.mapbox.mapboxsdk.maps.MapboxMap;
4646
import com.mapbox.mapboxsdk.maps.MapboxMapOptions;
4747
import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;
48-
import com.mapbox.services.android.telemetry.MapboxTelemetry;
4948

5049
import java.lang.reflect.Type;
5150
import java.util.ArrayList;
@@ -180,7 +179,7 @@ public void onCreate(Bundle savedInstanceState) {
180179
if (curLatLng != null) {
181180
Mapbox.getInstance(getActivity(),
182181
getString(R.string.mapbox_commons_app_token));
183-
MapboxTelemetry.getInstance().setTelemetryEnabled(false);
182+
Mapbox.getTelemetry().setUserTelemetryRequestState(false);
184183
}
185184
setRetainInstance(true);
186185
}

0 commit comments

Comments
 (0)