- 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
256 lines
9.1 KiB
Java
256 lines
9.1 KiB
Java
package com.android.billingclient.api;
|
|
|
|
import android.text.TextUtils;
|
|
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class BillingFlowParams {
|
|
public boolean zza;
|
|
public String zzb;
|
|
public String zzc;
|
|
public SubscriptionUpdateParams zzd;
|
|
public com.google.android.gms.internal.play_billing.zzu zze;
|
|
public ArrayList zzf;
|
|
public boolean zzg;
|
|
|
|
public static class Builder {
|
|
public String zza;
|
|
public String zzb;
|
|
public List zzc;
|
|
public ArrayList zzd;
|
|
public boolean zze;
|
|
public SubscriptionUpdateParams.Builder zzf;
|
|
|
|
public BillingFlowParams build() {
|
|
ArrayList arrayList = this.zzd;
|
|
boolean z = (arrayList == null || arrayList.isEmpty()) ? false : true;
|
|
List list = this.zzc;
|
|
boolean z2 = (list == null || list.isEmpty()) ? false : true;
|
|
if (!z && !z2) {
|
|
throw new IllegalArgumentException("Details of the products must be provided.");
|
|
}
|
|
if (z && z2) {
|
|
throw new IllegalArgumentException("Set SkuDetails or ProductDetailsParams, not both.");
|
|
}
|
|
zzap zzapVar = null;
|
|
if (!z) {
|
|
ProductDetailsParams productDetailsParams = (ProductDetailsParams) this.zzc.get(0);
|
|
for (int i = 0; i < this.zzc.size(); i++) {
|
|
ProductDetailsParams productDetailsParams2 = (ProductDetailsParams) this.zzc.get(i);
|
|
if (productDetailsParams2 == null) {
|
|
throw new IllegalArgumentException("ProductDetailsParams cannot be null.");
|
|
}
|
|
if (i != 0 && !productDetailsParams2.zza().getProductType().equals(productDetailsParams.zza().getProductType()) && !productDetailsParams2.zza().getProductType().equals("play_pass_subs")) {
|
|
throw new IllegalArgumentException("All products should have same ProductType.");
|
|
}
|
|
}
|
|
String zza = productDetailsParams.zza().zza();
|
|
for (ProductDetailsParams productDetailsParams3 : this.zzc) {
|
|
if (!productDetailsParams.zza().getProductType().equals("play_pass_subs") && !productDetailsParams3.zza().getProductType().equals("play_pass_subs") && !zza.equals(productDetailsParams3.zza().zza())) {
|
|
throw new IllegalArgumentException("All products must have the same package name.");
|
|
}
|
|
}
|
|
} else {
|
|
if (this.zzd.contains(null)) {
|
|
throw new IllegalArgumentException("SKU cannot be null.");
|
|
}
|
|
if (this.zzd.size() > 1) {
|
|
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(this.zzd.get(0));
|
|
throw null;
|
|
}
|
|
}
|
|
BillingFlowParams billingFlowParams = new BillingFlowParams(zzapVar);
|
|
if (z) {
|
|
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(this.zzd.get(0));
|
|
throw null;
|
|
}
|
|
billingFlowParams.zza = z2 && !((ProductDetailsParams) this.zzc.get(0)).zza().zza().isEmpty();
|
|
billingFlowParams.zzb = this.zza;
|
|
billingFlowParams.zzc = this.zzb;
|
|
billingFlowParams.zzd = this.zzf.build();
|
|
ArrayList arrayList2 = this.zzd;
|
|
billingFlowParams.zzf = arrayList2 != null ? new ArrayList(arrayList2) : new ArrayList();
|
|
billingFlowParams.zzg = this.zze;
|
|
List list2 = this.zzc;
|
|
billingFlowParams.zze = list2 != null ? com.google.android.gms.internal.play_billing.zzu.zzj(list2) : com.google.android.gms.internal.play_billing.zzu.zzk();
|
|
return billingFlowParams;
|
|
}
|
|
|
|
public Builder setProductDetailsParamsList(List list) {
|
|
this.zzc = new ArrayList(list);
|
|
return this;
|
|
}
|
|
|
|
public /* synthetic */ Builder(zzak zzakVar) {
|
|
SubscriptionUpdateParams.Builder newBuilder = SubscriptionUpdateParams.newBuilder();
|
|
SubscriptionUpdateParams.Builder.zza(newBuilder);
|
|
this.zzf = newBuilder;
|
|
}
|
|
}
|
|
|
|
public static final class ProductDetailsParams {
|
|
public final ProductDetails zza;
|
|
public final String zzb;
|
|
|
|
public static class Builder {
|
|
public ProductDetails zza;
|
|
public String zzb;
|
|
|
|
public /* synthetic */ Builder(zzal zzalVar) {
|
|
}
|
|
|
|
public ProductDetailsParams build() {
|
|
com.google.android.gms.internal.play_billing.zzm.zzc(this.zza, "ProductDetails is required for constructing ProductDetailsParams.");
|
|
com.google.android.gms.internal.play_billing.zzm.zzc(this.zzb, "offerToken is required for constructing ProductDetailsParams.");
|
|
return new ProductDetailsParams(this, null);
|
|
}
|
|
|
|
public Builder setOfferToken(String str) {
|
|
this.zzb = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder setProductDetails(ProductDetails productDetails) {
|
|
this.zza = productDetails;
|
|
if (productDetails.getOneTimePurchaseOfferDetails() != null) {
|
|
productDetails.getOneTimePurchaseOfferDetails().getClass();
|
|
this.zzb = productDetails.getOneTimePurchaseOfferDetails().zza();
|
|
}
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ ProductDetailsParams(Builder builder, zzam zzamVar) {
|
|
this.zza = builder.zza;
|
|
this.zzb = builder.zzb;
|
|
}
|
|
|
|
public static Builder newBuilder() {
|
|
return new Builder(null);
|
|
}
|
|
|
|
public final ProductDetails zza() {
|
|
return this.zza;
|
|
}
|
|
|
|
public final String zzb() {
|
|
return this.zzb;
|
|
}
|
|
}
|
|
|
|
public static class SubscriptionUpdateParams {
|
|
public String zza;
|
|
public String zzb;
|
|
public int zzc = 0;
|
|
public int zzd = 0;
|
|
|
|
public static class Builder {
|
|
public String zza;
|
|
public String zzb;
|
|
public boolean zzc;
|
|
public int zzd = 0;
|
|
public int zze = 0;
|
|
|
|
public /* synthetic */ Builder(zzan zzanVar) {
|
|
}
|
|
|
|
public static /* synthetic */ Builder zza(Builder builder) {
|
|
builder.zzc = true;
|
|
return builder;
|
|
}
|
|
|
|
public SubscriptionUpdateParams build() {
|
|
zzao zzaoVar = null;
|
|
boolean z = (TextUtils.isEmpty(this.zza) && TextUtils.isEmpty(null)) ? false : true;
|
|
boolean isEmpty = true ^ TextUtils.isEmpty(this.zzb);
|
|
if (z && isEmpty) {
|
|
throw new IllegalArgumentException("Please provide Old SKU purchase information(token/id) or original external transaction id, not both.");
|
|
}
|
|
if (!this.zzc && !z && !isEmpty) {
|
|
throw new IllegalArgumentException("Old SKU purchase information(token/id) or original external transaction id must be provided.");
|
|
}
|
|
SubscriptionUpdateParams subscriptionUpdateParams = new SubscriptionUpdateParams(zzaoVar);
|
|
subscriptionUpdateParams.zza = this.zza;
|
|
subscriptionUpdateParams.zzc = this.zzd;
|
|
subscriptionUpdateParams.zzd = this.zze;
|
|
subscriptionUpdateParams.zzb = this.zzb;
|
|
return subscriptionUpdateParams;
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ SubscriptionUpdateParams(zzao zzaoVar) {
|
|
}
|
|
|
|
public static Builder newBuilder() {
|
|
return new Builder(null);
|
|
}
|
|
|
|
public final int zza() {
|
|
return this.zzc;
|
|
}
|
|
|
|
public final int zzb() {
|
|
return this.zzd;
|
|
}
|
|
|
|
public final String zzd() {
|
|
return this.zza;
|
|
}
|
|
|
|
public final String zze() {
|
|
return this.zzb;
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ BillingFlowParams(zzap zzapVar) {
|
|
}
|
|
|
|
public static Builder newBuilder() {
|
|
return new Builder(null);
|
|
}
|
|
|
|
public final int zza() {
|
|
return this.zzd.zza();
|
|
}
|
|
|
|
public final int zzb() {
|
|
return this.zzd.zzb();
|
|
}
|
|
|
|
public final String zzc() {
|
|
return this.zzb;
|
|
}
|
|
|
|
public final String zzd() {
|
|
return this.zzc;
|
|
}
|
|
|
|
public final String zze() {
|
|
return this.zzd.zzd();
|
|
}
|
|
|
|
public final String zzf() {
|
|
return this.zzd.zze();
|
|
}
|
|
|
|
public final ArrayList zzg() {
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.addAll(this.zzf);
|
|
return arrayList;
|
|
}
|
|
|
|
public final List zzh() {
|
|
return this.zze;
|
|
}
|
|
|
|
public final boolean zzp() {
|
|
return this.zzg;
|
|
}
|
|
|
|
public final boolean zzq() {
|
|
return (this.zzb == null && this.zzc == null && this.zzd.zze() == null && this.zzd.zza() == 0 && this.zzd.zzb() == 0 && !this.zza && !this.zzg) ? false : true;
|
|
}
|
|
}
|