- 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
178 lines
5.9 KiB
Java
178 lines
5.9 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.k7;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nWaterfallSmashPicker.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WaterfallSmashPicker.kt\ncom/ironsource/mediationsdk/adunit/waterfall/WaterfallSmashPicker\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,90:1\n766#2:91\n857#2,2:92\n1#3:94\n*S KotlinDebug\n*F\n+ 1 WaterfallSmashPicker.kt\ncom/ironsource/mediationsdk/adunit/waterfall/WaterfallSmashPicker\n*L\n84#1:91\n84#1:92,2\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public abstract class vu<Smash extends k7<?>> {
|
|
public static final a g = new a(null);
|
|
private final int a;
|
|
private final boolean b;
|
|
private final List<Smash> c;
|
|
private final List<Smash> d;
|
|
private final List<Smash> e;
|
|
private final List<Smash> f;
|
|
|
|
public static final class a {
|
|
|
|
/* renamed from: com.ironsource.vu$a$a, reason: collision with other inner class name */
|
|
public /* synthetic */ class C0187a {
|
|
public static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[ru.values().length];
|
|
try {
|
|
iArr[ru.DEFAULT.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[ru.BIDDER_SENSITIVE.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
a = iArr;
|
|
}
|
|
}
|
|
|
|
private a() {
|
|
}
|
|
|
|
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final <Smash extends k7<?>> vu<Smash> a(ru loadingStrategy, int i, boolean z, List<? extends Smash> waterfall) {
|
|
Intrinsics.checkNotNullParameter(loadingStrategy, "loadingStrategy");
|
|
Intrinsics.checkNotNullParameter(waterfall, "waterfall");
|
|
int i2 = C0187a.a[loadingStrategy.ordinal()];
|
|
if (i2 == 1) {
|
|
return new w9(i, z, waterfall);
|
|
}
|
|
if (i2 == 2) {
|
|
return new p7(i, z, waterfall, false, 8, null);
|
|
}
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public vu(int i, boolean z, List<? extends Smash> waterfall) {
|
|
Intrinsics.checkNotNullParameter(waterfall, "waterfall");
|
|
this.a = i;
|
|
this.b = z;
|
|
this.c = waterfall;
|
|
this.d = new ArrayList();
|
|
this.e = new ArrayList();
|
|
this.f = new ArrayList();
|
|
}
|
|
|
|
private final int a(Smash smash) {
|
|
return smash.i().k();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
private final int b() {
|
|
Integer num;
|
|
List<Smash> list = this.c;
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Object obj : list) {
|
|
if (((k7) obj).y()) {
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
Iterator it = arrayList.iterator();
|
|
if (it.hasNext()) {
|
|
Integer valueOf = Integer.valueOf(a((k7) it.next()));
|
|
while (it.hasNext()) {
|
|
Integer valueOf2 = Integer.valueOf(a((k7) it.next()));
|
|
if (valueOf.compareTo(valueOf2) > 0) {
|
|
valueOf = valueOf2;
|
|
}
|
|
}
|
|
num = valueOf;
|
|
} else {
|
|
num = null;
|
|
}
|
|
if (num != null) {
|
|
return num.intValue();
|
|
}
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
|
|
private final boolean b(Smash smash) {
|
|
return b() < a(smash);
|
|
}
|
|
|
|
public final List<Smash> a() {
|
|
return this.f;
|
|
}
|
|
|
|
public final List<Smash> c() {
|
|
return this.d;
|
|
}
|
|
|
|
public abstract void c(Smash smash);
|
|
|
|
public final int d() {
|
|
return this.d.size() + this.e.size() + this.f.size();
|
|
}
|
|
|
|
public final void d(Smash smash) {
|
|
IronLog ironLog;
|
|
String str;
|
|
IronLog ironLog2;
|
|
StringBuilder sb;
|
|
String str2;
|
|
List<Smash> list;
|
|
Intrinsics.checkNotNullParameter(smash, "smash");
|
|
if (!smash.x()) {
|
|
if (smash.y()) {
|
|
IronLog.INTERNAL.verbose(smash.g().name() + " - Smash " + smash.k() + " is already loaded");
|
|
list = this.e;
|
|
} else {
|
|
if (smash.z()) {
|
|
ironLog2 = IronLog.INTERNAL;
|
|
sb = new StringBuilder();
|
|
sb.append(smash.g().name());
|
|
sb.append(" - Smash ");
|
|
sb.append(smash.k());
|
|
str2 = " still loading";
|
|
} else if (smash.A().get()) {
|
|
ironLog2 = IronLog.INTERNAL;
|
|
sb = new StringBuilder();
|
|
sb.append(smash.g().name());
|
|
sb.append(" - Smash ");
|
|
sb.append(smash.k());
|
|
str2 = " marked as loading candidate";
|
|
} else {
|
|
if (!this.b || !b(smash)) {
|
|
c(smash);
|
|
return;
|
|
}
|
|
ironLog = IronLog.INTERNAL;
|
|
str = smash.g().name() + " - Smash " + smash.k() + " is not better than already loaded smashes";
|
|
}
|
|
sb.append(str2);
|
|
ironLog2.verbose(sb.toString());
|
|
list = this.f;
|
|
}
|
|
list.add(smash);
|
|
return;
|
|
}
|
|
ironLog = IronLog.INTERNAL;
|
|
str = smash.g().name() + " - smash " + smash.k() + " is failed to load";
|
|
ironLog.verbose(str);
|
|
}
|
|
|
|
public boolean e() {
|
|
return d() >= this.a;
|
|
}
|
|
}
|