- 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
66 lines
1.5 KiB
Java
66 lines
1.5 KiB
Java
package com.google.android.gms.common.util;
|
|
|
|
import android.util.Base64;
|
|
import androidx.annotation.NonNull;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.errorprone.annotations.ResultIgnorabilityUnspecified;
|
|
|
|
@KeepForSdk
|
|
/* loaded from: classes2.dex */
|
|
public final class Base64Utils {
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static byte[] decode(@NonNull String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return Base64.decode(str, 0);
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static byte[] decodeUrlSafe(@NonNull String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return Base64.decode(str, 10);
|
|
}
|
|
|
|
@NonNull
|
|
@ResultIgnorabilityUnspecified
|
|
@KeepForSdk
|
|
public static byte[] decodeUrlSafeNoPadding(@NonNull String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return Base64.decode(str, 11);
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static String encode(@NonNull byte[] bArr) {
|
|
if (bArr == null) {
|
|
return null;
|
|
}
|
|
return Base64.encodeToString(bArr, 0);
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static String encodeUrlSafe(@NonNull byte[] bArr) {
|
|
if (bArr == null) {
|
|
return null;
|
|
}
|
|
return Base64.encodeToString(bArr, 10);
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static String encodeUrlSafeNoPadding(@NonNull byte[] bArr) {
|
|
if (bArr == null) {
|
|
return null;
|
|
}
|
|
return Base64.encodeToString(bArr, 11);
|
|
}
|
|
}
|