- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
128 lines
4.6 KiB
Java
128 lines
4.6 KiB
Java
package com.ironsource;
|
|
|
|
import android.text.TextUtils;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.l1;
|
|
import com.ironsource.mediationsdk.AdapterUtils;
|
|
import com.ironsource.mediationsdk.ISBannerSize;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.model.Placement;
|
|
import com.ironsource.x1;
|
|
import java.lang.ref.WeakReference;
|
|
import java.util.Arrays;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.jvm.internal.StringCompanionObject;
|
|
|
|
@SourceDebugExtension({"SMAP\nBannerAdUnit.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BannerAdUnit.kt\ncom/unity3d/mediation/internal/ads/controllers/adunits/BannerAdUnit\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,104:1\n1#2:105\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class e6 extends l1 {
|
|
private final WeakReference<h6> h;
|
|
private final a i;
|
|
private final f6 j;
|
|
|
|
public final class a extends l1.a implements s5 {
|
|
public a() {
|
|
super();
|
|
}
|
|
|
|
@Override // com.ironsource.s5
|
|
public void a(q5 instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
IronLog.INTERNAL.verbose(e6.this.a(instance.o()));
|
|
h6 h6Var = (h6) e6.this.h.get();
|
|
if (h6Var != null) {
|
|
h6Var.h(new p1(e6.this, instance.d()));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.s5
|
|
public void b(q5 instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
IronLog.INTERNAL.verbose(e6.this.a(instance.o()));
|
|
h6 h6Var = (h6) e6.this.h.get();
|
|
if (h6Var != null) {
|
|
h6Var.c(new p1(e6.this, instance.d()));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.s5
|
|
public void c(q5 instance) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
IronLog.INTERNAL.verbose(e6.this.a(instance.o()));
|
|
h6 h6Var = (h6) e6.this.h.get();
|
|
if (h6Var != null) {
|
|
h6Var.f(new p1(e6.this, instance.d()));
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public e6(k1 tools, f6 adUnitData, h6 listener) {
|
|
super(tools, adUnitData, listener);
|
|
String format;
|
|
int b;
|
|
Intrinsics.checkNotNullParameter(tools, "tools");
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
Intrinsics.checkNotNullParameter(listener, "listener");
|
|
this.h = new WeakReference<>(listener);
|
|
this.i = new a();
|
|
this.j = adUnitData;
|
|
Placement h = h();
|
|
IronLog.INTERNAL.verbose("placement = " + h);
|
|
if (h == null || TextUtils.isEmpty(h.getPlacementName())) {
|
|
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
|
Object[] objArr = new Object[1];
|
|
objArr[0] = h == null ? "placement is null" : "placement name is empty";
|
|
format = String.format("can't load banner - %s", Arrays.copyOf(objArr, 1));
|
|
Intrinsics.checkNotNullExpressionValue(format, "format(format, *args)");
|
|
b = t1.b(adUnitData.b().a());
|
|
} else {
|
|
format = null;
|
|
b = 510;
|
|
}
|
|
if (format != null) {
|
|
IronLog.API.error(a(format));
|
|
a(b, format);
|
|
}
|
|
}
|
|
|
|
private final ISBannerSize a(ISBannerSize iSBannerSize) {
|
|
return iSBannerSize.isSmart() ? AdapterUtils.isLargeScreen(ContextProvider.getInstance().getApplicationContext()) ? com.ironsource.mediationsdk.l.a() : ISBannerSize.BANNER : iSBannerSize;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final x a(e6 this$0, y instanceData) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(instanceData, "instanceData");
|
|
return new q5(new p2(this$0.g(), x1.b.PROVIDER), instanceData, this$0.i);
|
|
}
|
|
|
|
private final ISBannerSize k() {
|
|
return g().a(this.j.b().g());
|
|
}
|
|
|
|
@Override // com.ironsource.l1
|
|
public a0 a() {
|
|
return new a0() { // from class: com.ironsource.e6$$ExternalSyntheticLambda0
|
|
@Override // com.ironsource.a0
|
|
public final x a(y yVar) {
|
|
x a2;
|
|
a2 = e6.a(e6.this, yVar);
|
|
return a2;
|
|
}
|
|
};
|
|
}
|
|
|
|
public final void a(du duVar) {
|
|
if (duVar != null) {
|
|
a(new u5(duVar));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.l1
|
|
public n1 b() {
|
|
return new l6(this.j.b(), a(k()));
|
|
}
|
|
}
|