- 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
303 lines
9.8 KiB
Java
303 lines
9.8 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.Comparator;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import kotlin.collections.CollectionsKt__CollectionsKt;
|
|
import kotlin.collections.CollectionsKt___CollectionsKt;
|
|
import kotlin.comparisons.ComparisonsKt__ComparisonsKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nAdInstanceLoadStrategy.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AdInstanceLoadStrategy.kt\ncom/unity3d/mediation/internal/ads/controllers/adunits/waterfall/load/AdInstanceLoadStrategy\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,120:1\n288#2,2:121\n288#2,2:123\n1774#2,4:125\n1045#2:129\n*S KotlinDebug\n*F\n+ 1 AdInstanceLoadStrategy.kt\ncom/unity3d/mediation/internal/ads/controllers/adunits/waterfall/load/AdInstanceLoadStrategy\n*L\n59#1:121,2\n64#1:123,2\n67#1:125,4\n72#1:129\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public abstract class d0 {
|
|
public static final a c = new a(null);
|
|
private final s1 a;
|
|
private final nu b;
|
|
|
|
public static final class a {
|
|
|
|
/* renamed from: com.ironsource.d0$a$a, reason: collision with other inner class name */
|
|
public /* synthetic */ class C0168a {
|
|
public static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[ru.values().length];
|
|
try {
|
|
iArr[ru.BIDDER_SENSITIVE.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[ru.DEFAULT.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
a = iArr;
|
|
}
|
|
}
|
|
|
|
private a() {
|
|
}
|
|
|
|
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final d0 a(s1 adUnitData, nu waterfallInstances) {
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
Intrinsics.checkNotNullParameter(waterfallInstances, "waterfallInstances");
|
|
int i = C0168a.a[(adUnitData.d() ? ru.BIDDER_SENSITIVE : ru.DEFAULT).ordinal()];
|
|
if (i == 1) {
|
|
return new o7(adUnitData, waterfallInstances);
|
|
}
|
|
if (i == 2) {
|
|
return adUnitData.r() ? new ds(adUnitData, waterfallInstances) : new u9(adUnitData, waterfallInstances);
|
|
}
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
}
|
|
|
|
public static final class b {
|
|
private final List<x> a = new ArrayList();
|
|
private final List<x> b = new ArrayList();
|
|
private final List<x> c = new ArrayList();
|
|
private boolean d;
|
|
|
|
public final List<x> a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final void a(boolean z) {
|
|
this.d = z;
|
|
}
|
|
|
|
public final List<x> b() {
|
|
return this.b;
|
|
}
|
|
|
|
public final List<x> c() {
|
|
return this.c;
|
|
}
|
|
|
|
public final boolean d() {
|
|
return this.d;
|
|
}
|
|
|
|
public final boolean e() {
|
|
return g() == 0;
|
|
}
|
|
|
|
public final boolean f() {
|
|
return this.a.isEmpty() && this.c.isEmpty();
|
|
}
|
|
|
|
public final int g() {
|
|
return this.a.size() + this.b.size() + this.c.size();
|
|
}
|
|
}
|
|
|
|
public static final class c {
|
|
private final x a;
|
|
private final List<x> b;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public c(x xVar, List<? extends x> orderedInstances) {
|
|
Intrinsics.checkNotNullParameter(orderedInstances, "orderedInstances");
|
|
this.a = xVar;
|
|
this.b = orderedInstances;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ c a(c cVar, x xVar, List list, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
xVar = cVar.a;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
list = cVar.b;
|
|
}
|
|
return cVar.a(xVar, list);
|
|
}
|
|
|
|
public final c a(x xVar, List<? extends x> orderedInstances) {
|
|
Intrinsics.checkNotNullParameter(orderedInstances, "orderedInstances");
|
|
return new c(xVar, orderedInstances);
|
|
}
|
|
|
|
public final x a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final List<x> b() {
|
|
return this.b;
|
|
}
|
|
|
|
public final x c() {
|
|
return this.a;
|
|
}
|
|
|
|
public final List<x> d() {
|
|
return this.b;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof c)) {
|
|
return false;
|
|
}
|
|
c cVar = (c) obj;
|
|
return Intrinsics.areEqual(this.a, cVar.a) && Intrinsics.areEqual(this.b, cVar.b);
|
|
}
|
|
|
|
public int hashCode() {
|
|
x xVar = this.a;
|
|
return ((xVar == null ? 0 : xVar.hashCode()) * 31) + this.b.hashCode();
|
|
}
|
|
|
|
public String toString() {
|
|
return "ShowSelection(instanceToShow=" + this.a + ", orderedInstances=" + this.b + ')';
|
|
}
|
|
}
|
|
|
|
@SourceDebugExtension({"SMAP\nComparisons.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Comparisons.kt\nkotlin/comparisons/ComparisonsKt__ComparisonsKt$compareBy$2\n+ 2 AdInstanceLoadStrategy.kt\ncom/unity3d/mediation/internal/ads/controllers/adunits/waterfall/load/AdInstanceLoadStrategy\n*L\n1#1,328:1\n73#2:329\n*E\n"})
|
|
public static final class d<T> implements Comparator {
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // java.util.Comparator
|
|
public final int compare(T t, T t2) {
|
|
int compareValues;
|
|
compareValues = ComparisonsKt__ComparisonsKt.compareValues(Integer.valueOf(((x) t).g().k()), Integer.valueOf(((x) t2).g().k()));
|
|
return compareValues;
|
|
}
|
|
}
|
|
|
|
public d0(s1 adUnitData, nu waterfallInstances) {
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
Intrinsics.checkNotNullParameter(waterfallInstances, "waterfallInstances");
|
|
this.a = adUnitData;
|
|
this.b = waterfallInstances;
|
|
}
|
|
|
|
private final List<x> b() {
|
|
List<x> sortedWith;
|
|
sortedWith = CollectionsKt___CollectionsKt.sortedWith(this.b.b(), new d());
|
|
return sortedWith;
|
|
}
|
|
|
|
private final boolean b(x xVar, b bVar) {
|
|
IronLog ironLog;
|
|
StringBuilder sb;
|
|
String str;
|
|
List<x> c2;
|
|
if (!xVar.t()) {
|
|
if (xVar.u()) {
|
|
IronLog.INTERNAL.verbose(xVar.c().name() + " - Instance " + xVar.o() + " is already loaded");
|
|
c2 = bVar.b();
|
|
} else if (xVar.v()) {
|
|
IronLog.INTERNAL.verbose(xVar.c().name() + " - Instance " + xVar.o() + " still loading");
|
|
c2 = bVar.c();
|
|
} else {
|
|
if (!a(xVar, this.b)) {
|
|
a(xVar, bVar);
|
|
return a(bVar);
|
|
}
|
|
ironLog = IronLog.INTERNAL;
|
|
sb = new StringBuilder();
|
|
sb.append(xVar.c().name());
|
|
sb.append(" - Instance ");
|
|
sb.append(xVar.o());
|
|
str = " is not better than already loaded instances";
|
|
}
|
|
c2.add(xVar);
|
|
return a(bVar);
|
|
}
|
|
ironLog = IronLog.INTERNAL;
|
|
sb = new StringBuilder();
|
|
sb.append(xVar.c().name());
|
|
sb.append(" - Instance ");
|
|
sb.append(xVar.o());
|
|
str = " is failed to load";
|
|
sb.append(str);
|
|
ironLog.verbose(sb.toString());
|
|
return a(bVar);
|
|
}
|
|
|
|
public abstract void a(x xVar, b bVar);
|
|
|
|
public final boolean a() {
|
|
int i;
|
|
List<x> b2 = this.b.b();
|
|
if ((b2 instanceof Collection) && b2.isEmpty()) {
|
|
i = 0;
|
|
} else {
|
|
Iterator<T> it = b2.iterator();
|
|
i = 0;
|
|
while (it.hasNext()) {
|
|
if (((x) it.next()).u() && (i = i + 1) < 0) {
|
|
CollectionsKt__CollectionsKt.throwCountOverflow();
|
|
}
|
|
}
|
|
}
|
|
return i >= this.a.l();
|
|
}
|
|
|
|
public boolean a(b loadSelection) {
|
|
Intrinsics.checkNotNullParameter(loadSelection, "loadSelection");
|
|
return loadSelection.g() >= this.a.l();
|
|
}
|
|
|
|
public final boolean a(x instance) {
|
|
Object obj;
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
Iterator<T> it = b().iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
obj = null;
|
|
break;
|
|
}
|
|
obj = it.next();
|
|
if (!((x) obj).t()) {
|
|
break;
|
|
}
|
|
}
|
|
return Intrinsics.areEqual(obj, instance);
|
|
}
|
|
|
|
public boolean a(x instance, nu waterfallInstances) {
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
Intrinsics.checkNotNullParameter(waterfallInstances, "waterfallInstances");
|
|
return false;
|
|
}
|
|
|
|
public final c c() {
|
|
Object obj;
|
|
List<x> b2 = b();
|
|
Iterator<T> it = b2.iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
obj = null;
|
|
break;
|
|
}
|
|
obj = it.next();
|
|
if (((x) obj).u()) {
|
|
break;
|
|
}
|
|
}
|
|
return new c((x) obj, b2);
|
|
}
|
|
|
|
public final b d() {
|
|
IronLog.INTERNAL.verbose(this.a.b().a().name() + " waterfall size: " + this.b.b().size());
|
|
b bVar = new b();
|
|
Iterator<x> it = this.b.b().iterator();
|
|
while (it.hasNext() && !b(it.next(), bVar)) {
|
|
}
|
|
return bVar;
|
|
}
|
|
}
|