diff --git a/locationdelegation/build.gradle b/locationdelegation/build.gradle index cf9a5009..464192c4 100644 --- a/locationdelegation/build.gradle +++ b/locationdelegation/build.gradle @@ -52,15 +52,16 @@ dependencies { api 'androidx.browser:browser:1.4.0' implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'com.google.android.gms:play-services-location:17.0.0' + implementation 'com.google.android.gms:play-services-location:21.0.1' testImplementation 'junit:junit:4.12' testImplementation 'org.mockito:mockito-core:3.0.0' + testImplementation 'org.mockito:mockito-inline:2.13.0' testImplementation 'org.robolectric:robolectric:4.4' testImplementation 'androidx.test:core:1.4.0' debugImplementation project(path: ':androidbrowserhelper') - releaseImplementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.2.2' + releaseImplementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.5.0' } publishing { diff --git a/locationdelegation/src/test/java/com/google/androidbrowserhelper/locationdelegation/LocationProviderGmsCoreTest.java b/locationdelegation/src/test/java/com/google/androidbrowserhelper/locationdelegation/LocationProviderGmsCoreTest.java index fde9c705..b538e87d 100644 --- a/locationdelegation/src/test/java/com/google/androidbrowserhelper/locationdelegation/LocationProviderGmsCoreTest.java +++ b/locationdelegation/src/test/java/com/google/androidbrowserhelper/locationdelegation/LocationProviderGmsCoreTest.java @@ -181,7 +181,7 @@ public void testStopAndReturnWhenError() throws Exception { callbackTriggered.countDown(); }; doThrow(new IllegalStateException()) - .when(mMockLocationClient).requestLocationUpdates(any(), any(),any()); + .when(mMockLocationClient).requestLocationUpdates(any(), any(LocationCallback.class),any()); mLocationProvider.start(locationCallback, false);