- 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
179 lines
8.4 KiB
Java
179 lines
8.4 KiB
Java
package com.ironsource;
|
|
|
|
import android.text.TextUtils;
|
|
import com.ironsource.i5;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
@SourceDebugExtension({"SMAP\nAuctionWaterfallFetcher.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AuctionWaterfallFetcher.kt\ncom/unity3d/mediation/internal/ads/controllers/adunits/waterfall/fetch/AuctionWaterfallFetcher\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,192:1\n1#2:193\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class i5 extends lu {
|
|
private final p2 e;
|
|
private final s1 f;
|
|
private final j5 g;
|
|
private final on h;
|
|
private final xm i;
|
|
private k5 j;
|
|
|
|
public static final class a implements k5 {
|
|
final /* synthetic */ a0 b;
|
|
final /* synthetic */ mu c;
|
|
|
|
public a(a0 a0Var, mu muVar) {
|
|
this.b = a0Var;
|
|
this.c = muVar;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(i5 this$0, a0 adInstanceFactory, mu waterfallFetcherListener, int i, String errorMessage, int i2, String auctionFallback, long j) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInstanceFactory, "$adInstanceFactory");
|
|
Intrinsics.checkNotNullParameter(waterfallFetcherListener, "$waterfallFetcherListener");
|
|
Intrinsics.checkNotNullParameter(errorMessage, "$errorMessage");
|
|
Intrinsics.checkNotNullParameter(auctionFallback, "$auctionFallback");
|
|
this$0.j = null;
|
|
this$0.a(adInstanceFactory, waterfallFetcherListener, i, errorMessage, i2, auctionFallback, j);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(i5 this$0, a0 adInstanceFactory, mu waterfallFetcherListener, List newWaterfall, String auctionId, f5 genericNotifications, JSONObject genericParams, JSONObject jSONObject, int i, long j, int i2, String str) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adInstanceFactory, "$adInstanceFactory");
|
|
Intrinsics.checkNotNullParameter(waterfallFetcherListener, "$waterfallFetcherListener");
|
|
Intrinsics.checkNotNullParameter(newWaterfall, "$newWaterfall");
|
|
Intrinsics.checkNotNullParameter(auctionId, "$auctionId");
|
|
Intrinsics.checkNotNullParameter(genericNotifications, "$genericNotifications");
|
|
Intrinsics.checkNotNullParameter(genericParams, "$genericParams");
|
|
this$0.j = null;
|
|
this$0.a(adInstanceFactory, waterfallFetcherListener, newWaterfall, auctionId, genericNotifications, genericParams, jSONObject, i, j, i2, str);
|
|
}
|
|
|
|
@Override // com.ironsource.k5
|
|
public void a(int i, String errorReason) {
|
|
Intrinsics.checkNotNullParameter(errorReason, "errorReason");
|
|
this.c.a(i, errorReason);
|
|
}
|
|
|
|
@Override // com.ironsource.l4
|
|
public void a(final int i, final String errorMessage, final int i2, final String auctionFallback, final long j) {
|
|
Intrinsics.checkNotNullParameter(errorMessage, "errorMessage");
|
|
Intrinsics.checkNotNullParameter(auctionFallback, "auctionFallback");
|
|
p2 p2Var = i5.this.e;
|
|
final i5 i5Var = i5.this;
|
|
final a0 a0Var = this.b;
|
|
final mu muVar = this.c;
|
|
p2Var.a(new Runnable() { // from class: com.ironsource.i5$a$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
i5.a.a(i5.this, a0Var, muVar, i, errorMessage, i2, auctionFallback, j);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.ironsource.l4
|
|
public void a(final List<f5> newWaterfall, final String auctionId, final f5 genericNotifications, final JSONObject genericParams, final JSONObject jSONObject, final int i, final long j, final int i2, final String str) {
|
|
Intrinsics.checkNotNullParameter(newWaterfall, "newWaterfall");
|
|
Intrinsics.checkNotNullParameter(auctionId, "auctionId");
|
|
Intrinsics.checkNotNullParameter(genericNotifications, "genericNotifications");
|
|
Intrinsics.checkNotNullParameter(genericParams, "genericParams");
|
|
p2 p2Var = i5.this.e;
|
|
final i5 i5Var = i5.this;
|
|
final a0 a0Var = this.b;
|
|
final mu muVar = this.c;
|
|
p2Var.a(new Runnable() { // from class: com.ironsource.i5$a$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
i5.a.a(i5.this, a0Var, muVar, newWaterfall, auctionId, genericNotifications, genericParams, jSONObject, i, j, i2, str);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public i5(p2 adTools, s1 adUnitData) {
|
|
super(adTools, adUnitData);
|
|
Intrinsics.checkNotNullParameter(adTools, "adTools");
|
|
Intrinsics.checkNotNullParameter(adUnitData, "adUnitData");
|
|
this.e = adTools;
|
|
this.f = adUnitData;
|
|
j5 j5Var = new j5(adTools, adUnitData);
|
|
this.g = j5Var;
|
|
this.h = j5Var.b();
|
|
this.i = new xm(adTools, adUnitData);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void a(a0 a0Var, mu muVar, int i, String str, int i2, String str2, long j) {
|
|
IronLog.INTERNAL.verbose(k1.a(this.e, "Auction failed | moving to fallback waterfall (error " + i + " - " + str + ')', (String) null, 2, (Object) null));
|
|
this.e.e().b().a(j, i, str);
|
|
this.i.a(muVar, i2, str2, a0Var);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void a(a0 a0Var, mu muVar, List<f5> list, String str, f5 f5Var, JSONObject jSONObject, JSONObject jSONObject2, int i, long j, int i2, String str2) {
|
|
IronLog.INTERNAL.verbose(k1.a(this.e, (String) null, (String) null, 3, (Object) null));
|
|
c5 c5Var = new c5(str, jSONObject, f5Var, i, "");
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
this.e.e().g().a(i2, str2);
|
|
}
|
|
a(jSONObject2);
|
|
nu a2 = a(list, c5Var, a0Var);
|
|
this.e.e().a(new n4(c5Var));
|
|
this.e.e().b().a(j, this.f.w());
|
|
this.e.e().b().c(a2.d());
|
|
a(a2, muVar);
|
|
}
|
|
|
|
private final void a(nu nuVar, mu muVar) {
|
|
this.e.i().a(nuVar);
|
|
muVar.a(nuVar);
|
|
}
|
|
|
|
private final void a(JSONObject jSONObject) {
|
|
int i;
|
|
try {
|
|
if (jSONObject == null) {
|
|
this.f.b(false);
|
|
IronLog.INTERNAL.verbose(k1.a(this.e, "loading configuration from auction response is null, using the following: " + this.f.w(), (String) null, 2, (Object) null));
|
|
return;
|
|
}
|
|
try {
|
|
if (jSONObject.has(com.ironsource.mediationsdk.d.w) && (i = jSONObject.getInt(com.ironsource.mediationsdk.d.w)) > 0) {
|
|
this.f.a(i);
|
|
}
|
|
if (jSONObject.has(com.ironsource.mediationsdk.d.x)) {
|
|
this.f.a(jSONObject.getBoolean(com.ironsource.mediationsdk.d.x));
|
|
}
|
|
this.f.b(jSONObject.optBoolean(com.ironsource.mediationsdk.d.y, false));
|
|
IronLog.INTERNAL.verbose(k1.a(this.e, this.f.w(), (String) null, 2, (Object) null));
|
|
} catch (JSONException e) {
|
|
i9.d().a(e);
|
|
IronLog ironLog = IronLog.INTERNAL;
|
|
ironLog.error("failed to update loading configuration for" + this.f.b().a() + " Error: " + e.getMessage());
|
|
ironLog.verbose(k1.a(this.e, this.f.w(), (String) null, 2, (Object) null));
|
|
}
|
|
} catch (Throwable th) {
|
|
IronLog.INTERNAL.verbose(k1.a(this.e, this.f.w(), (String) null, 2, (Object) null));
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.lu
|
|
public on a() {
|
|
return this.h;
|
|
}
|
|
|
|
@Override // com.ironsource.lu
|
|
public void a(a0 adInstanceFactory, mu waterfallFetcherListener) {
|
|
Intrinsics.checkNotNullParameter(adInstanceFactory, "adInstanceFactory");
|
|
Intrinsics.checkNotNullParameter(waterfallFetcherListener, "waterfallFetcherListener");
|
|
a aVar = new a(adInstanceFactory, waterfallFetcherListener);
|
|
this.g.b(aVar);
|
|
this.j = aVar;
|
|
}
|
|
}
|