- 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
287 lines
11 KiB
Java
287 lines
11 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.j4;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterBaseInterface;
|
|
import com.ironsource.mediationsdk.adunit.adapter.utility.AdData;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLogger;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLoggerManager;
|
|
import com.ironsource.mediationsdk.model.NetworkSettings;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.ironsource.t7;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.concurrent.TimeUnit;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class j4 {
|
|
private final p2 a;
|
|
private final s1 b;
|
|
private final x4 c;
|
|
private final List<q7> d;
|
|
|
|
public static final class a extends yp {
|
|
final /* synthetic */ t7 a;
|
|
final /* synthetic */ j4 b;
|
|
final /* synthetic */ t7.b c;
|
|
|
|
public a(t7 t7Var, j4 j4Var, t7.b bVar) {
|
|
this.a = t7Var;
|
|
this.b = j4Var;
|
|
this.c = bVar;
|
|
}
|
|
|
|
@Override // com.ironsource.yp
|
|
public void a() {
|
|
this.a.a(this.b.c(), this.c, this.b.b.g(), TimeUnit.MILLISECONDS);
|
|
}
|
|
}
|
|
|
|
public static final class b implements r7 {
|
|
public b() {
|
|
}
|
|
|
|
@Override // com.ironsource.r7
|
|
public void a(NetworkSettings networkSettings) {
|
|
AdapterBaseInterface b = com.ironsource.mediationsdk.c.b().b(networkSettings, j4.this.b.b().a(), j4.this.b.b().d().b());
|
|
if (b != null) {
|
|
j4.this.a.e().f().a(j4.this.a(networkSettings, b));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.r7
|
|
public void a(String str) {
|
|
j4.this.a.e().g().f(str);
|
|
}
|
|
}
|
|
|
|
public static final class c implements t7.b {
|
|
final /* synthetic */ d b;
|
|
|
|
public c(d dVar) {
|
|
this.b = dVar;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(j4 this$0, long j, List biddingDataList, List reachedTimeout, d biddingDataListener) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(biddingDataList, "$biddingDataList");
|
|
Intrinsics.checkNotNullParameter(reachedTimeout, "$reachedTimeout");
|
|
Intrinsics.checkNotNullParameter(biddingDataListener, "$biddingDataListener");
|
|
this$0.a(j, (List<? extends u7>) biddingDataList, (List<String>) reachedTimeout, biddingDataListener);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(j4 this$0, String error, d biddingDataListener) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(error, "$error");
|
|
Intrinsics.checkNotNullParameter(biddingDataListener, "$biddingDataListener");
|
|
this$0.a.e().f().a(error);
|
|
biddingDataListener.a(this$0, error);
|
|
}
|
|
|
|
@Override // com.ironsource.t7.b
|
|
public void a(final List<? extends u7> biddingDataList, final long j, final List<String> reachedTimeout) {
|
|
Intrinsics.checkNotNullParameter(biddingDataList, "biddingDataList");
|
|
Intrinsics.checkNotNullParameter(reachedTimeout, "reachedTimeout");
|
|
p2 p2Var = j4.this.a;
|
|
final j4 j4Var = j4.this;
|
|
final d dVar = this.b;
|
|
p2Var.a(new Runnable() { // from class: com.ironsource.j4$c$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
j4.c.a(j4.this, j, biddingDataList, reachedTimeout, dVar);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.t7.b
|
|
public void onFailure(final String error) {
|
|
Intrinsics.checkNotNullParameter(error, "error");
|
|
p2 p2Var = j4.this.a;
|
|
final j4 j4Var = j4.this;
|
|
final d dVar = this.b;
|
|
p2Var.a(new Runnable() { // from class: com.ironsource.j4$c$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
j4.c.a(j4.this, error, dVar);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public interface d {
|
|
void a(j4 j4Var);
|
|
|
|
void a(j4 j4Var, String str);
|
|
}
|
|
|
|
public j4(p2 adTools, s1 adUnitData) {
|
|
StringBuilder sb;
|
|
String str;
|
|
Intrinsics.checkNotNullParameter(adTools, "adTools");
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
this.a = adTools;
|
|
this.b = adUnitData;
|
|
this.c = new x4(adUnitData);
|
|
this.d = new ArrayList();
|
|
b a2 = a();
|
|
ts f = adUnitData.b().f();
|
|
for (NetworkSettings networkSettings : adUnitData.n()) {
|
|
if (f == null || f.a(networkSettings, this.b.b().a())) {
|
|
AdData a3 = this.b.a(networkSettings);
|
|
if (networkSettings.isBidder(this.b.b().a())) {
|
|
AdapterBaseInterface a4 = a(networkSettings);
|
|
if (!(a4 instanceof s7)) {
|
|
if (a4 == null) {
|
|
sb = new StringBuilder();
|
|
sb.append("prepareAuctionCandidates - could not load network adapter ");
|
|
str = networkSettings.getProviderName();
|
|
} else {
|
|
sb = new StringBuilder();
|
|
sb.append("network adapter ");
|
|
sb.append(networkSettings.getProviderName());
|
|
str = " does not implementing BiddingDataInterface";
|
|
}
|
|
sb.append(str);
|
|
this.a.e().g().f(sb.toString());
|
|
} else if (this.b.f()) {
|
|
this.d.add(new q7(networkSettings.getInstanceType(this.b.b().a()), networkSettings.getProviderInstanceName(), a3, (s7) a4, a2, networkSettings));
|
|
} else {
|
|
a(a4, (s7) a4, a3, networkSettings);
|
|
}
|
|
} else {
|
|
this.c.a(networkSettings);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
private final b a() {
|
|
return new b();
|
|
}
|
|
|
|
private final AdapterBaseInterface a(NetworkSettings networkSettings) {
|
|
return com.ironsource.mediationsdk.c.b().b(networkSettings, this.b.b().a(), this.b.b().d().b());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final Map<String, Object> a(NetworkSettings networkSettings, AdapterBaseInterface adapterBaseInterface) {
|
|
String providerDefaultInstance;
|
|
HashMap hashMap = new HashMap();
|
|
if (networkSettings != null) {
|
|
try {
|
|
providerDefaultInstance = networkSettings.getProviderDefaultInstance();
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronSourceLoggerManager logger = IronSourceLoggerManager.getLogger();
|
|
IronSourceLogger.IronSourceTag ironSourceTag = IronSourceLogger.IronSourceTag.INTERNAL;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("getProviderEventData ");
|
|
sb.append(networkSettings != null ? networkSettings.getProviderDefaultInstance() : null);
|
|
logger.logException(ironSourceTag, sb.toString(), e);
|
|
}
|
|
} else {
|
|
providerDefaultInstance = null;
|
|
}
|
|
hashMap.put(IronSourceConstants.EVENTS_PROVIDER, providerDefaultInstance);
|
|
hashMap.put(IronSourceConstants.EVENTS_PROVIDER_ADAPTER_VERSION, adapterBaseInterface != null ? adapterBaseInterface.getAdapterVersion() : null);
|
|
hashMap.put(IronSourceConstants.EVENTS_PROVIDER_SDK_VERSION, adapterBaseInterface != null ? adapterBaseInterface.getNetworkSDKVersion() : null);
|
|
hashMap.put("spId", networkSettings != null ? networkSettings.getSubProviderId() : null);
|
|
hashMap.put(IronSourceConstants.EVENTS_PROGRAMMATIC, 1);
|
|
hashMap.put("instanceType", networkSettings != null ? Integer.valueOf(networkSettings.getInstanceType(this.b.b().a())) : null);
|
|
return hashMap;
|
|
}
|
|
|
|
private final Map<String, Object> a(String str) {
|
|
NetworkSettings a2 = this.b.a(str);
|
|
return a(a2, a(a2));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void a(long j, List<? extends u7> list, List<String> list2, d dVar) {
|
|
this.a.e().f().a(j);
|
|
for (u7 u7Var : list) {
|
|
String c2 = u7Var.c();
|
|
Intrinsics.checkNotNullExpressionValue(c2, "biddingResponse.instanceName");
|
|
Map<String, Object> a2 = a(c2);
|
|
if (u7Var.a() != null) {
|
|
this.c.a(u7Var);
|
|
this.a.e().f().a(a2, u7Var.e());
|
|
} else {
|
|
this.a.e().f().a(a2, u7Var.e(), u7Var.b());
|
|
}
|
|
}
|
|
Iterator<String> it = list2.iterator();
|
|
while (it.hasNext()) {
|
|
this.a.e().f().b(a(it.next()), j);
|
|
}
|
|
dVar.a(this);
|
|
}
|
|
|
|
private final void a(AdapterBaseInterface adapterBaseInterface, s7 s7Var, AdData adData, NetworkSettings networkSettings) {
|
|
StringBuilder sb;
|
|
String str;
|
|
try {
|
|
Map<String, ? extends Object> a2 = s7Var.a(adData);
|
|
if (a2 != null) {
|
|
this.c.a(networkSettings, a2);
|
|
} else {
|
|
this.a.e().g().a(a(networkSettings, adapterBaseInterface), "Missing bidding data");
|
|
}
|
|
} catch (Exception e) {
|
|
e = e;
|
|
i9.d().a(e);
|
|
sb = new StringBuilder();
|
|
str = "prepareAuctionCandidates - exception while calling networkAdapter.getBiddingData - ";
|
|
sb.append(str);
|
|
sb.append(e.getMessage());
|
|
String sb2 = sb.toString();
|
|
IronLog.INTERNAL.error(sb2);
|
|
this.a.e().g().f(sb2);
|
|
} catch (NoClassDefFoundError e2) {
|
|
e = e2;
|
|
i9.d().a(e);
|
|
sb = new StringBuilder();
|
|
str = "prepareAuctionCandidates - error while calling networkAdapter.getBiddingData - ";
|
|
sb.append(str);
|
|
sb.append(e.getMessage());
|
|
String sb22 = sb.toString();
|
|
IronLog.INTERNAL.error(sb22);
|
|
this.a.e().g().f(sb22);
|
|
}
|
|
}
|
|
|
|
private final t7.b b(d dVar) {
|
|
return new c(dVar);
|
|
}
|
|
|
|
public final void a(d biddingDataListener) {
|
|
Intrinsics.checkNotNullParameter(biddingDataListener, "biddingDataListener");
|
|
t7 t7Var = new t7();
|
|
t7.b b2 = b(biddingDataListener);
|
|
this.a.e().f().a();
|
|
this.a.c((yp) new a(t7Var, this, b2));
|
|
}
|
|
|
|
public final x4 b() {
|
|
return this.c;
|
|
}
|
|
|
|
public final List<q7> c() {
|
|
return this.d;
|
|
}
|
|
|
|
public final boolean d() {
|
|
return !this.d.isEmpty();
|
|
}
|
|
|
|
public final boolean e() {
|
|
return this.c.d();
|
|
}
|
|
}
|