- 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
348 lines
13 KiB
Java
348 lines
13 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.mediationsdk.model.InterstitialPlacement;
|
|
import com.ironsource.mediationsdk.model.Placement;
|
|
import com.ironsource.po;
|
|
import com.ironsource.uc;
|
|
import com.unity3d.mediation.LevelPlay;
|
|
import com.unity3d.mediation.LevelPlayAdSize;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import java.util.concurrent.TimeUnit;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import kotlin.collections.CollectionsKt__CollectionsKt;
|
|
import kotlin.collections.CollectionsKt__IterablesKt;
|
|
import kotlin.collections.CollectionsKt___CollectionsKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nLevelPlayConfig.kt\nKotlin\n*S Kotlin\n*F\n+ 1 LevelPlayConfig.kt\ncom/unity3d/mediation/internal/LevelPlayConfig\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,185:1\n1549#2:186\n1620#2,3:187\n1603#2,9:190\n1855#2:199\n1856#2:201\n1612#2:202\n1549#2:203\n1620#2,3:204\n1#3:200\n*S KotlinDebug\n*F\n+ 1 LevelPlayConfig.kt\ncom/unity3d/mediation/internal/LevelPlayConfig\n*L\n26#1:186\n26#1:187,3\n38#1:190,9\n38#1:199\n38#1:201\n38#1:202\n99#1:203\n99#1:204,3\n38#1:200\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class ak extends bq {
|
|
|
|
public /* synthetic */ class a {
|
|
public static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[LevelPlay.AdFormat.values().length];
|
|
try {
|
|
iArr[LevelPlay.AdFormat.REWARDED.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[LevelPlay.AdFormat.INTERSTITIAL.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
iArr[LevelPlay.AdFormat.BANNER.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
iArr[LevelPlay.AdFormat.NATIVE_AD.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
a = iArr;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public ak(bq sdkConfig) {
|
|
super(sdkConfig);
|
|
Intrinsics.checkNotNullParameter(sdkConfig, "sdkConfig");
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x00a2, code lost:
|
|
|
|
if (r8 != null) goto L29;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final com.ironsource.c7.b a(java.lang.String r8) {
|
|
/*
|
|
r7 = this;
|
|
java.lang.String r0 = "adUnitId"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
|
com.ironsource.jq r0 = r7.g()
|
|
com.ironsource.n8 r0 = r0.a()
|
|
com.ironsource.m6 r0 = r0.b()
|
|
java.util.Map r1 = r0.a()
|
|
java.lang.Object r1 = r1.get(r8)
|
|
com.ironsource.m6$b r1 = (com.ironsource.m6.b) r1
|
|
if (r1 == 0) goto L24
|
|
java.lang.Integer r1 = r1.b()
|
|
if (r1 == 0) goto L24
|
|
goto L2e
|
|
L24:
|
|
com.ironsource.m6$b r1 = r0.b()
|
|
java.lang.Integer r1 = r1.b()
|
|
if (r1 == 0) goto L33
|
|
L2e:
|
|
int r1 = r1.intValue()
|
|
goto L35
|
|
L33:
|
|
r1 = 60
|
|
L35:
|
|
java.util.Map r2 = r0.a()
|
|
java.lang.Object r2 = r2.get(r8)
|
|
com.ironsource.m6$b r2 = (com.ironsource.m6.b) r2
|
|
if (r2 == 0) goto L48
|
|
java.lang.Boolean r2 = r2.d()
|
|
if (r2 == 0) goto L48
|
|
goto L52
|
|
L48:
|
|
com.ironsource.m6$b r2 = r0.b()
|
|
java.lang.Boolean r2 = r2.d()
|
|
if (r2 == 0) goto L57
|
|
L52:
|
|
boolean r2 = r2.booleanValue()
|
|
goto L5c
|
|
L57:
|
|
if (r1 <= 0) goto L5b
|
|
r2 = 1
|
|
goto L5c
|
|
L5b:
|
|
r2 = 0
|
|
L5c:
|
|
java.util.Map r3 = r0.a()
|
|
java.lang.Object r8 = r3.get(r8)
|
|
com.ironsource.m6$b r8 = (com.ironsource.m6.b) r8
|
|
if (r8 == 0) goto L6f
|
|
java.lang.Boolean r8 = r8.e()
|
|
if (r8 == 0) goto L6f
|
|
goto L79
|
|
L6f:
|
|
com.ironsource.m6$b r8 = r0.b()
|
|
java.lang.Boolean r8 = r8.e()
|
|
if (r8 == 0) goto L7e
|
|
L79:
|
|
boolean r8 = r8.booleanValue()
|
|
goto La5
|
|
L7e:
|
|
com.ironsource.jq r8 = r7.g()
|
|
com.ironsource.n8 r8 = r8.a()
|
|
com.ironsource.s3 r8 = r8.a()
|
|
com.ironsource.q3 r8 = r8.a()
|
|
java.util.Map r8 = r8.a()
|
|
com.unity3d.mediation.LevelPlay$AdFormat r0 = com.unity3d.mediation.LevelPlay.AdFormat.BANNER
|
|
java.lang.Object r8 = r8.get(r0)
|
|
com.ironsource.p r8 = (com.ironsource.p) r8
|
|
if (r8 == 0) goto La1
|
|
java.lang.Boolean r8 = r8.a()
|
|
goto La2
|
|
La1:
|
|
r8 = 0
|
|
La2:
|
|
if (r8 == 0) goto Laa
|
|
goto L79
|
|
La5:
|
|
if (r8 == 0) goto Laa
|
|
com.ironsource.c7$c r8 = com.ironsource.c7.c.TIMED_SHOW
|
|
goto Lac
|
|
Laa:
|
|
com.ironsource.c7$c r8 = com.ironsource.c7.c.TIMED_LOAD
|
|
Lac:
|
|
com.ironsource.c7$b r0 = new com.ironsource.c7$b
|
|
long r3 = (long) r1
|
|
r5 = 1000(0x3e8, double:4.94E-321)
|
|
long r3 = r3 * r5
|
|
r0.<init>(r8, r3, r2)
|
|
return r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.ironsource.ak.a(java.lang.String):com.ironsource.c7$b");
|
|
}
|
|
|
|
public final Placement a(LevelPlay.AdFormat adFormat, String str) {
|
|
InterstitialPlacement a2;
|
|
String str2;
|
|
Intrinsics.checkNotNullParameter(adFormat, "adFormat");
|
|
int i = a.a[adFormat.ordinal()];
|
|
if (i == 1) {
|
|
pp f = d().c().f();
|
|
if (f != null) {
|
|
Placement a3 = f.a(str);
|
|
if (a3 == null) {
|
|
a3 = f.a();
|
|
}
|
|
if (a3 != null) {
|
|
return new Placement(a3.getPlacementId(), a3.getPlacementName(), a3.isDefault(), a3.getRewardName(), a3.getRewardAmount(), a3.getPlacementAvailabilitySettings());
|
|
}
|
|
}
|
|
throw new IllegalStateException("Error getting " + adFormat + " configurations");
|
|
}
|
|
if (i == 2) {
|
|
hi d = d().c().d();
|
|
if (d == null || (a2 = d.a(str)) == null) {
|
|
return null;
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(a2, "getInterstitialPlacement(placementName)");
|
|
return new Placement(a2);
|
|
}
|
|
if (i == 3) {
|
|
n6 c = d().c().c();
|
|
if (c == null) {
|
|
throw new IllegalStateException("Error getting " + adFormat + " configurations");
|
|
}
|
|
b7 a4 = c.a(str);
|
|
if (a4 == null) {
|
|
a4 = c.j();
|
|
str2 = "config.defaultBannerPlacement";
|
|
} else {
|
|
str2 = "config.getBannerPlacemen…ig.defaultBannerPlacement";
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(a4, str2);
|
|
return new Placement(a4);
|
|
}
|
|
if (i != 4) {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
jl e = d().c().e();
|
|
if (e != null && str != null) {
|
|
ul a5 = e.a(str);
|
|
if (a5 == null) {
|
|
a5 = e.e();
|
|
}
|
|
if (a5 != null) {
|
|
return new Placement(a5);
|
|
}
|
|
}
|
|
throw new IllegalStateException("Error getting " + adFormat + " configurations");
|
|
}
|
|
|
|
public final q1 a(ok tools) {
|
|
Intrinsics.checkNotNullParameter(tools, "tools");
|
|
return new q1(tools, g().a().c().a());
|
|
}
|
|
|
|
public final List<String> a(LevelPlay.AdFormat adFormat) {
|
|
Map<String, po.b> a2;
|
|
Set<String> keySet;
|
|
List<String> list;
|
|
Intrinsics.checkNotNullParameter(adFormat, "adFormat");
|
|
po.a aVar = g().d().a().get(adFormat);
|
|
return (aVar == null || (a2 = aVar.a()) == null || (keySet = a2.keySet()) == null || (list = CollectionsKt___CollectionsKt.toList(keySet)) == null) ? CollectionsKt__CollectionsKt.emptyList() : list;
|
|
}
|
|
|
|
public final boolean a(String adUnitId, LevelPlay.AdFormat adFormat) {
|
|
Map<String, po.b> a2;
|
|
Intrinsics.checkNotNullParameter(adUnitId, "adUnitId");
|
|
Intrinsics.checkNotNullParameter(adFormat, "adFormat");
|
|
po.a aVar = g().d().a().get(adFormat);
|
|
return (aVar == null || (a2 = aVar.a()) == null || !a2.containsKey(adUnitId)) ? false : true;
|
|
}
|
|
|
|
public final eo b(ok tools) {
|
|
Intrinsics.checkNotNullParameter(tools, "tools");
|
|
return new eo(tools, g().a().c().d());
|
|
}
|
|
|
|
public final uc.a b(String adUnitId) {
|
|
Intrinsics.checkNotNullParameter(adUnitId, "adUnitId");
|
|
g().a().c();
|
|
return new uc.a(uc.c.MANUAL_LOAD);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x004e, code lost:
|
|
|
|
r4 = kotlin.collections.CollectionsKt___CollectionsKt.distinct(r4);
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.util.List<com.ironsource.rm> b(com.unity3d.mediation.LevelPlay.AdFormat r4) {
|
|
/*
|
|
r3 = this;
|
|
java.lang.String r0 = "adFormat"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r4, r0)
|
|
com.ironsource.jq r0 = r3.g()
|
|
com.ironsource.po r0 = r0.d()
|
|
java.util.Map r0 = r0.a()
|
|
java.lang.Object r0 = r0.get(r4)
|
|
com.ironsource.po$a r0 = (com.ironsource.po.a) r0
|
|
if (r0 == 0) goto L55
|
|
java.util.Map r0 = r0.a()
|
|
if (r0 == 0) goto L55
|
|
java.util.Set r0 = r0.keySet()
|
|
if (r0 == 0) goto L55
|
|
java.util.ArrayList r1 = new java.util.ArrayList
|
|
r2 = 10
|
|
int r2 = kotlin.collections.CollectionsKt.collectionSizeOrDefault(r0, r2)
|
|
r1.<init>(r2)
|
|
java.util.Iterator r0 = r0.iterator()
|
|
L34:
|
|
boolean r2 = r0.hasNext()
|
|
if (r2 == 0) goto L48
|
|
java.lang.Object r2 = r0.next()
|
|
java.lang.String r2 = (java.lang.String) r2
|
|
java.util.List r2 = r3.b(r4, r2)
|
|
r1.add(r2)
|
|
goto L34
|
|
L48:
|
|
java.util.List r4 = kotlin.collections.CollectionsKt.flatten(r1)
|
|
if (r4 == 0) goto L55
|
|
java.util.List r4 = kotlin.collections.CollectionsKt.distinct(r4)
|
|
if (r4 == 0) goto L55
|
|
goto L59
|
|
L55:
|
|
java.util.List r4 = kotlin.collections.CollectionsKt.emptyList()
|
|
L59:
|
|
return r4
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.ironsource.ak.b(com.unity3d.mediation.LevelPlay$AdFormat):java.util.List");
|
|
}
|
|
|
|
public final List<rm> b(LevelPlay.AdFormat adFormat, String adUnitId) {
|
|
Map<String, po.b> a2;
|
|
po.b bVar;
|
|
List<String> a3;
|
|
Intrinsics.checkNotNullParameter(adFormat, "adFormat");
|
|
Intrinsics.checkNotNullParameter(adUnitId, "adUnitId");
|
|
po.a aVar = g().d().a().get(adFormat);
|
|
if (aVar == null || (a2 = aVar.a()) == null || (bVar = a2.get(adUnitId)) == null || (a3 = bVar.a()) == null) {
|
|
return CollectionsKt__CollectionsKt.emptyList();
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
Iterator<T> it = a3.iterator();
|
|
while (it.hasNext()) {
|
|
rm rmVar = g().e().a().get((String) it.next());
|
|
if (rmVar != null) {
|
|
arrayList.add(rmVar);
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
public final List<LevelPlayAdSize> h() {
|
|
List<String> a2 = g().a().b().b().a();
|
|
ArrayList arrayList = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(a2, 10));
|
|
Iterator<T> it = a2.iterator();
|
|
while (it.hasNext()) {
|
|
arrayList.add(LevelPlayAdSize.Companion.createAdSize$mediationsdk_release((String) it.next()));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
public final long i() {
|
|
long c = g().a().c().c().c();
|
|
return c > 0 ? TimeUnit.MINUTES.toMillis(c) : c;
|
|
}
|
|
|
|
public final float j() {
|
|
return g().a().b().b().c();
|
|
}
|
|
|
|
public final boolean k() {
|
|
c1 a2 = d().c().a();
|
|
return a2 != null && a2.a();
|
|
}
|
|
|
|
public final boolean l() {
|
|
return g().a().a().d();
|
|
}
|
|
}
|