- 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
785 lines
22 KiB
Java
785 lines
22 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import android.app.Application;
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import com.ironsource.l0;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.ng;
|
|
import com.ironsource.qf;
|
|
import com.ironsource.sdk.controller.FeaturesManager;
|
|
import com.ironsource.sdk.utils.IronSourceStorageUtils;
|
|
import com.ironsource.sdk.utils.Logger;
|
|
import com.ironsource.sdk.utils.SDKUtils;
|
|
import com.ironsource.v8;
|
|
import java.util.Map;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class qi implements xp, p9, o9, m9, n9, wi, gn {
|
|
private static final String l = "IronSourceAdsPublisherAgent";
|
|
private static qi m;
|
|
private com.ironsource.sdk.controller.e a;
|
|
private String b;
|
|
private String c;
|
|
private ia d;
|
|
private hm e;
|
|
private y8 g;
|
|
private boolean f = false;
|
|
private FeaturesManager h = FeaturesManager.getInstance();
|
|
private ng.a i = el.I().g();
|
|
private l0.a j = el.I().A();
|
|
private l0 k = el.N().B();
|
|
|
|
public class a implements Runnable {
|
|
final /* synthetic */ String a;
|
|
final /* synthetic */ String b;
|
|
final /* synthetic */ ha c;
|
|
|
|
public a(String str, String str2, ha haVar) {
|
|
this.a = str;
|
|
this.b = str2;
|
|
this.c = haVar;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qi.this.a.a(this.a, this.b, this.c, (p9) qi.this);
|
|
}
|
|
}
|
|
|
|
public class b implements Runnable {
|
|
final /* synthetic */ JSONObject a;
|
|
|
|
public b(JSONObject jSONObject) {
|
|
this.a = jSONObject;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qi.this.a.a(this.a, (p9) qi.this);
|
|
}
|
|
}
|
|
|
|
public class c implements Runnable {
|
|
final /* synthetic */ String a;
|
|
final /* synthetic */ String b;
|
|
final /* synthetic */ ha c;
|
|
|
|
public c(String str, String str2, ha haVar) {
|
|
this.a = str;
|
|
this.b = str2;
|
|
this.c = haVar;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qi.this.a.a(this.a, this.b, this.c, (o9) qi.this);
|
|
}
|
|
}
|
|
|
|
public class d implements Runnable {
|
|
final /* synthetic */ String a;
|
|
|
|
public d(String str) {
|
|
this.a = str;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qi.this.a.a(this.a, qi.this);
|
|
}
|
|
}
|
|
|
|
public class e implements Runnable {
|
|
final /* synthetic */ JSONObject a;
|
|
|
|
public e(JSONObject jSONObject) {
|
|
this.a = jSONObject;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qi.this.a.a(this.a, (o9) qi.this);
|
|
}
|
|
}
|
|
|
|
public class f implements Runnable {
|
|
final /* synthetic */ mi a;
|
|
final /* synthetic */ Map b;
|
|
|
|
public f(mi miVar, Map map) {
|
|
this.a = miVar;
|
|
this.b = map;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qf.e eVar = this.a.i() ? qf.e.Banner : qf.e.Interstitial;
|
|
ha a = qi.this.d.a(eVar, this.a);
|
|
sf sfVar = new sf();
|
|
sfVar.a(nb.x, Boolean.valueOf(this.a.j())).a(nb.G, Boolean.valueOf(this.a.m())).a(nb.v, this.a.g()).a(nb.w, xi.a(this.a)).a(nb.I, Long.valueOf(i0.a.b(this.a.e())));
|
|
xf.a(vp.h, sfVar.a());
|
|
if (eVar == qf.e.Banner) {
|
|
qi.this.a.a(qi.this.b, qi.this.c, a, (n9) qi.this);
|
|
qi.this.a.a(a, this.b, (n9) qi.this);
|
|
} else {
|
|
qi.this.a.a(qi.this.b, qi.this.c, a, (o9) qi.this);
|
|
qi.this.a.b(a, this.b, qi.this);
|
|
}
|
|
}
|
|
}
|
|
|
|
public class g implements Runnable {
|
|
final /* synthetic */ ha a;
|
|
final /* synthetic */ Map b;
|
|
|
|
public g(ha haVar, Map map) {
|
|
this.a = haVar;
|
|
this.b = map;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qi.this.a.a(this.a, this.b, (o9) qi.this);
|
|
}
|
|
}
|
|
|
|
public class h implements Runnable {
|
|
final /* synthetic */ mi a;
|
|
|
|
public h(mi miVar) {
|
|
this.a = miVar;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
qf.e eVar = this.a.i() ? qf.e.Banner : qf.e.Interstitial;
|
|
ha a = qi.this.d.a(eVar, this.a);
|
|
sf sfVar = new sf();
|
|
sfVar.a(nb.x, Boolean.valueOf(this.a.j())).a(nb.v, this.a.g()).a(nb.w, xi.a(this.a)).a("isMultipleAdObjects", Boolean.valueOf(this.a.l()));
|
|
xf.a(vp.m, sfVar.a());
|
|
if (eVar == qf.e.Banner) {
|
|
qi.this.a.a(a);
|
|
} else {
|
|
a.a(false);
|
|
qi.this.a.b(a);
|
|
}
|
|
}
|
|
}
|
|
|
|
private qi(Context context, int i) {
|
|
b(context);
|
|
}
|
|
|
|
public qi(String str, String str2, Context context) {
|
|
this.b = str;
|
|
this.c = str2;
|
|
b(context);
|
|
}
|
|
|
|
private bn a(ha haVar) {
|
|
if (haVar == null) {
|
|
return null;
|
|
}
|
|
return (bn) haVar.i();
|
|
}
|
|
|
|
public static synchronized qi a(Context context) throws Exception {
|
|
qi a2;
|
|
synchronized (qi.class) {
|
|
a2 = a(context, 0);
|
|
}
|
|
return a2;
|
|
}
|
|
|
|
public static synchronized qi a(Context context, int i) throws Exception {
|
|
qi qiVar;
|
|
synchronized (qi.class) {
|
|
try {
|
|
Logger.i(l, "getInstance()");
|
|
if (m == null) {
|
|
m = new qi(context, i);
|
|
}
|
|
qiVar = m;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return qiVar;
|
|
}
|
|
|
|
public static wi a(Context context, String str, String str2) {
|
|
return a(str, str2, context);
|
|
}
|
|
|
|
public static synchronized wi a(String str, String str2, Context context) {
|
|
qi qiVar;
|
|
synchronized (qi.class) {
|
|
try {
|
|
if (m == null) {
|
|
xf.a(vp.a);
|
|
m = new qi(str, str2, context);
|
|
}
|
|
qiVar = m;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return qiVar;
|
|
}
|
|
|
|
private Map<String, String> a(Map<String, String> map) {
|
|
map.put("adm", SDKUtils.decodeString(map.get("adm")));
|
|
return map;
|
|
}
|
|
|
|
private dn b(ha haVar) {
|
|
if (haVar == null) {
|
|
return null;
|
|
}
|
|
return (dn) haVar.i();
|
|
}
|
|
|
|
private void b(Context context) {
|
|
try {
|
|
JSONObject networkConfiguration = SDKUtils.getNetworkConfiguration();
|
|
dj.a(context);
|
|
IronSourceStorageUtils.initializeCacheDirectory(context, new hs(SDKUtils.getNetworkConfiguration().optJSONObject(v8.a.j)));
|
|
dj.e().d(SDKUtils.getSDKVersion());
|
|
this.d = new ia();
|
|
y8 y8Var = new y8();
|
|
this.g = y8Var;
|
|
if (context instanceof Activity) {
|
|
y8Var.a((Activity) context);
|
|
}
|
|
int debugMode = this.h.getDebugMode();
|
|
this.e = new hm();
|
|
this.a = new com.ironsource.sdk.controller.e(context, this.g, this.d, ve.a, debugMode, this.h.getDataManagerConfig(), this.b, this.c, this.e);
|
|
Logger.enableLogging(debugMode);
|
|
Logger.i(l, "C'tor");
|
|
a(context, networkConfiguration);
|
|
this.e.d();
|
|
this.e.e();
|
|
this.e.a(context);
|
|
this.e.b();
|
|
this.e.a();
|
|
this.e.b(context);
|
|
this.e.c();
|
|
} catch (Exception e2) {
|
|
i9.d().a(e2);
|
|
IronLog.INTERNAL.error(e2.toString());
|
|
}
|
|
}
|
|
|
|
private void b(mi miVar, Map<String, String> map) {
|
|
Logger.d(l, "loadOnNewInstance " + miVar.e());
|
|
this.a.a(new f(miVar, map));
|
|
}
|
|
|
|
private in c(ha haVar) {
|
|
if (haVar == null) {
|
|
return null;
|
|
}
|
|
return (in) haVar.i();
|
|
}
|
|
|
|
private void c(mi miVar, Map<String, String> map) {
|
|
try {
|
|
map = a(map);
|
|
} catch (Exception e2) {
|
|
i9.d().a(e2);
|
|
sf a2 = new sf().a(nb.A, e2.getMessage()).a(nb.x, Boolean.valueOf(miVar.j())).a(nb.G, Boolean.valueOf(miVar.m())).a(nb.v, miVar.g()).a(nb.w, xi.a(miVar)).a(nb.I, Long.valueOf(i0.a.b(miVar.e())));
|
|
i0.a.a(miVar.e());
|
|
xf.a(vp.k, a2.a());
|
|
IronLog.INTERNAL.error(e2.toString());
|
|
Logger.d(l, "loadInAppBiddingAd failed decoding ADM " + e2.getMessage());
|
|
}
|
|
b(miVar, map);
|
|
}
|
|
|
|
private ha d(qf.e eVar, String str) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return null;
|
|
}
|
|
return this.d.a(eVar, str);
|
|
}
|
|
|
|
@Override // com.ironsource.wi
|
|
public com.ironsource.sdk.controller.e a() {
|
|
return this.a;
|
|
}
|
|
|
|
@Override // com.ironsource.xp, com.ironsource.wi
|
|
public void a(Activity activity) {
|
|
try {
|
|
Logger.i(l, "release()");
|
|
la.g();
|
|
this.g.b();
|
|
this.a.a((Context) activity);
|
|
this.a.destroy();
|
|
this.a = null;
|
|
} catch (Exception e2) {
|
|
i9.d().a(e2);
|
|
}
|
|
m = null;
|
|
}
|
|
|
|
@Override // com.ironsource.yi
|
|
public void a(Activity activity, mi miVar, Map<String, String> map) {
|
|
this.g.a(activity);
|
|
Logger.i(l, "showAd " + miVar.e());
|
|
ha a2 = this.d.a(qf.e.Interstitial, miVar.e());
|
|
if (a2 == null) {
|
|
return;
|
|
}
|
|
this.a.a(new g(a2, map));
|
|
}
|
|
|
|
public void a(Context context, JSONObject jSONObject) {
|
|
boolean optBoolean = jSONObject.optBoolean(v8.a.f, false);
|
|
this.f = optBoolean;
|
|
if (optBoolean) {
|
|
try {
|
|
((Application) context).registerActivityLifecycleCallbacks(new i(this));
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
sf sfVar = new sf();
|
|
sfVar.a(nb.y, th.getMessage());
|
|
xf.a(vp.u, sfVar.a());
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.yi
|
|
public void a(mi miVar, Map<String, String> map) {
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
map.put(v8.h.y0, String.valueOf(currentTimeMillis));
|
|
i0.a.a(miVar.e(), currentTimeMillis);
|
|
sf sfVar = new sf();
|
|
sfVar.a(nb.x, Boolean.valueOf(miVar.j())).a(nb.G, Boolean.valueOf(miVar.m())).a(nb.v, miVar.g()).a(nb.w, xi.a(miVar)).a(nb.I, Long.valueOf(currentTimeMillis));
|
|
xf.a(vp.f, sfVar.a());
|
|
Logger.d(l, "loadAd " + miVar.e());
|
|
k0 k0Var = new k0(miVar);
|
|
this.j.a(k0Var);
|
|
this.j.a(new JSONObject(map), j1.LOAD_REQUEST, k0Var.c());
|
|
if (c(miVar)) {
|
|
this.i.a(new or(k0Var));
|
|
}
|
|
if (miVar.k()) {
|
|
c(miVar, map);
|
|
} else {
|
|
b(miVar, map);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.m9
|
|
public void a(qf.e eVar, String str) {
|
|
dn b2;
|
|
ha d2 = d(eVar, str);
|
|
if (d2 != null) {
|
|
if (eVar == qf.e.RewardedVideo) {
|
|
in c2 = c(d2);
|
|
if (c2 != null) {
|
|
c2.c();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (eVar != qf.e.Interstitial || (b2 = b(d2)) == null) {
|
|
return;
|
|
}
|
|
b2.onInterstitialClose();
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.m9
|
|
public void a(qf.e eVar, String str, s2 s2Var) {
|
|
bn a2;
|
|
ha d2 = d(eVar, str);
|
|
if (d2 != null) {
|
|
d2.b(2);
|
|
if (eVar == qf.e.RewardedVideo) {
|
|
in c2 = c(d2);
|
|
if (c2 != null) {
|
|
c2.a(s2Var);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (eVar == qf.e.Interstitial) {
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialInitSuccess();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (eVar != qf.e.Banner || (a2 = a(d2)) == null) {
|
|
return;
|
|
}
|
|
a2.onBannerInitSuccess();
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.m9
|
|
public void a(qf.e eVar, String str, String str2) {
|
|
bn a2;
|
|
ha d2 = d(eVar, str);
|
|
sf a3 = new sf().a(nb.v, str).a(nb.w, eVar).a(nb.A, str2);
|
|
if (d2 != null) {
|
|
i0 i0Var = i0.a;
|
|
a3.a(nb.I, Long.valueOf(i0Var.b(d2.h())));
|
|
a3.a(nb.x, Boolean.valueOf(yf.a(d2)));
|
|
i0Var.a(d2.h());
|
|
d2.b(3);
|
|
if (eVar == qf.e.RewardedVideo) {
|
|
in c2 = c(d2);
|
|
if (c2 != null) {
|
|
c2.b(str2);
|
|
}
|
|
} else if (eVar == qf.e.Interstitial) {
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialInitFailed(str2);
|
|
}
|
|
} else if (eVar == qf.e.Banner && (a2 = a(d2)) != null) {
|
|
a2.onBannerLoadFail(str2);
|
|
}
|
|
}
|
|
xf.a(vp.i, a3.a());
|
|
}
|
|
|
|
@Override // com.ironsource.m9
|
|
public void a(qf.e eVar, String str, String str2, JSONObject jSONObject) {
|
|
bn a2;
|
|
ha d2 = d(eVar, str);
|
|
if (d2 == null || TextUtils.isEmpty(str2)) {
|
|
return;
|
|
}
|
|
try {
|
|
Logger.i(l, "Received Event Notification: " + str2 + " for demand source: " + d2.f());
|
|
if (eVar == qf.e.Interstitial) {
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
jSONObject.put("demandSourceName", str);
|
|
b2.onInterstitialEventNotificationReceived(str2, jSONObject);
|
|
}
|
|
} else if (eVar == qf.e.RewardedVideo) {
|
|
in c2 = c(d2);
|
|
if (c2 != null) {
|
|
jSONObject.put("demandSourceName", str);
|
|
c2.a(str2, jSONObject);
|
|
}
|
|
} else if (eVar == qf.e.Banner && (a2 = a(d2)) != null) {
|
|
jSONObject.put("demandSourceName", str);
|
|
if (str2.equalsIgnoreCase("impressions")) {
|
|
a2.onBannerShowSuccess();
|
|
}
|
|
}
|
|
} catch (JSONException e2) {
|
|
i9.d().a(e2);
|
|
IronLog.INTERNAL.error(e2.toString());
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.p9
|
|
public void a(String str, int i) {
|
|
in c2;
|
|
ha d2 = d(qf.e.RewardedVideo, str);
|
|
if (d2 == null || (c2 = c(d2)) == null) {
|
|
return;
|
|
}
|
|
c2.a(i);
|
|
}
|
|
|
|
@Override // com.ironsource.n9
|
|
public void a(String str, jf jfVar) {
|
|
bn a2;
|
|
ha d2 = d(qf.e.Banner, str);
|
|
if (d2 == null || (a2 = a(d2)) == null) {
|
|
return;
|
|
}
|
|
a2.onBannerLoadSuccess(d2.c(), jfVar);
|
|
}
|
|
|
|
@Override // com.ironsource.n9
|
|
public void a(String str, String str2) {
|
|
bn a2;
|
|
ha d2 = d(qf.e.Banner, str);
|
|
if (d2 == null || (a2 = a(d2)) == null) {
|
|
return;
|
|
}
|
|
a2.onBannerLoadFail(str2);
|
|
}
|
|
|
|
@Override // com.ironsource.xp
|
|
public void a(String str, String str2, int i) {
|
|
qf.e productType;
|
|
ha a2;
|
|
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2) || (productType = SDKUtils.getProductType(str)) == null || (a2 = this.d.a(productType, str2)) == null) {
|
|
return;
|
|
}
|
|
a2.c(i);
|
|
}
|
|
|
|
@Override // com.ironsource.xp
|
|
public void a(String str, String str2, String str3, Map<String, String> map, dn dnVar) {
|
|
this.b = str;
|
|
this.c = str2;
|
|
this.a.a(new c(str, str2, this.d.a(qf.e.Interstitial, str3, map, dnVar)));
|
|
}
|
|
|
|
@Override // com.ironsource.xp
|
|
public void a(String str, String str2, String str3, Map<String, String> map, in inVar) {
|
|
this.b = str;
|
|
this.c = str2;
|
|
this.a.a(new a(str, str2, this.d.a(qf.e.RewardedVideo, str3, map, inVar)));
|
|
}
|
|
|
|
@Override // com.ironsource.o9
|
|
public void a(String str, JSONObject jSONObject) {
|
|
qf.e eVar = qf.e.Interstitial;
|
|
ha d2 = d(eVar, str);
|
|
sf a2 = new sf().a(nb.v, str);
|
|
if (d2 != null) {
|
|
mi c2 = d2.c();
|
|
this.j.a(jSONObject, j1.LOAD_SUCCESS, c2.e());
|
|
if (c(c2)) {
|
|
this.i.a(new pr(this.k.a(c2.e())));
|
|
}
|
|
sf a3 = a2.a(nb.w, yf.a(d2, eVar)).a(nb.x, Boolean.valueOf(yf.a(d2)));
|
|
i0 i0Var = i0.a;
|
|
a3.a(nb.I, Long.valueOf(i0Var.b(d2.h())));
|
|
i0Var.a(d2.h());
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialLoadSuccess(d2.c());
|
|
}
|
|
}
|
|
xf.a(vp.l, a2.a());
|
|
}
|
|
|
|
@Override // com.ironsource.xp
|
|
public void a(JSONObject jSONObject) {
|
|
this.a.a(new b(jSONObject));
|
|
}
|
|
|
|
@Override // com.ironsource.yi
|
|
public boolean a(mi miVar) {
|
|
Logger.d(l, "isAdAvailable " + miVar.e());
|
|
ha a2 = this.d.a(qf.e.Interstitial, miVar.e());
|
|
if (a2 == null) {
|
|
return false;
|
|
}
|
|
return a2.d();
|
|
}
|
|
|
|
@Override // com.ironsource.xp
|
|
public boolean a(String str) {
|
|
return this.a.a(str);
|
|
}
|
|
|
|
@Override // com.ironsource.gn
|
|
public void b(Activity activity) {
|
|
try {
|
|
this.a.d();
|
|
this.a.a((Context) activity);
|
|
} catch (Exception e2) {
|
|
i9.d().a(e2);
|
|
IronLog.INTERNAL.error(e2.toString());
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.yi
|
|
public void b(Activity activity, mi miVar, Map<String, String> map) {
|
|
this.g.a(activity);
|
|
a(miVar, map);
|
|
}
|
|
|
|
@Override // com.ironsource.yi
|
|
public void b(mi miVar) {
|
|
Logger.d(l, "destroyInstance " + miVar.e());
|
|
if (c(miVar)) {
|
|
this.j.a(j1.DESTROYED, miVar.e());
|
|
this.i.a(new nr(this.k.a(miVar.e())));
|
|
}
|
|
this.a.a(new h(miVar));
|
|
}
|
|
|
|
@Override // com.ironsource.m9
|
|
public void b(qf.e eVar, String str) {
|
|
in c2;
|
|
ha d2 = d(eVar, str);
|
|
if (d2 != null) {
|
|
if (eVar == qf.e.Interstitial) {
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialOpen();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (eVar != qf.e.RewardedVideo || (c2 = c(d2)) == null) {
|
|
return;
|
|
}
|
|
c2.a();
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.o9
|
|
public void b(String str) {
|
|
ha d2 = d(qf.e.Interstitial, str);
|
|
if (d2 != null) {
|
|
mi c2 = d2.c();
|
|
this.j.a(j1.SHOW_SUCCESS, c2.e());
|
|
if (c(c2)) {
|
|
this.i.a(new rr(this.k.a(c2.e())));
|
|
}
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialShowSuccess();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.o9
|
|
public void b(String str, String str2) {
|
|
ha d2 = d(qf.e.Interstitial, str);
|
|
if (d2 != null) {
|
|
mi c2 = d2.c();
|
|
this.j.a(j1.SHOW_FAIL, c2.e());
|
|
if (c(c2)) {
|
|
this.i.a(new qr(this.k.a(c2.e())));
|
|
}
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialShowFailed(str2);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.xp
|
|
public void b(JSONObject jSONObject) {
|
|
if (jSONObject == null) {
|
|
return;
|
|
}
|
|
String optString = jSONObject.optString("demandSourceName");
|
|
if (TextUtils.isEmpty(optString)) {
|
|
return;
|
|
}
|
|
this.a.a(new d(optString));
|
|
}
|
|
|
|
@Override // com.ironsource.gn
|
|
public void c(Activity activity) {
|
|
this.g.a(activity);
|
|
this.a.f();
|
|
this.a.b(activity);
|
|
}
|
|
|
|
@Override // com.ironsource.m9
|
|
public void c(qf.e eVar, String str) {
|
|
bn a2;
|
|
ha d2 = d(eVar, str);
|
|
if (d2 != null) {
|
|
if (eVar == qf.e.RewardedVideo) {
|
|
in c2 = c(d2);
|
|
if (c2 != null) {
|
|
c2.d();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (eVar == qf.e.Interstitial) {
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialClick();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (eVar != qf.e.Banner || (a2 = a(d2)) == null) {
|
|
return;
|
|
}
|
|
a2.onBannerClick();
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.p9
|
|
public void c(String str) {
|
|
in c2;
|
|
ha d2 = d(qf.e.RewardedVideo, str);
|
|
if (d2 == null || (c2 = c(d2)) == null) {
|
|
return;
|
|
}
|
|
c2.b();
|
|
}
|
|
|
|
@Override // com.ironsource.o9
|
|
public void c(String str, String str2) {
|
|
qf.e eVar = qf.e.Interstitial;
|
|
ha d2 = d(eVar, str);
|
|
sf sfVar = new sf();
|
|
sfVar.a(nb.A, str2).a(nb.v, str);
|
|
if (d2 != null) {
|
|
sf a2 = sfVar.a(nb.w, yf.a(d2, eVar)).a(nb.y, d2.e() == 2 ? nb.E : nb.F).a(nb.x, Boolean.valueOf(yf.a(d2)));
|
|
i0 i0Var = i0.a;
|
|
a2.a(nb.I, Long.valueOf(i0Var.b(d2.h())));
|
|
i0Var.a(d2.h());
|
|
dn b2 = b(d2);
|
|
if (b2 != null) {
|
|
b2.onInterstitialLoadFailed(str2);
|
|
}
|
|
}
|
|
xf.a(vp.g, sfVar.a());
|
|
}
|
|
|
|
@Override // com.ironsource.xp
|
|
public void c(JSONObject jSONObject) {
|
|
this.a.a(new e(jSONObject));
|
|
}
|
|
|
|
public boolean c(mi miVar) {
|
|
return miVar.l() && !miVar.i() && a(miVar);
|
|
}
|
|
|
|
@Override // com.ironsource.p9
|
|
public void d(String str, String str2) {
|
|
in c2;
|
|
ha d2 = d(qf.e.RewardedVideo, str);
|
|
if (d2 == null || (c2 = c(d2)) == null) {
|
|
return;
|
|
}
|
|
c2.a(str2);
|
|
}
|
|
|
|
@Override // com.ironsource.o9
|
|
public void onInterstitialAdRewarded(String str, int i) {
|
|
ha d2 = d(qf.e.Interstitial, str);
|
|
dn b2 = b(d2);
|
|
if (d2 == null || b2 == null) {
|
|
return;
|
|
}
|
|
b2.onInterstitialAdRewarded(str, i);
|
|
}
|
|
|
|
@Override // com.ironsource.xp, com.ironsource.wi
|
|
public void onPause(Activity activity) {
|
|
if (this.f) {
|
|
return;
|
|
}
|
|
b(activity);
|
|
}
|
|
|
|
@Override // com.ironsource.xp, com.ironsource.wi
|
|
public void onResume(Activity activity) {
|
|
if (this.f) {
|
|
return;
|
|
}
|
|
c(activity);
|
|
}
|
|
}
|