- 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
2.6 KiB
Java
66 lines
2.6 KiB
Java
package androidx.credentials;
|
|
|
|
import android.os.Bundle;
|
|
import androidx.credentials.internal.FrameworkClassParsingException;
|
|
import androidx.credentials.internal.RequestValidationHelper;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@ExperimentalDigitalCredentialApi
|
|
/* loaded from: classes.dex */
|
|
public final class DigitalCredential extends Credential {
|
|
public static final String BUNDLE_KEY_REQUEST_JSON = "androidx.credentials.BUNDLE_KEY_REQUEST_JSON";
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final String TYPE_DIGITAL_CREDENTIAL = "androidx.credentials.TYPE_DIGITAL_CREDENTIAL";
|
|
private final String credentialJson;
|
|
|
|
public /* synthetic */ DigitalCredential(String str, Bundle bundle, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, bundle);
|
|
}
|
|
|
|
public final String getCredentialJson() {
|
|
return this.credentialJson;
|
|
}
|
|
|
|
private DigitalCredential(String str, Bundle bundle) {
|
|
super(TYPE_DIGITAL_CREDENTIAL, bundle);
|
|
this.credentialJson = str;
|
|
if (!RequestValidationHelper.Companion.isValidJSON(str)) {
|
|
throw new IllegalArgumentException("credentialJson must not be empty, and must be a valid JSON".toString());
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public DigitalCredential(String credentialJson) {
|
|
this(credentialJson, Companion.toBundle$credentials_release(credentialJson));
|
|
Intrinsics.checkNotNullParameter(credentialJson, "credentialJson");
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final DigitalCredential createFrom$credentials_release(Bundle data) {
|
|
Intrinsics.checkNotNullParameter(data, "data");
|
|
try {
|
|
String string = data.getString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON");
|
|
Intrinsics.checkNotNull(string);
|
|
return new DigitalCredential(string, data, null);
|
|
} catch (Exception unused) {
|
|
throw new FrameworkClassParsingException();
|
|
}
|
|
}
|
|
|
|
public final Bundle toBundle$credentials_release(String responseJson) {
|
|
Intrinsics.checkNotNullParameter(responseJson, "responseJson");
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString("androidx.credentials.BUNDLE_KEY_REQUEST_JSON", responseJson);
|
|
return bundle;
|
|
}
|
|
}
|
|
}
|