- 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
76 lines
2.6 KiB
Java
76 lines
2.6 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import com.ironsource.f1;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.unity3d.mediation.LevelPlay;
|
|
import com.unity3d.mediation.LevelPlayAdError;
|
|
import com.unity3d.mediation.LevelPlayAdInfo;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class mh implements ci {
|
|
private final ck a;
|
|
private final pg b;
|
|
|
|
public mh(ck adInternal) {
|
|
Intrinsics.checkNotNullParameter(adInternal, "adInternal");
|
|
this.a = adInternal;
|
|
this.b = el.p.d().n();
|
|
}
|
|
|
|
private final jh b() {
|
|
jh a = this.a.a();
|
|
if (a != null) {
|
|
return a;
|
|
}
|
|
zh zhVar = new zh(this.a.d(), this.b.a());
|
|
this.a.b().e().a(new v1(this.a.b(), zhVar));
|
|
kh e = this.a.e();
|
|
ck ckVar = this.a;
|
|
jh a2 = e.a(ckVar, ckVar.b(), zhVar);
|
|
this.a.a(a2);
|
|
return a2;
|
|
}
|
|
|
|
private final boolean c() {
|
|
if (this.a.d().length() == 0) {
|
|
this.a.a(new LevelPlayAdError(this.a.d(), LevelPlayAdError.ERROR_CODE_NO_AD_UNIT_ID_SPECIFIED, "Ad unit ID should be specified"));
|
|
return false;
|
|
}
|
|
if (!this.a.b().h()) {
|
|
this.a.a(new LevelPlayAdError(this.a.d(), LevelPlayAdError.ERROR_CODE_LOAD_BEFORE_INIT_SUCCESS_CALLBACK, "Load must be called after init success callback"));
|
|
return false;
|
|
}
|
|
ak a = this.a.g().r().a();
|
|
if (a != null && a.a(this.a.d(), LevelPlay.AdFormat.INTERSTITIAL)) {
|
|
return true;
|
|
}
|
|
this.a.b(new LevelPlayAdError(this.a.d(), LevelPlayAdError.ERROR_CODE_INVALID_AD_UNIT_ID, "Invalid ad unit id"));
|
|
return false;
|
|
}
|
|
|
|
@Override // com.ironsource.ci
|
|
public f1 a() {
|
|
return new f1.a(false, "load ad was not called", 1, null);
|
|
}
|
|
|
|
@Override // com.ironsource.ci
|
|
public void a(Activity activity, String str) {
|
|
Intrinsics.checkNotNullParameter(activity, "activity");
|
|
LevelPlayAdError levelPlayAdError = new LevelPlayAdError(this.a.d(), LevelPlayAdError.ERROR_CODE_SHOW_BEFORE_LOAD_SUCCESS_CALLBACK, "Show called before load success");
|
|
String d = this.a.d();
|
|
String ad_unit = IronSource.AD_UNIT.INTERSTITIAL.toString();
|
|
Intrinsics.checkNotNullExpressionValue(ad_unit, "INTERSTITIAL.toString()");
|
|
this.a.a(levelPlayAdError, new LevelPlayAdInfo(d, ad_unit, null, null, 12, null));
|
|
}
|
|
|
|
@Override // com.ironsource.ci
|
|
public void loadAd() {
|
|
if (c()) {
|
|
this.a.a(b());
|
|
this.a.j();
|
|
}
|
|
}
|
|
}
|