- 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
81 lines
2.7 KiB
Java
81 lines
2.7 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.net.Uri;
|
|
import android.os.RemoteException;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
import com.google.android.gms.ads.h5.OnH5AdsEventListener;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
|
|
@RequiresApi(api = 21)
|
|
/* loaded from: classes3.dex */
|
|
public final class zzbkv {
|
|
private final Context zza;
|
|
private final OnH5AdsEventListener zzb;
|
|
|
|
@Nullable
|
|
private zzbkr zzc;
|
|
|
|
public zzbkv(Context context, OnH5AdsEventListener onH5AdsEventListener) {
|
|
Preconditions.checkState(true, "Android version must be Lollipop or higher");
|
|
Preconditions.checkNotNull(context);
|
|
Preconditions.checkNotNull(onH5AdsEventListener);
|
|
this.zza = context;
|
|
this.zzb = onH5AdsEventListener;
|
|
zzbcl.zza(context);
|
|
}
|
|
|
|
public static final boolean zzc(String str) {
|
|
if (!((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzjN)).booleanValue()) {
|
|
return false;
|
|
}
|
|
Preconditions.checkNotNull(str);
|
|
if (str.length() > ((Integer) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzjP)).intValue()) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zze("H5 GMSG exceeds max length");
|
|
return false;
|
|
}
|
|
Uri parse = Uri.parse(str);
|
|
return "gmsg".equals(parse.getScheme()) && "mobileads.google.com".equals(parse.getHost()) && "/h5ads".equals(parse.getPath());
|
|
}
|
|
|
|
private final void zzd() {
|
|
if (this.zzc != null) {
|
|
return;
|
|
}
|
|
this.zzc = com.google.android.gms.ads.internal.client.zzbc.zza().zzn(this.zza, new zzbpa(), this.zzb);
|
|
}
|
|
|
|
public final void zza() {
|
|
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzjN)).booleanValue()) {
|
|
zzd();
|
|
zzbkr zzbkrVar = this.zzc;
|
|
if (zzbkrVar != null) {
|
|
try {
|
|
zzbkrVar.zze();
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean zzb(String str) {
|
|
if (!zzc(str)) {
|
|
return false;
|
|
}
|
|
zzd();
|
|
zzbkr zzbkrVar = this.zzc;
|
|
if (zzbkrVar == null) {
|
|
return false;
|
|
}
|
|
try {
|
|
zzbkrVar.zzf(str);
|
|
return true;
|
|
} catch (RemoteException e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzl("#007 Could not call remote method.", e);
|
|
return true;
|
|
}
|
|
}
|
|
}
|