Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 p.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.flow;
import android.text.TextUtils;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.network.s;
import com.fyber.inneractive.sdk.response.e;
import com.fyber.inneractive.sdk.util.IAlog;
import org.json.JSONArray;
import org.json.JSONObject;
public abstract class p<T extends com.fyber.inneractive.sdk.response.e> extends q<T> {
public com.fyber.inneractive.sdk.web.r f9670g;
public final com.fyber.inneractive.sdk.ignite.j f9671h;
public class a implements com.fyber.inneractive.sdk.ignite.j {
public a() {
}
public void a(com.fyber.inneractive.sdk.network.q qVar, String str, String str2, com.fyber.inneractive.sdk.ignite.k kVar) {
p pVar = p.this;
InneractiveAdRequest inneractiveAdRequest = pVar.f9673a;
T t10 = pVar.f9674b;
com.fyber.inneractive.sdk.config.global.s sVar = pVar.f9675c;
JSONArray c10 = sVar != null ? sVar.c() : null;
s.a aVar = new s.a(t10);
aVar.f10071b = qVar;
aVar.f10070a = inneractiveAdRequest;
aVar.f10073d = c10;
JSONObject jSONObject = new JSONObject();
if (kVar != null) {
String f10 = kVar.f();
try {
jSONObject.put("ignitem", f10);
} catch (Exception unused) {
IAlog.e("Got exception adding param to json object: %s, %s", "ignitem", f10);
}
}
if (!TextUtils.isEmpty(str)) {
try {
jSONObject.put("message", str);
} catch (Exception unused2) {
IAlog.e("Got exception adding param to json object: %s, %s", "message", str);
}
}
if (!TextUtils.isEmpty(str2)) {
try {
jSONObject.put("error_code", str2);
} catch (Exception unused3) {
IAlog.e("Got exception adding param to json object: %s, %s", "error_code", str2);
}
}
aVar.f10075f.put(jSONObject);
aVar.a((String) null);
}
public void a(com.fyber.inneractive.sdk.network.r rVar, com.fyber.inneractive.sdk.ignite.k kVar) {
p pVar = p.this;
InneractiveAdRequest inneractiveAdRequest = pVar.f9673a;
T t10 = pVar.f9674b;
com.fyber.inneractive.sdk.config.global.s sVar = pVar.f9675c;
JSONArray c10 = sVar != null ? sVar.c() : null;
s.a aVar = new s.a(t10);
aVar.f10072c = rVar;
aVar.f10070a = inneractiveAdRequest;
aVar.f10073d = c10;
JSONObject jSONObject = new JSONObject();
String f10 = kVar.f();
try {
jSONObject.put("ignitem", f10);
} catch (Exception unused) {
IAlog.e("Got exception adding param to json object: %s, %s", "ignitem", f10);
}
aVar.f10075f.put(jSONObject);
aVar.a((String) null);
}
}
public p(com.fyber.inneractive.sdk.config.b0 b0Var, com.fyber.inneractive.sdk.config.global.s sVar) {
super(b0Var, sVar);
this.f9671h = new a();
}
@Override
public void a(String str) {
com.fyber.inneractive.sdk.ignite.k kVar;
com.fyber.inneractive.sdk.ignite.k kVar2 = com.fyber.inneractive.sdk.ignite.k.NONE;
T t10 = this.f9674b;
if (t10 != null) {
com.fyber.inneractive.sdk.ignite.k kVar3 = t10.F;
kVar3.getClass();
kVar = com.fyber.inneractive.sdk.ignite.k.SINGLE_TAP;
if (kVar3 != kVar) {
if (!this.f9674b.F.e() || isVideoAd()) {
kVar = this.f9674b.F;
} else {
((a) this.f9671h).a(com.fyber.inneractive.sdk.network.q.IGNITE_FLOW_MODE_NOT_COMPATIBLE, null, null, null);
}
}
} else {
kVar = kVar2;
}
if (!j()) {
T t11 = this.f9674b;
if (t11 != null) {
t11.a(kVar2);
return;
}
return;
}
T t12 = this.f9674b;
String str2 = t12 != null ? t12.f12539y : null;
com.fyber.inneractive.sdk.web.t tVar = new com.fyber.inneractive.sdk.web.t();
tVar.f12832a = str2;
tVar.f12833b = kVar;
tVar.f12834c = str;
tVar.f12835d = this.f9675c;
tVar.f12836e = t12 != null ? t12.E : null;
tVar.f12837f = t12 != null ? t12.G : null;
tVar.f12838g = this.f9671h;
com.fyber.inneractive.sdk.web.r rVar = new com.fyber.inneractive.sdk.web.r(tVar);
this.f9670g = rVar;
com.fyber.inneractive.sdk.config.global.features.p pVar = (com.fyber.inneractive.sdk.config.global.features.p) this.f9675c.a(com.fyber.inneractive.sdk.config.global.features.p.class);
if (pVar == null || str2 == null) {
return;
}
String a10 = pVar.a("detail_url", "https://cdn2.inner-active.mobi/app-detail-page-v0/[BUNDLE_ID].html");
rVar.g(a10 == null ? "" : a10.replace("[BUNDLE_ID]", str2));
}
@Override
public boolean a(boolean z10, com.fyber.inneractive.sdk.util.i iVar) {
T t10 = this.f9674b;
com.fyber.inneractive.sdk.ignite.k kVar = t10 != null ? t10.F : com.fyber.inneractive.sdk.ignite.k.NONE;
return !z10 && kVar != null && kVar.e() && (iVar == com.fyber.inneractive.sdk.util.i.VIDEO_CTA || iVar == com.fyber.inneractive.sdk.util.i.DEFAULT_ENDCARD);
}
@Override
public com.fyber.inneractive.sdk.web.r c() {
return this.f9670g;
}
@Override
public boolean f() {
com.fyber.inneractive.sdk.web.r rVar = this.f9670g;
return rVar != null && rVar.f12804l;
}
@Override
public void i() {
T t10;
if (j()) {
com.fyber.inneractive.sdk.web.r rVar = this.f9670g;
if ((rVar == null || !rVar.f12804l) && (t10 = this.f9674b) != null) {
com.fyber.inneractive.sdk.ignite.k kVar = t10.F;
com.fyber.inneractive.sdk.ignite.k kVar2 = com.fyber.inneractive.sdk.ignite.k.NONE;
if (kVar != kVar2) {
IAlog.a("ignite webpage was not loaded yet, stopping the loading process", new Object[0]);
this.f9674b.a(kVar2);
com.fyber.inneractive.sdk.web.r rVar2 = this.f9670g;
if (rVar2 != null) {
Runnable runnable = rVar2.f12808p;
if (runnable != null) {
com.fyber.inneractive.sdk.util.q.f12666b.removeCallbacks(runnable);
rVar2.f12808p = null;
}
if (!rVar2.f12817y) {
rVar2.f12793a.stopLoading();
}
((a) this.f9671h).a(com.fyber.inneractive.sdk.network.q.IGNITE_FLOW_FAILED_TO_LOAD_WEBPAGE, this.f9670g.f12803k, com.fyber.inneractive.sdk.ignite.i.WEBPAGE_NOT_LOADED_BEFORE_SHOW.e(), this.f9674b.F);
}
}
}
}
}
public final boolean j() {
com.fyber.inneractive.sdk.ignite.c cVar = IAConfigManager.M.E;
T t10 = this.f9674b;
return t10 != null && t10.b() && cVar != null && cVar.d();
}
}