Idle Egg Factory v2.1.5版本的 MD5 值为:7d2ba6677008ca521af0101bb927d72a
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.web;
import android.content.Context;
import android.graphics.Rect;
import android.os.AsyncTask;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
import com.fyber.inneractive.sdk.ui.IAmraidWebViewController;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.d0;
import com.fyber.inneractive.sdk.util.f0;
import com.fyber.inneractive.sdk.util.p0;
import com.fyber.inneractive.sdk.web.c;
import com.fyber.inneractive.sdk.web.d;
import com.fyber.inneractive.sdk.web.s;
import com.fyber.inneractive.sdk.web.y;
import com.iab.omid.library.fyber.ScriptInjector;
import com.safedk.android.internal.partials.FyberNetworkBridge;
public abstract class a<L extends y> implements com.fyber.inneractive.sdk.web.b, f0.e, c.a, s.a {
public com.fyber.inneractive.sdk.web.c b;
public m c;
public n d;
public boolean e;
public f f;
public L g;
public boolean j;
public boolean k;
public e l;
public Runnable o;
public long p;
public long q;
public AsyncTask<Void, Void, String> r;
public String s;
public String t;
public InneractiveAdRequest u;
public com.fyber.inneractive.sdk.flow.m v;
public boolean f4325a = false;
public float h = 0.0f;
public Rect i = new Rect();
public final Runnable n = new RunnableC0215a();
public final Runnable m = new b();
public class RunnableC0215a implements Runnable {
public RunnableC0215a() {
}
@Override
public void run() {
IAlog.d("Removing clicked state after timeout", new Object[0]);
a.this.d();
}
}
public class b implements Runnable {
public b() {
}
@Override
public void run() {
a aVar = a.this;
if (aVar.k) {
IAlog.a("No user web action detected for : %s blocking.", aVar.l);
a aVar2 = a.this;
String c = aVar2.l.c();
String a2 = a.this.l.a();
L l = aVar2.g;
if (l != null) {
l.a(c, a2);
}
int i = IAlog.f4273a;
IAlog.a(1, null, "AD_AUTO_CLICK_DETECTED", new Object[0]);
a.this.l.b();
a.this.d();
} else {
IAlog.a("User web action detected for: %s", aVar.l);
a.this.l.d();
}
a.this.l = null;
}
}
public class c extends AsyncTask<Void, Void, String> {
public final String f4328a;
public final String b;
public final String c;
public final String d;
public c(String str, String str2, String str3, String str4) {
this.f4328a = str;
this.b = str2;
this.c = str3;
this.d = str4;
}
@Override
public String doInBackground(Void[] voidArr) {
long currentTimeMillis = System.currentTimeMillis();
a aVar = a.this;
String str = this.f4328a;
String str2 = this.b;
String str3 = this.c;
IAmraidWebViewController iAmraidWebViewController = (IAmraidWebViewController) aVar;
iAmraidWebViewController.getClass();
System.currentTimeMillis();
StringBuilder sb = new StringBuilder();
String str4 = null;
if (TextUtils.isEmpty(str)) {
IAlog.a("loadHtml called with an empty HTML!", new Object[0]);
} else {
sb.append("<html><head>");
sb.append("<link rel=\"icon\" href=\"data:,\">");
if (iAmraidWebViewController.Y) {
String c = com.fyber.inneractive.sdk.util.n.c("ia_js_load_monitor.txt");
if (!TextUtils.isEmpty(c)) {
sb.append(c);
}
}
sb.append("<script> window.iaPreCachedAd = true; </script>");
IAConfigManager iAConfigManager = IAConfigManager.N;
boolean a2 = iAConfigManager.v.b.a("use_js_inline", false);
if (a2 && iAConfigManager.H.b != null) {
sb.append("<script type=\"text/javascript\">");
sb.append(iAConfigManager.H.b);
sb.append("</script>");
} else {
sb.append("<script src=\"https://cdn2.inner-active.mobi/client/ia-js-tags/MRAID-VIDEO.js\"></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>");
sb.append("</head>");
sb.append("<style>body{text-align:center !important;margin:0;padding:0;}");
if (!TextUtils.isEmpty(str3)) {
sb.append(str3);
}
sb.append("</style>");
sb.append("<body id=\"iaBody\">");
if (iAmraidWebViewController.c0) {
d.g gVar = iAmraidWebViewController.B;
if (gVar != null && gVar.equals(d.g.INTERSTITIAL)) {
if (a2 && iAConfigManager.H.c != null) {
sb.append("<style type=\"text/css\">");
sb.append(iAConfigManager.H.c);
sb.append("</style>");
} else {
sb.append("<link rel=\"stylesheet\" href=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.css\">");
}
if (a2 && iAConfigManager.H.d != null) {
sb.append("<script type=\"text/javascript\">");
sb.append(iAConfigManager.H.d);
sb.append("</script>");
} else {
sb.append("<script src=\"https://cdn2.inner-active.mobi/IA-JSTag/Production/centering_v1.js\"></script>");
}
}
}
String c2 = com.fyber.inneractive.sdk.util.n.c("ia_mraid_bridge.txt");
if (!TextUtils.isEmpty(c2)) {
sb.append("<div id='iaScriptBr' style='display:none;'>");
sb.append(c2);
sb.append("</div>");
if (IAlog.f4273a >= 2) {
sb.append("<script type=\"text/javascript\">window.mraidbridge.loggingEnabled = true;</script>");
}
}
sb.append(str);
sb.append("</body></html>");
com.fyber.inneractive.sdk.measurement.a aVar2 = iAmraidWebViewController.w;
if (aVar2 != null) {
str4 = sb.toString();
com.fyber.inneractive.sdk.measurement.d dVar = (com.fyber.inneractive.sdk.measurement.d) aVar2;
if (!TextUtils.isEmpty(dVar.b)) {
str4 = ScriptInjector.injectScriptContentIntoHtml(dVar.b, str4);
}
} else {
str4 = sb.toString();
}
}
a aVar3 = a.this;
aVar3.getClass();
IAlog.a("%sbuild html string took %d msec", IAlog.a(aVar3), Long.valueOf(System.currentTimeMillis() - currentTimeMillis));
return str4;
}
@Override
public void onPostExecute(String str) {
String str2 = str;
String str3 = com.fyber.inneractive.sdk.util.r.a() ? "http://" : "https://";
if (!TextUtils.isEmpty(str2) && !isCancelled()) {
a.this.r = null;
if (!TextUtils.isEmpty(this.d)) {
a.this.s = str3 + this.d;
} else {
a.this.s = str3 + "wv.inner-active.mobi/";
}
a aVar = a.this;
com.fyber.inneractive.sdk.web.c cVar = aVar.b;
if (cVar != null) {
FyberNetworkBridge.webviewLoadDataWithBaseURL(cVar, aVar.s, str2, "text/html", "utf-8", null);
a.this.t = str2;
return;
}
InneractiveErrorCode inneractiveErrorCode = InneractiveErrorCode.SDK_INTERNAL_ERROR;
f fVar = aVar.f;
if (fVar != null) {
fVar.a(aVar, inneractiveErrorCode);
}
aVar.a(true);
return;
}
if (isCancelled()) {
return;
}
a aVar2 = a.this;
InneractiveErrorCode inneractiveErrorCode2 = InneractiveErrorCode.SDK_INTERNAL_ERROR;
f fVar2 = aVar2.f;
if (fVar2 != null) {
fVar2.a(aVar2, inneractiveErrorCode2);
}
aVar2.a(true);
}
}
public class d implements Runnable {
public d() {
}
@Override
public void run() {
a aVar = a.this;
AsyncTask<Void, Void, String> asyncTask = aVar.r;
if (asyncTask != null) {
asyncTask.cancel(true);
aVar.r = null;
}
IAlog.a("%sonLoadTimeout after %d msec", IAlog.a(aVar), Long.valueOf(aVar.p));
aVar.a(InneractiveErrorCode.LOAD_TIMEOUT);
}
}
public interface e {
String a();
void b();
String c();
void d();
}
public interface f {
void a(a aVar);
void a(a aVar, InneractiveErrorCode inneractiveErrorCode);
}
public class g implements e {
public String f4330a;
public p0 b;
public g(String str, p0 p0Var) {
this.b = p0Var;
this.f4330a = str;
}
@Override
public String a() {
return null;
}
@Override
public void b() {
}
@Override
public String c() {
return "open";
}
@Override
public void d() {
a aVar = a.this;
String str = this.f4330a;
p0 p0Var = this.b;
L l = aVar.g;
if (l != null) {
d0.c cVar = l.a(str, p0Var).f4280a;
}
}
public String toString() {
return "action: open url: " + this.f4330a;
}
}
public a(Context context, boolean z, boolean z2) {
this.k = z;
this.b = a(context);
this.e = z2;
}
public void a(String str, String str2, String str3, String str4, f fVar, long j) {
this.f = fVar;
this.p = j;
try {
b();
c cVar = new c(str2, str3, str4, str);
this.r = cVar;
cVar.executeOnExecutor(com.fyber.inneractive.sdk.util.o.f4303a, new Void[0]);
e();
} catch (Throwable unused) {
a(InneractiveErrorCode.SDK_INTERNAL_ERROR);
}
}
public abstract void a(boolean z);
public abstract void b();
public void c() {
this.b.setTapListener(this);
}
public void d() {
IAlog.a("IAWebViewController resetClick()", new Object[0]);
Runnable runnable = this.n;
if (runnable != null) {
com.fyber.inneractive.sdk.util.o.b.removeCallbacks(runnable);
}
Runnable runnable2 = this.m;
if (runnable2 != null) {
com.fyber.inneractive.sdk.util.o.b.removeCallbacks(runnable2);
}
this.j = false;
}
public final void e() {
IAlog.a("IAWebViewController: Starting load timeout with %d", Long.valueOf(this.p));
this.q = System.currentTimeMillis();
d dVar = new d();
this.o = dVar;
com.fyber.inneractive.sdk.util.o.b.postDelayed(dVar, this.p);
}
public void setAdContent(com.fyber.inneractive.sdk.flow.m mVar) {
this.v = mVar;
}
public void setAdRequest(InneractiveAdRequest inneractiveAdRequest) {
this.u = inneractiveAdRequest;
}
public void setListener(L l) {
this.g = l;
}
public com.fyber.inneractive.sdk.web.c a() {
return this.b;
}
public void a(ViewGroup viewGroup, ViewGroup.LayoutParams layoutParams) {
com.fyber.inneractive.sdk.web.c cVar = this.b;
if (cVar != null) {
if (layoutParams != null) {
viewGroup.addView(cVar, layoutParams);
} else {
viewGroup.addView(cVar);
}
f0.d.f4286a.a(viewGroup.getContext(), this.b, this);
this.b.setTapListener(this);
}
}
public com.fyber.inneractive.sdk.web.c a(Context context) {
return new com.fyber.inneractive.sdk.web.c(context);
}
public final void a(InneractiveErrorCode inneractiveErrorCode) {
f fVar = this.f;
if (fVar != null) {
fVar.a(this, inneractiveErrorCode);
}
a(true);
}
@Override
public void a(View view, float f2, Rect rect) {
if (f2 == this.h && rect.equals(this.i)) {
return;
}
this.h = f2;
this.i.set(rect);
com.fyber.inneractive.sdk.web.c cVar = this.b;
if (cVar != null) {
cVar.a();
}
}
public boolean a(e eVar) {
IAlog.d("IAWebViewController Web view click detected", new Object[0]);
if (this.j) {
IAlog.d("IAWebViewController Native click detected before web view request. Processing click", new Object[0]);
eVar.d();
d();
return true;
}
if (this.k) {
IAlog.d("IAWebViewController Native click was not detected yet. Caching click request and waiting", new Object[0]);
Runnable runnable = this.m;
if (runnable != null) {
com.fyber.inneractive.sdk.util.o.b.removeCallbacks(runnable);
}
this.l = null;
this.l = eVar;
if (this.m != null) {
com.fyber.inneractive.sdk.util.o.b.postDelayed(this.m, IAConfigManager.N.v.b.a("click_timeout", 1000, 1000));
}
} else {
Runnable runnable2 = this.m;
if (runnable2 != null) {
com.fyber.inneractive.sdk.util.o.b.removeCallbacks(runnable2);
}
this.l = null;
eVar.d();
}
return false;
}
}