Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.web;
import android.text.TextUtils;
import com.amazon.device.ads.DtbConstants;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
import com.fyber.inneractive.sdk.external.InneractiveInfrastructureError;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.web.d;
import com.iab.omid.library.fyber.ScriptInjector;
public class e extends com.fyber.inneractive.sdk.util.b<Void, Void, String> {
public final String f12740g;
public final boolean f12741h;
public final String f12742i;
public final String f12743j;
public final String f12744k;
public final d f12745l;
public e(d dVar, String str, boolean z10, String str2, String str3, String str4) {
this.f12745l = dVar;
this.f12740g = str;
this.f12741h = z10;
this.f12742i = str2;
this.f12743j = str3;
this.f12744k = str4;
}
@Override
public String a(Void[] voidArr) {
long currentTimeMillis = System.currentTimeMillis();
String str = this.f12740g;
if (this.f12741h) {
d dVar = this.f12745l;
String str2 = this.f12742i;
String str3 = this.f12743j;
a0 a0Var = (a0) dVar;
a0Var.getClass();
StringBuilder sb2 = new StringBuilder("<html><title>DigitalTurbine Ad</title><head><link rel=\"icon\" href=\"data:,\">");
if (TextUtils.isEmpty(str)) {
IAlog.a("loadHtml called with an empty HTML!", new Object[0]);
} else {
if (a0Var.F) {
String c10 = com.fyber.inneractive.sdk.util.p.c("ia_js_load_monitor.txt");
if (!TextUtils.isEmpty(c10)) {
sb2.append(c10);
}
}
sb2.append("<script> window.iaPreCachedAd = true; </script>");
IAConfigManager iAConfigManager = IAConfigManager.M;
boolean a10 = iAConfigManager.f9311u.f9415b.a("use_js_inline", false);
if (!a10 || iAConfigManager.G.f9227b == null) {
sb2.append("<script src=\"https://cdn2.inner-active.mobi/client/ia-js-tags/dt-mraid-video-controller.js\"></script>");
} else {
sb2.append("<script type=\"text/javascript\">");
sb2.append(iAConfigManager.G.f9227b);
sb2.append("</script>");
}
if (!TextUtils.isEmpty(str2)) {
sb2.append(str2);
}
sb2.append("<script>var prevWindowOnError = window.onerror; window.onerror = function(err) {if (typeof prevWindowOnError === 'function') {prevWindowOnError.apply();} console.log('WINDOW.ONERROR Javascript Error: ' + err);};</script></head><style>body{text-align:center !important;margin:0;padding:0;}");
if (!TextUtils.isEmpty(str3)) {
sb2.append(str3);
}
sb2.append("</style><body id=\"iaBody\">");
if (a0Var.B && a0Var.p()) {
if (!a10 || iAConfigManager.G.f9228c == null) {
sb2.append("<link rel=\"stylesheet\" href=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.css\">");
} else {
sb2.append("<style type=\"text/css\">");
sb2.append(iAConfigManager.G.f9228c);
sb2.append("</style>");
}
if (!a10 || iAConfigManager.G.f9229d == null) {
sb2.append("<script src=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.js\"></script>");
} else {
sb2.append("<script type=\"text/javascript\">");
sb2.append(iAConfigManager.G.f9229d);
sb2.append("</script>");
}
}
String c11 = com.fyber.inneractive.sdk.util.p.c("ia_mraid_bridge.txt");
if (!TextUtils.isEmpty(c11)) {
sb2.append("<div id='iaScriptBr' style='display:none;'>");
sb2.append(c11);
sb2.append("</div>");
if (IAlog.f12587a >= 2) {
sb2.append("<script type=\"text/javascript\">window.mraidbridge.loggingEnabled = true;</script>");
}
}
sb2.append(str);
sb2.append("</body></html>");
if (a0Var.I != null) {
com.fyber.inneractive.sdk.response.e d10 = a0Var.f12733s.d();
boolean z10 = d10 != null && d10.H;
com.fyber.inneractive.sdk.measurement.a aVar = a0Var.I;
String sb3 = sb2.toString();
com.fyber.inneractive.sdk.measurement.b bVar = (com.fyber.inneractive.sdk.measurement.b) aVar;
if (z10) {
StringBuilder sb4 = new StringBuilder();
if (!TextUtils.isEmpty(bVar.f9806c)) {
sb4.append(bVar.f9806c);
}
if (!TextUtils.isEmpty(bVar.f9807d)) {
sb4.append(bVar.f9807d);
}
str = ScriptInjector.injectScriptContentIntoHtml(sb4.toString(), sb3);
} else {
str = sb3;
}
if (!TextUtils.isEmpty(bVar.f9805b)) {
str = ScriptInjector.injectScriptContentIntoHtml(bVar.f9805b, str);
}
} else {
str = sb2.toString();
}
}
str = null;
}
d dVar2 = this.f12745l;
dVar2.getClass();
IAlog.a("%sbuild html string took %d msec", IAlog.a(dVar2), Long.valueOf(System.currentTimeMillis() - currentTimeMillis));
return str;
}
@Override
public void a(String str) {
String str2 = str;
String str3 = com.fyber.inneractive.sdk.util.t.a() ? "http://" : DtbConstants.HTTPS;
if (!TextUtils.isEmpty(str2) && !b()) {
if (TextUtils.isEmpty(this.f12744k)) {
this.f12745l.f12730p = str3.concat("wv.inner-active.mobi/");
} else {
d dVar = this.f12745l;
StringBuilder r10 = android.support.v4.media.a.r(str3);
r10.append(this.f12744k);
dVar.f12730p = r10.toString();
}
if (this.f12601f) {
return;
}
d dVar2 = this.f12745l;
g gVar = dVar2.f12716b;
if (gVar != null) {
gVar.loadDataWithBaseURL(dVar2.f12730p, str2, "text/html", "utf-8", null);
this.f12745l.f12731q = str2;
} else {
InneractiveInfrastructureError inneractiveInfrastructureError = new InneractiveInfrastructureError(InneractiveErrorCode.SDK_INTERNAL_ERROR, com.fyber.inneractive.sdk.flow.g.COULD_NOT_LOAD_TO_WEBVIEW);
d.InterfaceC0257d interfaceC0257d = dVar2.f12720f;
if (interfaceC0257d != null) {
interfaceC0257d.a(dVar2, inneractiveInfrastructureError);
}
dVar2.b(true);
}
} else if (!b()) {
d dVar3 = this.f12745l;
InneractiveInfrastructureError inneractiveInfrastructureError2 = new InneractiveInfrastructureError(InneractiveErrorCode.SDK_INTERNAL_ERROR, com.fyber.inneractive.sdk.flow.g.EMPTY_FINAL_HTML);
d.InterfaceC0257d interfaceC0257d2 = dVar3.f12720f;
if (interfaceC0257d2 != null) {
interfaceC0257d2.a(dVar3, inneractiveInfrastructureError2);
}
dVar3.b(true);
}
c();
this.f12745l.f12729o = null;
}
}