- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
96 lines
3.1 KiB
Java
96 lines
3.1 KiB
Java
package com.google.firebase.analytics;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.Keep;
|
|
import androidx.annotation.MainThread;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresPermission;
|
|
import androidx.annotation.Size;
|
|
import androidx.work.WorkRequest;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.internal.measurement.zzdn;
|
|
import com.google.android.gms.measurement.internal.zzkk;
|
|
import com.google.android.gms.tasks.Tasks;
|
|
import com.google.firebase.installations.FirebaseInstallations;
|
|
import java.util.concurrent.ExecutionException;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeoutException;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class FirebaseAnalytics {
|
|
public static volatile FirebaseAnalytics zza;
|
|
public final zzdn zzb;
|
|
|
|
@Nullable
|
|
@Keep
|
|
public static zzkk getScionFrontendApiImplementation(Context context, @Nullable Bundle bundle) {
|
|
zzdn zza2 = zzdn.zza(context, (String) null, (String) null, (String) null, bundle);
|
|
if (zza2 == null) {
|
|
return null;
|
|
}
|
|
return new zzd(zza2);
|
|
}
|
|
|
|
@NonNull
|
|
@RequiresPermission(allOf = {"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE", "android.permission.WAKE_LOCK"})
|
|
@Keep
|
|
public static FirebaseAnalytics getInstance(@NonNull Context context) {
|
|
if (zza == null) {
|
|
synchronized (FirebaseAnalytics.class) {
|
|
try {
|
|
if (zza == null) {
|
|
zza = new FirebaseAnalytics(zzdn.zza(context));
|
|
}
|
|
} finally {
|
|
}
|
|
}
|
|
}
|
|
return zza;
|
|
}
|
|
|
|
@NonNull
|
|
@Keep
|
|
public final String getFirebaseInstanceId() {
|
|
try {
|
|
return (String) Tasks.await(FirebaseInstallations.getInstance().getId(), WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, TimeUnit.MILLISECONDS);
|
|
} catch (InterruptedException e) {
|
|
throw new IllegalStateException(e);
|
|
} catch (ExecutionException e2) {
|
|
throw new IllegalStateException(e2.getCause());
|
|
} catch (TimeoutException unused) {
|
|
throw new IllegalThreadStateException("Firebase Installations getId Task has timed out.");
|
|
}
|
|
}
|
|
|
|
public FirebaseAnalytics(zzdn zzdnVar) {
|
|
Preconditions.checkNotNull(zzdnVar);
|
|
this.zzb = zzdnVar;
|
|
}
|
|
|
|
public final void logEvent(String str, Bundle bundle) {
|
|
this.zzb.zza(str, bundle);
|
|
}
|
|
|
|
public final void setAnalyticsCollectionEnabled(boolean z) {
|
|
this.zzb.zza(Boolean.valueOf(z));
|
|
}
|
|
|
|
@Keep
|
|
@MainThread
|
|
@Deprecated
|
|
public final void setCurrentScreen(@NonNull Activity activity, @Nullable @Size(max = 36, min = 1) String str, @Nullable @Size(max = 36, min = 1) String str2) {
|
|
this.zzb.zza(activity, str, str2);
|
|
}
|
|
|
|
public final void setUserId(String str) {
|
|
this.zzb.zzd(str);
|
|
}
|
|
|
|
public final void setUserProperty(String str, String str2) {
|
|
this.zzb.zzb(str, str2);
|
|
}
|
|
}
|