- 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
187 lines
7.9 KiB
Java
187 lines
7.9 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.k7;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.ads.nativead.AdapterNativeAdData;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterNativeAdInterface;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.BaseAdAdapter;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.listener.AdapterAdListener;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.nativead.AdapterNativeAdViewBinder;
|
|
import com.ironsource.mediationsdk.adunit.adapter.listener.NativeAdListener;
|
|
import com.ironsource.mediationsdk.adunit.adapter.utility.AdData;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.model.Placement;
|
|
import java.util.Arrays;
|
|
import java.util.Map;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.StringCompanionObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class wl extends k7<j2> implements NativeAdListener, w1 {
|
|
private AdapterNativeAdData r;
|
|
private AdapterNativeAdViewBinder s;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public wl(ko threadInterface, i1 adSmashData, BaseAdAdapter<?, AdapterAdListener> baseAdAdapter, Placement placement, f5 item, j2 j2Var) {
|
|
super(threadInterface, adSmashData, baseAdAdapter, new v2(adSmashData.g(), adSmashData.g().getNativeAdSettings(), IronSource.AD_UNIT.NATIVE_AD), item, j2Var);
|
|
Intrinsics.checkNotNullParameter(threadInterface, "threadInterface");
|
|
Intrinsics.checkNotNullParameter(adSmashData, "adSmashData");
|
|
Intrinsics.checkNotNullParameter(item, "item");
|
|
this.g = placement;
|
|
}
|
|
|
|
private final void J() {
|
|
ut utVar;
|
|
IronLog.INTERNAL.verbose(d());
|
|
if (y()) {
|
|
super.onAdOpened();
|
|
return;
|
|
}
|
|
if (this.e != k7.h.FAILED) {
|
|
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
|
String format = String.format("unexpected onAdOpened for %s, state - %s", Arrays.copyOf(new Object[]{k(), this.e}, 2));
|
|
Intrinsics.checkNotNullExpressionValue(format, "format(format, *args)");
|
|
x1 x1Var = this.d;
|
|
if (x1Var == null || (utVar = x1Var.k) == null) {
|
|
return;
|
|
}
|
|
utVar.o(format);
|
|
}
|
|
}
|
|
|
|
private final void a(AdapterNativeAdData adapterNativeAdData, AdapterNativeAdViewBinder adapterNativeAdViewBinder) {
|
|
this.r = adapterNativeAdData;
|
|
this.s = adapterNativeAdViewBinder;
|
|
super.onAdLoadSuccess();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(wl this$0) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
this$0.J();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void a(wl this$0, AdapterNativeAdData adapterNativeAdData, AdapterNativeAdViewBinder nativeAdViewBinder) {
|
|
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
|
Intrinsics.checkNotNullParameter(adapterNativeAdData, "$adapterNativeAdData");
|
|
Intrinsics.checkNotNullParameter(nativeAdViewBinder, "$nativeAdViewBinder");
|
|
this$0.a(adapterNativeAdData, nativeAdViewBinder);
|
|
}
|
|
|
|
@Override // com.ironsource.k7
|
|
public void G() {
|
|
ut utVar;
|
|
if (!(this.c instanceof AdapterNativeAdInterface)) {
|
|
IronLog.INTERNAL.error(a("adapter not instance of AdapterNativeAdInterface"));
|
|
return;
|
|
}
|
|
if (ContextProvider.getInstance().getCurrentActiveActivity() == null) {
|
|
IronLog.INTERNAL.error(a("activity must not be null"));
|
|
x1 x1Var = this.d;
|
|
if (x1Var == null || (utVar = x1Var.k) == null) {
|
|
return;
|
|
}
|
|
utVar.f("activity must not be null");
|
|
return;
|
|
}
|
|
Object obj = this.c;
|
|
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type com.ironsource.mediationsdk.adunit.adapter.internal.AdapterNativeAdInterface<com.ironsource.mediationsdk.adunit.adapter.listener.NativeAdListener>");
|
|
AdData mCurrentAdData = this.k;
|
|
Intrinsics.checkNotNullExpressionValue(mCurrentAdData, "mCurrentAdData");
|
|
Activity currentActiveActivity = ContextProvider.getInstance().getCurrentActiveActivity();
|
|
Intrinsics.checkNotNullExpressionValue(currentActiveActivity, "getInstance().currentActiveActivity");
|
|
((AdapterNativeAdInterface) obj).loadAd(mCurrentAdData, currentActiveActivity, this);
|
|
}
|
|
|
|
public final void P() {
|
|
ut utVar;
|
|
sk skVar;
|
|
IronLog ironLog = IronLog.INTERNAL;
|
|
ironLog.verbose(k());
|
|
a(k7.h.NONE);
|
|
Object obj = this.c;
|
|
if (obj == null) {
|
|
ironLog.warning("mAdapter == null");
|
|
return;
|
|
}
|
|
try {
|
|
if (obj instanceof AdapterNativeAdInterface) {
|
|
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type com.ironsource.mediationsdk.adunit.adapter.internal.AdapterNativeAdInterface<*>");
|
|
AdData mCurrentAdData = this.k;
|
|
Intrinsics.checkNotNullExpressionValue(mCurrentAdData, "mCurrentAdData");
|
|
((AdapterNativeAdInterface) obj).destroyAd(mCurrentAdData);
|
|
} else {
|
|
ironLog.error(a("adapter not instance of AdapterNativeAdInterface"));
|
|
}
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
String str = "destroyNativeAd - exception = " + th.getLocalizedMessage();
|
|
IronLog.INTERNAL.error(a(str));
|
|
x1 x1Var = this.d;
|
|
if (x1Var != null && (utVar = x1Var.k) != null) {
|
|
utVar.f(str);
|
|
}
|
|
}
|
|
x1 x1Var2 = this.d;
|
|
if (x1Var2 == null || (skVar = x1Var2.g) == null) {
|
|
return;
|
|
}
|
|
Integer sessionDepth = r();
|
|
Intrinsics.checkNotNullExpressionValue(sessionDepth, "sessionDepth");
|
|
skVar.a(sessionDepth.intValue());
|
|
}
|
|
|
|
public final AdapterNativeAdData Q() {
|
|
return this.r;
|
|
}
|
|
|
|
public final AdapterNativeAdViewBinder R() {
|
|
return this.s;
|
|
}
|
|
|
|
@Override // com.ironsource.k7, com.ironsource.w1
|
|
public Map<String, Object> a(u1 event) {
|
|
Intrinsics.checkNotNullParameter(event, "event");
|
|
Map<String, Object> data = super.a(event);
|
|
if (this.g != null) {
|
|
Intrinsics.checkNotNullExpressionValue(data, "data");
|
|
data.put("placement", j());
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(data, "data");
|
|
return data;
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.adunit.adapter.listener.NativeAdListener
|
|
public void onAdLoadSuccess(final AdapterNativeAdData adapterNativeAdData, final AdapterNativeAdViewBinder nativeAdViewBinder) {
|
|
Intrinsics.checkNotNullParameter(adapterNativeAdData, "adapterNativeAdData");
|
|
Intrinsics.checkNotNullParameter(nativeAdViewBinder, "nativeAdViewBinder");
|
|
if (u().c()) {
|
|
u().a(new Runnable() { // from class: com.ironsource.wl$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
wl.a(wl.this, adapterNativeAdData, nativeAdViewBinder);
|
|
}
|
|
});
|
|
} else {
|
|
a(adapterNativeAdData, nativeAdViewBinder);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.k7, com.ironsource.mediationsdk.adunit.adapter.internal.listener.AdapterAdListener
|
|
public void onAdOpened() {
|
|
if (u().c()) {
|
|
u().a(new Runnable() { // from class: com.ironsource.wl$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
wl.a(wl.this);
|
|
}
|
|
});
|
|
} else {
|
|
J();
|
|
}
|
|
}
|
|
}
|