alexandroid/decompiled/jadx/sources/com/mapbox/common/location/GoogleDeviceLocationProviderKt.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

49 lines
2.7 KiB
Java

package com.mapbox.common.location;
import com.google.android.gms.common.GoogleApiAvailability;
import com.mapbox.common.MapboxCommonLogger;
import com.mapbox.common.MapboxSDKCommon;
import com.mapbox.common.movement.GoogleActivityRecognition;
import com.mapbox.common.movement.ProxyGoogleActivityRecognitionClient;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\"\u001a\u0010\u0000\u001a\u00020\u0001X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0002\u0010\u0003\"\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"googlePlayServicesHelper", "Lcom/mapbox/common/location/GooglePlayServicesHelper;", "getGooglePlayServicesHelper", "()Lcom/mapbox/common/location/GooglePlayServicesHelper;", "setGooglePlayServicesHelper", "(Lcom/mapbox/common/location/GooglePlayServicesHelper;)V", "common_release"}, k = 2, mv = {1, 7, 1}, xi = 48)
/* loaded from: classes8.dex */
public final class GoogleDeviceLocationProviderKt {
@NotNull
private static GooglePlayServicesHelper googlePlayServicesHelper = new GooglePlayServicesHelper() { // from class: com.mapbox.common.location.GoogleDeviceLocationProviderKt$googlePlayServicesHelper$1
@Override // com.mapbox.common.location.GooglePlayServicesHelper
public boolean isGooglePlayActivityRecognitionAvailable() {
try {
ProxyGoogleActivityRecognitionClient.Companion.verifyAndCacheMethods$common_release();
return true;
} catch (Throwable th) {
MapboxCommonLogger.INSTANCE.logD$common_release(GoogleActivityRecognition.TAG, "Failed to load Activity Recognition client: " + th);
return false;
}
}
@Override // com.mapbox.common.location.GooglePlayServicesHelper
public boolean isGooglePlayServicesLocationAvailable() {
return ProxyGoogleFusedLocationProviderClient.Companion.verifyAndCacheMethods$common_release();
}
@Override // com.mapbox.common.location.GooglePlayServicesHelper
public boolean isGooglePlayServicesReady() {
return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(MapboxSDKCommon.INSTANCE.getContext()) == 0;
}
};
@NotNull
public static final GooglePlayServicesHelper getGooglePlayServicesHelper() {
return googlePlayServicesHelper;
}
public static final void setGooglePlayServicesHelper(@NotNull GooglePlayServicesHelper googlePlayServicesHelper2) {
googlePlayServicesHelper2.getClass();
googlePlayServicesHelper = googlePlayServicesHelper2;
}
}