From dadb1123631de86608d210ef53418a0b0804c697 Mon Sep 17 00:00:00 2001 From: Andrew Maclean Date: Thu, 20 Apr 2017 15:53:20 +0100 Subject: [PATCH] removed deprecated GooglePlayServicesUtil from DeviceNativeInterface.java, and replaced with GoogleApiAvailability --- .../chilliworks/chillisource/core/DeviceNativeInterface.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/DeviceNativeInterface.java b/Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/DeviceNativeInterface.java index 0a9bee608..bb6790d8c 100644 --- a/Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/DeviceNativeInterface.java +++ b/Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/DeviceNativeInterface.java @@ -42,7 +42,7 @@ import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GooglePlayServicesNotAvailableException; import com.google.android.gms.common.GooglePlayServicesRepairableException; -import com.google.android.gms.common.GooglePlayServicesUtil; +import com.google.android.gms.common.GoogleApiAvailability; /** * Holds functions to query information about the device. @@ -146,7 +146,7 @@ public String getUniqueId() //Google policy is that if the advertising id is available but the user has chosen not to //enable it then we cannot track the user by falling back on these other methods. - int gpsAvailableResult = GooglePlayServicesUtil.isGooglePlayServicesAvailable(CSApplication.get().getAppContext()); + int gpsAvailableResult = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(CSApplication.get().getAppContext()); //If GPS is not potentially available i.e. Kindle etc then we can default to the older id types //If GPS is potentially available but the user has chosen not to install/update then we cannot fallback on