Idle Egg Factory v2.1.5版本的 MD5 值为:7d2ba6677008ca521af0101bb927d72a
以下内容为反编译后的 l.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.q;
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 l<T extends com.fyber.inneractive.sdk.response.e> extends m<T> {
public com.fyber.inneractive.sdk.web.o g;
public final com.fyber.inneractive.sdk.ignite.j h;
public l(com.fyber.inneractive.sdk.config.c0 c0Var, com.fyber.inneractive.sdk.config.global.s sVar) {
super(c0Var, sVar);
this.h = 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 t = this.b;
if (t != null) {
com.fyber.inneractive.sdk.ignite.k kVar3 = t.C;
kVar3.getClass();
kVar = com.fyber.inneractive.sdk.ignite.k.SINGLE_TAP;
if (!(kVar3 == kVar)) {
if (this.b.C.f() && !isVideoAd()) {
((a) this.h).a(com.fyber.inneractive.sdk.network.o.IGNITE_FLOW_MODE_NOT_COMPATIBLE, null, null, null);
} else {
kVar = this.b.C;
}
}
} else {
kVar = kVar2;
}
if (j()) {
T t2 = this.b;
String str2 = t2 != null ? t2.y : null;
com.fyber.inneractive.sdk.web.r rVar = new com.fyber.inneractive.sdk.web.r();
rVar.f4359a = str2;
rVar.b = kVar;
rVar.c = str;
rVar.d = this.c;
rVar.e = t2 != null ? t2.B : null;
rVar.f = t2 != null ? t2.D : null;
rVar.g = this.h;
com.fyber.inneractive.sdk.web.o oVar = new com.fyber.inneractive.sdk.web.o(rVar);
this.g = oVar;
com.fyber.inneractive.sdk.config.global.features.o oVar2 = (com.fyber.inneractive.sdk.config.global.features.o) this.c.a(com.fyber.inneractive.sdk.config.global.features.o.class);
if (oVar2 == null || str2 == null) {
return;
}
String a2 = oVar2.a("detail_url", "https://cdn2.inner-active.mobi/app-detail-page-v0/[BUNDLE_ID].html");
oVar.g(a2 == null ? "" : a2.replace("[BUNDLE_ID]", str2));
return;
}
T t3 = this.b;
if (t3 != null) {
t3.a(kVar2);
}
}
@Override
public com.fyber.inneractive.sdk.web.o c() {
return this.g;
}
@Override
public boolean f() {
com.fyber.inneractive.sdk.web.o oVar = this.g;
return oVar != null && oVar.l;
}
@Override
public void i() {
boolean z = true;
if (j()) {
com.fyber.inneractive.sdk.web.o oVar = this.g;
if (!(oVar != null && oVar.l)) {
T t = this.b;
if (t != null) {
}
}
}
z = false;
if (z) {
IAlog.a("ignite webpage was not loaded yet, stopping the loading process", new Object[0]);
this.b.a(com.fyber.inneractive.sdk.ignite.k.NONE);
com.fyber.inneractive.sdk.web.o oVar2 = this.g;
if (oVar2 != null) {
Runnable runnable = oVar2.p;
if (runnable != null) {
com.fyber.inneractive.sdk.util.o.b.removeCallbacks(runnable);
oVar2.p = null;
}
if (!oVar2.y) {
oVar2.f4349a.stopLoading();
}
com.fyber.inneractive.sdk.ignite.j jVar = this.h;
com.fyber.inneractive.sdk.network.o oVar3 = com.fyber.inneractive.sdk.network.o.IGNITE_FLOW_FAILED_TO_LOAD_WEBPAGE;
String str = this.g.k;
com.fyber.inneractive.sdk.ignite.i iVar = com.fyber.inneractive.sdk.ignite.i.WEBPAGE_NOT_LOADED_BEFORE_SHOW;
((a) jVar).a(oVar3, str, "webpage not loaded before show", this.b.C);
}
}
}
public final boolean j() {
com.fyber.inneractive.sdk.ignite.c cVar = IAConfigManager.N.F;
T t = this.b;
return t != null && t.d() && cVar != null && cVar.d();
}
public class a implements com.fyber.inneractive.sdk.ignite.j {
public a() {
}
public void a(com.fyber.inneractive.sdk.network.p pVar, com.fyber.inneractive.sdk.ignite.k kVar) {
l lVar = l.this;
InneractiveAdRequest inneractiveAdRequest = lVar.f3738a;
T t = lVar.b;
com.fyber.inneractive.sdk.config.global.s sVar = lVar.c;
JSONArray c = sVar != null ? sVar.c() : null;
q.a aVar = new q.a(t);
aVar.c = pVar;
aVar.f3842a = inneractiveAdRequest;
aVar.d = c;
JSONObject jSONObject = new JSONObject();
String str = kVar.f3770a;
try {
jSONObject.put("ignitem", str);
} catch (Exception unused) {
IAlog.e("Got exception adding param to json object: %s, %s", "ignitem", str);
}
aVar.f.put(jSONObject);
aVar.a((String) null);
}
public void a(com.fyber.inneractive.sdk.network.o oVar, String str, String str2, com.fyber.inneractive.sdk.ignite.k kVar) {
l lVar = l.this;
InneractiveAdRequest inneractiveAdRequest = lVar.f3738a;
T t = lVar.b;
com.fyber.inneractive.sdk.config.global.s sVar = lVar.c;
JSONArray c = sVar != null ? sVar.c() : null;
q.a aVar = new q.a(t);
aVar.b = oVar;
aVar.f3842a = inneractiveAdRequest;
aVar.d = c;
JSONObject jSONObject = new JSONObject();
if (kVar != null) {
String str3 = kVar.f3770a;
try {
jSONObject.put("ignitem", str3);
} catch (Exception unused) {
IAlog.e("Got exception adding param to json object: %s, %s", "ignitem", str3);
}
}
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);
}
}
@Override
public boolean a(boolean z, com.fyber.inneractive.sdk.util.e eVar) {
com.fyber.inneractive.sdk.ignite.k kVar;
T t = this.b;
if (t != null) {
kVar = t.C;
} else {
kVar = com.fyber.inneractive.sdk.ignite.k.NONE;
}
return !z && kVar != null && kVar.f() && (eVar == com.fyber.inneractive.sdk.util.e.VIDEO_CTA || eVar == com.fyber.inneractive.sdk.util.e.DEFAULT_ENDCARD);
}
}