diff --git a/app/build.gradle b/app/build.gradle index 3c500f0..dd0a15f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ android { applicationId "com.uam.wmi.findmytutor" minSdkVersion 22 targetSdkVersion 27 - versionCode 1 + versionCode 2 versionName "0.9.2-alpha" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true @@ -52,7 +52,8 @@ dependencies { implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation 'io.swagger:swagger-annotations:1.5.15' implementation 'org.threeten:threetenbp:1.3.5' - implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:6.6.5' + implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:6.7.2' + implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:4.0.0' implementation 'io.reactivex.rxjava2:rxjava:2.2.0' implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' @@ -66,7 +67,6 @@ dependencies { implementation 'com.auth0.android:jwtdecode:1.1.1' implementation 'com.annimon:stream:1.2.1' implementation 'com.google.android.gms:play-services-location:16.0.0' - implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:4.0.0' // FloatingBarMenu implementation 'com.getbase:floatingactionbutton:1.10.1' implementation 'org.apache.commons:commons-collections4:4.0' diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java index d98fa2f..9c6a5f5 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java @@ -126,7 +126,6 @@ public class MapActivity extends BaseActivity selectLocationButton = findViewById(R.id.select_location_button); removeLocationButton = findViewById(R.id.remove_location_button); - Mapbox.getInstance(this, getString(R.string.access_token)); mapView = findViewById(R.id.mapView); mapView.onCreate(savedInstanceState); mapView.getMapAsync(this); @@ -637,6 +636,7 @@ public class MapActivity extends BaseActivity @Override protected int getContentViewId() { + Mapbox.getInstance(this, getString(R.string.access_token)); return R.layout.activity_map; } diff --git a/app/src/main/res/layout/pref_main.xml b/app/src/main/res/layout/pref_main.xml index 131685a..2977f17 100644 --- a/app/src/main/res/layout/pref_main.xml +++ b/app/src/main/res/layout/pref_main.xml @@ -15,5 +15,12 @@ android:summary="%s" android:title="@string/title_language" /> + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1a1605b..70b2d71 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -234,9 +234,12 @@ Error handling status fetch Error handling status fetch + Auto reporting on issue is OFF + Auto reporting on issue is ON + ACRA reporting tool Sorry, the application crashed. A report will be sent to the developers Sorry, the application crashed. A report will be sent to the developers - FMT Crash + FMT Issue FMT Lack information about duty hours No note.