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
This commit is contained in:
2026-02-18 15:48:36 -08:00
parent c19eb3d7ff
commit c080f0d97f
26930 changed files with 2529574 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class AcknowledgePurchaseParams {
public String zza;
public static final class Builder {
public String zza;
public /* synthetic */ Builder(zza zzaVar) {
}
public AcknowledgePurchaseParams build() {
String str = this.zza;
if (str == null) {
throw new IllegalArgumentException("Purchase token must be set");
}
AcknowledgePurchaseParams acknowledgePurchaseParams = new AcknowledgePurchaseParams(null);
acknowledgePurchaseParams.zza = str;
return acknowledgePurchaseParams;
}
public Builder setPurchaseToken(String str) {
this.zza = str;
return this;
}
}
public /* synthetic */ AcknowledgePurchaseParams(zzb zzbVar) {
}
public static Builder newBuilder() {
return new Builder(null);
}
public String getPurchaseToken() {
return this.zza;
}
}

View File

@@ -0,0 +1,6 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public interface AcknowledgePurchaseResponseListener {
void onAcknowledgePurchaseResponse(BillingResult billingResult);
}

View File

@@ -0,0 +1,5 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public interface AlternativeBillingListener {
}

View File

@@ -0,0 +1,63 @@
package com.android.billingclient.api;
import android.app.Activity;
import android.content.Context;
/* loaded from: classes.dex */
public abstract class BillingClient {
public static final class Builder {
public volatile zzbe zzb;
public final Context zzc;
public volatile PurchasesUpdatedListener zzd;
public /* synthetic */ Builder(Context context, zzi zziVar) {
this.zzc = context;
}
public BillingClient build() {
if (this.zzc == null) {
throw new IllegalArgumentException("Please provide a valid Context.");
}
if (this.zzd == null) {
throw new IllegalArgumentException("Please provide a valid listener for purchases updates.");
}
if (this.zzb != null) {
return this.zzd != null ? new BillingClientImpl(null, this.zzb, this.zzc, this.zzd, null, null) : new BillingClientImpl(null, this.zzb, this.zzc, null, null);
}
throw new IllegalArgumentException("Pending purchases for one-time products must be supported.");
}
public Builder enablePendingPurchases() {
zzbc zzbcVar = new zzbc(null);
zzbcVar.zza();
this.zzb = zzbcVar.zzb();
return this;
}
public Builder setListener(PurchasesUpdatedListener purchasesUpdatedListener) {
this.zzd = purchasesUpdatedListener;
return this;
}
}
public static Builder newBuilder(Context context) {
return new Builder(context, null);
}
public abstract void acknowledgePurchase(AcknowledgePurchaseParams acknowledgePurchaseParams, AcknowledgePurchaseResponseListener acknowledgePurchaseResponseListener);
public abstract void consumeAsync(ConsumeParams consumeParams, ConsumeResponseListener consumeResponseListener);
public abstract void endConnection();
public abstract boolean isReady();
public abstract BillingResult launchBillingFlow(Activity activity, BillingFlowParams billingFlowParams);
public abstract void queryProductDetailsAsync(QueryProductDetailsParams queryProductDetailsParams, ProductDetailsResponseListener productDetailsResponseListener);
public abstract void queryPurchasesAsync(QueryPurchasesParams queryPurchasesParams, PurchasesResponseListener purchasesResponseListener);
public abstract void startConnection(BillingClientStateListener billingClientStateListener);
}

View File

