- 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
224 lines
8.5 KiB
Java
224 lines
8.5 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.os.RemoteException;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.gms.ads.FullScreenContentCallback;
|
|
import com.google.android.gms.ads.OnPaidEventListener;
|
|
import com.google.android.gms.ads.OnUserEarnedRewardListener;
|
|
import com.google.android.gms.ads.ResponseInfo;
|
|
import com.google.android.gms.ads.rewarded.OnAdMetadataChangedListener;
|
|
import com.google.android.gms.ads.rewarded.RewardItem;
|
|
import com.google.android.gms.ads.rewarded.RewardedAd;
|
|
import com.google.android.gms.ads.rewarded.RewardedAdLoadCallback;
|
|
import com.google.android.gms.ads.rewarded.ServerSideVerificationOptions;
|
|
import com.google.android.gms.dynamic.ObjectWrapper;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzbwy extends RewardedAd {
|
|
private final String zza;
|
|
private final zzbwp zzb;
|
|
private final Context zzc;
|
|
private final zzbxh zzd;
|
|
|
|
@Nullable
|
|
private OnAdMetadataChangedListener zze;
|
|
|
|
@Nullable
|
|
private OnPaidEventListener zzf;
|
|
|
|
@Nullable
|
|
private FullScreenContentCallback zzg;
|
|
private final long zzh;
|
|
|
|
public zzbwy(Context context, String str) {
|
|
this(context.getApplicationContext(), str, com.google.android.gms.ads.internal.client.zzbc.zza().zzs(context, str, new zzbpa()), new zzbxh());
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
public final Bundle getAdMetadata() {
|
|
try {
|
|
zzbwp zzbwpVar = this.zzb;
|
|
if (zzbwpVar != null) {
|
|
return zzbwpVar.zzb();
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
return new Bundle();
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
@NonNull
|
|
public final String getAdUnitId() {
|
|
return this.zza;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
@Nullable
|
|
public final FullScreenContentCallback getFullScreenContentCallback() {
|
|
return this.zzg;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
@Nullable
|
|
public final OnAdMetadataChangedListener getOnAdMetadataChangedListener() {
|
|
return this.zze;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
@Nullable
|
|
public final OnPaidEventListener getOnPaidEventListener() {
|
|
return this.zzf;
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
@NonNull
|
|
public final ResponseInfo getResponseInfo() {
|
|
com.google.android.gms.ads.internal.client.zzdy zzdyVar = null;
|
|
try {
|
|
zzbwp zzbwpVar = this.zzb;
|
|
if (zzbwpVar != null) {
|
|
zzdyVar = zzbwpVar.zzc();
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
return ResponseInfo.zzb(zzdyVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
@NonNull
|
|
public final RewardItem getRewardItem() {
|
|
try {
|
|
zzbwp zzbwpVar = this.zzb;
|
|
zzbwm zzd = zzbwpVar != null ? zzbwpVar.zzd() : null;
|
|
return zzd == null ? RewardItem.DEFAULT_REWARD : new zzbwz(zzd);
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
return RewardItem.DEFAULT_REWARD;
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
public final void setFullScreenContentCallback(@Nullable FullScreenContentCallback fullScreenContentCallback) {
|
|
this.zzg = fullScreenContentCallback;
|
|
this.zzd.zzb(fullScreenContentCallback);
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
public final void setImmersiveMode(boolean z) {
|
|
try {
|
|
zzbwp zzbwpVar = this.zzb;
|
|
if (zzbwpVar != null) {
|
|
zzbwpVar.zzh(z);
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
public final void setOnAdMetadataChangedListener(@Nullable OnAdMetadataChangedListener onAdMetadataChangedListener) {
|
|
try {
|
|
this.zze = onAdMetadataChangedListener;
|
|
zzbwp zzbwpVar = this.zzb;
|
|
if (zzbwpVar != null) {
|
|
zzbwpVar.zzi(new com.google.android.gms.ads.internal.client.zzfr(onAdMetadataChangedListener));
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
public final void setOnPaidEventListener(@Nullable OnPaidEventListener onPaidEventListener) {
|
|
try {
|
|
this.zzf = onPaidEventListener;
|
|
zzbwp zzbwpVar = this.zzb;
|
|
if (zzbwpVar != null) {
|
|
zzbwpVar.zzj(new com.google.android.gms.ads.internal.client.zzfs(onPaidEventListener));
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
public final void setServerSideVerificationOptions(@Nullable ServerSideVerificationOptions serverSideVerificationOptions) {
|
|
if (serverSideVerificationOptions != null) {
|
|
try {
|
|
zzbwp zzbwpVar = this.zzb;
|
|
if (zzbwpVar != null) {
|
|
zzbwpVar.zzl(new zzbxd(serverSideVerificationOptions));
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.ads.rewarded.RewardedAd
|
|
public final void show(@NonNull Activity activity, @NonNull OnUserEarnedRewardListener onUserEarnedRewardListener) {
|
|
this.zzd.zzc(onUserEarnedRewardListener);
|
|
if (activity == null) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzj("The activity for show is null, will proceed with show using the context provided when loading the ad.");
|
|
}
|
|
try {
|
|
zzbwp zzbwpVar = this.zzb;
|
|
if (zzbwpVar != null) {
|
|
zzbwpVar.zzk(this.zzd);
|
|
this.zzb.zzm(ObjectWrapper.wrap(activity));
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
public final RewardedAd zza() {
|
|
try {
|
|
zzbwp zzg = com.google.android.gms.ads.zzb.zza(this.zzc).zzg(this.zza);
|
|
if (zzg != null) {
|
|
return new zzbwy(this.zzc, this.zza, zzg, this.zzd);
|
|
}
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("Failed to obtain a Rewarded Ad from the preloader.", null);
|
|
return null;
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public final void zzb(com.google.android.gms.ads.internal.client.zzei zzeiVar, RewardedAdLoadCallback rewardedAdLoadCallback) {
|
|
try {
|
|
if (this.zzb != null) {
|
|
zzeiVar.zzq(this.zzh);
|
|
this.zzb.zzf(com.google.android.gms.ads.internal.client.zzr.zza.zza(this.zzc, zzeiVar), new zzbxc(rewardedAdLoadCallback, this));
|
|
}
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
public final boolean zzc() {
|
|
try {
|
|
return com.google.android.gms.ads.zzb.zza(this.zzc).zzl(this.zza);
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public zzbwy(Context context, String str, zzbwp zzbwpVar, zzbxh zzbxhVar) {
|
|
this.zzh = System.currentTimeMillis();
|
|
this.zzc = context.getApplicationContext();
|
|
this.zza = str;
|
|
this.zzb = zzbwpVar;
|
|
this.zzd = zzbxhVar;
|
|
}
|
|
}
|