- 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
209 lines
6.0 KiB
Java
209 lines
6.0 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.d0;
|
|
import com.ironsource.mediationsdk.logger.IronSourceError;
|
|
import com.ironsource.su;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class ku implements c0 {
|
|
private final p2 a;
|
|
private final s1 b;
|
|
private final qu c;
|
|
private final lu d;
|
|
private d0 e;
|
|
private su f;
|
|
private final List<x> g;
|
|
private x h;
|
|
private boolean i;
|
|
|
|
public static final class a implements mu {
|
|
public a() {
|
|
}
|
|
|
|
@Override // com.ironsource.mu
|
|
public void a(int i, String errorReason) {
|
|
Intrinsics.checkNotNullParameter(errorReason, "errorReason");
|
|
if (ku.this.i) {
|
|
return;
|
|
}
|
|
ku.this.c.a(i, errorReason);
|
|
}
|
|
|
|
@Override // com.ironsource.mu
|
|
public void a(nu waterfallInstances) {
|
|
Intrinsics.checkNotNullParameter(waterfallInstances, "waterfallInstances");
|
|
if (ku.this.i) {
|
|
return;
|
|
}
|
|
ku.this.a(waterfallInstances);
|
|
}
|
|
}
|
|
|
|
public ku(p2 adTools, s1 adUnitData, qu listener) {
|
|
Intrinsics.checkNotNullParameter(adTools, "adTools");
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
this.a = adTools;
|
|
this.b = adUnitData;
|
|
this.c = listener;
|
|
this.d = lu.d.a(adTools, adUnitData);
|
|
this.g = new ArrayList();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void a(nu nuVar) {
|
|
this.e = d0.c.a(this.b, nuVar);
|
|
su.a aVar = su.c;
|
|
p2 p2Var = this.a;
|
|
s1 s1Var = this.b;
|
|
on a2 = this.d.a();
|
|
d0 d0Var = this.e;
|
|
if (d0Var == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("adInstanceLoadStrategy");
|
|
d0Var = null;
|
|
}
|
|
this.f = aVar.a(p2Var, s1Var, a2, nuVar, d0Var);
|
|
d();
|
|
}
|
|
|
|
private final boolean c() {
|
|
return this.h != null;
|
|
}
|
|
|
|
private final void d() {
|
|
d0 d0Var = this.e;
|
|
su suVar = null;
|
|
if (d0Var == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("adInstanceLoadStrategy");
|
|
d0Var = null;
|
|
}
|
|
d0.b d = d0Var.d();
|
|
if (d.e()) {
|
|
this.c.a(IronSourceError.ERROR_CODE_NO_ADS_TO_SHOW, "Mediation No fill");
|
|
return;
|
|
}
|
|
if (!d.f()) {
|
|
Iterator<x> it = d.a().iterator();
|
|
while (it.hasNext()) {
|
|
it.next().a(this);
|
|
}
|
|
} else {
|
|
su suVar2 = this.f;
|
|
if (suVar2 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("waterfallReporter");
|
|
} else {
|
|
suVar = suVar2;
|
|
}
|
|
suVar.a();
|
|
}
|
|
}
|
|
|
|
public final void a() {
|
|
this.i = true;
|
|
x xVar = this.h;
|
|
if (xVar != null) {
|
|
xVar.b();
|
|
}
|
|
}
|
|
|
|
public final void a(a0 adInstanceFactory) {
|
|
Intrinsics.checkNotNullParameter(adInstanceFactory, "adInstanceFactory");
|
|
this.d.a(adInstanceFactory, new a());
|
|
}
|
|
|
|
public final void a(f0 adInstancePresenter) {
|
|
Intrinsics.checkNotNullParameter(adInstancePresenter, "adInstancePresenter");
|
|
d0 d0Var = this.e;
|
|
su suVar = null;
|
|
if (d0Var == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("adInstanceLoadStrategy");
|
|
d0Var = null;
|
|
}
|
|
d0.c c = d0Var.c();
|
|
x c2 = c.c();
|
|
if (c2 != null) {
|
|
this.h = c2;
|
|
su suVar2 = this.f;
|
|
if (suVar2 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("waterfallReporter");
|
|
} else {
|
|
suVar = suVar2;
|
|
}
|
|
suVar.a(c.c(), c.d());
|
|
this.g.clear();
|
|
c.c().a(adInstancePresenter);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.c0
|
|
public void a(IronSourceError error, x instance) {
|
|
Intrinsics.checkNotNullParameter(error, "error");
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
if (this.i) {
|
|
return;
|
|
}
|
|
d();
|
|
}
|
|
|
|
@Override // com.ironsource.c0
|
|
public void a(x instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
if (this.i || c()) {
|
|
return;
|
|
}
|
|
su suVar = this.f;
|
|
d0 d0Var = null;
|
|
su suVar2 = null;
|
|
if (suVar == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("waterfallReporter");
|
|
suVar = null;
|
|
}
|
|
suVar.a(instance);
|
|
this.g.add(instance);
|
|
if (this.g.size() == 1) {
|
|
su suVar3 = this.f;
|
|
if (suVar3 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("waterfallReporter");
|
|
} else {
|
|
suVar2 = suVar3;
|
|
}
|
|
suVar2.b(instance);
|
|
this.c.b(instance);
|
|
return;
|
|
}
|
|
d0 d0Var2 = this.e;
|
|
if (d0Var2 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("adInstanceLoadStrategy");
|
|
} else {
|
|
d0Var = d0Var2;
|
|
}
|
|
if (d0Var.a(instance)) {
|
|
this.c.a(instance);
|
|
}
|
|
}
|
|
|
|
public final void b(x instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
su suVar = this.f;
|
|
if (suVar == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("waterfallReporter");
|
|
suVar = null;
|
|
}
|
|
suVar.a(instance, this.b.m(), this.b.p());
|
|
}
|
|
|
|
public final boolean b() {
|
|
Iterator<x> it = this.g.iterator();
|
|
while (it.hasNext()) {
|
|
if (it.next().x()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|