@@ -0,0 +1,610 @@
package com.android.billingclient.api;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import androidx.work.WorkRequest;
import com.android.billingclient.api.BillingResult;
import com.firemonkeys.cloudcellapi.Consts;
import com.google.android.gms.internal.play_billing.zze;
import com.google.android.gms.internal.play_billing.zzfl;
import com.google.android.gms.internal.play_billing.zzfm;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import org.json.JSONException;
/* loaded from: classes.dex */
public class BillingClientImpl extends BillingClient {
public volatile int zza;
public final String zzb;
public final Handler zzc;
public volatile zzh zzd;
public Context zze;
public zzar zzf;
public volatile zze zzg;
public volatile zzaf zzh;
public boolean zzi;
public boolean zzj;
public int zzk;
public boolean zzl;
public boolean zzm;
public boolean zzn;
public boolean zzo;
public boolean zzp;
public boolean zzq;
public boolean zzr;
public boolean zzs;
public boolean zzt;
public boolean zzu;
public boolean zzv;
public boolean zzw;
public zzbe zzx;
public boolean zzy;
public ExecutorService zzz;
public static /* synthetic */ zzbj zzN(BillingClientImpl billingClientImpl, String str, int i) {
Bundle zzi;
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Querying owned items, item type: ".concat(String.valueOf(str)));
ArrayList arrayList = new ArrayList();
boolean z = true;
int i2 = 0;
Bundle zzc = com.google.android.gms.internal.play_billing.zzb.zzc(billingClientImpl.zzn, billingClientImpl.zzv, true, false, billingClientImpl.zzb);
List list = null;
String str2 = null;
while (true) {
try {
if (billingClientImpl.zzn) {
zzi = billingClientImpl.zzg.zzj(z != billingClientImpl.zzv ? 9 : 19, billingClientImpl.zze.getPackageName(), str, str2, zzc);
} else {
zzi = billingClientImpl.zzg.zzi(3, billingClientImpl.zze.getPackageName(), str, str2);
}
zzbk zza = zzbl.zza(zzi, "BillingClient", "getPurchase()");
BillingResult zza2 = zza.zza();
if (zza2 != zzat.zzl) {
billingClientImpl.zzf.zza(zzaq.zza(zza.zzb(), 9, zza2));
return new zzbj(zza2, list);
}
ArrayList<String> stringArrayList = zzi.getStringArrayList(Consts.RESPONSE_INAPP_ITEM_LIST);
ArrayList<String> stringArrayList2 = zzi.getStringArrayList(Consts.RESPONSE_INAPP_PURCHASE_DATA_LIST);
ArrayList<String> stringArrayList3 = zzi.getStringArrayList(Consts.RESPONSE_INAPP_SIGNATURE_LIST);
int i3 = i2;
int i4 = i3;
while (i3 < stringArrayList2.size()) {
String str3 = stringArrayList2.get(i3);
String str4 = stringArrayList3.get(i3);
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Sku is owned: ".concat(String.valueOf(stringArrayList.get(i3))));
try {
Purchase purchase = new Purchase(str3, str4);
if (TextUtils.isEmpty(purchase.getPurchaseToken())) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "BUG: empty/null token!");
i4 = 1;
}
arrayList.add(purchase);
i3++;
} catch (JSONException e) {
com.google.android.gms.internal.play_billing.zzb.zzk("BillingClient", "Got an exception trying to decode the purchase!", e);
zzar zzarVar = billingClientImpl.zzf;
BillingResult billingResult = zzat.zzj;
zzarVar.zza(zzaq.zza(51, 9, billingResult));
return new zzbj(billingResult, null);
}
}
if (i4 != 0) {
billingClientImpl.zzf.zza(zzaq.zza(26, 9, zzat.zzj));
}
str2 = zzi.getString(Consts.INAPP_CONTINUATION_TOKEN);
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Continuation token: ".concat(String.valueOf(str2)));
if (TextUtils.isEmpty(str2)) {
return new zzbj(zzat.zzl, arrayList);
}
list = null;
z = true;
i2 = 0;
} catch (Exception e2) {
zzar zzarVar2 = billingClientImpl.zzf;
BillingResult billingResult2 = zzat.zzm;
zzarVar2.zza(zzaq.zza(52, 9, billingResult2));
com.google.android.gms.internal.play_billing.zzb.zzk("BillingClient", "Got exception trying to get purchasesm try to reconnect", e2);
return new zzbj(billingResult2, null);
}
}
}
public static String zzR() {
try {
return (String) Class.forName("com.android.billingclient.ktx.BuildConfig").getField("VERSION_NAME").get(null);
} catch (Exception unused) {
return "6.0.1";
}
}
@Override // com.android.billingclient.api.BillingClient
public final void acknowledgePurchase(final AcknowledgePurchaseParams acknowledgePurchaseParams, final AcknowledgePurchaseResponseListener acknowledgePurchaseResponseListener) {
if (!isReady()) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzm;
zzarVar.zza(zzaq.zza(2, 3, billingResult));
acknowledgePurchaseResponseListener.onAcknowledgePurchaseResponse(billingResult);
return;
}
if (TextUtils.isEmpty(acknowledgePurchaseParams.getPurchaseToken())) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Please provide a valid purchase token.");
zzar zzarVar2 = this.zzf;
BillingResult billingResult2 = zzat.zzi;
zzarVar2.zza(zzaq.zza(26, 3, billingResult2));
acknowledgePurchaseResponseListener.onAcknowledgePurchaseResponse(billingResult2);
return;
}
if (!this.zzn) {
zzar zzarVar3 = this.zzf;
BillingResult billingResult3 = zzat.zzb;
zzarVar3.zza(zzaq.zza(27, 3, billingResult3));
acknowledgePurchaseResponseListener.onAcknowledgePurchaseResponse(billingResult3);
return;
}
if (zzS(new Callable() { // from class: com.android.billingclient.api.zzp
@Override // java.util.concurrent.Callable
public final Object call() {
BillingClientImpl.this.zzj(acknowledgePurchaseParams, acknowledgePurchaseResponseListener);
return null;
}
}, WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, new Runnable() { // from class: com.android.billingclient.api.zzq
@Override // java.lang.Runnable
public final void run() {
BillingClientImpl.this.zzG(acknowledgePurchaseResponseListener);
}
}, zzO()) == null) {
BillingResult zzQ = zzQ();
this.zzf.zza(zzaq.zza(25, 3, zzQ));
acknowledgePurchaseResponseListener.onAcknowledgePurchaseResponse(zzQ);
}
}
@Override // com.android.billingclient.api.BillingClient
public final void consumeAsync(final ConsumeParams consumeParams, final ConsumeResponseListener consumeResponseListener) {
if (!isReady()) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzm;
zzarVar.zza(zzaq.zza(2, 4, billingResult));
consumeResponseListener.onConsumeResponse(billingResult, consumeParams.getPurchaseToken());
return;
}
if (zzS(new Callable() { // from class: com.android.billingclient.api.zzm
@Override // java.util.concurrent.Callable
public final Object call() {
BillingClientImpl.this.zzk(consumeParams, consumeResponseListener);
return null;
}
}, WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, new Runnable() { // from class: com.android.billingclient.api.zzn
@Override // java.lang.Runnable
public final void run() {
BillingClientImpl.this.zzI(consumeResponseListener, consumeParams);
}
}, zzO()) == null) {
BillingResult zzQ = zzQ();
this.zzf.zza(zzaq.zza(25, 4, zzQ));
consumeResponseListener.onConsumeResponse(zzQ, consumeParams.getPurchaseToken());
}
}
@Override // com.android.billingclient.api.BillingClient
public final void endConnection() {
this.zzf.zzb(zzaq.zzb(12));
try {
try {
this.zzd.zzd();
if (this.zzh != null) {
this.zzh.zzc();
}
if (this.zzh != null && this.zzg != null) {
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Unbinding from service.");
this.zze.unbindService(this.zzh);
this.zzh = null;
}
this.zzg = null;
ExecutorService executorService = this.zzz;
if (executorService != null) {
executorService.shutdownNow();
this.zzz = null;
}
this.zza = 3;
} catch (Exception e) {
com.google.android.gms.internal.play_billing.zzb.zzk("BillingClient", "There was an exception while ending connection!", e);
this.zza = 3;
}
} catch (Throwable th) {
this.zza = 3;
throw th;
}
}
public final void initialize(Context context, PurchasesUpdatedListener purchasesUpdatedListener, zzbe zzbeVar, AlternativeBillingListener alternativeBillingListener, String str, zzar zzarVar) {
this.zze = context.getApplicationContext();
zzfl zzv = zzfm.zzv();
zzv.zzj(str);
zzv.zzi(this.zze.getPackageName());
if (zzarVar != null) {
this.zzf = zzarVar;
} else {
this.zzf = new zzaw(this.zze, (zzfm) zzv.zzc());
}
if (purchasesUpdatedListener == null) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Billing client should have a valid listener but the provided is null.");
}
this.zzd = new zzh(this.zze, purchasesUpdatedListener, alternativeBillingListener, this.zzf);
this.zzx = zzbeVar;
this.zzy = alternativeBillingListener != null;
}
@Override // com.android.billingclient.api.BillingClient
public final boolean isReady() {
return (this.zza != 2 || this.zzg == null || this.zzh == null) ? false : true;
}
/* JADX WARN: Removed duplicated region for block: B:125:0x0375 */
/* JADX WARN: Removed duplicated region for block: B:126:0x0378 */
@Override // com.android.billingclient.api.BillingClient
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final com.android.billingclient.api.BillingResult launchBillingFlow(android.app.Activity r25, final com.android.billingclient.api.BillingFlowParams r26) {
/*
Method dump skipped, instructions count: 1090
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.android.billingclient.api.BillingClientImpl.launchBillingFlow(android.app.Activity, com.android.billingclient.api.BillingFlowParams):com.android.billingclient.api.BillingResult");
}
@Override // com.android.billingclient.api.BillingClient
public final void queryProductDetailsAsync(final QueryProductDetailsParams queryProductDetailsParams, final ProductDetailsResponseListener productDetailsResponseListener) {
if (!isReady()) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzm;
zzarVar.zza(zzaq.zza(2, 7, billingResult));
productDetailsResponseListener.onProductDetailsResponse(billingResult, new ArrayList());
return;
}
if (this.zzt) {
if (zzS(new Callable() { // from class: com.android.billingclient.api.zzk
@Override // java.util.concurrent.Callable
public final Object call() {
BillingClientImpl.this.zzl(queryProductDetailsParams, productDetailsResponseListener);
return null;
}
}, WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, new Runnable() { // from class: com.android.billingclient.api.zzl
@Override // java.lang.Runnable
public final void run() {
BillingClientImpl.this.zzJ(productDetailsResponseListener);
}
}, zzO()) == null) {
BillingResult zzQ = zzQ();
this.zzf.zza(zzaq.zza(25, 7, zzQ));
productDetailsResponseListener.onProductDetailsResponse(zzQ, new ArrayList());
return;
}
return;
}
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Querying product details is not supported.");
zzar zzarVar2 = this.zzf;
BillingResult billingResult2 = zzat.zzv;
zzarVar2.zza(zzaq.zza(20, 7, billingResult2));
productDetailsResponseListener.onProductDetailsResponse(billingResult2, new ArrayList());
}
@Override // com.android.billingclient.api.BillingClient
public final void queryPurchasesAsync(QueryPurchasesParams queryPurchasesParams, PurchasesResponseListener purchasesResponseListener) {
zzU(queryPurchasesParams.zza(), purchasesResponseListener);
}
public final /* synthetic */ void zzG(AcknowledgePurchaseResponseListener acknowledgePurchaseResponseListener) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzn;
zzarVar.zza(zzaq.zza(24, 3, billingResult));
acknowledgePurchaseResponseListener.onAcknowledgePurchaseResponse(billingResult);
}
public final /* synthetic */ void zzH(BillingResult billingResult) {
if (this.zzd.zzc() != null) {
this.zzd.zzc().onPurchasesUpdated(billingResult, null);
} else {
this.zzd.zzb();
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "No valid listener is set in BroadcastManager");
}
}
public final /* synthetic */ void zzI(ConsumeResponseListener consumeResponseListener, ConsumeParams consumeParams) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzn;
zzarVar.zza(zzaq.zza(24, 4, billingResult));
consumeResponseListener.onConsumeResponse(billingResult, consumeParams.getPurchaseToken());
}
public final /* synthetic */ void zzJ(ProductDetailsResponseListener productDetailsResponseListener) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzn;
zzarVar.zza(zzaq.zza(24, 7, billingResult));
productDetailsResponseListener.onProductDetailsResponse(billingResult, new ArrayList());
}
public final /* synthetic */ void zzL(PurchasesResponseListener purchasesResponseListener) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzn;
zzarVar.zza(zzaq.zza(24, 9, billingResult));
purchasesResponseListener.onQueryPurchasesResponse(billingResult, com.google.android.gms.internal.play_billing.zzu.zzk());
}
public final Handler zzO() {
return Looper.myLooper() == null ? this.zzc : new Handler(Looper.myLooper());
}
public final BillingResult zzP(final BillingResult billingResult) {
if (Thread.interrupted()) {
return billingResult;
}
this.zzc.post(new Runnable() { // from class: com.android.billingclient.api.zzx
@Override // java.lang.Runnable
public final void run() {
BillingClientImpl.this.zzH(billingResult);
}
});
return billingResult;
}
public final Future zzS(Callable callable, long j, final Runnable runnable, Handler handler) {
if (this.zzz == null) {
this.zzz = Executors.newFixedThreadPool(com.google.android.gms.internal.play_billing.zzb.zza, new zzab(this));
}
try {
final Future submit = this.zzz.submit(callable);
handler.postDelayed(new Runnable() { // from class: com.android.billingclient.api.zzw
@Override // java.lang.Runnable
public final void run() {
Future future = submit;
Runnable runnable2 = runnable;
if (future.isDone() || future.isCancelled()) {
return;
}
future.cancel(true);
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Async task is taking too long, cancel it!");
if (runnable2 != null) {
runnable2.run();
}
}
}, (long) (j * 0.95d));
return submit;
} catch (Exception e) {
com.google.android.gms.internal.play_billing.zzb.zzk("BillingClient", "Async task throws exception!", e);
return null;
}
}
public final void zzU(String str, final PurchasesResponseListener purchasesResponseListener) {
if (!isReady()) {
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzm;
zzarVar.zza(zzaq.zza(2, 9, billingResult));
purchasesResponseListener.onQueryPurchasesResponse(billingResult, com.google.android.gms.internal.play_billing.zzu.zzk());
return;
}
if (TextUtils.isEmpty(str)) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Please provide a valid product type.");
zzar zzarVar2 = this.zzf;
BillingResult billingResult2 = zzat.zzg;
zzarVar2.zza(zzaq.zza(50, 9, billingResult2));
purchasesResponseListener.onQueryPurchasesResponse(billingResult2, com.google.android.gms.internal.play_billing.zzu.zzk());
return;
}
if (zzS(new zzy(this, str, purchasesResponseListener), WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, new Runnable() { // from class: com.android.billingclient.api.zzu
@Override // java.lang.Runnable
public final void run() {
BillingClientImpl.this.zzL(purchasesResponseListener);
}
}, zzO()) == null) {
BillingResult zzQ = zzQ();
this.zzf.zza(zzaq.zza(25, 9, zzQ));
purchasesResponseListener.onQueryPurchasesResponse(zzQ, com.google.android.gms.internal.play_billing.zzu.zzk());
}
}
public final /* synthetic */ Bundle zzc(int i, String str, String str2, BillingFlowParams billingFlowParams, Bundle bundle) {
return this.zzg.zzg(i, this.zze.getPackageName(), str, str2, null, bundle);
}
public final /* synthetic */ Bundle zzd(String str, String str2) {
return this.zzg.zzf(3, this.zze.getPackageName(), str, str2, null);
}
public final /* synthetic */ Object zzj(AcknowledgePurchaseParams acknowledgePurchaseParams, AcknowledgePurchaseResponseListener acknowledgePurchaseResponseListener) {
try {
zze zzeVar = this.zzg;
String packageName = this.zze.getPackageName();
String purchaseToken = acknowledgePurchaseParams.getPurchaseToken();
String str = this.zzb;
Bundle bundle = new Bundle();
bundle.putString("playBillingLibraryVersion", str);
Bundle zzd = zzeVar.zzd(9, packageName, purchaseToken, bundle);
int zzb = com.google.android.gms.internal.play_billing.zzb.zzb(zzd, "BillingClient");
String zzf = com.google.android.gms.internal.play_billing.zzb.zzf(zzd, "BillingClient");
BillingResult.Builder newBuilder = BillingResult.newBuilder();
newBuilder.setResponseCode(zzb);
newBuilder.setDebugMessage(zzf);
acknowledgePurchaseResponseListener.onAcknowledgePurchaseResponse(newBuilder.build());
return null;
} catch (Exception e) {
com.google.android.gms.internal.play_billing.zzb.zzk("BillingClient", "Error acknowledge purchase!", e);
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzm;
zzarVar.zza(zzaq.zza(28, 3, billingResult));
acknowledgePurchaseResponseListener.onAcknowledgePurchaseResponse(billingResult);
return null;
}
}
public final /* synthetic */ Object zzk(ConsumeParams consumeParams, ConsumeResponseListener consumeResponseListener) {
int zza;
String str;
String purchaseToken = consumeParams.getPurchaseToken();
try {
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Consuming purchase with token: " + purchaseToken);
if (this.zzn) {
zze zzeVar = this.zzg;
String packageName = this.zze.getPackageName();
boolean z = this.zzn;
String str2 = this.zzb;
Bundle bundle = new Bundle();
if (z) {
bundle.putString("playBillingLibraryVersion", str2);
}
Bundle zze = zzeVar.zze(9, packageName, purchaseToken, bundle);
zza = zze.getInt("RESPONSE_CODE");
str = com.google.android.gms.internal.play_billing.zzb.zzf(zze, "BillingClient");
} else {
zza = this.zzg.zza(3, this.zze.getPackageName(), purchaseToken);
str = "";
}
BillingResult.Builder newBuilder = BillingResult.newBuilder();
newBuilder.setResponseCode(zza);
newBuilder.setDebugMessage(str);
BillingResult build = newBuilder.build();
if (zza == 0) {
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Successfully consumed purchase.");
consumeResponseListener.onConsumeResponse(build, purchaseToken);
return null;
}
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Error consuming purchase with token. Response code: " + zza);
this.zzf.zza(zzaq.zza(23, 4, build));
consumeResponseListener.onConsumeResponse(build, purchaseToken);
return null;
} catch (Exception e) {
com.google.android.gms.internal.play_billing.zzb.zzk("BillingClient", "Error consuming purchase!", e);
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzm;
zzarVar.zza(zzaq.zza(29, 4, billingResult));
consumeResponseListener.onConsumeResponse(billingResult, purchaseToken);
return null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:64:0x0127, code lost:
r12 = 4;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final /* synthetic */ java.lang.Object zzl(com.android.billingclient.api.QueryProductDetailsParams r25, com.android.billingclient.api.ProductDetailsResponseListener r26) {
/*
Method dump skipped, instructions count: 537
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.android.billingclient.api.BillingClientImpl.zzl(com.android.billingclient.api.QueryProductDetailsParams, com.android.billingclient.api.ProductDetailsResponseListener):java.lang.Object");
}
public final BillingResult zzQ() {
return (this.zza == 0 || this.zza == 3) ? zzat.zzm : zzat.zzj;
}
public BillingClientImpl(Context context, zzbe zzbeVar, PurchasesUpdatedListener purchasesUpdatedListener, String str, String str2, AlternativeBillingListener alternativeBillingListener, zzar zzarVar) {
this.zza = 0;
this.zzc = new Handler(Looper.getMainLooper());
this.zzk = 0;
this.zzb = str;
initialize(context, purchasesUpdatedListener, zzbeVar, alternativeBillingListener, str, null);
}
public BillingClientImpl(String str, zzbe zzbeVar, Context context, zzaz zzazVar, zzar zzarVar) {
this.zza = 0;
this.zzc = new Handler(Looper.getMainLooper());
this.zzk = 0;
this.zzb = zzR();
this.zze = context.getApplicationContext();
zzfl zzv = zzfm.zzv();
zzv.zzj(zzR());
zzv.zzi(this.zze.getPackageName());
this.zzf = new zzaw(this.zze, (zzfm) zzv.zzc());
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Billing client should have a valid listener but the provided is null.");
this.zzd = new zzh(this.zze, null, this.zzf);
this.zzx = zzbeVar;
}
public BillingClientImpl(String str, zzbe zzbeVar, Context context, PurchasesUpdatedListener purchasesUpdatedListener, AlternativeBillingListener alternativeBillingListener, zzar zzarVar) {
this(context, zzbeVar, purchasesUpdatedListener, zzR(), null, alternativeBillingListener, null);
}
@Override // com.android.billingclient.api.BillingClient
public final void startConnection(BillingClientStateListener billingClientStateListener) {
if (isReady()) {
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Service connection is valid. No need to re-initialize.");
this.zzf.zzb(zzaq.zzb(6));
billingClientStateListener.onBillingSetupFinished(zzat.zzl);
return;
}
int i = 1;
if (this.zza == 1) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Client is already in the process of connecting to billing service.");
zzar zzarVar = this.zzf;
BillingResult billingResult = zzat.zzd;
zzarVar.zza(zzaq.zza(37, 6, billingResult));
billingClientStateListener.onBillingSetupFinished(billingResult);
return;
}
if (this.zza == 3) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Client was already closed and can't be reused. Please create another instance.");
zzar zzarVar2 = this.zzf;
BillingResult billingResult2 = zzat.zzm;
zzarVar2.zza(zzaq.zza(38, 6, billingResult2));
billingClientStateListener.onBillingSetupFinished(billingResult2);
return;
}
this.zza = 1;
this.zzd.zze();
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Starting in-app billing setup.");
this.zzh = new zzaf(this, billingClientStateListener, null);
Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
intent.setPackage("com.android.vending");
List<ResolveInfo> queryIntentServices = this.zze.getPackageManager().queryIntentServices(intent, 0);
if (queryIntentServices == null || queryIntentServices.isEmpty()) {
i = 41;
} else {
ServiceInfo serviceInfo = queryIntentServices.get(0).serviceInfo;
if (serviceInfo != null) {
String str = serviceInfo.packageName;
String str2 = serviceInfo.name;
if (!"com.android.vending".equals(str) || str2 == null) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "The device doesn't have valid Play Store.");
i = 40;
} else {
ComponentName componentName = new ComponentName(str, str2);
Intent intent2 = new Intent(intent);
intent2.setComponent(componentName);
intent2.putExtra("playBillingLibraryVersion", this.zzb);
if (this.zze.bindService(intent2, this.zzh, 1)) {
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Service was bonded successfully.");
return;
} else {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Connection to Billing service is blocked.");
i = 39;
}
}
}
}
this.zza = 0;
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Billing service unavailable on device.");
zzar zzarVar3 = this.zzf;
BillingResult billingResult3 = zzat.zzc;
zzarVar3.zza(zzaq.zza(i, 6, billingResult3));
billingClientStateListener.onBillingSetupFinished(billingResult3);
}
}

View File

@@ -0,0 +1,8 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public interface BillingClientStateListener {
void onBillingServiceDisconnected();
void onBillingSetupFinished(BillingResult billingResult);
}

View File

@@ -0,0 +1,255 @@
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;
}
}

View File

@@ -0,0 +1,48 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class BillingResult {
public int zza;
public String zzb;
public static class Builder {
public int zza;
public String zzb = "";
public /* synthetic */ Builder(zzas zzasVar) {
}
public BillingResult build() {
BillingResult billingResult = new BillingResult();
billingResult.zza = this.zza;
billingResult.zzb = this.zzb;
return billingResult;
}
public Builder setDebugMessage(String str) {
this.zzb = str;
return this;
}
public Builder setResponseCode(int i) {
this.zza = i;
return this;
}
}
public static Builder newBuilder() {
return new Builder(null);
}
public String getDebugMessage() {
return this.zzb;
}
public int getResponseCode() {
return this.zza;
}
public String toString() {
return "Response Code: " + com.google.android.gms.internal.play_billing.zzb.zzg(this.zza) + ", Debug Message: " + this.zzb;
}
}

View File

@@ -0,0 +1,39 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class ConsumeParams {
public String zza;
public static final class Builder {
public String zza;
public /* synthetic */ Builder(zzau zzauVar) {
}
public ConsumeParams build() {
String str = this.zza;
if (str == null) {
throw new IllegalArgumentException("Purchase token must be set");
}
ConsumeParams consumeParams = new ConsumeParams(null);
consumeParams.zza = str;
return consumeParams;
}
public Builder setPurchaseToken(String str) {
this.zza = str;
return this;
}
}
public /* synthetic */ ConsumeParams(zzav zzavVar) {
}
public static Builder newBuilder() {
return new Builder(null);
}
public String getPurchaseToken() {
return this.zza;
}
}

View File

@@ -0,0 +1,6 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public interface ConsumeResponseListener {
void onConsumeResponse(BillingResult billingResult, String str);
}

View File

@@ -0,0 +1,12 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class InAppMessageResult {
public final int zza;
public final String zzb;
public InAppMessageResult(int i, String str) {
this.zza = i;
this.zzb = str;
}
}

View File

@@ -0,0 +1,274 @@
package com.android.billingclient.api;
import android.text.TextUtils;
import com.firemonkeys.cloudcellapi.Consts;
import com.tapjoy.TapjoyConstants;
import com.unity3d.ads.core.domain.HandleInvocationsFromAdViewer;
import com.unity3d.ads.metadata.InAppPurchaseMetaData;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class ProductDetails {
public final String zza;
public final JSONObject zzb;
public final String zzc;
public final String zzd;
public final String zze;
public final String zzf;
public final String zzg;
public final String zzh;
public final String zzi;
public final String zzj;
public final String zzk;
public final List zzl;
public final List zzm;
public static final class OneTimePurchaseOfferDetails {
public final String zza;
public final long zzb;
public final String zzc;
public final String zzd;
public final String zze;
public final com.google.android.gms.internal.play_billing.zzu zzf;
public final Long zzg;
public final zzbg zzh;
public final zzbi zzi;
public final zzbh zzj;
public OneTimePurchaseOfferDetails(JSONObject jSONObject) {
this.zza = jSONObject.optString("formattedPrice");
this.zzb = jSONObject.optLong("priceAmountMicros");
this.zzc = jSONObject.optString("priceCurrencyCode");
this.zzd = jSONObject.optString("offerIdToken");
this.zze = jSONObject.optString(TapjoyConstants.TJC_PLACEMENT_OFFER_ID);
jSONObject.optInt("offerType");
JSONArray optJSONArray = jSONObject.optJSONArray("offerTags");
ArrayList arrayList = new ArrayList();
if (optJSONArray != null) {
for (int i = 0; i < optJSONArray.length(); i++) {
arrayList.add(optJSONArray.getString(i));
}
}
this.zzf = com.google.android.gms.internal.play_billing.zzu.zzj(arrayList);
this.zzg = jSONObject.has("fullPriceMicros") ? Long.valueOf(jSONObject.optLong("fullPriceMicros")) : null;
JSONObject optJSONObject = jSONObject.optJSONObject("discountDisplayInfo");
this.zzh = optJSONObject == null ? null : new zzbg(optJSONObject);
JSONObject optJSONObject2 = jSONObject.optJSONObject("validTimeWindow");
this.zzi = optJSONObject2 == null ? null : new zzbi(optJSONObject2);
JSONObject optJSONObject3 = jSONObject.optJSONObject("limitedQuantityInfo");
this.zzj = optJSONObject3 != null ? new zzbh(optJSONObject3) : null;
}
public String getFormattedPrice() {
return this.zza;
}
public long getPriceAmountMicros() {
return this.zzb;
}
public String getPriceCurrencyCode() {
return this.zzc;
}
public final String zza() {
return this.zzd;
}
}
public static final class PricingPhase {
public final String zza;
public final long zzb;
public final String zzc;
public final String zzd;
public final int zze;
public final int zzf;
public PricingPhase(JSONObject jSONObject) {
this.zzd = jSONObject.optString("billingPeriod");
this.zzc = jSONObject.optString("priceCurrencyCode");
this.zza = jSONObject.optString("formattedPrice");
this.zzb = jSONObject.optLong("priceAmountMicros");
this.zzf = jSONObject.optInt("recurrenceMode");
this.zze = jSONObject.optInt("billingCycleCount");
}
public String getFormattedPrice() {
return this.zza;
}
public long getPriceAmountMicros() {
return this.zzb;
}
public String getPriceCurrencyCode() {
return this.zzc;
}
}
public static class PricingPhases {
public final List zza;
public PricingPhases(JSONArray jSONArray) {
ArrayList arrayList = new ArrayList();
if (jSONArray != null) {
for (int i = 0; i < jSONArray.length(); i++) {
JSONObject optJSONObject = jSONArray.optJSONObject(i);
if (optJSONObject != null) {
arrayList.add(new PricingPhase(optJSONObject));
}
}
}
this.zza = arrayList;
}
public List getPricingPhaseList() {
return this.zza;
}
}
public static final class SubscriptionOfferDetails {
public final String zza;
public final String zzb;
public final String zzc;
public final PricingPhases zzd;
public final List zze;
public final zzbf zzf;
public SubscriptionOfferDetails(JSONObject jSONObject) {
this.zza = jSONObject.optString("basePlanId");
String optString = jSONObject.optString(TapjoyConstants.TJC_PLACEMENT_OFFER_ID);
this.zzb = true == optString.isEmpty() ? null : optString;
this.zzc = jSONObject.getString("offerIdToken");
this.zzd = new PricingPhases(jSONObject.getJSONArray("pricingPhases"));
JSONObject optJSONObject = jSONObject.optJSONObject("installmentPlanDetails");
this.zzf = optJSONObject != null ? new zzbf(optJSONObject) : null;
ArrayList arrayList = new ArrayList();
JSONArray optJSONArray = jSONObject.optJSONArray("offerTags");
if (optJSONArray != null) {
for (int i = 0; i < optJSONArray.length(); i++) {
arrayList.add(optJSONArray.getString(i));
}
}
this.zze = arrayList;
}
public String getOfferToken() {
return this.zzc;
}
public PricingPhases getPricingPhases() {
return this.zzd;
}
}
public ProductDetails(String str) {
this.zza = str;
JSONObject jSONObject = new JSONObject(str);
this.zzb = jSONObject;
String optString = jSONObject.optString(InAppPurchaseMetaData.KEY_PRODUCT_ID);
this.zzc = optString;
String optString2 = jSONObject.optString("type");
this.zzd = optString2;
if (TextUtils.isEmpty(optString)) {
throw new IllegalArgumentException("Product id cannot be empty.");
}
if (TextUtils.isEmpty(optString2)) {
throw new IllegalArgumentException("Product type cannot be empty.");
}
this.zze = jSONObject.optString("title");
this.zzf = jSONObject.optString("name");
this.zzg = jSONObject.optString("description");
this.zzi = jSONObject.optString("packageDisplayName");
this.zzj = jSONObject.optString("iconUrl");
this.zzh = jSONObject.optString("skuDetailsToken");
this.zzk = jSONObject.optString("serializedDocid");
JSONArray optJSONArray = jSONObject.optJSONArray("subscriptionOfferDetails");
if (optJSONArray != null) {
ArrayList arrayList = new ArrayList();
for (int i = 0; i < optJSONArray.length(); i++) {
arrayList.add(new SubscriptionOfferDetails(optJSONArray.getJSONObject(i)));
}
this.zzl = arrayList;
} else {
this.zzl = (optString2.equals(Consts.ITEM_TYPE_SUBSCRIPTION) || optString2.equals("play_pass_subs")) ? new ArrayList() : null;
}
JSONObject optJSONObject = this.zzb.optJSONObject("oneTimePurchaseOfferDetails");
JSONArray optJSONArray2 = this.zzb.optJSONArray("oneTimePurchaseOfferDetailsList");
ArrayList arrayList2 = new ArrayList();
if (optJSONArray2 != null) {
for (int i2 = 0; i2 < optJSONArray2.length(); i2++) {
arrayList2.add(new OneTimePurchaseOfferDetails(optJSONArray2.getJSONObject(i2)));
}
this.zzm = arrayList2;
return;
}
if (optJSONObject == null) {
this.zzm = null;
} else {
arrayList2.add(new OneTimePurchaseOfferDetails(optJSONObject));
this.zzm = arrayList2;
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof ProductDetails) {
return TextUtils.equals(this.zza, ((ProductDetails) obj).zza);
}
return false;
}
public String getDescription() {
return this.zzg;
}
public OneTimePurchaseOfferDetails getOneTimePurchaseOfferDetails() {
List list = this.zzm;
if (list == null || list.isEmpty()) {
return null;
}
return (OneTimePurchaseOfferDetails) this.zzm.get(0);
}
public String getProductId() {
return this.zzc;
}
public String getProductType() {
return this.zzd;
}
public List getSubscriptionOfferDetails() {
return this.zzl;
}
public String getTitle() {
return this.zze;
}
public int hashCode() {
return this.zza.hashCode();
}
public String toString() {
return "ProductDetails{jsonString='" + this.zza + "', parsedJson=" + this.zzb.toString() + ", productId='" + this.zzc + "', productType='" + this.zzd + "', title='" + this.zze + "', productDetailsToken='" + this.zzh + "', subscriptionOfferDetails=" + String.valueOf(this.zzl) + "}";
}
public final String zza() {
return this.zzb.optString(HandleInvocationsFromAdViewer.KEY_PACKAGE_NAME);
}
public final String zzb() {
return this.zzh;
}
public String zzc() {
return this.zzk;
}
}

View File

@@ -0,0 +1,8 @@
package com.android.billingclient.api;
import java.util.List;
/* loaded from: classes.dex */
public interface ProductDetailsResponseListener {
void onProductDetailsResponse(BillingResult billingResult, List list);
}

View File

@@ -0,0 +1,138 @@
package com.android.billingclient.api;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.os.ResultReceiver;
import com.firemonkeys.cloudcellapi.Consts;
import com.google.android.apps.common.proguard.UsedByReflection;
@UsedByReflection("PlatformActivityProxy")
/* loaded from: classes.dex */
public class ProxyBillingActivity extends Activity {
public ResultReceiver inAppMessageResultReceiver;
public boolean isFlowFromFirstPartyClient;
public ResultReceiver priceChangeResultReceiver;
public boolean sendCancelledBroadcastIfFinished;
public final Intent makeAlternativeBillingIntent(String str) {
Intent intent = new Intent("com.android.vending.billing.ALTERNATIVE_BILLING");
intent.setPackage(getApplicationContext().getPackageName());
intent.putExtra("ALTERNATIVE_BILLING_USER_CHOICE_DATA", str);
return intent;
}
public final Intent makePurchasesUpdatedIntent() {
Intent intent = new Intent("com.android.vending.billing.PURCHASES_UPDATED");
intent.setPackage(getApplicationContext().getPackageName());
return intent;
}
/* JADX WARN: Removed duplicated region for block: B:22:0x0074 */
/* JADX WARN: Removed duplicated region for block: B:25:0x0080 */
@Override // android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onActivityResult(int r8, int r9, android.content.Intent r10) {
/*
Method dump skipped, instructions count: 252
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.android.billingclient.api.ProxyBillingActivity.onActivityResult(int, int, android.content.Intent):void");
}
@Override // android.app.Activity
public void onCreate(Bundle bundle) {
int i;
PendingIntent pendingIntent;
int i2;
super.onCreate(bundle);
if (bundle != null) {
com.google.android.gms.internal.play_billing.zzb.zzi("ProxyBillingActivity", "Launching Play Store billing flow from savedInstanceState");
this.sendCancelledBroadcastIfFinished = bundle.getBoolean("send_cancelled_broadcast_if_finished", false);
if (bundle.containsKey("result_receiver")) {
this.priceChangeResultReceiver = (ResultReceiver) bundle.getParcelable("result_receiver");
} else if (bundle.containsKey("in_app_message_result_receiver")) {
this.inAppMessageResultReceiver = (ResultReceiver) bundle.getParcelable("in_app_message_result_receiver");
}
this.isFlowFromFirstPartyClient = bundle.getBoolean("IS_FLOW_FROM_FIRST_PARTY_CLIENT", false);
return;
}
com.google.android.gms.internal.play_billing.zzb.zzi("ProxyBillingActivity", "Launching Play Store billing flow");
if (getIntent().hasExtra(Consts.RESPONSE_BUY_INTENT)) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra(Consts.RESPONSE_BUY_INTENT);
if (getIntent().hasExtra("IS_FLOW_FROM_FIRST_PARTY_CLIENT") && getIntent().getBooleanExtra("IS_FLOW_FROM_FIRST_PARTY_CLIENT", false)) {
this.isFlowFromFirstPartyClient = true;
i2 = 110;
i = i2;
}
i = 100;
} else if (getIntent().hasExtra("SUBS_MANAGEMENT_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("SUBS_MANAGEMENT_INTENT");
this.priceChangeResultReceiver = (ResultReceiver) getIntent().getParcelableExtra("result_receiver");
i = 100;
} else if (getIntent().hasExtra("IN_APP_MESSAGE_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("IN_APP_MESSAGE_INTENT");
this.inAppMessageResultReceiver = (ResultReceiver) getIntent().getParcelableExtra("in_app_message_result_receiver");
i2 = 101;
i = i2;
} else {
i = 100;
pendingIntent = null;
}
try {
this.sendCancelledBroadcastIfFinished = true;
startIntentSenderForResult(pendingIntent.getIntentSender(), i, new Intent(), 0, 0, 0);
} catch (IntentSender.SendIntentException e) {
com.google.android.gms.internal.play_billing.zzb.zzk("ProxyBillingActivity", "Got exception while trying to start a purchase flow.", e);
ResultReceiver resultReceiver = this.priceChangeResultReceiver;
if (resultReceiver != null) {
resultReceiver.send(6, null);
} else {
ResultReceiver resultReceiver2 = this.inAppMessageResultReceiver;
if (resultReceiver2 != null) {
resultReceiver2.send(0, null);
} else {
Intent makePurchasesUpdatedIntent = makePurchasesUpdatedIntent();
if (this.isFlowFromFirstPartyClient) {
makePurchasesUpdatedIntent.putExtra("IS_FIRST_PARTY_PURCHASE", true);
}
makePurchasesUpdatedIntent.putExtra("RESPONSE_CODE", 6);
makePurchasesUpdatedIntent.putExtra("DEBUG_MESSAGE", "An internal error occurred.");
sendBroadcast(makePurchasesUpdatedIntent);
}
}
this.sendCancelledBroadcastIfFinished = false;
finish();
}
}
@Override // android.app.Activity
public void onDestroy() {
super.onDestroy();
if (isFinishing() && this.sendCancelledBroadcastIfFinished) {
Intent makePurchasesUpdatedIntent = makePurchasesUpdatedIntent();
makePurchasesUpdatedIntent.putExtra("RESPONSE_CODE", 1);
makePurchasesUpdatedIntent.putExtra("DEBUG_MESSAGE", "Billing dialog closed.");
sendBroadcast(makePurchasesUpdatedIntent);
}
}
@Override // android.app.Activity
public void onSaveInstanceState(Bundle bundle) {
ResultReceiver resultReceiver = this.priceChangeResultReceiver;
if (resultReceiver != null) {
bundle.putParcelable("result_receiver", resultReceiver);
}
ResultReceiver resultReceiver2 = this.inAppMessageResultReceiver;
if (resultReceiver2 != null) {
bundle.putParcelable("in_app_message_result_receiver", resultReceiver2);
}
bundle.putBoolean("send_cancelled_broadcast_if_finished", this.sendCancelledBroadcastIfFinished);
bundle.putBoolean("IS_FLOW_FROM_FIRST_PARTY_CLIENT", this.isFlowFromFirstPartyClient);
}
}

View File

@@ -0,0 +1,97 @@
package com.android.billingclient.api;
import android.text.TextUtils;
import com.facebook.gamingservices.cloudgaming.internal.SDKConstants;
import com.unity3d.ads.metadata.InAppPurchaseMetaData;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class Purchase {
public final String zza;
public final String zzb;
public final JSONObject zzc;
public Purchase(String str, String str2) {
this.zza = str;
this.zzb = str2;
this.zzc = new JSONObject(str);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Purchase)) {
return false;
}
Purchase purchase = (Purchase) obj;
return TextUtils.equals(this.zza, purchase.getOriginalJson()) && TextUtils.equals(this.zzb, purchase.getSignature());
}
public String getDeveloperPayload() {
return this.zzc.optString(SDKConstants.PARAM_DEVELOPER_PAYLOAD);
}
public String getOrderId() {
String optString = this.zzc.optString("orderId");
if (TextUtils.isEmpty(optString)) {
return null;
}
return optString;
}
public String getOriginalJson() {
return this.zza;
}
public List getProducts() {
return zza();
}
public int getPurchaseState() {
return this.zzc.optInt("purchaseState", 1) != 4 ? 1 : 2;
}
public long getPurchaseTime() {
return this.zzc.optLong("purchaseTime");
}
public String getPurchaseToken() {
JSONObject jSONObject = this.zzc;
return jSONObject.optString("token", jSONObject.optString(SDKConstants.PARAM_PURCHASE_TOKEN));
}
public String getSignature() {
return this.zzb;
}
public int hashCode() {
return this.zza.hashCode();
}
public boolean isAcknowledged() {
return this.zzc.optBoolean("acknowledged", true);
}
public String toString() {
return "Purchase. Json: ".concat(String.valueOf(this.zza));
}
public final ArrayList zza() {
ArrayList arrayList = new ArrayList();
if (this.zzc.has("productIds")) {
JSONArray optJSONArray = this.zzc.optJSONArray("productIds");
if (optJSONArray != null) {
for (int i = 0; i < optJSONArray.length(); i++) {
arrayList.add(optJSONArray.optString(i));
}
}
} else if (this.zzc.has(InAppPurchaseMetaData.KEY_PRODUCT_ID)) {
arrayList.add(this.zzc.optString(InAppPurchaseMetaData.KEY_PRODUCT_ID));
}
return arrayList;
}
}

View File

@@ -0,0 +1,5 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public interface PurchaseHistoryResponseListener {
}

View File

@@ -0,0 +1,8 @@
package com.android.billingclient.api;
import java.util.List;
/* loaded from: classes.dex */
public interface PurchasesResponseListener {
void onQueryPurchasesResponse(BillingResult billingResult, List list);
}

View File

@@ -0,0 +1,8 @@
package com.android.billingclient.api;
import java.util.List;
/* loaded from: classes.dex */
public interface PurchasesUpdatedListener {
void onPurchasesUpdated(BillingResult billingResult, List list);
}

View File

@@ -0,0 +1,109 @@
package com.android.billingclient.api;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes.dex */
public final class QueryProductDetailsParams {
public final com.google.android.gms.internal.play_billing.zzu zza;
public static class Builder {
public com.google.android.gms.internal.play_billing.zzu zza;
public /* synthetic */ Builder(zzbm zzbmVar) {
}
public QueryProductDetailsParams build() {
return new QueryProductDetailsParams(this, null);
}
public Builder setProductList(List list) {
if (list == null || list.isEmpty()) {
throw new IllegalArgumentException("Product list cannot be empty.");
}
HashSet hashSet = new HashSet();
Iterator it = list.iterator();
while (it.hasNext()) {
Product product = (Product) it.next();
if (!"play_pass_subs".equals(product.zzb())) {
hashSet.add(product.zzb());
}
}
if (hashSet.size() > 1) {
throw new IllegalArgumentException("All products should be of the same product type.");
}
this.zza = com.google.android.gms.internal.play_billing.zzu.zzj(list);
return this;
}
}
public static class Product {
public final String zza;
public final String zzb;
public static class Builder {
public String zza;
public String zzb;
public /* synthetic */ Builder(zzbn zzbnVar) {
}
public Product build() {
if ("first_party".equals(this.zzb)) {
throw new IllegalArgumentException("Serialized doc id must be provided for first party products.");
}
if (this.zza == null) {
throw new IllegalArgumentException("Product id must be provided.");
}
if (this.zzb != null) {
return new Product(this, null);
}
throw new IllegalArgumentException("Product type must be provided.");
}
public Builder setProductId(String str) {
this.zza = str;
return this;
}
public Builder setProductType(String str) {
this.zzb = str;
return this;
}
}
public /* synthetic */ Product(Builder builder, zzbo zzboVar) {
this.zza = builder.zza;
this.zzb = builder.zzb;
}
public static Builder newBuilder() {
return new Builder(null);
}
public final String zza() {
return this.zza;
}
public final String zzb() {
return this.zzb;
}
}
public /* synthetic */ QueryProductDetailsParams(Builder builder, zzbp zzbpVar) {
this.zza = builder.zza;
}
public static Builder newBuilder() {
return new Builder(null);
}
public final com.google.android.gms.internal.play_billing.zzu zza() {
return this.zza;
}
public final String zzb() {
return ((Product) this.zza.get(0)).zzb();
}
}

View File

@@ -0,0 +1,37 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class QueryPurchasesParams {
public final String zza;
public static class Builder {
public String zza;
public /* synthetic */ Builder(zzbs zzbsVar) {
}
public QueryPurchasesParams build() {
if (this.zza != null) {
return new QueryPurchasesParams(this, null);
}
throw new IllegalArgumentException("Product type must be set");
}
public Builder setProductType(String str) {
this.zza = str;
return this;
}
}
public /* synthetic */ QueryPurchasesParams(Builder builder, zzbt zzbtVar) {
this.zza = builder.zza;
}
public static Builder newBuilder() {
return new Builder(null);
}
public final String zza() {
return this.zza;
}
}

View File

@@ -0,0 +1,5 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public abstract class SkuDetailsParams {
}

View File

@@ -0,0 +1,5 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public interface SkuDetailsResponseListener {
}

View File

@@ -0,0 +1,13 @@
package com.android.billingclient.api;
import android.os.Bundle;
import android.os.ResultReceiver;
/* loaded from: classes.dex */
final class zzaa extends ResultReceiver {
@Override // android.os.ResultReceiver
public final void onReceiveResult(int i, Bundle bundle) {
com.google.android.gms.internal.play_billing.zzb.zze(bundle, "BillingClient");
throw null;
}
}

View File

@@ -0,0 +1,21 @@
package com.android.billingclient.api;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/* loaded from: classes.dex */
public final class zzab implements ThreadFactory {
public final ThreadFactory zza = Executors.defaultThreadFactory();
public final AtomicInteger zzb = new AtomicInteger(1);
public zzab(BillingClientImpl billingClientImpl) {
}
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(Runnable runnable) {
Thread newThread = this.zza.newThread(runnable);
newThread.setName("PlayBillingLibrary-" + this.zzb.getAndIncrement());
return newThread;
}
}

View File

@@ -0,0 +1,120 @@
package com.android.billingclient.api;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.Handler;
import android.os.IBinder;
import androidx.work.WorkRequest;
import com.google.android.gms.internal.play_billing.zzd;
import com.google.android.gms.internal.play_billing.zzgd;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
/* loaded from: classes.dex */
public final class zzaf implements ServiceConnection {
public final /* synthetic */ BillingClientImpl zza;
public final Object zzb = new Object();
public boolean zzc = false;
public BillingClientStateListener zzd;
public /* synthetic */ zzaf(BillingClientImpl billingClientImpl, BillingClientStateListener billingClientStateListener, zzae zzaeVar) {
this.zza = billingClientImpl;
this.zzd = billingClientStateListener;
}
@Override // android.content.ServiceConnection
public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
Handler zzO;
Future zzS;
BillingResult zzQ;
zzar zzarVar;
com.google.android.gms.internal.play_billing.zzb.zzi("BillingClient", "Billing service connected.");
this.zza.zzg = zzd.zzn(iBinder);
BillingClientImpl billingClientImpl = this.zza;
Callable callable = new Callable() { // from class: com.android.billingclient.api.zzac
@Override // java.util.concurrent.Callable
public final Object call() {
zzaf.this.zza();
return null;
}
};
Runnable runnable = new Runnable() { // from class: com.android.billingclient.api.zzad
@Override // java.lang.Runnable
public final void run() {
zzaf.this.zzb();
}
};
zzO = billingClientImpl.zzO();
zzS = billingClientImpl.zzS(callable, WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS, runnable, zzO);
if (zzS == null) {
zzQ = this.zza.zzQ();
zzarVar = this.zza.zzf;
zzarVar.zza(zzaq.zza(25, 6, zzQ));
zzd(zzQ);
}
}
@Override // android.content.ServiceConnection
public final void onServiceDisconnected(ComponentName componentName) {
zzar zzarVar;
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", "Billing service disconnected.");
zzarVar = this.zza.zzf;
zzarVar.zzc(zzgd.zzw());
this.zza.zzg = null;
this.zza.zza = 0;
synchronized (this.zzb) {
try {
BillingClientStateListener billingClientStateListener = this.zzd;
if (billingClientStateListener != null) {
billingClientStateListener.onBillingServiceDisconnected();
}
} catch (Throwable th) {
throw th;
}
}
}
/* JADX WARN: Removed duplicated region for block: B:83:0x01cd */
/* JADX WARN: Removed duplicated region for block: B:85:0x01e0 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final /* synthetic */ java.lang.Object zza() {
/*
Method dump skipped, instructions count: 501
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.android.billingclient.api.zzaf.zza():java.lang.Object");
}
public final /* synthetic */ void zzb() {
zzar zzarVar;
this.zza.zza = 0;
this.zza.zzg = null;
zzarVar = this.zza.zzf;
BillingResult billingResult = zzat.zzn;
zzarVar.zza(zzaq.zza(24, 6, billingResult));
zzd(billingResult);
}
public final void zzc() {
synchronized (this.zzb) {
this.zzd = null;
this.zzc = true;
}
}
public final void zzd(BillingResult billingResult) {
synchronized (this.zzb) {
try {
BillingClientStateListener billingClientStateListener = this.zzd;
if (billingClientStateListener != null) {
billingClientStateListener.onBillingSetupFinished(billingResult);
}
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,28 @@
package com.android.billingclient.api;
import com.google.android.gms.internal.play_billing.zzfa;
import com.google.android.gms.internal.play_billing.zzfb;
import com.google.android.gms.internal.play_billing.zzfe;
import com.google.android.gms.internal.play_billing.zzff;
import com.google.android.gms.internal.play_billing.zzfh;
import com.google.android.gms.internal.play_billing.zzfj;
/* loaded from: classes.dex */
public abstract /* synthetic */ class zzaq {
public static zzfb zza(int i, int i2, BillingResult billingResult) {
zzfa zzv = zzfb.zzv();
zzfh zzv2 = zzfj.zzv();
zzv2.zzj(billingResult.getResponseCode());
zzv2.zzi(billingResult.getDebugMessage());
zzv2.zzk(i);
zzv.zzi(zzv2);
zzv.zzk(i2);
return (zzfb) zzv.zzc();
}
public static zzff zzb(int i) {
zzfe zzv = zzff.zzv();
zzv.zzj(i);
return (zzff) zzv.zzc();
}
}

View File

@@ -0,0 +1,14 @@
package com.android.billingclient.api;
import com.google.android.gms.internal.play_billing.zzfb;
import com.google.android.gms.internal.play_billing.zzff;
import com.google.android.gms.internal.play_billing.zzgd;
/* loaded from: classes.dex */
public interface zzar {
void zza(zzfb zzfbVar);
void zzb(zzff zzffVar);
void zzc(zzgd zzgdVar);
}

View File

@@ -0,0 +1,161 @@
package com.android.billingclient.api;
import com.android.billingclient.api.BillingResult;
/* loaded from: classes.dex */
public abstract class zzat {
public static final BillingResult zzA;
public static final BillingResult zzB;
public static final BillingResult zzC;
public static final BillingResult zza;
public static final BillingResult zzb;
public static final BillingResult zzc;
public static final BillingResult zzd;
public static final BillingResult zze;
public static final BillingResult zzf;
public static final BillingResult zzg;
public static final BillingResult zzh;
public static final BillingResult zzi;
public static final BillingResult zzj;
public static final BillingResult zzk;
public static final BillingResult zzl;
public static final BillingResult zzm;
public static final BillingResult zzn;
public static final BillingResult zzo;
public static final BillingResult zzp;
public static final BillingResult zzq;
public static final BillingResult zzr;
public static final BillingResult zzs;
public static final BillingResult zzt;
public static final BillingResult zzu;
public static final BillingResult zzv;
public static final BillingResult zzw;
public static final BillingResult zzx;
public static final BillingResult zzy;
public static final BillingResult zzz;
static {
BillingResult.Builder newBuilder = BillingResult.newBuilder();
newBuilder.setResponseCode(3);
newBuilder.setDebugMessage("Google Play In-app Billing API version is less than 3");
zza = newBuilder.build();
BillingResult.Builder newBuilder2 = BillingResult.newBuilder();
newBuilder2.setResponseCode(3);
newBuilder2.setDebugMessage("Google Play In-app Billing API version is less than 9");
zzb = newBuilder2.build();
BillingResult.Builder newBuilder3 = BillingResult.newBuilder();
newBuilder3.setResponseCode(3);
newBuilder3.setDebugMessage("Billing service unavailable on device.");
zzc = newBuilder3.build();
BillingResult.Builder newBuilder4 = BillingResult.newBuilder();
newBuilder4.setResponseCode(5);
newBuilder4.setDebugMessage("Client is already in the process of connecting to billing service.");
zzd = newBuilder4.build();
BillingResult.Builder newBuilder5 = BillingResult.newBuilder();
newBuilder5.setResponseCode(5);
newBuilder5.setDebugMessage("The list of SKUs can't be empty.");
zze = newBuilder5.build();
BillingResult.Builder newBuilder6 = BillingResult.newBuilder();
newBuilder6.setResponseCode(5);
newBuilder6.setDebugMessage("SKU type can't be empty.");
zzf = newBuilder6.build();
BillingResult.Builder newBuilder7 = BillingResult.newBuilder();
newBuilder7.setResponseCode(5);
newBuilder7.setDebugMessage("Product type can't be empty.");
zzg = newBuilder7.build();
BillingResult.Builder newBuilder8 = BillingResult.newBuilder();
newBuilder8.setResponseCode(-2);
newBuilder8.setDebugMessage("Client does not support extra params.");
zzh = newBuilder8.build();
BillingResult.Builder newBuilder9 = BillingResult.newBuilder();
newBuilder9.setResponseCode(5);
newBuilder9.setDebugMessage("Invalid purchase token.");
zzi = newBuilder9.build();
BillingResult.Builder newBuilder10 = BillingResult.newBuilder();
newBuilder10.setResponseCode(6);
newBuilder10.setDebugMessage("An internal error occurred.");
zzj = newBuilder10.build();
BillingResult.Builder newBuilder11 = BillingResult.newBuilder();
newBuilder11.setResponseCode(5);
newBuilder11.setDebugMessage("SKU can't be null.");
zzk = newBuilder11.build();
BillingResult.Builder newBuilder12 = BillingResult.newBuilder();
newBuilder12.setResponseCode(0);
zzl = newBuilder12.build();
BillingResult.Builder newBuilder13 = BillingResult.newBuilder();
newBuilder13.setResponseCode(-1);
newBuilder13.setDebugMessage("Service connection is disconnected.");
zzm = newBuilder13.build();
BillingResult.Builder newBuilder14 = BillingResult.newBuilder();
newBuilder14.setResponseCode(2);
newBuilder14.setDebugMessage("Timeout communicating with service.");
zzn = newBuilder14.build();
BillingResult.Builder newBuilder15 = BillingResult.newBuilder();
newBuilder15.setResponseCode(-2);
newBuilder15.setDebugMessage("Client does not support subscriptions.");
zzo = newBuilder15.build();
BillingResult.Builder newBuilder16 = BillingResult.newBuilder();
newBuilder16.setResponseCode(-2);
newBuilder16.setDebugMessage("Client does not support subscriptions update.");
zzp = newBuilder16.build();
BillingResult.Builder newBuilder17 = BillingResult.newBuilder();
newBuilder17.setResponseCode(-2);
newBuilder17.setDebugMessage("Client does not support get purchase history.");
zzq = newBuilder17.build();
BillingResult.Builder newBuilder18 = BillingResult.newBuilder();
newBuilder18.setResponseCode(-2);
newBuilder18.setDebugMessage("Client does not support price change confirmation.");
zzr = newBuilder18.build();
BillingResult.Builder newBuilder19 = BillingResult.newBuilder();
newBuilder19.setResponseCode(-2);
newBuilder19.setDebugMessage("Play Store version installed does not support cross selling products.");
zzs = newBuilder19.build();
BillingResult.Builder newBuilder20 = BillingResult.newBuilder();
newBuilder20.setResponseCode(-2);
newBuilder20.setDebugMessage("Client does not support multi-item purchases.");
zzt = newBuilder20.build();
BillingResult.Builder newBuilder21 = BillingResult.newBuilder();
newBuilder21.setResponseCode(-2);
newBuilder21.setDebugMessage("Client does not support offer_id_token.");
zzu = newBuilder21.build();
BillingResult.Builder newBuilder22 = BillingResult.newBuilder();
newBuilder22.setResponseCode(-2);
newBuilder22.setDebugMessage("Client does not support ProductDetails.");
zzv = newBuilder22.build();
BillingResult.Builder newBuilder23 = BillingResult.newBuilder();
newBuilder23.setResponseCode(-2);
newBuilder23.setDebugMessage("Client does not support in-app messages.");
zzw = newBuilder23.build();
BillingResult.Builder newBuilder24 = BillingResult.newBuilder();
newBuilder24.setResponseCode(-2);
newBuilder24.setDebugMessage("Client does not support alternative billing.");
zzx = newBuilder24.build();
BillingResult.Builder newBuilder25 = BillingResult.newBuilder();
newBuilder25.setResponseCode(5);
newBuilder25.setDebugMessage("Unknown feature");
zzy = newBuilder25.build();
BillingResult.Builder newBuilder26 = BillingResult.newBuilder();
newBuilder26.setResponseCode(-2);
newBuilder26.setDebugMessage("Play Store version installed does not support get billing config.");
zzz = newBuilder26.build();
BillingResult.Builder newBuilder27 = BillingResult.newBuilder();
newBuilder27.setResponseCode(-2);
newBuilder27.setDebugMessage("Query product details with serialized docid is not supported.");
zzA = newBuilder27.build();
BillingResult.Builder newBuilder28 = BillingResult.newBuilder();
newBuilder28.setResponseCode(4);
newBuilder28.setDebugMessage("Item is unavailable for purchase.");
zzB = newBuilder28.build();
BillingResult.Builder newBuilder29 = BillingResult.newBuilder();
newBuilder29.setResponseCode(-2);
newBuilder29.setDebugMessage("Query product details with developer specified account is not supported.");
zzC = newBuilder29.build();
}
public static BillingResult zza(int i, String str) {
BillingResult.Builder newBuilder = BillingResult.newBuilder();
newBuilder.setResponseCode(i);
newBuilder.setDebugMessage(str);
return newBuilder.build();
}
}

View File

@@ -0,0 +1,65 @@
package com.android.billingclient.api;
import android.content.Context;
import com.google.android.gms.internal.play_billing.zzfb;
import com.google.android.gms.internal.play_billing.zzff;
import com.google.android.gms.internal.play_billing.zzfm;
import com.google.android.gms.internal.play_billing.zzfy;
import com.google.android.gms.internal.play_billing.zzfz;
import com.google.android.gms.internal.play_billing.zzgd;
/* loaded from: classes.dex */
public final class zzaw implements zzar {
public final zzfm zza;
public final zzay zzb;
public zzaw(Context context, zzfm zzfmVar) {
this.zzb = new zzay(context);
this.zza = zzfmVar;
}
@Override // com.android.billingclient.api.zzar
public final void zza(zzfb zzfbVar) {
try {
zzfy zzv = zzfz.zzv();
zzfm zzfmVar = this.zza;
if (zzfmVar != null) {
zzv.zzk(zzfmVar);
}
zzv.zzi(zzfbVar);
this.zzb.zza((zzfz) zzv.zzc());
} catch (Throwable unused) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingLogger", "Unable to log.");
}
}
@Override // com.android.billingclient.api.zzar
public final void zzb(zzff zzffVar) {
try {
zzfy zzv = zzfz.zzv();
zzfm zzfmVar = this.zza;
if (zzfmVar != null) {
zzv.zzk(zzfmVar);
}
zzv.zzj(zzffVar);
this.zzb.zza((zzfz) zzv.zzc());
} catch (Throwable unused) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingLogger", "Unable to log.");
}
}
@Override // com.android.billingclient.api.zzar
public final void zzc(zzgd zzgdVar) {
try {
zzfy zzv = zzfz.zzv();
zzfm zzfmVar = this.zza;
if (zzfmVar != null) {
zzv.zzk(zzfmVar);
}
zzv.zzl(zzgdVar);
this.zzb.zza((zzfz) zzv.zzc());
} catch (Throwable unused) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingLogger", "Unable to log.");
}
}
}

View File

@@ -0,0 +1,42 @@
package com.android.billingclient.api;
import android.content.Context;
import com.google.android.datatransport.Encoding;
import com.google.android.datatransport.Event;
import com.google.android.datatransport.Transformer;
import com.google.android.datatransport.Transport;
import com.google.android.datatransport.cct.CCTDestination;
import com.google.android.datatransport.runtime.TransportRuntime;
import com.google.android.gms.internal.play_billing.zzfz;
/* loaded from: classes.dex */
public final class zzay {
public boolean zza;
public Transport zzb;
public zzay(Context context) {
try {
TransportRuntime.initialize(context);
this.zzb = TransportRuntime.getInstance().newFactory(CCTDestination.INSTANCE).getTransport("PLAY_BILLING_LIBRARY", zzfz.class, Encoding.of("proto"), new Transformer() { // from class: com.android.billingclient.api.zzax
@Override // com.google.android.datatransport.Transformer
public final Object apply(Object obj) {
return ((zzfz) obj).zzc();
}
});
} catch (Throwable unused) {
this.zza = true;
}
}
public final void zza(zzfz zzfzVar) {
if (this.zza) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingLogger", "Skipping logging since initialization failed.");
return;
}
try {
this.zzb.send(Event.ofData(zzfzVar));
} catch (Throwable unused) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingLogger", "logging failed.");
}
}
}

View File

@@ -0,0 +1,5 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public interface zzaz {
}

View File

@@ -0,0 +1,21 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class zzbc {
public boolean zza;
public /* synthetic */ zzbc(zzbb zzbbVar) {
}
public final zzbc zza() {
this.zza = true;
return this;
}
public final zzbe zzb() {
if (this.zza) {
return new zzbe(true, false, null);
}
throw new IllegalArgumentException("Pending purchases for one-time products must be supported.");
}
}

View File

@@ -0,0 +1,7 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class zzbe {
public /* synthetic */ zzbe(boolean z, boolean z2, zzbd zzbdVar) {
}
}

View File

@@ -0,0 +1,11 @@
package com.android.billingclient.api;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class zzbf {
public zzbf(JSONObject jSONObject) {
jSONObject.getInt("commitmentPaymentsCount");
jSONObject.optInt("subsequentCommitmentPaymentsCount");
}
}

View File

@@ -0,0 +1,10 @@
package com.android.billingclient.api;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class zzbg {
public zzbg(JSONObject jSONObject) {
jSONObject.getInt("percentageDiscount");
}
}

View File

@@ -0,0 +1,11 @@
package com.android.billingclient.api;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class zzbh {
public zzbh(JSONObject jSONObject) {
jSONObject.getInt("maximumQuantity");
jSONObject.getInt("remainingQuantity");
}
}

View File

@@ -0,0 +1,11 @@
package com.android.billingclient.api;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class zzbi {
public zzbi(JSONObject jSONObject) {
jSONObject.getLong("startTimeMillis");
jSONObject.getLong("endTimeMillis");
}
}

View File

@@ -0,0 +1,22 @@
package com.android.billingclient.api;
import java.util.List;
/* loaded from: classes.dex */
public final class zzbj {
public final List zza;
public final BillingResult zzb;
public zzbj(BillingResult billingResult, List list) {
this.zza = list;
this.zzb = billingResult;
}
public final BillingResult zza() {
return this.zzb;
}
public final List zzb() {
return this.zza;
}
}

View File

@@ -0,0 +1,20 @@
package com.android.billingclient.api;
/* loaded from: classes.dex */
public final class zzbk {
public final BillingResult zza;
public final int zzb;
public zzbk(BillingResult billingResult, int i) {
this.zza = billingResult;
this.zzb = i;
}
public final BillingResult zza() {
return this.zza;
}
public final int zzb() {
return this.zzb;
}
}

View File

@@ -0,0 +1,47 @@
package com.android.billingclient.api;
import android.os.Bundle;
import com.android.billingclient.api.BillingResult;
import com.firemonkeys.cloudcellapi.Consts;
import java.util.ArrayList;
/* loaded from: classes.dex */
public abstract class zzbl {
public static zzbk zza(Bundle bundle, String str, String str2) {
BillingResult billingResult = zzat.zzj;
if (bundle == null) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", String.format("%s got null owned items list", str2));
return new zzbk(billingResult, 54);
}
int zzb = com.google.android.gms.internal.play_billing.zzb.zzb(bundle, "BillingClient");
String zzf = com.google.android.gms.internal.play_billing.zzb.zzf(bundle, "BillingClient");
BillingResult.Builder newBuilder = BillingResult.newBuilder();
newBuilder.setResponseCode(zzb);
newBuilder.setDebugMessage(zzf);
BillingResult build = newBuilder.build();
if (zzb != 0) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", String.format("%s failed. Response code: %s", str2, Integer.valueOf(zzb)));
return new zzbk(build, 23);
}
if (!bundle.containsKey(Consts.RESPONSE_INAPP_ITEM_LIST) || !bundle.containsKey(Consts.RESPONSE_INAPP_PURCHASE_DATA_LIST) || !bundle.containsKey(Consts.RESPONSE_INAPP_SIGNATURE_LIST)) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", String.format("Bundle returned from %s doesn't contain required fields.", str2));
return new zzbk(billingResult, 55);
}
ArrayList<String> stringArrayList = bundle.getStringArrayList(Consts.RESPONSE_INAPP_ITEM_LIST);
ArrayList<String> stringArrayList2 = bundle.getStringArrayList(Consts.RESPONSE_INAPP_PURCHASE_DATA_LIST);
ArrayList<String> stringArrayList3 = bundle.getStringArrayList(Consts.RESPONSE_INAPP_SIGNATURE_LIST);
if (stringArrayList == null) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", String.format("Bundle returned from %s contains null SKUs list.", str2));
return new zzbk(billingResult, 56);
}
if (stringArrayList2 == null) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", String.format("Bundle returned from %s contains null purchases list.", str2));
return new zzbk(billingResult, 57);
}
if (stringArrayList3 != null) {
return new zzbk(zzat.zzl, 1);
}
com.google.android.gms.internal.play_billing.zzb.zzj("BillingClient", String.format("Bundle returned from %s contains null signatures list.", str2));
return new zzbk(billingResult, 58);
}
}

