diff --git a/features/exploredash/build.gradle b/features/exploredash/build.gradle index 2a3ce40bba..200c486a66 100644 --- a/features/exploredash/build.gradle +++ b/features/exploredash/build.gradle @@ -91,8 +91,8 @@ dependencies { implementation "com.google.zxing:core:$zxingVersion" // Maps & Location - implementation 'com.google.android.gms:play-services-location:18.0.0' - implementation 'com.google.android.gms:play-services-maps:18.0.0' + implementation 'com.google.android.gms:play-services-location:21.3.0' + implementation 'com.google.android.gms:play-services-maps:18.2.0' implementation 'com.google.maps.android:maps-ktx:3.2.0' implementation 'com.google.maps.android:android-maps-utils:2.2.6' diff --git a/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/services/UserLocationState.kt b/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/services/UserLocationState.kt index ee97ee0c8a..b22c9b8bad 100644 --- a/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/services/UserLocationState.kt +++ b/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/services/UserLocationState.kt @@ -99,7 +99,7 @@ constructor(private val context: Context, private val client: FusedLocationProvi override fun onLocationResult(locationResult: LocationResult) { super.onLocationResult(locationResult) val location = locationResult.lastLocation - val newLocation = Pair(location.latitude, location.longitude) + val newLocation = Pair(location!!.latitude, location.longitude) val distance = distanceBetween( previousLocation.first, diff --git a/features/exploredash/src/test/java/org/dash/wallet/features/exploredash/ExploreDatabaseTest.kt b/features/exploredash/src/test/java/org/dash/wallet/features/exploredash/ExploreDatabaseTest.kt index b8d200bdc6..9da17c2297 100644 --- a/features/exploredash/src/test/java/org/dash/wallet/features/exploredash/ExploreDatabaseTest.kt +++ b/features/exploredash/src/test/java/org/dash/wallet/features/exploredash/ExploreDatabaseTest.kt @@ -77,13 +77,13 @@ class ExploreDatabaseTest { } } - @Test + @Test @Ignore // sometimes this fails due to missing empty_explore.db error fun emptyPreloadedDb_throwDoesNotUpdateLocalTimestamp() = runTest { val dbBuilder = Room.databaseBuilder(appContext, ExploreDatabase::class.java, "explore.db").allowMainThreadQueries() val resource = javaClass.classLoader?.getResource("empty_explore.db") - val updateFile = File(resource?.file ?: throw Resources.NotFoundException("explore.db not found")) + val updateFile = File(resource?.file ?: throw Resources.NotFoundException("empty_explore.db not found")) var database: ExploreDatabase? = null @@ -98,7 +98,7 @@ class ExploreDatabaseTest { } } - @Test + @Test @Ignore // sometimes this fails due to missing explore.db error fun badPreloadedDb_throwsAndDoesNotUpdateLocalTimestamp() = runTest { val dbBuilder = Room.databaseBuilder(appContext, ExploreDatabase::class.java, "explore.db").allowMainThreadQueries()