- 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
64 lines
2.4 KiB
Java
64 lines
2.4 KiB
Java
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);
|
|
}
|