View File

@@ -0,0 +1,114 @@
package com.android.billingclient.api;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Bundle;
import com.google.android.gms.internal.play_billing.zzfb;
import java.util.List;
/* loaded from: classes.dex */
public final class zzg extends BroadcastReceiver {
public final /* synthetic */ zzh zza;
public final PurchasesUpdatedListener zzb;
public final zzar zze;
public boolean zzf;
public /* synthetic */ zzg(zzh zzhVar, zzaz zzazVar, zzar zzarVar, zzf zzfVar) {
this.zza = zzhVar;
this.zzb = null;
this.zze = zzarVar;
}
public static /* bridge */ /* synthetic */ zzaz zza(zzg zzgVar) {
zzgVar.getClass();
return null;
}
@Override // android.content.BroadcastReceiver
public final void onReceive(Context context, Intent intent) {
Bundle extras = intent.getExtras();
int i = 1;
if (extras == null) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "Bundle is null.");
zzar zzarVar = this.zze;
BillingResult billingResult = zzat.zzj;
zzarVar.zza(zzaq.zza(11, 1, billingResult));
PurchasesUpdatedListener purchasesUpdatedListener = this.zzb;
if (purchasesUpdatedListener != null) {
purchasesUpdatedListener.onPurchasesUpdated(billingResult, null);
return;
}
return;
}
BillingResult zzd = com.google.android.gms.internal.play_billing.zzb.zzd(intent, "BillingBroadcastManager");
String action = intent.getAction();
String string = extras.getString("INTENT_SOURCE");
if (string == "LAUNCH_BILLING_FLOW" || (string != null && string.equals("LAUNCH_BILLING_FLOW"))) {
i = 2;
}
if (action.equals("com.android.vending.billing.PURCHASES_UPDATED")) {
List zzh = com.google.android.gms.internal.play_billing.zzb.zzh(extras);
if (zzd.getResponseCode() == 0) {
this.zze.zzb(zzaq.zzb(i));
} else {
zze(extras, zzd, i);
}
this.zzb.onPurchasesUpdated(zzd, zzh);
return;
}
if (action.equals("com.android.vending.billing.ALTERNATIVE_BILLING")) {
if (zzd.getResponseCode() != 0) {
zze(extras, zzd, i);
this.zzb.onPurchasesUpdated(zzd, com.google.android.gms.internal.play_billing.zzu.zzk());
return;
}
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "AlternativeBillingListener is null.");
zzar zzarVar2 = this.zze;
BillingResult billingResult2 = zzat.zzj;
zzarVar2.zza(zzaq.zza(15, i, billingResult2));
this.zzb.onPurchasesUpdated(billingResult2, com.google.android.gms.internal.play_billing.zzu.zzk());
}
}
public final void zzc(Context context, IntentFilter intentFilter) {
if (this.zzf) {
return;
}
if (Build.VERSION.SDK_INT >= 33) {
context.registerReceiver(this.zza.zzb, intentFilter, 2);
} else {
context.registerReceiver(this.zza.zzb, intentFilter);
}
this.zzf = true;
}
public final void zzd(Context context) {
if (!this.zzf) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "Receiver is not registered.");
} else {
context.unregisterReceiver(this.zza.zzb);
this.zzf = false;
}
}
public final void zze(Bundle bundle, BillingResult billingResult, int i) {
if (bundle.getByteArray("FAILURE_LOGGING_PAYLOAD") == null) {
this.zze.zza(zzaq.zza(23, i, billingResult));
return;
}
try {
this.zze.zza(zzfb.zzx(bundle.getByteArray("FAILURE_LOGGING_PAYLOAD"), com.google.android.gms.internal.play_billing.zzbn.zza()));
} catch (Throwable unused) {
com.google.android.gms.internal.play_billing.zzb.zzj("BillingBroadcastManager", "Failed parsing Api failure.");
}
}
public /* synthetic */ zzg(zzh zzhVar, PurchasesUpdatedListener purchasesUpdatedListener, AlternativeBillingListener alternativeBillingListener, zzar zzarVar, zzf zzfVar) {
this.zza = zzhVar;
this.zzb = purchasesUpdatedListener;
this.zze = zzarVar;
}
}

