Files
rr3-apk/decompiled/sources/com/ironsource/h1.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

100 lines
3.8 KiB
Java

package com.ironsource;
import android.content.Context;
import com.ironsource.ks;
import com.ironsource.mediationsdk.ISBannerSize;
import com.ironsource.mediationsdk.ISContainerParams;
import com.ironsource.mediationsdk.IronSource;
import com.unity3d.mediation.LevelPlayAdSize;
import java.util.List;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.Intrinsics;
import kotlin.math.MathKt__MathJVMKt;
/* loaded from: classes2.dex */
public final class h1 extends ok {
private final ks.b b;
private final ig c;
public h1() {
ks.b a = ks.a(IronSource.AD_UNIT.BANNER);
Intrinsics.checkNotNullExpressionValue(a, "createLogFactory(IronSource.AD_UNIT.BANNER)");
this.b = a;
this.c = el.p.d().r();
}
private final ISBannerSize a(LevelPlayAdSize levelPlayAdSize) {
LevelPlayAdSize fallbackAdSize$mediationsdk_release = levelPlayAdSize.getFallbackAdSize$mediationsdk_release();
if (fallbackAdSize$mediationsdk_release == null) {
fallbackAdSize$mediationsdk_release = LevelPlayAdSize.BANNER;
}
ISBannerSize b = b(fallbackAdSize$mediationsdk_release);
b.setAdaptive(true);
b.containerParams = new ISContainerParams(levelPlayAdSize.getWidth(), levelPlayAdSize.getHeight());
return b;
}
public static /* synthetic */ String a(h1 h1Var, String str, String str2, int i, Object obj) {
if ((i & 1) != 0) {
str = null;
}
if ((i & 2) != 0) {
str2 = null;
}
return h1Var.a(str, str2);
}
private final float c() {
ak a = this.c.a();
if (a != null) {
return a.j();
}
throw new IllegalStateException("Error getting sdk configurations");
}
private final ISBannerSize c(LevelPlayAdSize levelPlayAdSize) {
return Intrinsics.areEqual(levelPlayAdSize, LevelPlayAdSize.LARGE) ? new ISBannerSize(com.ironsource.mediationsdk.l.b, levelPlayAdSize.getWidth(), levelPlayAdSize.getHeight()) : Intrinsics.areEqual(levelPlayAdSize, LevelPlayAdSize.MEDIUM_RECTANGLE) ? new ISBannerSize(com.ironsource.mediationsdk.l.c, levelPlayAdSize.getWidth(), levelPlayAdSize.getHeight()) : Intrinsics.areEqual(levelPlayAdSize, LevelPlayAdSize.LEADERBOARD) ? new ISBannerSize(com.ironsource.mediationsdk.l.e, 0, 0) : Intrinsics.areEqual(levelPlayAdSize, LevelPlayAdSize.Companion.createCustomSize(levelPlayAdSize.getWidth(), levelPlayAdSize.getHeight())) ? new ISBannerSize(levelPlayAdSize.getWidth(), levelPlayAdSize.getHeight()) : new ISBannerSize(com.ironsource.mediationsdk.l.a, levelPlayAdSize.getWidth(), levelPlayAdSize.getHeight());
}
public final int a(int i) {
return com.ironsource.mediationsdk.l.a(i);
}
public final String a(String str, String str2) {
String a = this.b.a(str, str2);
Intrinsics.checkNotNullExpressionValue(a, "logFactory.createLogMessage(message, suffix)");
return a;
}
public final int b(Context context) {
int roundToInt;
Intrinsics.checkNotNullParameter(context, "context");
roundToInt = MathKt__MathJVMKt.roundToInt(c() * na.a.a(context));
return roundToInt;
}
public final ISBannerSize b(LevelPlayAdSize size) {
Intrinsics.checkNotNullParameter(size, "size");
boolean isAdaptive = size.isAdaptive();
if (isAdaptive) {
return a(size);
}
if (isAdaptive) {
throw new NoWhenBranchMatchedException();
}
return c(size);
}
public final List<LevelPlayAdSize> b() {
ak a = this.c.a();
if (a != null) {
return a.h();
}
throw new IllegalStateException("Error getting sdk configurations");
}
public final boolean d() {
return el.p.d().r().c();
}
}