- 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
165 lines
5.6 KiB
Java
165 lines
5.6 KiB
Java
package com.ironsource;
|
|
|
|
import android.text.TextUtils;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.m7;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.IronSourceSegment;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterBaseInterface;
|
|
import com.ironsource.mediationsdk.adunit.adapter.internal.AdapterSettingsInterface;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLogger;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLoggerManager;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.ironsource.mediationsdk.utils.IronSourceUtils;
|
|
import com.unity3d.mediation.LevelPlay;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ks {
|
|
private static final Map<IronSource.AD_UNIT, m1> a = new HashMap();
|
|
|
|
public static /* synthetic */ class a {
|
|
static final /* synthetic */ int[] a;
|
|
static final /* synthetic */ int[] b;
|
|
|
|
static {
|
|
int[] iArr = new int[LevelPlay.AdFormat.values().length];
|
|
b = iArr;
|
|
try {
|
|
iArr[LevelPlay.AdFormat.REWARDED.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
b[LevelPlay.AdFormat.INTERSTITIAL.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
b[LevelPlay.AdFormat.BANNER.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
b[LevelPlay.AdFormat.NATIVE_AD.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
int[] iArr2 = new int[IronSource.AD_UNIT.values().length];
|
|
a = iArr2;
|
|
try {
|
|
iArr2[IronSource.AD_UNIT.REWARDED_VIDEO.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused5) {
|
|
}
|
|
try {
|
|
a[IronSource.AD_UNIT.INTERSTITIAL.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused6) {
|
|
}
|
|
try {
|
|
a[IronSource.AD_UNIT.NATIVE_AD.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused7) {
|
|
}
|
|
try {
|
|
a[IronSource.AD_UNIT.BANNER.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused8) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public static class b {
|
|
private final IronSource.AD_UNIT a;
|
|
|
|
public b(IronSource.AD_UNIT ad_unit) {
|
|
this.a = ad_unit;
|
|
}
|
|
|
|
private String b() {
|
|
IronSource.AD_UNIT ad_unit = this.a;
|
|
return ad_unit != null ? ad_unit.name() : "";
|
|
}
|
|
|
|
public String a() {
|
|
return a(null);
|
|
}
|
|
|
|
public String a(String str) {
|
|
return a(str, null);
|
|
}
|
|
|
|
public String a(String str, String str2) {
|
|
String str3;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(b());
|
|
if (TextUtils.isEmpty(str2)) {
|
|
str3 = "";
|
|
} else {
|
|
str3 = " - " + str2;
|
|
}
|
|
sb.append(str3);
|
|
String sb2 = sb.toString();
|
|
if (TextUtils.isEmpty(str)) {
|
|
return sb2;
|
|
}
|
|
return sb2 + " - " + str;
|
|
}
|
|
}
|
|
|
|
public static k2 a(s1 s1Var, int i) {
|
|
return a(s1Var).a(s1Var.b().b(), s1Var.n(), i);
|
|
}
|
|
|
|
public static b a(IronSource.AD_UNIT ad_unit) {
|
|
return new b(ad_unit);
|
|
}
|
|
|
|
private static m1 a(s1 s1Var) {
|
|
Map<IronSource.AD_UNIT, m1> map = a;
|
|
if (map.containsKey(s1Var.b().a())) {
|
|
return map.get(s1Var.b().a());
|
|
}
|
|
m1 m1Var = new m1();
|
|
map.put(s1Var.b().a(), m1Var);
|
|
return m1Var;
|
|
}
|
|
|
|
public static IronSourceSegment a() {
|
|
return com.ironsource.mediationsdk.p.m().t();
|
|
}
|
|
|
|
public static String a(LevelPlay.AdFormat adFormat) {
|
|
int i = a.b[adFormat.ordinal()];
|
|
return i != 1 ? i != 2 ? i != 3 ? i != 4 ? "" : "nativeAd" : "banner" : "interstitial" : "rewarded";
|
|
}
|
|
|
|
public static void a(int i, JSONObject jSONObject) {
|
|
rp.i().a(new kb(i, hj.a(IronSourceUtils.getMediationAdditionalData(false), jSONObject)));
|
|
}
|
|
|
|
public static void a(Throwable th) {
|
|
IronSourceLoggerManager.getLogger().logException(IronSourceLogger.IronSourceTag.INTERNAL, "SafeRunnable", th);
|
|
JSONObject jSONObject = new JSONObject();
|
|
try {
|
|
jSONObject.put("reason", th.getMessage());
|
|
} catch (JSONException e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
}
|
|
a(IronSourceConstants.TROUBLESHOOTING_SDK_INTERNAL_ERROR, jSONObject);
|
|
}
|
|
|
|
public static boolean a(AdapterBaseInterface adapterBaseInterface, IronSource.AD_UNIT ad_unit, String str) {
|
|
IronLog ironLog = IronLog.INTERNAL;
|
|
ironLog.verbose();
|
|
if (ContextProvider.getInstance().getCurrentActiveActivity() != null || !(adapterBaseInterface instanceof AdapterSettingsInterface) || !((AdapterSettingsInterface) adapterBaseInterface).isUsingActivityBeforeImpression(ad_unit)) {
|
|
return false;
|
|
}
|
|
ironLog.verbose(str + " - is using activity before impression and activity is null");
|
|
return true;
|
|
}
|
|
|
|
public static int b(IronSource.AD_UNIT ad_unit) {
|
|
int i = a.a[ad_unit.ordinal()];
|
|
return (i != 1 ? i != 2 ? i != 3 ? i != 4 ? m7.e.NOT_SUPPORTED : m7.e.BANNER : m7.e.NATIVE_AD : m7.e.INTERSTITIAL : m7.e.REWARDED_VIDEO).a();
|
|
}
|
|
}
|