View File

@@ -0,0 +1,42 @@
package com.android.billingclient.api;
import android.content.Context;
import android.content.IntentFilter;
/* loaded from: classes.dex */
public final class zzh {
public final Context zza;
public final zzg zzb;
/* JADX WARN: Multi-variable type inference failed */
public zzh(Context context, zzaz zzazVar, zzar zzarVar) {
this.zza = context;
this.zzb = new zzg(this, null, zzarVar, 0 == true ? 1 : 0);
}
public final zzaz zzb() {
zzg.zza(this.zzb);
return null;
}
public final PurchasesUpdatedListener zzc() {
PurchasesUpdatedListener purchasesUpdatedListener;
purchasesUpdatedListener = this.zzb.zzb;
return purchasesUpdatedListener;
}
public final void zzd() {
this.zzb.zzd(this.zza);
}
public final void zze() {
IntentFilter intentFilter = new IntentFilter("com.android.vending.billing.PURCHASES_UPDATED");
intentFilter.addAction("com.android.vending.billing.ALTERNATIVE_BILLING");
this.zzb.zzc(this.zza, intentFilter);
}
public zzh(Context context, PurchasesUpdatedListener purchasesUpdatedListener, AlternativeBillingListener alternativeBillingListener, zzar zzarVar) {
this.zza = context;
this.zzb = new zzg(this, purchasesUpdatedListener, alternativeBillingListener, zzarVar, null);
}
}

View File

@@ -0,0 +1,27 @@
package com.android.billingclient.api;
import java.util.concurrent.Callable;
/* loaded from: classes.dex */
public final class zzy implements Callable {
public final /* synthetic */ String zza;
public final /* synthetic */ PurchasesResponseListener zzb;
public final /* synthetic */ BillingClientImpl zzc;
public zzy(BillingClientImpl billingClientImpl, String str, PurchasesResponseListener purchasesResponseListener) {
this.zzc = billingClientImpl;
this.zza = str;
this.zzb = purchasesResponseListener;
}
@Override // java.util.concurrent.Callable
public final /* bridge */ /* synthetic */ Object call() {
zzbj zzN = BillingClientImpl.zzN(this.zzc, this.zza, 9);
if (zzN.zzb() != null) {
this.zzb.onQueryPurchasesResponse(zzN.zza(), zzN.zzb());
return null;
}
this.zzb.onQueryPurchasesResponse(zzN.zza(), com.google.android.gms.internal.play_billing.zzu.zzk());
return null;
}
}