- 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
139 lines
4.2 KiB
Java
139 lines
4.2 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.j4;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.utils.IronSourceUtils;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class j5 {
|
|
private final p2 a;
|
|
private final s1 b;
|
|
private final ta c;
|
|
private final com.ironsource.mediationsdk.e d;
|
|
private final w4 e;
|
|
|
|
public static final class a implements j4.d {
|
|
final /* synthetic */ k5 b;
|
|
|
|
public a(k5 k5Var) {
|
|
this.b = k5Var;
|
|
}
|
|
|
|
@Override // com.ironsource.j4.d
|
|
public void a(j4 auction) {
|
|
Intrinsics.checkNotNullParameter(auction, "auction");
|
|
j5.this.b(auction, this.b);
|
|
}
|
|
|
|
@Override // com.ironsource.j4.d
|
|
public void a(j4 auction, String error) {
|
|
Intrinsics.checkNotNullParameter(auction, "auction");
|
|
Intrinsics.checkNotNullParameter(error, "error");
|
|
j5.this.b(auction, this.b);
|
|
}
|
|
}
|
|
|
|
public static final class b extends yp {
|
|
final /* synthetic */ k5 b;
|
|
|
|
public b(k5 k5Var) {
|
|
this.b = k5Var;
|
|
}
|
|
|
|
@Override // com.ironsource.yp
|
|
public void a() {
|
|
j5.this.a(this.b);
|
|
}
|
|
}
|
|
|
|
public j5(p2 adTools, s1 adUnitData) {
|
|
Intrinsics.checkNotNullParameter(adTools, "adTools");
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
this.a = adTools;
|
|
this.b = adUnitData;
|
|
this.c = new ta();
|
|
h5 e = adUnitData.e();
|
|
String sessionId = IronSourceUtils.getSessionId();
|
|
Intrinsics.checkNotNullExpressionValue(sessionId, "getSessionId()");
|
|
com.ironsource.mediationsdk.e eVar = new com.ironsource.mediationsdk.e(new com.ironsource.mediationsdk.f(e, sessionId));
|
|
this.d = eVar;
|
|
this.e = new w4(adTools, eVar);
|
|
}
|
|
|
|
private final com.ironsource.mediationsdk.i a(j4 j4Var, int i) {
|
|
com.ironsource.mediationsdk.i iVar = new com.ironsource.mediationsdk.i(this.b.b().a());
|
|
iVar.b(IronSourceUtils.isEncryptedResponse());
|
|
iVar.a(j4Var.b().a());
|
|
iVar.a(j4Var.b().b());
|
|
iVar.a(this.a.i());
|
|
iVar.a(i);
|
|
iVar.a(this.a.m());
|
|
ts f = this.b.b().f();
|
|
iVar.e(f != null ? f.b() : false);
|
|
z4 j = this.a.j();
|
|
if (j != null) {
|
|
j.a(iVar);
|
|
}
|
|
return iVar;
|
|
}
|
|
|
|
private final String a() {
|
|
return k1.a(this.a, (String) null, (String) null, 2, (Object) null);
|
|
}
|
|
|
|
private final String a(String str) {
|
|
return k1.a(this.a, str, (String) null, 2, (Object) null);
|
|
}
|
|
|
|
private final void a(j4 j4Var, k5 k5Var) {
|
|
if (j4Var.d()) {
|
|
j4Var.a(new a(k5Var));
|
|
} else {
|
|
b(j4Var, k5Var);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void a(k5 k5Var) {
|
|
IronLog.INTERNAL.verbose(a());
|
|
this.a.e().b().a();
|
|
j4 j4Var = new j4(this.a, this.b);
|
|
if (this.b.f()) {
|
|
a(j4Var, k5Var);
|
|
} else {
|
|
b(j4Var, k5Var);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void b(j4 j4Var, k5 k5Var) {
|
|
IronLog ironLog = IronLog.INTERNAL;
|
|
ironLog.verbose(a("auction waterfallString = " + ((Object) j4Var.b().c())));
|
|
if (j4Var.e()) {
|
|
this.a.e().b().b(j4Var.b().c().toString());
|
|
this.d.a(ContextProvider.getInstance().getApplicationContext(), a(j4Var, this.a.g()), k5Var);
|
|
} else {
|
|
ironLog.verbose(a("auction failed - no candidates"));
|
|
this.a.e().b().a(1005, "No candidates available for auctioning");
|
|
k5Var.a(t1.e(this.b.b().a()), "no available ad to load");
|
|
}
|
|
}
|
|
|
|
public final w4 b() {
|
|
return this.e;
|
|
}
|
|
|
|
public void b(k5 completionListener) {
|
|
Intrinsics.checkNotNullParameter(completionListener, "completionListener");
|
|
IronLog.INTERNAL.verbose(a());
|
|
long k = this.b.e().k() - ta.a(this.c);
|
|
if (k > 0) {
|
|
this.a.a((yp) new b(completionListener), k);
|
|
} else {
|
|
a(completionListener);
|
|
}
|
|
}
|
|
}
|