- 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
168 lines
7.3 KiB
Java
168 lines
7.3 KiB
Java
package com.ironsource;
|
|
|
|
import android.text.TextUtils;
|
|
import android.util.Log;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.mediationsdk.AbstractAdapter;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterBaseInterface;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterBaseWrapper;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterConsentInterface;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.model.NetworkSettings;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.ironsource.mediationsdk.utils.IronSourceUtils;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.HashSet;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
import kotlin.ExceptionsKt__ExceptionsKt;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.json.JSONObject;
|
|
|
|
@SourceDebugExtension({"SMAP\nConsent.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Consent.kt\ncom/ironsource/mediationsdk/regulation/Consent\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,172:1\n1#2:173\n766#3:174\n857#3,2:175\n1655#3,8:177\n1855#3,2:185\n*S KotlinDebug\n*F\n+ 1 Consent.kt\ncom/ironsource/mediationsdk/regulation/Consent\n*L\n158#1:174\n158#1:175,2\n166#1:177,8\n167#1:185,2\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class t8 {
|
|
private Boolean a;
|
|
private final ce b = el.p.d().f();
|
|
|
|
private final int a(String str) {
|
|
return Log.i("ironSourceSDK: GENERAL", str);
|
|
}
|
|
|
|
private final Boolean a(NetworkSettings networkSettings) {
|
|
return (networkSettings == null || networkSettings.isCustomNetwork()) ? this.a : networkSettings.getApplicationSettings().has(u8.a) ? Boolean.valueOf(networkSettings.getApplicationSettings().optBoolean(u8.a)) : this.a;
|
|
}
|
|
|
|
private final void b(String str) {
|
|
try {
|
|
JSONObject jSONObject = new JSONObject();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
jSONObject.put("reason", str);
|
|
}
|
|
ji.i().a(new kb(IronSourceConstants.TROUBLESHOOTING_CONSENT_INTERNAL_ERROR, jSONObject));
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
}
|
|
}
|
|
|
|
public final Boolean a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final void a(int i) {
|
|
String stackTraceToString;
|
|
JSONObject mediationAdditionalData = IronSourceUtils.getMediationAdditionalData(false);
|
|
try {
|
|
mediationAdditionalData.put(IronSourceConstants.EVENTS_EXT1, i + ';' + this.b.H(ContextProvider.getInstance().getApplicationContext()));
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronLog ironLog = IronLog.INTERNAL;
|
|
stackTraceToString = ExceptionsKt__ExceptionsKt.stackTraceToString(e);
|
|
ironLog.error(stackTraceToString);
|
|
}
|
|
rp.i().a(new kb(42, mediationAdditionalData));
|
|
}
|
|
|
|
public final void a(int i, ConcurrentHashMap<String, NetworkSettings> providerSettings) {
|
|
JSONObject applicationSettings;
|
|
Intrinsics.checkNotNullParameter(providerSettings, "providerSettings");
|
|
a("TCF Additional Consent: " + this.b.H(ContextProvider.getInstance().getApplicationContext()));
|
|
a("CMP ID: " + i);
|
|
a("Network Consent Reporting:");
|
|
a("----------------------------");
|
|
Collection<NetworkSettings> values = providerSettings.values();
|
|
Intrinsics.checkNotNullExpressionValue(values, "providerSettings.values");
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Object obj : values) {
|
|
NetworkSettings networkSettings = (NetworkSettings) obj;
|
|
if (networkSettings.getProviderDefaultInstance() != null && !Intrinsics.areEqual(networkSettings.getProviderDefaultInstance(), IronSourceConstants.SUPERSONIC_CONFIG_NAME) && (applicationSettings = networkSettings.getApplicationSettings()) != null && applicationSettings.has(u8.a)) {
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
HashSet hashSet = new HashSet();
|
|
ArrayList<NetworkSettings> arrayList2 = new ArrayList();
|
|
for (Object obj2 : arrayList) {
|
|
if (hashSet.add(((NetworkSettings) obj2).getProviderDefaultInstance())) {
|
|
arrayList2.add(obj2);
|
|
}
|
|
}
|
|
for (NetworkSettings networkSettings2 : arrayList2) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(networkSettings2.getProviderDefaultInstance());
|
|
sb.append(": ");
|
|
JSONObject applicationSettings2 = networkSettings2.getApplicationSettings();
|
|
sb.append(applicationSettings2 != null ? Boolean.valueOf(applicationSettings2.optBoolean(u8.a)) : null);
|
|
a(sb.toString());
|
|
}
|
|
}
|
|
|
|
public final void a(AbstractAdapter adapter, NetworkSettings networkSettings) {
|
|
Intrinsics.checkNotNullParameter(adapter, "adapter");
|
|
try {
|
|
Boolean a = a(networkSettings);
|
|
if (a != null) {
|
|
adapter.setNewConsent(a.booleanValue());
|
|
}
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
String str = "error while setting consent of " + adapter.getProviderName() + ": " + th.getLocalizedMessage();
|
|
b(str);
|
|
IronLog.INTERNAL.error(str);
|
|
}
|
|
}
|
|
|
|
public final void a(AdapterBaseInterface adapter, NetworkSettings networkSettings) {
|
|
Intrinsics.checkNotNullParameter(adapter, "adapter");
|
|
try {
|
|
Boolean a = a(networkSettings);
|
|
if (a == null || !(adapter instanceof AdapterConsentInterface)) {
|
|
return;
|
|
}
|
|
((AdapterConsentInterface) adapter).setConsent(a.booleanValue());
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("error while setting consent of ");
|
|
sb.append(networkSettings != null ? networkSettings.getProviderName() : null);
|
|
sb.append(": ");
|
|
sb.append(th.getLocalizedMessage());
|
|
String sb2 = sb.toString();
|
|
b(sb2);
|
|
IronLog.INTERNAL.error(sb2);
|
|
}
|
|
}
|
|
|
|
public final void a(ConcurrentHashMap<String, AbstractAdapter> adapters, ConcurrentHashMap<String, AdapterBaseWrapper> networkAdapters) {
|
|
Unit unit;
|
|
Intrinsics.checkNotNullParameter(adapters, "adapters");
|
|
Intrinsics.checkNotNullParameter(networkAdapters, "networkAdapters");
|
|
for (AbstractAdapter adapter : adapters.values()) {
|
|
Intrinsics.checkNotNullExpressionValue(adapter, "adapter");
|
|
a(adapter, (NetworkSettings) null);
|
|
}
|
|
for (AdapterBaseWrapper adapterBaseWrapper : networkAdapters.values()) {
|
|
AdapterBaseInterface adapterBaseInterface = adapterBaseWrapper.getAdapterBaseInterface();
|
|
if (adapterBaseInterface != null) {
|
|
a(adapterBaseInterface, adapterBaseWrapper.getSettings());
|
|
unit = Unit.INSTANCE;
|
|
} else {
|
|
unit = null;
|
|
}
|
|
if (unit == null) {
|
|
IronLog.INTERNAL.error("adapter is null");
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a(boolean z) {
|
|
this.a = Boolean.valueOf(z);
|
|
}
|
|
|
|
public final ce b() {
|
|
return this.b;
|
|
}
|
|
}
|