- 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
188 lines
7.4 KiB
Java
188 lines
7.4 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.mediationsdk.model.NetworkSettings;
|
|
import com.ironsource.mediationsdk.utils.IronSourceUtils;
|
|
import com.unity3d.mediation.LevelPlay;
|
|
import java.util.ArrayList;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
import kotlin.Lazy;
|
|
import kotlin.LazyKt__LazyJVMKt;
|
|
import kotlin.collections.CollectionsKt__IterablesKt;
|
|
import kotlin.collections.MapsKt__MapsJVMKt;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.Lambda;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.ranges.RangesKt___RangesKt;
|
|
import org.json.JSONObject;
|
|
|
|
@SourceDebugExtension({"SMAP\nNetworkSettings.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkSettings.kt\ncom/unity3d/sdk/internal/init/response/NetworkSettings\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,95:1\n11335#2:96\n11670#2,3:97\n1271#3,2:100\n1285#3,4:102\n*S KotlinDebug\n*F\n+ 1 NetworkSettings.kt\ncom/unity3d/sdk/internal/init/response/NetworkSettings\n*L\n39#1:96\n39#1:97,3\n40#1:100,2\n40#1:102,4\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class rm {
|
|
private final String a;
|
|
private final String b;
|
|
private final String c;
|
|
private final String d;
|
|
private final String e;
|
|
private final JSONObject f;
|
|
private final Map<String, JSONObject> g;
|
|
private final String h;
|
|
private final String i;
|
|
private final boolean j;
|
|
private rm k;
|
|
private final Lazy l;
|
|
|
|
public static final class a extends Lambda implements Function0 {
|
|
public a() {
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public final NetworkSettings invoke() {
|
|
String j = rm.this.j();
|
|
String l = rm.this.l();
|
|
String h = rm.this.h();
|
|
String k = rm.this.k();
|
|
JSONObject c = rm.this.c();
|
|
rm rmVar = rm.this.k;
|
|
JSONObject mergeJsons = IronSourceUtils.mergeJsons(c, rmVar != null ? rmVar.c() : null);
|
|
JSONObject m = rm.this.m();
|
|
rm rmVar2 = rm.this.k;
|
|
JSONObject mergeJsons2 = IronSourceUtils.mergeJsons(m, rmVar2 != null ? rmVar2.m() : null);
|
|
JSONObject e = rm.this.e();
|
|
rm rmVar3 = rm.this.k;
|
|
JSONObject mergeJsons3 = IronSourceUtils.mergeJsons(e, rmVar3 != null ? rmVar3.e() : null);
|
|
JSONObject d = rm.this.d();
|
|
rm rmVar4 = rm.this.k;
|
|
JSONObject mergeJsons4 = IronSourceUtils.mergeJsons(d, rmVar4 != null ? rmVar4.d() : null);
|
|
JSONObject g = rm.this.g();
|
|
rm rmVar5 = rm.this.k;
|
|
NetworkSettings networkSettings = new NetworkSettings(j, l, h, k, mergeJsons, mergeJsons2, mergeJsons3, mergeJsons4, IronSourceUtils.mergeJsons(g, rmVar5 != null ? rmVar5.g() : null));
|
|
networkSettings.setIsMultipleInstances(rm.this.o());
|
|
networkSettings.setSubProviderId(rm.this.n());
|
|
networkSettings.setAdSourceNameForEvents(rm.this.b());
|
|
return networkSettings;
|
|
}
|
|
}
|
|
|
|
public rm(String providerName, JSONObject networkSettings) {
|
|
int mapCapacity;
|
|
int coerceAtLeast;
|
|
Lazy lazy;
|
|
Intrinsics.checkNotNullParameter(providerName, "providerName");
|
|
Intrinsics.checkNotNullParameter(networkSettings, "networkSettings");
|
|
this.a = providerName;
|
|
this.b = providerName;
|
|
String optString = networkSettings.optString(sm.d, providerName);
|
|
Intrinsics.checkNotNullExpressionValue(optString, "networkSettings.optStrin…,\n providerName)");
|
|
this.c = optString;
|
|
String optString2 = networkSettings.optString(sm.e, optString);
|
|
Intrinsics.checkNotNullExpressionValue(optString2, "networkSettings.optStrin…roviderTypeForReflection)");
|
|
this.d = optString2;
|
|
Object opt = networkSettings.opt(sm.f);
|
|
this.e = opt instanceof String ? (String) opt : null;
|
|
this.f = networkSettings.optJSONObject("application");
|
|
LevelPlay.AdFormat[] values = LevelPlay.AdFormat.values();
|
|
ArrayList arrayList = new ArrayList(values.length);
|
|
for (LevelPlay.AdFormat adFormat : values) {
|
|
arrayList.add(ks.a(adFormat));
|
|
}
|
|
mapCapacity = MapsKt__MapsJVMKt.mapCapacity(CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10));
|
|
coerceAtLeast = RangesKt___RangesKt.coerceAtLeast(mapCapacity, 16);
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap(coerceAtLeast);
|
|
for (Object obj : arrayList) {
|
|
String str = (String) obj;
|
|
JSONObject optJSONObject = networkSettings.optJSONObject("adFormats");
|
|
JSONObject optJSONObject2 = optJSONObject != null ? optJSONObject.optJSONObject(str) : null;
|
|
if (optJSONObject2 == null) {
|
|
optJSONObject2 = new JSONObject();
|
|
}
|
|
linkedHashMap.put(obj, optJSONObject2);
|
|
}
|
|
this.g = linkedHashMap;
|
|
String optString3 = networkSettings.optString("spId", "0");
|
|
Intrinsics.checkNotNullExpressionValue(optString3, "networkSettings.optStrin…B_PROVIDER_ID_FIELD, \"0\")");
|
|
this.h = optString3;
|
|
String optString4 = networkSettings.optString(sm.a);
|
|
Intrinsics.checkNotNullExpressionValue(optString4, "networkSettings.optString(AD_SOURCE_NAME_FIELD)");
|
|
this.i = optString4;
|
|
this.j = networkSettings.optBoolean(sm.c, false);
|
|
lazy = LazyKt__LazyJVMKt.lazy(new a());
|
|
this.l = lazy;
|
|
}
|
|
|
|
public final Map<String, JSONObject> a() {
|
|
return this.g;
|
|
}
|
|
|
|
public final String b() {
|
|
return this.i;
|
|
}
|
|
|
|
public final void b(rm rmVar) {
|
|
this.k = rmVar;
|
|
}
|
|
|
|
public final JSONObject c() {
|
|
return this.f;
|
|
}
|
|
|
|
public final JSONObject d() {
|
|
JSONObject mergeJsons = IronSourceUtils.mergeJsons(this.g.get("banner"), this.f);
|
|
Intrinsics.checkNotNullExpressionValue(mergeJsons, "mergeJsons(\n …EY], applicationSettings)");
|
|
return mergeJsons;
|
|
}
|
|
|
|
public final JSONObject e() {
|
|
JSONObject mergeJsons = IronSourceUtils.mergeJsons(this.g.get("interstitial"), this.f);
|
|
Intrinsics.checkNotNullExpressionValue(mergeJsons, "mergeJsons(\n …EY], applicationSettings)");
|
|
return mergeJsons;
|
|
}
|
|
|
|
public final NetworkSettings f() {
|
|
return (NetworkSettings) this.l.getValue();
|
|
}
|
|
|
|
public final JSONObject g() {
|
|
JSONObject mergeJsons = IronSourceUtils.mergeJsons(this.g.get("nativeAd"), this.f);
|
|
Intrinsics.checkNotNullExpressionValue(mergeJsons, "mergeJsons(\n …EY], applicationSettings)");
|
|
return mergeJsons;
|
|
}
|
|
|
|
public final String h() {
|
|
return this.d;
|
|
}
|
|
|
|
public final String i() {
|
|
return this.b;
|
|
}
|
|
|
|
public final String j() {
|
|
return this.a;
|
|
}
|
|
|
|
public final String k() {
|
|
return this.e;
|
|
}
|
|
|
|
public final String l() {
|
|
return this.c;
|
|
}
|
|
|
|
public final JSONObject m() {
|
|
JSONObject mergeJsons = IronSourceUtils.mergeJsons(this.g.get("rewarded"), this.f);
|
|
Intrinsics.checkNotNullExpressionValue(mergeJsons, "mergeJsons(\n … applicationSettings)");
|
|
return mergeJsons;
|
|
}
|
|
|
|
public final String n() {
|
|
return this.h;
|
|
}
|
|
|
|
public final boolean o() {
|
|
return this.j;
|
|
}
|
|
}
|