From a3cb7ef888481f8fe3b67913a05b9deb347143d1 Mon Sep 17 00:00:00 2001
From: Sayed <elabadysayed@google.com>
Date: Tue, 1 Aug 2023 15:37:29 +0100
Subject: [PATCH 1/2] Update play-service-location version

---
 locationdelegation/build.gradle                               | 4 ++--
 .../locationdelegation/LocationProviderGmsCoreTest.java       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/locationdelegation/build.gradle b/locationdelegation/build.gradle
index cf9a5009..c41348c8 100644
--- a/locationdelegation/build.gradle
+++ b/locationdelegation/build.gradle
@@ -52,7 +52,7 @@ 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'
@@ -60,7 +60,7 @@ dependencies {
     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);
 

From b98e5f22f85bbbaf0617eb5121911f630ab93ee5 Mon Sep 17 00:00:00 2001
From: Sayed <elabadysayed@google.com>
Date: Tue, 1 Aug 2023 15:59:02 +0100
Subject: [PATCH 2/2] Update play-service-location version

---
 locationdelegation/build.gradle | 1 +
 1 file changed, 1 insertion(+)

diff --git a/locationdelegation/build.gradle b/locationdelegation/build.gradle
index c41348c8..464192c4 100644
--- a/locationdelegation/build.gradle
+++ b/locationdelegation/build.gradle
@@ -56,6 +56,7 @@ dependencies {
 
     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'