Skip to content

Commit

Permalink
Merge pull request #88 from Woosmap/dev/upgrade-google-play-services
Browse files Browse the repository at this point in the history
Upgraded location and maps version
  • Loading branch information
strider1981 committed Mar 13, 2023
2 parents 98f9fca + e361d34 commit 6f8d8c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions woosmapgeofencing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ dependencies {

implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'com.google.android.gms:play-services-location:21.0.1'
implementation 'androidx.multidex:multidex:2.0.1'

implementation 'org.ojalgo:ojalgo:37.1.1'

implementation 'com.google.truth:truth:1.1.3'
implementation 'com.google.android.gms:play-services-maps:17.0.1'
implementation 'com.google.android.gms:play-services-maps:18.1.0'

testImplementation 'junit:junit:4.13.2'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.google.android.gms.location.FusedLocationProviderClient;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.gson.Gson;
import com.webgeoservices.woosmapgeofencing.SearchAPIDataModel.Feature;
Expand Down Expand Up @@ -368,7 +369,7 @@ private void getLatestLocation(Context context, OnSuccessListener<Location> succ
if (ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
Log.d(WoosmapSettings.Tags.WoosmapSdkTag, "No permission");
} else {
FusedLocationProviderClient locationProvider = new FusedLocationProviderClient(context);
FusedLocationProviderClient locationProvider = LocationServices.getFusedLocationProviderClient(context);
locationProvider.getLastLocation().addOnSuccessListener(successListener);
}
}
Expand Down

0 comments on commit 6f8d8c2

Please sign in to comment.