- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
176 lines
5.5 KiB
Java
176 lines
5.5 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.f1;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.logger.IronSourceError;
|
|
import com.ironsource.mediationsdk.model.Placement;
|
|
import com.ironsource.x1;
|
|
import java.lang.ref.WeakReference;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class l1 {
|
|
private final s1 a;
|
|
private final p2 b;
|
|
private WeakReference<f2> c;
|
|
private final ku d;
|
|
private final WeakReference<d2> e;
|
|
private ta f;
|
|
private final lb g;
|
|
|
|
public class a implements b0 {
|
|
public a() {
|
|
}
|
|
|
|
@Override // com.ironsource.b0
|
|
public void a(x instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
l1.this.g.a().a(l1.this.i());
|
|
d2 d2Var = (d2) l1.this.e.get();
|
|
if (d2Var != null) {
|
|
d2Var.j(new p1(l1.this, instance.d()));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.b0
|
|
public void b(x instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
IronLog.INTERNAL.verbose(l1.this.a(instance.o()));
|
|
l1.this.j().b(instance);
|
|
l1.this.g.a().g(l1.this.i());
|
|
l1.this.g().n().b(l1.this.f().b().a());
|
|
d2 d2Var = (d2) l1.this.e.get();
|
|
if (d2Var != null) {
|
|
d2Var.m(new p1(l1.this, instance.d()));
|
|
}
|
|
}
|
|
}
|
|
|
|
public static final class b implements qu {
|
|
public b() {
|
|
}
|
|
|
|
@Override // com.ironsource.qu
|
|
public void a(int i, String errorReason) {
|
|
Intrinsics.checkNotNullParameter(errorReason, "errorReason");
|
|
l1.this.a(i, errorReason);
|
|
}
|
|
|
|
@Override // com.ironsource.qu
|
|
public void a(x instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
l1.this.g().e().a().e(l1.this.i());
|
|
WeakReference weakReference = l1.this.c;
|
|
if (weakReference == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("loadListener");
|
|
weakReference = null;
|
|
}
|
|
f2 f2Var = (f2) weakReference.get();
|
|
if (f2Var != null) {
|
|
f2Var.i(new p1(l1.this, instance.d()));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.qu
|
|
public void b(x instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
l1.this.g.e().a(ta.a(l1.this.f), false);
|
|
WeakReference weakReference = l1.this.c;
|
|
if (weakReference == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("loadListener");
|
|
weakReference = null;
|
|
}
|
|
f2 f2Var = (f2) weakReference.get();
|
|
if (f2Var != null) {
|
|
f2Var.l(new p1(l1.this, instance.d()));
|
|
}
|
|
}
|
|
}
|
|
|
|
public l1(k1 adTools, s1 adUnitData, d2 listener) {
|
|
Intrinsics.checkNotNullParameter(adTools, "adTools");
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
this.a = adUnitData;
|
|
p2 p2Var = new p2(adTools, adUnitData, x1.b.MEDIATION);
|
|
this.b = p2Var;
|
|
this.d = new ku(p2Var, adUnitData, c());
|
|
this.e = new WeakReference<>(listener);
|
|
this.g = p2Var.e();
|
|
IronLog.INTERNAL.verbose("adFormat = " + adUnitData.b().a() + ", adUnitId = " + adUnitData.b().b());
|
|
}
|
|
|
|
private final b c() {
|
|
return new b();
|
|
}
|
|
|
|
public abstract a0 a();
|
|
|
|
public final String a(String str) {
|
|
return k1.a(this.b, str, (String) null, 2, (Object) null);
|
|
}
|
|
|
|
public final void a(int i, String errorReason) {
|
|
Intrinsics.checkNotNullParameter(errorReason, "errorReason");
|
|
IronLog.INTERNAL.verbose(a("errorCode = " + i + ", errorReason = " + errorReason));
|
|
this.g.e().a(ta.a(this.f), i, errorReason);
|
|
WeakReference<f2> weakReference = this.c;
|
|
if (weakReference == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("loadListener");
|
|
weakReference = null;
|
|
}
|
|
f2 f2Var = weakReference.get();
|
|
if (f2Var != null) {
|
|
f2Var.a(new p1(this, null, 2, null), new IronSourceError(i, errorReason));
|
|
}
|
|
}
|
|
|
|
public final void a(f0 adInstancePresenter) {
|
|
Intrinsics.checkNotNullParameter(adInstancePresenter, "adInstancePresenter");
|
|
this.d.a(adInstancePresenter);
|
|
}
|
|
|
|
public final void a(f2 loadListener) {
|
|
Intrinsics.checkNotNullParameter(loadListener, "loadListener");
|
|
IronLog.INTERNAL.verbose(k1.a(this.b, (String) null, (String) null, 3, (Object) null));
|
|
this.b.a(b());
|
|
this.c = new WeakReference<>(loadListener);
|
|
this.g.a(this.a.v());
|
|
this.f = new ta();
|
|
this.d.a(a());
|
|
}
|
|
|
|
public n1 b() {
|
|
return new n1(this.a.b());
|
|
}
|
|
|
|
public final void d() {
|
|
IronLog.INTERNAL.verbose(k1.a(this.b, (String) null, (String) null, 3, (Object) null));
|
|
this.d.a();
|
|
}
|
|
|
|
public f1 e() {
|
|
return this.d.b() ? new f1.b(false, 1, null) : new f1.a(false, null, 3, null);
|
|
}
|
|
|
|
public final s1 f() {
|
|
return this.a;
|
|
}
|
|
|
|
public final p2 g() {
|
|
return this.b;
|
|
}
|
|
|
|
public final Placement h() {
|
|
return this.a.b().e();
|
|
}
|
|
|
|
public final String i() {
|
|
return this.a.m();
|
|
}
|
|
|
|
public final ku j() {
|
|
return this.d;
|
|
}
|
|
}
|