Files
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

150 lines
3.7 KiB
Java

package com.google.android.gms.common.internal;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepForSdk;
@KeepForSdk
/* loaded from: classes2.dex */
public final class GmsLogger {
private final String zza;
@Nullable
private final String zzb;
@KeepForSdk
public GmsLogger(@NonNull String str) {
this(str, null);
}
private final String zza(String str) {
String str2 = this.zzb;
return str2 == null ? str : str2.concat(str);
}
private final String zzb(String str, Object... objArr) {
String str2 = this.zzb;
String format = String.format(str, objArr);
return str2 == null ? format : str2.concat(format);
}
@KeepForSdk
public boolean canLog(int i) {
return Log.isLoggable(this.zza, i);
}
@KeepForSdk
public boolean canLogPii() {
return false;
}
@KeepForSdk
public void d(@NonNull String str, @NonNull String str2) {
if (canLog(3)) {
zza(str2);
}
}
@KeepForSdk
public void e(@NonNull String str, @NonNull String str2) {
if (canLog(6)) {
Log.e(str, zza(str2));
}
}
@KeepForSdk
public void efmt(@NonNull String str, @NonNull String str2, @NonNull Object... objArr) {
if (canLog(6)) {
Log.e(str, zzb(str2, objArr));
}
}
@KeepForSdk
public void i(@NonNull String str, @NonNull String str2) {
if (canLog(4)) {
zza(str2);
}
}
@KeepForSdk
public void pii(@NonNull String str, @NonNull String str2) {
}
@KeepForSdk
public void pii(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
}
@KeepForSdk
public void v(@NonNull String str, @NonNull String str2) {
if (canLog(2)) {
zza(str2);
}
}
@KeepForSdk
public void w(@NonNull String str, @NonNull String str2) {
if (canLog(5)) {
Log.w(str, zza(str2));
}
}
@KeepForSdk
public void wfmt(@NonNull String str, @NonNull String str2, @NonNull Object... objArr) {
if (canLog(5)) {
Log.w(this.zza, zzb(str2, objArr));
}
}
@KeepForSdk
public void wtf(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
if (canLog(7)) {
Log.e(str, zza(str2), th);
Log.wtf(str, zza(str2), th);
}
}
@KeepForSdk
public GmsLogger(@NonNull String str, @Nullable String str2) {
Preconditions.checkNotNull(str, "log tag cannot be null");
Preconditions.checkArgument(str.length() <= 23, "tag \"%s\" is longer than the %d character maximum", str, 23);
this.zza = str;
this.zzb = (str2 == null || str2.length() <= 0) ? null : str2;
}
@KeepForSdk
public void d(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
if (canLog(3)) {
zza(str2);
}
}
@KeepForSdk
public void e(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
if (canLog(6)) {
Log.e(str, zza(str2), th);
}
}
@KeepForSdk
public void i(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
if (canLog(4)) {
zza(str2);
}
}
@KeepForSdk
public void v(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
if (canLog(2)) {
zza(str2);
}
}
@KeepForSdk
public void w(@NonNull String str, @NonNull String str2, @NonNull Throwable th) {
if (canLog(5)) {
Log.w(str, zza(str2), th);
}
}
}