27 lines
1.1 KiB
Java
27 lines
1.1 KiB
Java
package com.huawei.hms.hwid;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import com.huawei.hms.adapter.AvailableAdapter;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class a {
|
|
public static int a() {
|
|
return 40004000;
|
|
}
|
|
|
|
public static void a(Activity activity, AvailableAdapter.AvailableCallBack availableCallBack) {
|
|
as.b("HmsAccountKitVersionCheckUtil", "====== HMSSDK version: 61100301 ======", true);
|
|
Context applicationContext = activity.getApplicationContext();
|
|
int a = a();
|
|
as.b("HmsAccountKitVersionCheckUtil", "check minVersion:".concat(String.valueOf(a)), true);
|
|
AvailableAdapter availableAdapter = new AvailableAdapter(a);
|
|
int isHuaweiMobileServicesAvailable = availableAdapter.isHuaweiMobileServicesAvailable(applicationContext);
|
|
if (isHuaweiMobileServicesAvailable != 0 && availableAdapter.isUserResolvableError(isHuaweiMobileServicesAvailable)) {
|
|
availableAdapter.startResolution(activity, availableCallBack);
|
|
} else {
|
|
availableCallBack.onComplete(isHuaweiMobileServicesAvailable);
|
|
}
|
|
}
|
|
}
|