正在查看: MX Player v1.97.8 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fyber.inneractive.sdk.web;
import android.text.TextUtils;
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.f;
import com.iab.omid.library.fyber.ScriptInjector;
public final class e extends com.fyber.inneractive.sdk.util.b<Void, Void, String> {
public final String g;
public final boolean h;
public final String i;
public final String j;
public final String k;
public final f l;
public e(g0 g0Var, String str, boolean z, String str2, String str3, String str4) {
this.l = g0Var;
this.g = str;
this.h = z;
this.i = str2;
this.j = str3;
this.k = str4;
}
@Override
public final String a(Void[] voidArr) {
long currentTimeMillis = System.currentTimeMillis();
String str = this.g;
if (this.h) {
f fVar = this.l;
String str2 = this.i;
String str3 = this.j;
g0 g0Var = (g0) fVar;
g0Var.getClass();
StringBuilder sb = new StringBuilder("<html><title>DigitalTurbine Ad</title><head><link rel=\"icon\" href=\"data:,\">");
boolean z = false;
if (TextUtils.isEmpty(str)) {
IAlog.a("loadHtml called with an empty HTML!", new Object[0]);
} else {
if (g0Var.F) {
String c = com.fyber.inneractive.sdk.util.o.c("ia_js_load_monitor.txt");
if (!TextUtils.isEmpty(c)) {
sb.append(c);
}
}
sb.append("<script> window.iaPreCachedAd = true; </script>");
IAConfigManager iAConfigManager = IAConfigManager.L;
boolean a = iAConfigManager.t.b.a(false, "use_js_inline");
if (!a || iAConfigManager.F.b == null) {
sb.append("<script src=\"https://cdn2.inner-active.mobi/client/ia-js-tags/dt-mraid-video-controller.js\"></script>");
} else {
sb.append("<script type=\"text/javascript\">");
sb.append(iAConfigManager.F.b);
sb.append("</script>");
}
if (!TextUtils.isEmpty(str2)) {
sb.append(str2);
}
sb.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)) {
sb.append(str3);
}
sb.append("</style><body id=\"iaBody\">");
if (g0Var.B && g0Var.p()) {
if (!a || iAConfigManager.F.c == null) {
sb.append("<link rel=\"stylesheet\" href=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.css\">");
} else {
sb.append("<style type=\"text/css\">");
sb.append(iAConfigManager.F.c);
sb.append("</style>");
}
if (!a || iAConfigManager.F.d == null) {
sb.append("<script src=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.js\"></script>");
} else {
sb.append("<script type=\"text/javascript\">");
sb.append(iAConfigManager.F.d);
sb.append("</script>");
}
}
String c2 = com.fyber.inneractive.sdk.util.o.c("ia_mraid_bridge.txt");
if (!TextUtils.isEmpty(c2)) {
i7.e(sb, "<div id='iaScriptBr' style='display:none;'>", c2, "</div>");
if (IAlog.a >= 2) {
sb.append("<script type=\"text/javascript\">window.mraidbridge.loggingEnabled = true;</script>");
}
}
sb.append(str);
sb.append("</body></html>");
if (g0Var.I != null) {
com.fyber.inneractive.sdk.flow.q qVar = g0Var.s;
if (qVar != null) {
com.fyber.inneractive.sdk.response.e d = qVar.d();
if (d != null && d.H) {
z = true;
}
com.fyber.inneractive.sdk.measurement.a aVar = g0Var.I;
String sb2 = sb.toString();
com.fyber.inneractive.sdk.measurement.b bVar = (com.fyber.inneractive.sdk.measurement.b) aVar;
if (z) {
StringBuilder sb3 = new StringBuilder();
if (!TextUtils.isEmpty(bVar.c)) {
sb3.append(bVar.c);
}
if (!TextUtils.isEmpty(bVar.d)) {
sb3.append(bVar.d);
}
sb2 = ScriptInjector.injectScriptContentIntoHtml(sb3.toString(), sb2);
}
str = !TextUtils.isEmpty(bVar.b) ? ScriptInjector.injectScriptContentIntoHtml(bVar.b, sb2) : sb2;
}
} else {
str = sb.toString();
}
}
str = null;
}
f fVar2 = this.l;
fVar2.getClass();
IAlog.a("%sbuild html string took %d msec", IAlog.a(fVar2), Long.valueOf(System.currentTimeMillis() - currentTimeMillis));
return str;
}
@Override
public final void a(String str) {
String str2 = str;
String str3 = com.fyber.inneractive.sdk.util.s.a() ? "http://" : "https://";
if (!TextUtils.isEmpty(str2) && !a()) {
if (!TextUtils.isEmpty(this.k)) {
f fVar = this.l;
StringBuilder a = lg.a(str3);
a.append(this.k);
fVar.p = a.toString();
} else {
this.l.p = str3.concat("wv.inner-active.mobi/");
}
if (this.f) {
return;
}
f fVar2 = this.l;
h hVar = fVar2.b;
if (hVar != null) {
hVar.loadDataWithBaseURL(fVar2.p, str2, "text/html", "utf-8", null);
this.l.q = str2;
} else {
InneractiveInfrastructureError inneractiveInfrastructureError = new InneractiveInfrastructureError(InneractiveErrorCode.SDK_INTERNAL_ERROR, com.fyber.inneractive.sdk.flow.g.COULD_NOT_LOAD_TO_WEBVIEW);
f.b bVar = fVar2.f;
if (bVar != null) {
bVar.a(inneractiveInfrastructureError);
}
fVar2.b(true);
}
} else if (!a()) {
f fVar3 = this.l;
InneractiveInfrastructureError inneractiveInfrastructureError2 = new InneractiveInfrastructureError(InneractiveErrorCode.SDK_INTERNAL_ERROR, com.fyber.inneractive.sdk.flow.g.EMPTY_FINAL_HTML);
f.b bVar2 = fVar3.f;
if (bVar2 != null) {
bVar2.a(inneractiveInfrastructureError2);
}
fVar3.b(true);
}
b();
this.l.o = null;
}
}