Files
rr3-apk/decompiled-community/sources/com/google/android/libraries/identity/googleid/GetGoogleIdOption.java
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

142 lines
6.3 KiB
Java

package com.google.android.libraries.identity.googleid;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.credentials.GetCustomCredentialOption;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nGetGoogleIdOption.kt\nKotlin\n*S Kotlin\n*F\n+ 1 GetGoogleIdOption.kt\ncom/google/android/libraries/identity/googleid/GetGoogleIdOption\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,258:1\n1#2:259\n*E\n"})
/* loaded from: classes3.dex */
public final class GetGoogleIdOption extends GetCustomCredentialOption {
public static final Companion Companion = new Companion(null);
private final String zza;
private final String zzb;
private final boolean zzc;
private final String zzd;
private final List zze;
private final boolean zzf;
private final boolean zzg;
public static final class Builder {
public String zzb;
public String zzc;
public boolean zze;
public boolean zzf;
public List zzg;
public String zza = "";
public boolean zzd = true;
public final GetGoogleIdOption build() {
return new GetGoogleIdOption(this.zza, this.zzc, this.zzd, this.zzb, this.zzg, this.zze, this.zzf);
}
public final Builder setAutoSelectEnabled(boolean z) {
this.zzf = z;
return this;
}
public final Builder setFilterByAuthorizedAccounts(boolean z) {
this.zzd = z;
return this;
}
public final Builder setServerClientId(String serverClientId) {
Intrinsics.checkNotNullParameter(serverClientId, "serverClientId");
if (serverClientId.length() <= 0) {
throw new IllegalArgumentException("serverClientId should not be empty");
}
this.zza = serverClientId;
return this;
}
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
}
public static final Bundle zza(String serverClientId, String str, boolean z, String str2, List list, boolean z2, boolean z3) {
Intrinsics.checkNotNullParameter(serverClientId, "serverClientId");
Bundle bundle = new Bundle();
bundle.putString("com.google.android.libraries.identity.googleid.BUNDLE_KEY_SERVER_CLIENT_ID", serverClientId);
bundle.putString("com.google.android.libraries.identity.googleid.BUNDLE_KEY_NONCE", str);
bundle.putBoolean("com.google.android.libraries.identity.googleid.BUNDLE_KEY_FILTER_BY_AUTHORIZED_ACCOUNTS", z);
bundle.putString("com.google.android.libraries.identity.googleid.BUNDLE_KEY_LINKED_SERVICE_ID", str2);
bundle.putStringArrayList("com.google.android.libraries.identity.googleid.BUNDLE_KEY_ID_TOKEN_DEPOSITION_SCOPES", list == null ? null : new ArrayList<>(list));
bundle.putBoolean("com.google.android.libraries.identity.googleid.BUNDLE_KEY_REQUEST_VERIFIED_PHONE_NUMBER", z2);
bundle.putBoolean("com.google.android.libraries.identity.googleid.BUNDLE_KEY_AUTO_SELECT_ENABLED", z3);
return bundle;
}
public final GetGoogleIdOption createFrom(Bundle data) {
Intrinsics.checkNotNullParameter(data, "data");
try {
String string = data.getString("com.google.android.libraries.identity.googleid.BUNDLE_KEY_SERVER_CLIENT_ID");
Intrinsics.checkNotNull(string);
return new GetGoogleIdOption(string, data.getString("com.google.android.libraries.identity.googleid.BUNDLE_KEY_NONCE"), data.getBoolean("com.google.android.libraries.identity.googleid.BUNDLE_KEY_FILTER_BY_AUTHORIZED_ACCOUNTS", true), data.getString("com.google.android.libraries.identity.googleid.BUNDLE_KEY_LINKED_SERVICE_ID"), data.getStringArrayList("com.google.android.libraries.identity.googleid.BUNDLE_KEY_ID_TOKEN_DEPOSITION_SCOPES"), data.getBoolean("com.google.android.libraries.identity.googleid.BUNDLE_KEY_REQUEST_VERIFIED_PHONE_NUMBER", false), data.getBoolean("com.google.android.libraries.identity.googleid.BUNDLE_KEY_AUTO_SELECT_ENABLED", false));
} catch (Exception e) {
throw new GoogleIdTokenParsingException(e);
}
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public GetGoogleIdOption(@NonNull String serverClientId, String str, boolean z, String str2, List<String> list, boolean z2, boolean z3) {
super(GoogleIdTokenCredential.TYPE_GOOGLE_ID_TOKEN_CREDENTIAL, Companion.zza(serverClientId, str, z, str2, list, z2, z3), Companion.zza(serverClientId, str, z, str2, list, z2, z3), true, z3, (Set) null, 500, 32, (DefaultConstructorMarker) null);
Intrinsics.checkNotNullParameter(serverClientId, "serverClientId");
this.zza = serverClientId;
this.zzb = str;
this.zzc = z;
this.zzd = str2;
this.zze = list;
this.zzf = z2;
this.zzg = z3;
if (serverClientId.length() <= 0) {
throw new IllegalArgumentException("serverClientId should not be empty");
}
if (z && z2) {
throw new IllegalArgumentException("filterByAuthorizedAccounts and requestVerifiedPhoneNumber must not both be true; the Verified Phone Number feature only works in sign-ups.");
}
}
public static final GetGoogleIdOption createFrom(@NonNull Bundle bundle) {
return Companion.createFrom(bundle);
}
public final boolean getAutoSelectEnabled() {
return this.zzg;
}
public final boolean getFilterByAuthorizedAccounts() {
return this.zzc;
}
@Nullable
public final List<String> getIdTokenDepositionScopes() {
return this.zze;
}
@Nullable
public final String getLinkedServiceId() {
return this.zzd;
}
@Nullable
public final String getNonce() {
return this.zzb;
}
public final boolean getRequestVerifiedPhoneNumber() {
return this.zzf;
}
public final String getServerClientId() {
return this.zza;
}
}