正在查看: Jurassic World v1.83.4 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Jurassic World v1.83.4 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.applovin.impl.adview;
import android.content.Context;
import android.net.Uri;
import android.view.MotionEvent;
import android.view.View;
import android.webkit.WebSettings;
import com.applovin.impl.aq;
import com.applovin.impl.dq;
import com.applovin.impl.f0;
import com.applovin.impl.iq;
import com.applovin.impl.j3;
import com.applovin.impl.pi;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sj;
import com.applovin.impl.tr;
import com.applovin.impl.yp;
import com.applovin.impl.z3;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class b extends j3 {
private final com.applovin.impl.sdk.n c;
private final com.applovin.impl.sdk.j d;
private com.applovin.impl.sdk.ad.b f;
private boolean g;
private boolean h;
private final List i;
private final Object j;
public b(com.applovin.impl.sdk.j jVar, Context context) {
super(context);
this.i = new ArrayList();
this.j = new Object();
if (jVar == null) {
throw new IllegalArgumentException("No sdk specified.");
}
this.d = jVar;
this.c = jVar.J();
setBackgroundColor(0);
WebSettings settings = getSettings();
settings.setSupportMultipleWindows(false);
settings.setJavaScriptEnabled(true);
setVerticalScrollBarEnabled(false);
setHorizontalScrollBarEnabled(false);
setScrollBarStyle(33554432);
if (z3.k() && ((Boolean) jVar.a(sj.P5)).booleanValue()) {
setWebViewRenderProcessClient(new d(jVar).a());
}
setOnTouchListener(new View.OnTouchListener() {
@Override
public final boolean onTouch(View view, MotionEvent motionEvent) {
boolean a;
a = b.a(view, motionEvent);
return a;
}
});
setOnLongClickListener(new View.OnLongClickListener() {
@Override
public final boolean onLongClick(View view) {
boolean a;
a = b.this.a(view);
return a;
}
});
}
private void b() {
synchronized (this.j) {
Iterator it = this.i.iterator();
while (it.hasNext()) {
tr.a(this, (String) it.next(), "AdWebView", this.d);
}
this.i.clear();
}
}
@Override
public void computeScroll() {
}
@Override
public void destroy() {
this.g = true;
this.h = false;
super.destroy();
}
com.applovin.impl.sdk.ad.b getCurrentAd() {
return this.f;
}
@Override
protected void onScrollChanged(int i, int i2, int i3, int i4) {
}
@Override
public void scrollTo(int i, int i2) {
}
public void setAdHtmlLoaded(boolean z) {
this.h = z;
if (z && ((Boolean) this.d.a(sj.j6)).booleanValue()) {
b();
}
}
private void a(String str, String str2, String str3, com.applovin.impl.sdk.j jVar, aq aqVar) {
String a = a(str3, str);
if (StringUtils.isValidString(a)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering webview for VAST ad with resourceContents : " + a);
}
loadDataWithBaseURL(str2, a, "text/html", null, "");
return;
}
String a2 = a((String) jVar.a(sj.L4), str);
if (StringUtils.isValidString(a2)) {
if (aqVar.z1() && aqVar.isOpenMeasurementEnabled()) {
a2 = jVar.W().a(a2);
}
String str4 = a2;
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering webview for VAST ad with resourceContents : " + str4);
}
loadDataWithBaseURL(str2, str4, "text/html", null, "");
return;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering webview for VAST ad with resourceURL : " + str);
}
loadUrl(str);
}
public static boolean a(View view, MotionEvent motionEvent) {
if (view.hasFocus()) {
return false;
}
view.requestFocus();
return false;
}
public boolean a(View view) {
if (!com.applovin.impl.sdk.n.a()) {
return true;
}
this.c.a("AdWebView", "Received a LongClick event.");
return true;
}
public void a(c cVar) {
if (((Boolean) this.d.a(sj.F1)).booleanValue()) {
loadUrl("about:blank");
clearView();
}
setWebViewClient(cVar != null ? cVar : new pi());
setWebChromeClient(new f0(cVar != null ? cVar.c() : null, this.d));
synchronized (this.i) {
this.i.clear();
}
onResume();
}
public void a(com.applovin.impl.sdk.ad.b bVar) {
if (!this.g) {
this.f = bVar;
try {
applySettings(bVar);
if (yp.a(bVar.getSize())) {
setVisibility(0);
}
if (bVar instanceof com.applovin.impl.sdk.ad.a) {
loadDataWithBaseURL(bVar.h(), ((com.applovin.impl.sdk.ad.a) bVar).h1(), "text/html", null, "");
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "AppLovinAd rendered");
return;
}
return;
}
if (bVar instanceof aq) {
aq aqVar = (aq) bVar;
dq h1 = aqVar.h1();
if (h1 != null) {
iq d = h1.d();
Uri b = d.b();
String uri = b != null ? b.toString() : "";
String a = d.a();
String j1 = aqVar.j1();
if (!StringUtils.isValidString(uri) && !StringUtils.isValidString(a)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.b("AdWebView", "Unable to load companion ad. No resources provided.");
return;
}
return;
}
if (d.c() == iq.a.STATIC) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering WebView for static VAST ad");
}
String a2 = a((String) this.d.a(sj.K4), uri);
if (aqVar.z1() && aqVar.isOpenMeasurementEnabled() && aqVar.A1()) {
a2 = this.d.W().a(a2);
}
loadDataWithBaseURL(bVar.h(), a2, "text/html", null, "");
return;
}
if (d.c() == iq.a.HTML) {
if (StringUtils.isValidString(a)) {
String a3 = a(j1, a);
String str = StringUtils.isValidString(a3) ? a3 : a;
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering WebView for HTML VAST ad with resourceContents: " + str);
}
loadDataWithBaseURL(bVar.h(), str, "text/html", null, "");
return;
}
if (StringUtils.isValidString(uri)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Preparing to load HTML VAST ad resourceUri");
}
a(uri, bVar.h(), j1, this.d, aqVar);
return;
}
return;
}
if (d.c() == iq.a.IFRAME) {
if (StringUtils.isValidString(uri)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Preparing to load iFrame VAST ad resourceUri");
}
a(uri, bVar.h(), j1, this.d, aqVar);
return;
} else {
if (StringUtils.isValidString(a)) {
String a4 = a(j1, a);
String str2 = StringUtils.isValidString(a4) ? a4 : a;
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering WebView for iFrame VAST ad with resourceContents: " + str2);
}
loadDataWithBaseURL(bVar.h(), str2, "text/html", null, "");
return;
}
return;
}
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b("AdWebView", "Failed to render VAST companion ad of invalid type");
return;
}
return;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "No companion ad provided.");
return;
}
return;
}
return;
} catch (Throwable th) {
throw new RuntimeException("Unable to render AppLovin ad (" + (bVar != null ? String.valueOf(bVar.getAdIdNumber()) : "null") + ") - " + th);
}
}
com.applovin.impl.sdk.n.h("AdWebView", "Ad can not be loaded in a destroyed webview");
}
public void a(String str) {
if (((Boolean) this.d.a(sj.j6)).booleanValue()) {
if (this.h) {
tr.a(this, str, "AdWebView", this.d);
return;
}
synchronized (this.i) {
this.i.add(str);
}
return;
}
tr.a(this, str, "AdWebView", this.d);
}
private String a(String str, String str2) {
if (StringUtils.isValidString(str)) {
return str.replace("{SOURCE}", str2);
}
return null;
}
}