恐 怖 老 奶 奶1破 解 版 中 文 版 无 敌 版 v4.15.00版本的 MD5 值为:2c4218ea002b12a6cce81f33a9f0144d
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.anythink.expressad.advanced.c;
import android.net.http.SslError;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.webkit.SslErrorHandler;
import android.webkit.WebView;
import com.anythink.expressad.advanced.js.NativeAdvancedJSBridgeImpl;
import com.anythink.expressad.advanced.js.NativeAdvancedJsUtils;
import com.anythink.expressad.advanced.view.ATNativeAdvancedView;
import com.anythink.expressad.advanced.view.ATNativeAdvancedWebview;
import com.anythink.expressad.foundation.h.o;
import com.anythink.expressad.videocommon.b.e;
import com.anythink.expressad.videocommon.b.i;
import java.io.File;
import java.util.ArrayList;
public final class c {
public static String f3839a = "ResManager";
public static int f3840b = 1;
public interface a {
void a();
void b();
}
public static com.anythink.expressad.foundation.d.c a(com.anythink.expressad.foundation.d.c cVar) {
if (TextUtils.isEmpty(cVar.c()) && (TextUtils.isEmpty(cVar.d()) || !cVar.d().contains("<MBTPLMARK>"))) {
cVar.a(false);
cVar.b(true);
} else {
cVar.a(true);
cVar.b(false);
}
return cVar;
}
public static boolean a(ATNativeAdvancedView aTNativeAdvancedView, com.anythink.expressad.foundation.d.c cVar, String str, String str2, int i2, a aVar) {
boolean z;
boolean z2;
boolean z3 = false;
if (cVar != null) {
aTNativeAdvancedView.clearResState();
if (TextUtils.isEmpty(cVar.S())) {
z2 = true;
} else {
z2 = e.a().a(com.anythink.expressad.foundation.g.a.aX, str2, cVar.A());
}
aTNativeAdvancedView.setVideoReady(true);
boolean z4 = z2;
if (!TextUtils.isEmpty(cVar.I()) && !aTNativeAdvancedView.isEndCardReady() && !TextUtils.isEmpty(i.a().c(cVar.I()))) {
aTNativeAdvancedView.setEndCardReady(true);
}
if (TextUtils.isEmpty(cVar.c()) || aTNativeAdvancedView.isH5Ready()) {
z = false;
} else {
String c2 = i.a().c(cVar.c());
if (TextUtils.isEmpty(c2)) {
z = false;
z4 = false;
} else if (com.anythink.expressad.advanced.a.a.b(cVar.Z())) {
aTNativeAdvancedView.setH5Ready(true);
z = false;
z4 = true;
} else {
a(aTNativeAdvancedView, c2, cVar, str, str2, i2, aVar);
z = true;
}
}
if (!TextUtils.isEmpty(cVar.c()) || TextUtils.isEmpty(cVar.d()) || aTNativeAdvancedView.isH5Ready()) {
z3 = z4;
} else {
String a2 = a(cVar.d());
if (!TextUtils.isEmpty(a2)) {
if (com.anythink.expressad.advanced.a.a.b(cVar.Z())) {
aTNativeAdvancedView.setH5Ready(true);
if (cVar.H()) {
aTNativeAdvancedView.setVideoReady(true);
}
z3 = true;
} else {
a(aTNativeAdvancedView, a2, cVar, str, str2, i2, aVar);
z3 = z4;
z = true;
}
}
}
} else {
z = false;
}
if (z3 && !z) {
aVar.a();
}
return z3;
}
public static void a(ATNativeAdvancedView aTNativeAdvancedView, String str, com.anythink.expressad.foundation.d.c cVar, String str2, String str3, int i2) {
a(aTNativeAdvancedView, str, cVar, str2, str3, i2, null);
}
public static void a(final ATNativeAdvancedView aTNativeAdvancedView, final String str, final com.anythink.expressad.foundation.d.c cVar, String str2, String str3, int i2, final a aVar) {
if (aTNativeAdvancedView == null || aTNativeAdvancedView.getAdvancedNativeWebview() == null) {
return;
}
NativeAdvancedJSBridgeImpl nativeAdvancedJSBridgeImpl = new NativeAdvancedJSBridgeImpl(aTNativeAdvancedView.getContext(), str2, str3);
ArrayList arrayList = new ArrayList();
arrayList.add(cVar);
nativeAdvancedJSBridgeImpl.setCampaignList(arrayList);
nativeAdvancedJSBridgeImpl.setAllowSkip(i2);
aTNativeAdvancedView.setAdvancedNativeJSBridgeImpl(nativeAdvancedJSBridgeImpl);
final ATNativeAdvancedWebview advancedNativeWebview = aTNativeAdvancedView.getAdvancedNativeWebview();
System.currentTimeMillis();
advancedNativeWebview.setWebViewListener(new com.anythink.expressad.atsignalcommon.a.b() {
@Override
public final void onPageFinished(WebView webView, String str4) {
super.onPageFinished(webView, str4);
if (!com.anythink.expressad.foundation.d.c.this.s()) {
com.anythink.expressad.advanced.a.a.a(com.anythink.expressad.foundation.d.c.this.Z());
aTNativeAdvancedView.setH5Ready(true);
o.a(com.anythink.expressad.atsignalcommon.a.b.f3918d, "======渲染成功:finish");
}
NativeAdvancedJsUtils.fireOnJSBridgeConnected(webView);
}
@Override
public final void onReceivedError(WebView webView, int i3, String str4, String str5) {
super.onReceivedError(webView, i3, str4, str5);
aTNativeAdvancedView.setH5Ready(false);
o.a(com.anythink.expressad.atsignalcommon.a.b.f3918d, "======渲染失败");
a aVar2 = aVar;
if (aVar2 != null) {
aVar2.b();
}
}
@Override
public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
super.onReceivedSslError(webView, sslErrorHandler, sslError);
aTNativeAdvancedView.setH5Ready(false);
o.a(com.anythink.expressad.atsignalcommon.a.b.f3918d, "======渲染失败");
a aVar2 = aVar;
if (aVar2 != null) {
aVar2.b();
}
}
@Override
public final void readyState(WebView webView, int i3) {
super.readyState(webView, i3);
if (i3 == 1) {
com.anythink.expressad.advanced.a.a.a(com.anythink.expressad.foundation.d.c.this.Z());
aTNativeAdvancedView.setH5Ready(true);
o.a(com.anythink.expressad.atsignalcommon.a.b.f3918d, "======渲染成功:ready");
} else {
aTNativeAdvancedView.setH5Ready(false);
o.a(com.anythink.expressad.atsignalcommon.a.b.f3918d, "======渲染失败");
}
a aVar2 = aVar;
if (aVar2 != null) {
aVar2.a();
}
}
});
if (!advancedNativeWebview.isDestroyed()) {
o.a(f3839a, "======开始渲染:".concat(String.valueOf(str)));
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public final void run() {
ATNativeAdvancedWebview.this.loadUrl(str);
}
});
return;
}
aTNativeAdvancedView.setH5Ready(false);
}
public static String a(String str) {
try {
File file = new File(str);
if (file.exists()) {
return "file:///" + file.getAbsolutePath();
}
return "";
} catch (Throwable th) {
try {
throw th;
} catch (Exception e2) {
e2.getMessage();
return "";
}
}
}
public static boolean a(ATNativeAdvancedView aTNativeAdvancedView, com.anythink.expressad.foundation.d.c cVar) {
boolean z = false;
if (aTNativeAdvancedView == null) {
o.d(f3839a, "mbAdvancedNativeView is null");
return false;
}
boolean z2 = true;
if (!TextUtils.isEmpty(cVar.S())) {
z2 = aTNativeAdvancedView.isVideoReady();
o.d(f3839a, "======isReady isVideoReady:".concat(String.valueOf(z2)));
}
if (z2 && !TextUtils.isEmpty(cVar.c())) {
z2 = com.anythink.expressad.advanced.a.a.b(cVar.Z());
String str = f3839a;
o.d(str, "======isReady getAdZip:" + z2 + "---requestId:" + cVar.Z());
}
if (z2 && TextUtils.isEmpty(cVar.c()) && !TextUtils.isEmpty(cVar.d())) {
z2 = com.anythink.expressad.advanced.a.a.b(cVar.Z());
o.d(f3839a, "======isReady getAdHtml:".concat(String.valueOf(z2)));
}
if (TextUtils.isEmpty(cVar.c()) && TextUtils.isEmpty(cVar.d())) {
o.d(f3839a, "======isReady getAdHtml getAdZip all are empty");
} else {
z = z2;
}
if (!z || TextUtils.isEmpty(cVar.I())) {
return z;
}
boolean isEndCardReady = aTNativeAdvancedView.isEndCardReady();
o.d(f3839a, "======isReady isEndCardReady:".concat(String.valueOf(isEndCardReady)));
return isEndCardReady;
}
}