Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 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 g;
public final com.fyber.inneractive.sdk.ignite.i h;
public class a implements com.fyber.inneractive.sdk.ignite.i {
public a() {
}
public void a(com.fyber.inneractive.sdk.network.q qVar, String str, String str2, com.fyber.inneractive.sdk.ignite.l lVar) {
p pVar = p.this;
InneractiveAdRequest inneractiveAdRequest = pVar.a;
T t = pVar.b;
com.fyber.inneractive.sdk.config.global.s sVar = pVar.c;
JSONArray c = sVar != null ? sVar.c() : null;
s.a aVar = new s.a(t);
aVar.b = qVar;
aVar.a = inneractiveAdRequest;
aVar.d = c;
JSONObject jSONObject = new JSONObject();
if (lVar != null) {
String f = lVar.f();
try {
jSONObject.put("ignitem", f);
} catch (Exception unused) {
IAlog.e("Got exception adding param to json object: %s, %s", "ignitem", f);
}
}
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.f.put(jSONObject);
aVar.a((String) null);
}
public void a(com.fyber.inneractive.sdk.network.r rVar, com.fyber.inneractive.sdk.ignite.l lVar) {
p pVar = p.this;
InneractiveAdRequest inneractiveAdRequest = pVar.a;
T t = pVar.b;
com.fyber.inneractive.sdk.config.global.s sVar = pVar.c;
JSONArray c = sVar != null ? sVar.c() : null;
s.a aVar = new s.a(t);
aVar.c = rVar;
aVar.a = inneractiveAdRequest;
aVar.d = c;
JSONObject jSONObject = new JSONObject();
String f = lVar.f();
try {
jSONObject.put("ignitem", f);
} catch (Exception unused) {
IAlog.e("Got exception adding param to json object: %s, %s", "ignitem", f);
}
aVar.f.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.h = new a();
}
@Override
public void a(String str) {
com.fyber.inneractive.sdk.ignite.l lVar;
com.fyber.inneractive.sdk.ignite.l lVar2 = com.fyber.inneractive.sdk.ignite.l.NONE;
T t = this.b;
if (t != null) {
com.fyber.inneractive.sdk.ignite.l lVar3 = t.F;
lVar3.getClass();
lVar = com.fyber.inneractive.sdk.ignite.l.SINGLE_TAP;
if (lVar3 != lVar) {
if (!this.b.F.e() || isVideoAd()) {
lVar = this.b.F;
} else {
((a) this.h).a(com.fyber.inneractive.sdk.network.q.IGNITE_FLOW_MODE_NOT_COMPATIBLE, null, null, null);
}
}
} else {
lVar = lVar2;
}
if (!j()) {
T t2 = this.b;
if (t2 != null) {
t2.a(lVar2);
return;
}
return;
}
T t3 = this.b;
String str2 = t3 != null ? t3.y : null;
com.fyber.inneractive.sdk.web.v vVar = new com.fyber.inneractive.sdk.web.v();
vVar.a = str2;
vVar.b = lVar;
vVar.c = str;
vVar.d = this.c;
vVar.e = t3 != null ? t3.E : null;
vVar.f = t3 != null ? t3.G : null;
vVar.g = this.h;
com.fyber.inneractive.sdk.web.r rVar = new com.fyber.inneractive.sdk.web.r(vVar);
this.g = rVar;
com.fyber.inneractive.sdk.config.global.features.p pVar = (com.fyber.inneractive.sdk.config.global.features.p) this.c.a(com.fyber.inneractive.sdk.config.global.features.p.class);
if (pVar == null || str2 == null) {
return;
}
String a2 = pVar.a("detail_url", "https://cdn2.inner-active.mobi/app-detail-page-v0/[BUNDLE_ID].html");
rVar.d(a2 == null ? "" : a2.replace("[BUNDLE_ID]", str2));
}
@Override
public boolean a(boolean z, com.fyber.inneractive.sdk.util.i iVar) {
T t = this.b;
com.fyber.inneractive.sdk.ignite.l lVar = t != null ? t.F : com.fyber.inneractive.sdk.ignite.l.NONE;
return !z && lVar != null && lVar.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.g;
}
@Override
public boolean f() {
com.fyber.inneractive.sdk.web.r rVar = this.g;
return rVar != null && rVar.l;
}
@Override
public void i() {
T t;
if (j()) {
com.fyber.inneractive.sdk.web.r rVar = this.g;
if ((rVar == null || !rVar.l) && (t = this.b) != null) {
com.fyber.inneractive.sdk.ignite.l lVar = t.F;
com.fyber.inneractive.sdk.ignite.l lVar2 = com.fyber.inneractive.sdk.ignite.l.NONE;
if (lVar != lVar2) {
IAlog.a("ignite webpage was not loaded yet, stopping the loading process", new Object[0]);
this.b.a(lVar2);
com.fyber.inneractive.sdk.web.r rVar2 = this.g;
if (rVar2 != null) {
Runnable runnable = rVar2.p;
if (runnable != null) {
com.fyber.inneractive.sdk.util.q.b.removeCallbacks(runnable);
rVar2.p = null;
}
if (!rVar2.y) {
rVar2.a.stopLoading();
}
((a) this.h).a(com.fyber.inneractive.sdk.network.q.IGNITE_FLOW_FAILED_TO_LOAD_WEBPAGE, this.g.k, com.fyber.inneractive.sdk.ignite.h.WEBPAGE_NOT_LOADED_BEFORE_SHOW.e(), this.b.F);
}
}
}
}
}
public final boolean j() {
T t;
com.fyber.inneractive.sdk.ignite.c cVar = IAConfigManager.M.E;
return cVar.f && (t = this.b) != null && t.b() && cVar.p();
}
}