- 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
158 lines
6.5 KiB
Java
158 lines
6.5 KiB
Java
package com.ironsource.mediationsdk;
|
|
|
|
import com.ironsource.ji;
|
|
import com.ironsource.kb;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterBaseWrapper;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterNetworkDataInterface;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.ironsource.mediationsdk.utils.IronSourceUtils;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import kotlin.collections.CollectionsKt__IterablesKt;
|
|
import kotlin.collections.CollectionsKt___CollectionsKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.sequences.Sequence;
|
|
import kotlin.sequences.SequencesKt__SequencesKt;
|
|
import kotlin.sequences.SequencesKt___SequencesKt;
|
|
import kotlin.text.StringsKt__StringsJVMKt;
|
|
import org.json.JSONObject;
|
|
|
|
@SourceDebugExtension({"SMAP\nNetworkData.kt\nKotlin\n*S Kotlin\n*F\n+ 1 NetworkData.kt\ncom/ironsource/mediationsdk/NetworkData\n+ 2 _Sequences.kt\nkotlin/sequences/SequencesKt___SequencesKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,83:1\n179#2,2:84\n1#3:86\n766#4:87\n857#4,2:88\n1855#4,2:90\n766#4:92\n857#4,2:93\n1549#4:95\n1620#4,3:96\n800#4,11:99\n1855#4,2:110\n*S KotlinDebug\n*F\n+ 1 NetworkData.kt\ncom/ironsource/mediationsdk/NetworkData\n*L\n41#1:84,2\n63#1:87\n63#1:88,2\n64#1:90,2\n69#1:92\n69#1:93,2\n70#1:95\n70#1:96,3\n71#1:99,11\n72#1:110,2\n*E\n"})
|
|
/* loaded from: classes4.dex */
|
|
public final class v implements AdapterNetworkData {
|
|
private final String a;
|
|
private final JSONObject b;
|
|
|
|
public v(String networkName, JSONObject data) {
|
|
Intrinsics.checkNotNullParameter(networkName, "networkName");
|
|
Intrinsics.checkNotNullParameter(data, "data");
|
|
this.a = networkName;
|
|
this.b = new JSONObject(data.toString());
|
|
}
|
|
|
|
private final void a(Collection<? extends AbstractAdapter> collection) {
|
|
List filterNotNull;
|
|
filterNotNull = CollectionsKt___CollectionsKt.filterNotNull(collection);
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Object obj : filterNotNull) {
|
|
if (c.a(this.a, (AbstractAdapter) obj)) {
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
Iterator it = arrayList.iterator();
|
|
while (it.hasNext()) {
|
|
((AbstractAdapter) it.next()).setNetworkData(this);
|
|
}
|
|
}
|
|
|
|
private final void b(Collection<? extends AdapterBaseWrapper> collection) {
|
|
List filterNotNull;
|
|
filterNotNull = CollectionsKt___CollectionsKt.filterNotNull(collection);
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Object obj : filterNotNull) {
|
|
if (c.a(this.a, (AdapterBaseWrapper) obj)) {
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
ArrayList arrayList2 = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10));
|
|
Iterator it = arrayList.iterator();
|
|
while (it.hasNext()) {
|
|
arrayList2.add(((AdapterBaseWrapper) it.next()).getAdapterBaseInterface());
|
|
}
|
|
ArrayList arrayList3 = new ArrayList();
|
|
for (Object obj2 : arrayList2) {
|
|
if (obj2 instanceof AdapterNetworkDataInterface) {
|
|
arrayList3.add(obj2);
|
|
}
|
|
}
|
|
Iterator it2 = arrayList3.iterator();
|
|
while (it2.hasNext()) {
|
|
((AdapterNetworkDataInterface) it2.next()).setNetworkData(this);
|
|
}
|
|
}
|
|
|
|
public final String a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final void a(Collection<? extends AbstractAdapter> adapters, Collection<? extends AdapterBaseWrapper> networkAdapters) {
|
|
Intrinsics.checkNotNullParameter(adapters, "adapters");
|
|
Intrinsics.checkNotNullParameter(networkAdapters, "networkAdapters");
|
|
try {
|
|
a(adapters);
|
|
b(networkAdapters);
|
|
} catch (Exception e) {
|
|
IronLog.INTERNAL.error("error while setting network data: " + e.getMessage());
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AdapterNetworkData
|
|
public JSONObject allData() {
|
|
return this.b;
|
|
}
|
|
|
|
public final void b() {
|
|
Sequence asSequence;
|
|
List list;
|
|
String joinToString$default;
|
|
Iterator<String> keys = this.b.keys();
|
|
Intrinsics.checkNotNullExpressionValue(keys, "networkData.keys()");
|
|
asSequence = SequencesKt__SequencesKt.asSequence(keys);
|
|
list = SequencesKt___SequencesKt.toList(asSequence);
|
|
joinToString$default = CollectionsKt___CollectionsKt.joinToString$default(list, ",", null, null, 0, null, null, 62, null);
|
|
ji.i().a(new kb(57, IronSourceUtils.getMediationAdditionalData(false).put(IronSourceConstants.EVENTS_EXT1, this.a + " - " + joinToString$default)));
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AdapterNetworkData
|
|
public <T> T dataByKeyIgnoreCase(String desiredKey, Class<T> valueType) {
|
|
Sequence asSequence;
|
|
Object obj;
|
|
boolean equals;
|
|
Intrinsics.checkNotNullParameter(desiredKey, "desiredKey");
|
|
Intrinsics.checkNotNullParameter(valueType, "valueType");
|
|
Iterator<String> keys = allData().keys();
|
|
Intrinsics.checkNotNullExpressionValue(keys, "allData()\n .keys()");
|
|
asSequence = SequencesKt__SequencesKt.asSequence(keys);
|
|
Iterator it = asSequence.iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
obj = null;
|
|
break;
|
|
}
|
|
obj = it.next();
|
|
equals = StringsKt__StringsJVMKt.equals((String) obj, desiredKey, true);
|
|
if (equals) {
|
|
break;
|
|
}
|
|
}
|
|
String str = (String) obj;
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
Object opt = allData().opt(str);
|
|
if (!valueType.isInstance(opt)) {
|
|
opt = null;
|
|
}
|
|
if (opt != null) {
|
|
return valueType.cast(opt);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AdapterNetworkData
|
|
public JSONObject networkDataByAdUnit(IronSource.AD_UNIT adUnit) {
|
|
Intrinsics.checkNotNullParameter(adUnit, "adUnit");
|
|
JSONObject optJSONObject = this.b.optJSONObject(adUnit.toString());
|
|
return optJSONObject == null ? new JSONObject() : optJSONObject;
|
|
}
|
|
|
|
public String toString() {
|
|
return "NetworkData(networkName=" + this.a + ", networkData=" + this.b + ')';
|
|
}
|
|
}
|