- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
1665 lines
76 KiB
Java
1665 lines
76 KiB
Java
package com.mbridge.msdk.reward.adapter;
|
||
|
||
import android.content.Context;
|
||
import android.graphics.Bitmap;
|
||
import android.net.http.SslError;
|
||
import android.os.Bundle;
|
||
import android.os.Handler;
|
||
import android.os.HandlerThread;
|
||
import android.os.Looper;
|
||
import android.os.Message;
|
||
import android.text.TextUtils;
|
||
import android.util.Base64;
|
||
import android.view.View;
|
||
import android.webkit.SslErrorHandler;
|
||
import android.webkit.WebView;
|
||
import com.ironsource.x8;
|
||
import com.mbridge.msdk.MBridgeConstans;
|
||
import com.mbridge.msdk.foundation.download.DownloadError;
|
||
import com.mbridge.msdk.foundation.download.download.H5DownLoadManager;
|
||
import com.mbridge.msdk.foundation.download.download.HTMLResourceManager;
|
||
import com.mbridge.msdk.foundation.download.download.ResDownloadCheckManager;
|
||
import com.mbridge.msdk.foundation.download.download.ResourceManager;
|
||
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
||
import com.mbridge.msdk.foundation.entity.n;
|
||
import com.mbridge.msdk.foundation.tools.ab;
|
||
import com.mbridge.msdk.foundation.tools.af;
|
||
import com.mbridge.msdk.foundation.tools.ak;
|
||
import com.mbridge.msdk.foundation.tools.o;
|
||
import com.mbridge.msdk.mbsignalcommon.windvane.WindVaneWebView;
|
||
import com.mbridge.msdk.out.MBridgeIds;
|
||
import com.mbridge.msdk.video.bt.module.MBridgeBTContainer;
|
||
import com.mbridge.msdk.videocommon.a;
|
||
import java.util.ArrayList;
|
||
import java.util.LinkedHashMap;
|
||
import java.util.List;
|
||
import java.util.concurrent.ConcurrentHashMap;
|
||
import java.util.concurrent.CopyOnWriteArrayList;
|
||
import org.json.JSONObject;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class b {
|
||
private static ConcurrentHashMap<String, a> b;
|
||
private final h a;
|
||
private boolean c;
|
||
private final String d;
|
||
private final String e;
|
||
private final String f;
|
||
private volatile List<WindVaneWebView> g;
|
||
|
||
public interface c {
|
||
void a(String str, String str2, String str3, CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList);
|
||
|
||
void a(CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList, com.mbridge.msdk.foundation.c.b bVar);
|
||
}
|
||
|
||
public interface i {
|
||
void a(String str, String str2, com.mbridge.msdk.foundation.c.b bVar);
|
||
|
||
void a(String str, String str2, String str3, String str4);
|
||
}
|
||
|
||
public interface j {
|
||
void a(String str, String str2, String str3, a.C0246a c0246a, com.mbridge.msdk.foundation.c.b bVar);
|
||
|
||
void a(String str, String str2, String str3, String str4, String str5, a.C0246a c0246a);
|
||
}
|
||
|
||
public static final class m {
|
||
private static final b a = new b();
|
||
}
|
||
|
||
private b() {
|
||
this.d = CampaignEx.JSON_KEY_LOCAL_REQUEST_ID;
|
||
this.e = "down_type";
|
||
this.f = "h3c";
|
||
this.g = new ArrayList(6);
|
||
HandlerThread handlerThread = new HandlerThread("mb-reward-load-thread");
|
||
b = new ConcurrentHashMap<>();
|
||
handlerThread.start();
|
||
this.a = new h(handlerThread.getLooper());
|
||
}
|
||
|
||
public static b a() {
|
||
return m.a;
|
||
}
|
||
|
||
public final synchronized void a(final Context context, boolean z, int i2, boolean z2, final int i3, final String str, final String str2, final String str3, final CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList, c cVar, final i iVar) {
|
||
String str4 = str2 + "_" + str3;
|
||
b.put(str4, new a(z, z2, i2, copyOnWriteArrayList.size(), str2, str3, i3, copyOnWriteArrayList));
|
||
this.a.a(str, str2, str3, cVar);
|
||
this.a.a(context);
|
||
this.a.a(str4, copyOnWriteArrayList);
|
||
this.a.post(new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.1
|
||
/* JADX WARN: Removed duplicated region for block: B:130:0x028f A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||
/* JADX WARN: Removed duplicated region for block: B:137:0x025b A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||
/* JADX WARN: Removed duplicated region for block: B:175:0x0166 */
|
||
/* JADX WARN: Removed duplicated region for block: B:177:0x0170 */
|
||
/* JADX WARN: Removed duplicated region for block: B:35:0x01cd */
|
||
/* JADX WARN: Removed duplicated region for block: B:46:0x0239 */
|
||
/* JADX WARN: Removed duplicated region for block: B:54:0x02bb */
|
||
/* JADX WARN: Removed duplicated region for block: B:76:0x0373 */
|
||
@Override // java.lang.Runnable
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct add '--show-bad-code' argument
|
||
*/
|
||
public final void run() {
|
||
/*
|
||
Method dump skipped, instructions count: 977
|
||
To view this dump add '--comments-level debug' option
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.reward.adapter.b.AnonymousClass1.run():void");
|
||
}
|
||
});
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public void a(final int i2, final CampaignEx campaignEx, String str, String str2) {
|
||
o.a(i2, str, str2, new o.a() { // from class: com.mbridge.msdk.reward.adapter.b.2
|
||
@Override // com.mbridge.msdk.foundation.tools.o.a
|
||
public final void a(String str3, String str4, String str5, String str6, boolean z) {
|
||
if (z) {
|
||
return;
|
||
}
|
||
try {
|
||
n nVar = new n();
|
||
int i3 = i2;
|
||
if (i3 == 0) {
|
||
nVar.e(1);
|
||
nVar.b(1);
|
||
nVar.a("m_download_end");
|
||
} else if (i3 == 1) {
|
||
nVar.e(2);
|
||
nVar.b(1);
|
||
nVar.a("m_download_end");
|
||
} else if (i3 == 2) {
|
||
nVar.e(3);
|
||
nVar.b(1);
|
||
nVar.a("m_download_end");
|
||
nVar.d(campaignEx.isMraid() ? n.a : n.b);
|
||
nVar.o("1");
|
||
}
|
||
nVar.g(campaignEx.getRequestIdNotice());
|
||
nVar.a("url", str3);
|
||
nVar.a("scenes", "1");
|
||
com.mbridge.msdk.foundation.same.report.d.d.a().a(nVar, campaignEx);
|
||
} catch (Exception e2) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e2.getMessage());
|
||
}
|
||
}
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.foundation.tools.o.a
|
||
public final void a(String str3, DownloadError downloadError) {
|
||
String str4 = "";
|
||
if (downloadError != null) {
|
||
try {
|
||
if (downloadError.getException() != null) {
|
||
str4 = downloadError.getException().getMessage();
|
||
}
|
||
} catch (Exception e2) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
e2.printStackTrace();
|
||
return;
|
||
}
|
||
return;
|
||
}
|
||
}
|
||
n nVar = new n();
|
||
int i3 = i2;
|
||
if (i3 == 0) {
|
||
nVar.e(1);
|
||
nVar.b(3);
|
||
nVar.a("m_download_end");
|
||
} else if (i3 == 1) {
|
||
nVar.e(2);
|
||
nVar.b(3);
|
||
nVar.a("m_download_end");
|
||
} else if (i3 == 2) {
|
||
nVar.e(3);
|
||
nVar.b(3);
|
||
nVar.a("m_download_end");
|
||
nVar.d(campaignEx.isMraid() ? n.a : n.b);
|
||
nVar.o("1");
|
||
}
|
||
b.a(nVar, campaignEx);
|
||
nVar.g(campaignEx.getRequestIdNotice());
|
||
nVar.h(str4);
|
||
nVar.a("scenes", "1");
|
||
nVar.a("url", str3);
|
||
com.mbridge.msdk.foundation.same.report.d.d.a().a(nVar, campaignEx);
|
||
}
|
||
}, campaignEx);
|
||
}
|
||
|
||
public final synchronized void a(final Context context, final CampaignEx campaignEx, final String str, final String str2, final String str3, final i iVar) {
|
||
try {
|
||
this.a.a(context);
|
||
if (campaignEx != null) {
|
||
String cMPTEntryUrl = campaignEx.getCMPTEntryUrl();
|
||
if (campaignEx.isDynamicView()) {
|
||
if (ak.a("dyview", cMPTEntryUrl)) {
|
||
a(0, campaignEx, campaignEx.getMof_tplid() + "", cMPTEntryUrl);
|
||
}
|
||
ResDownloadCheckManager.getInstance().setZipDownloadDone(cMPTEntryUrl, true);
|
||
Message obtain = Message.obtain();
|
||
obtain.what = 105;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, str2);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, str);
|
||
bundle.putString("request_id", str3);
|
||
bundle.putString("url", cMPTEntryUrl);
|
||
obtain.setData(bundle);
|
||
this.a.sendMessage(obtain);
|
||
if (iVar != null) {
|
||
iVar.a(str, str2, str3, cMPTEntryUrl);
|
||
}
|
||
return;
|
||
}
|
||
}
|
||
if (campaignEx != null && !TextUtils.isEmpty(campaignEx.getCMPTEntryUrl())) {
|
||
try {
|
||
com.mbridge.msdk.foundation.same.report.d.c a2 = com.mbridge.msdk.foundation.same.report.d.d.a().a(campaignEx.getCurrentLocalRid(), "");
|
||
if (a2 == null) {
|
||
a2 = new com.mbridge.msdk.foundation.same.report.d.c();
|
||
}
|
||
com.mbridge.msdk.foundation.same.report.d.c cVar = a2;
|
||
cVar.a(campaignEx);
|
||
cVar.a(1);
|
||
cVar.c(a(campaignEx));
|
||
H5DownLoadManager.getInstance().downloadH5Res(cVar, campaignEx.getCMPTEntryUrl(), new H5DownLoadManager.ZipDownloadListener() { // from class: com.mbridge.msdk.reward.adapter.b.3
|
||
@Override // com.mbridge.msdk.foundation.download.download.H5DownLoadManager.H5ResDownloadListerInter
|
||
public final void onSuccess(String str4, String str5, boolean z) {
|
||
try {
|
||
af.a("RewardCampaignsResourceManager", "zip btl template download success");
|
||
ResDownloadCheckManager.getInstance().setZipDownloadDone(str4, true);
|
||
Message obtain2 = Message.obtain();
|
||
obtain2.what = 105;
|
||
Bundle bundle2 = new Bundle();
|
||
bundle2.putString(MBridgeConstans.PROPERTIES_UNIT_ID, str2);
|
||
bundle2.putString(MBridgeConstans.PLACEMENT_ID, str);
|
||
bundle2.putString("request_id", str3);
|
||
bundle2.putString("url", str4);
|
||
obtain2.setData(bundle2);
|
||
b.this.a.sendMessage(obtain2);
|
||
i iVar2 = iVar;
|
||
if (iVar2 != null) {
|
||
iVar2.a(str, str2, str3, str4);
|
||
}
|
||
if (z) {
|
||
return;
|
||
}
|
||
b.a(b.this, context, 1, campaignEx, str4, "", str2, str5);
|
||
} catch (Exception e2) {
|
||
ResDownloadCheckManager.getInstance().setZipDownloadDone(str4, false);
|
||
Message obtain3 = Message.obtain();
|
||
obtain3.what = 205;
|
||
Bundle bundle3 = new Bundle();
|
||
bundle3.putString(MBridgeConstans.PROPERTIES_UNIT_ID, str2);
|
||
bundle3.putString(MBridgeConstans.PLACEMENT_ID, str);
|
||
bundle3.putString("request_id", str3);
|
||
bundle3.putString("url", str4);
|
||
obtain3.setData(bundle3);
|
||
b.this.a.sendMessage(obtain3);
|
||
if (iVar != null) {
|
||
try {
|
||
iVar.a(str4, str3, b.b(880005, new MBridgeIds(str, str2, str3), "", e2, null));
|
||
} catch (Exception e3) {
|
||
af.b("RewardCampaignsResourceManager", e3.getMessage());
|
||
}
|
||
}
|
||
b.a(b.this, context, 3, campaignEx, str4, e2.getLocalizedMessage(), str2, str5);
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e2.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
|
||
/* JADX WARN: Removed duplicated region for block: B:19:0x00d7 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||
@Override // com.mbridge.msdk.foundation.download.download.H5DownLoadManager.H5ResDownloadListerInter
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct add '--show-bad-code' argument
|
||
*/
|
||
public final void onFailed(java.lang.String r19, java.lang.String r20) {
|
||
/*
|
||
Method dump skipped, instructions count: 262
|
||
To view this dump add '--comments-level debug' option
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.reward.adapter.b.AnonymousClass3.onFailed(java.lang.String, java.lang.String):void");
|
||
}
|
||
});
|
||
} catch (Exception e2) {
|
||
af.b("RewardCampaignsResourceManager", e2.getLocalizedMessage());
|
||
}
|
||
}
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
|
||
public static final class e implements com.mbridge.msdk.foundation.same.c.c {
|
||
private Handler a;
|
||
private int b;
|
||
private String c;
|
||
private String d;
|
||
private String e;
|
||
private CampaignEx f;
|
||
|
||
public e(Handler handler, int i, String str, String str2, String str3, CampaignEx campaignEx) {
|
||
this.a = handler;
|
||
this.b = i;
|
||
this.d = str;
|
||
this.c = str2;
|
||
this.e = str3;
|
||
this.f = campaignEx;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.foundation.same.c.c
|
||
public final void onSuccessLoad(Bitmap bitmap, String str) {
|
||
ResDownloadCheckManager.getInstance().setImageDownloadDone(str, true);
|
||
Message obtain = Message.obtain();
|
||
obtain.what = this.b == 0 ? 102 : 104;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle.putString("request_id", this.e);
|
||
obtain.setData(bundle);
|
||
this.a.sendMessage(obtain);
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.foundation.same.c.c
|
||
public final void onFailedLoad(final String str, String str2) {
|
||
Message obtain = Message.obtain();
|
||
obtain.what = this.b == 0 ? 202 : 204;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle.putString("request_id", this.e);
|
||
obtain.setData(bundle);
|
||
this.a.sendMessage(obtain);
|
||
Runnable runnable = new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.e.1
|
||
@Override // java.lang.Runnable
|
||
public final void run() {
|
||
if (e.this.f != null) {
|
||
try {
|
||
com.mbridge.msdk.foundation.db.o a = com.mbridge.msdk.foundation.db.o.a(com.mbridge.msdk.foundation.db.g.a(com.mbridge.msdk.foundation.controller.c.m().c()));
|
||
af.a("RewardCampaignsResourceManager", "campaign is null");
|
||
n nVar = new n();
|
||
nVar.a("2000044");
|
||
nVar.a(ab.m(com.mbridge.msdk.foundation.controller.c.m().c()));
|
||
nVar.e(e.this.f.getId());
|
||
nVar.p(e.this.f.getImageUrl());
|
||
nVar.f(e.this.f.getRequestId());
|
||
nVar.s(e.this.f.getCurrentLocalRid());
|
||
nVar.g(e.this.f.getRequestIdNotice());
|
||
nVar.c(e.this.c);
|
||
nVar.h(str);
|
||
nVar.a("scenes", "1");
|
||
a.a(nVar);
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
};
|
||
com.mbridge.msdk.foundation.controller.d.a();
|
||
com.mbridge.msdk.foundation.same.f.a.b().execute(runnable);
|
||
}
|
||
}
|
||
|
||
public static final class f implements com.mbridge.msdk.videocommon.listener.a {
|
||
private Handler a;
|
||
private final String b;
|
||
private final String c;
|
||
private final String d;
|
||
|
||
public f(Handler handler, String str, String str2, String str3) {
|
||
this.a = handler;
|
||
this.c = str;
|
||
this.b = str2;
|
||
this.d = str3;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.videocommon.listener.a
|
||
public final void a(String str) {
|
||
ResDownloadCheckManager.getInstance().setVideoDownloadDone(str, true);
|
||
Message obtain = Message.obtain();
|
||
obtain.what = 100;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.b);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle.putString("request_id", this.d);
|
||
bundle.putString("url", str);
|
||
obtain.setData(bundle);
|
||
this.a.sendMessage(obtain);
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.videocommon.listener.a
|
||
public final void a(String str, String str2) {
|
||
ResDownloadCheckManager.getInstance().setVideoDownloadDone(str2, false);
|
||
Message obtain = Message.obtain();
|
||
obtain.what = 200;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.b);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle.putString("request_id", this.d);
|
||
bundle.putString("url", str2);
|
||
bundle.putString("message", str);
|
||
obtain.setData(bundle);
|
||
this.a.sendMessage(obtain);
|
||
}
|
||
}
|
||
|
||
public static final class g implements H5DownLoadManager.ZipDownloadListener {
|
||
private Context b;
|
||
private String c;
|
||
private String d;
|
||
private String e;
|
||
private CampaignEx f;
|
||
private int g;
|
||
private Handler h;
|
||
private i i;
|
||
private CopyOnWriteArrayList<CampaignEx> j;
|
||
private boolean a = false;
|
||
private long k = System.currentTimeMillis();
|
||
|
||
public final void a(boolean z) {
|
||
this.a = z;
|
||
}
|
||
|
||
public g(Context context, String str, String str2, String str3, CampaignEx campaignEx, int i, Handler handler, i iVar, CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList) {
|
||
this.b = context;
|
||
this.d = str;
|
||
this.c = str2;
|
||
this.e = str3;
|
||
this.f = campaignEx;
|
||
this.g = i;
|
||
this.h = handler;
|
||
this.i = iVar;
|
||
this.j = copyOnWriteArrayList;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.foundation.download.download.H5DownLoadManager.H5ResDownloadListerInter
|
||
public final void onSuccess(String str, String str2, boolean z) {
|
||
ResDownloadCheckManager.getInstance().setZipDownloadDone(str, true);
|
||
long currentTimeMillis = System.currentTimeMillis() - this.k;
|
||
int i = this.g;
|
||
if (i == 313) {
|
||
Message obtain = Message.obtain();
|
||
obtain.what = 101;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle.putString("request_id", this.e);
|
||
bundle.putString("url", str);
|
||
obtain.setData(bundle);
|
||
this.h.sendMessage(obtain);
|
||
return;
|
||
}
|
||
if (i == 497) {
|
||
Message obtain2 = Message.obtain();
|
||
obtain2.what = 101;
|
||
Bundle bundle2 = new Bundle();
|
||
bundle2.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle2.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle2.putString("request_id", this.e);
|
||
bundle2.putString("url", str);
|
||
obtain2.setData(bundle2);
|
||
this.h.sendMessage(obtain2);
|
||
if (this.a) {
|
||
a(1, currentTimeMillis, str, "", str2);
|
||
return;
|
||
}
|
||
return;
|
||
}
|
||
if (i != 859) {
|
||
return;
|
||
}
|
||
Message obtain3 = Message.obtain();
|
||
obtain3.what = 103;
|
||
Bundle bundle3 = new Bundle();
|
||
bundle3.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle3.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle3.putString("request_id", this.e);
|
||
obtain3.setData(bundle3);
|
||
this.h.sendMessage(obtain3);
|
||
i iVar = this.i;
|
||
if (iVar != null) {
|
||
iVar.a(this.d, this.c, this.e, str);
|
||
}
|
||
if (z) {
|
||
return;
|
||
}
|
||
a(1, str, "", str2);
|
||
}
|
||
|
||
private void a(final int i, final String str, final String str2, final String str3) {
|
||
com.mbridge.msdk.foundation.same.f.a.e().execute(new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.g.1
|
||
@Override // java.lang.Runnable
|
||
public final void run() {
|
||
if (g.this.f == null || g.this.b == null) {
|
||
return;
|
||
}
|
||
try {
|
||
n nVar = new n();
|
||
nVar.a("m_download_end");
|
||
if (g.this.b != null) {
|
||
nVar.a(ab.m(g.this.b.getApplicationContext()));
|
||
}
|
||
nVar.b(i);
|
||
if (g.this.f != null) {
|
||
nVar.e(g.this.f.getId());
|
||
nVar.f(g.this.f.getRequestId());
|
||
nVar.s(g.this.f.getCurrentLocalRid());
|
||
nVar.g(g.this.f.getRequestIdNotice());
|
||
}
|
||
nVar.q(str);
|
||
nVar.h(str2);
|
||
nVar.c(g.this.c);
|
||
if (!TextUtils.isEmpty(str3)) {
|
||
nVar.t(str3);
|
||
}
|
||
nVar.e(2);
|
||
nVar.a("scenes", "1");
|
||
nVar.a("url", str);
|
||
b.a(nVar, g.this.f);
|
||
com.mbridge.msdk.foundation.same.report.d.d.a().a(nVar, g.this.f);
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
private void a(final int i, final long j, final String str, final String str2, final String str3) {
|
||
com.mbridge.msdk.foundation.same.f.a.e().execute(new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.g.2
|
||
@Override // java.lang.Runnable
|
||
public final void run() {
|
||
if (g.this.f == null) {
|
||
return;
|
||
}
|
||
try {
|
||
n nVar = new n("m_download_end", i, j + "", str, g.this.f.getId(), g.this.c, str2, "1");
|
||
nVar.f(g.this.f.getRequestId());
|
||
nVar.s(g.this.f.getCurrentLocalRid());
|
||
nVar.g(g.this.f.getRequestIdNotice());
|
||
nVar.e(g.this.f.getId());
|
||
nVar.c(g.this.f.getAdSpaceT());
|
||
nVar.t(str3);
|
||
nVar.a("scenes", "1");
|
||
if (g.this.f.getAdType() != 287) {
|
||
if (g.this.f.getAdType() == 94) {
|
||
nVar.d("1");
|
||
}
|
||
} else {
|
||
nVar.d("3");
|
||
}
|
||
nVar.a("url", str);
|
||
nVar.e(3);
|
||
b.a(nVar, g.this.f);
|
||
com.mbridge.msdk.foundation.same.report.g.a(nVar, g.this.c, g.this.f);
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.foundation.download.download.H5DownLoadManager.H5ResDownloadListerInter
|
||
public final void onFailed(String str, String str2) {
|
||
ResDownloadCheckManager.getInstance().setZipDownloadDone(str2, false);
|
||
long currentTimeMillis = System.currentTimeMillis() - this.k;
|
||
int i = this.g;
|
||
if (i == 313) {
|
||
Message obtain = Message.obtain();
|
||
obtain.what = 101;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle.putString("request_id", this.e);
|
||
bundle.putString("url", str2);
|
||
bundle.putString("message", str);
|
||
obtain.setData(bundle);
|
||
this.h.sendMessage(obtain);
|
||
return;
|
||
}
|
||
if (i == 497) {
|
||
Message obtain2 = Message.obtain();
|
||
obtain2.what = 201;
|
||
Bundle bundle2 = new Bundle();
|
||
bundle2.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle2.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle2.putString("request_id", this.e);
|
||
bundle2.putString("url", str2);
|
||
bundle2.putString("message", str);
|
||
obtain2.setData(bundle2);
|
||
this.h.sendMessage(obtain2);
|
||
if (this.a) {
|
||
a(3, currentTimeMillis, str2, "zip download failed", "");
|
||
return;
|
||
}
|
||
return;
|
||
}
|
||
if (i != 859) {
|
||
return;
|
||
}
|
||
Message obtain3 = Message.obtain();
|
||
obtain3.what = 203;
|
||
Bundle bundle3 = new Bundle();
|
||
bundle3.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.c);
|
||
bundle3.putString(MBridgeConstans.PLACEMENT_ID, this.d);
|
||
bundle3.putString("request_id", this.e);
|
||
bundle3.putString("url", str2);
|
||
bundle3.putString("message", str);
|
||
obtain3.setData(bundle3);
|
||
this.h.sendMessage(obtain3);
|
||
if (this.i != null) {
|
||
try {
|
||
this.i.a(str2, this.e, b.b(880006, new MBridgeIds(this.d, this.c, this.e), "", null, null));
|
||
} catch (Exception e) {
|
||
af.b("RewardCampaignsResourceManager", e.getMessage());
|
||
}
|
||
}
|
||
a(3, str2, str, "");
|
||
}
|
||
}
|
||
|
||
public static final class d implements H5DownLoadManager.IH5SourceDownloadListener {
|
||
private int b;
|
||
private final String c;
|
||
private final String d;
|
||
private final String e;
|
||
private CampaignEx f;
|
||
private i g;
|
||
private Handler h;
|
||
private CopyOnWriteArrayList<CampaignEx> i;
|
||
private boolean a = false;
|
||
private final long j = System.currentTimeMillis();
|
||
|
||
public final void a(boolean z) {
|
||
this.a = z;
|
||
}
|
||
|
||
public d(int i, String str, String str2, String str3, CampaignEx campaignEx, i iVar, Handler handler, CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList) {
|
||
this.b = i;
|
||
this.c = str;
|
||
this.d = str2;
|
||
this.e = str3;
|
||
this.f = campaignEx;
|
||
this.g = iVar;
|
||
this.h = handler;
|
||
this.i = copyOnWriteArrayList;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.foundation.download.download.H5DownLoadManager.H5ResDownloadListerInter
|
||
public final void onSuccess(String str, String str2, boolean z) {
|
||
ResDownloadCheckManager.getInstance().setZipDownloadDone(str, true);
|
||
int i = this.b;
|
||
if (i == 313) {
|
||
Message obtain = Message.obtain();
|
||
obtain.what = 101;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.d);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle.putString("request_id", this.e);
|
||
bundle.putString("url", str);
|
||
obtain.setData(bundle);
|
||
this.h.sendMessage(obtain);
|
||
return;
|
||
}
|
||
if (i == 497) {
|
||
Message obtain2 = Message.obtain();
|
||
obtain2.what = 101;
|
||
Bundle bundle2 = new Bundle();
|
||
bundle2.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.d);
|
||
bundle2.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle2.putString("request_id", this.e);
|
||
bundle2.putString("url", str);
|
||
obtain2.setData(bundle2);
|
||
this.h.sendMessage(obtain2);
|
||
if (this.a) {
|
||
a(1, System.currentTimeMillis() - this.j, str, "", str2);
|
||
return;
|
||
}
|
||
return;
|
||
}
|
||
if (i != 859) {
|
||
return;
|
||
}
|
||
Message obtain3 = Message.obtain();
|
||
obtain3.what = 105;
|
||
Bundle bundle3 = new Bundle();
|
||
bundle3.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.d);
|
||
bundle3.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle3.putString("request_id", this.e);
|
||
obtain3.setData(bundle3);
|
||
this.h.sendMessage(obtain3);
|
||
i iVar = this.g;
|
||
if (iVar != null) {
|
||
iVar.a(this.c, this.d, this.e, str);
|
||
}
|
||
}
|
||
|
||
private void a(final int i, final long j, final String str, final String str2, final String str3) {
|
||
com.mbridge.msdk.foundation.same.f.a.e().execute(new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.d.1
|
||
@Override // java.lang.Runnable
|
||
public final void run() {
|
||
if (d.this.f == null) {
|
||
return;
|
||
}
|
||
try {
|
||
n nVar = new n("m_download_end", i, j + "", str, d.this.f.getId(), d.this.d, str2, "2");
|
||
nVar.f(d.this.f.getRequestId());
|
||
nVar.s(d.this.f.getCurrentLocalRid());
|
||
nVar.g(d.this.f.getRequestIdNotice());
|
||
nVar.e(d.this.f.getId());
|
||
nVar.c(d.this.f.getAdSpaceT());
|
||
nVar.a("scenes", "1");
|
||
nVar.a("url", str);
|
||
if (d.this.f.getAdType() != 287) {
|
||
if (d.this.f.getAdType() == 94) {
|
||
nVar.d("1");
|
||
}
|
||
} else {
|
||
nVar.d("3");
|
||
}
|
||
if (!TextUtils.isEmpty(str3)) {
|
||
nVar.t(str3);
|
||
}
|
||
b.a(nVar, d.this.f);
|
||
com.mbridge.msdk.foundation.same.report.g.a(nVar, d.this.d, d.this.f);
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.foundation.download.download.H5DownLoadManager.H5ResDownloadListerInter
|
||
public final void onFailed(String str, String str2) {
|
||
ResDownloadCheckManager.getInstance().setZipDownloadDone(str, false);
|
||
int i = this.b;
|
||
if (i == 313) {
|
||
Message obtain = Message.obtain();
|
||
obtain.what = 201;
|
||
Bundle bundle = new Bundle();
|
||
bundle.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.d);
|
||
bundle.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle.putString("request_id", this.e);
|
||
bundle.putString("url", str);
|
||
bundle.putString("message", str2);
|
||
obtain.setData(bundle);
|
||
this.h.sendMessage(obtain);
|
||
return;
|
||
}
|
||
if (i == 497) {
|
||
Message obtain2 = Message.obtain();
|
||
obtain2.what = 201;
|
||
Bundle bundle2 = new Bundle();
|
||
bundle2.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.d);
|
||
bundle2.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle2.putString("request_id", this.e);
|
||
bundle2.putString("url", str);
|
||
bundle2.putString("message", str2);
|
||
obtain2.setData(bundle2);
|
||
this.h.sendMessage(obtain2);
|
||
if (this.a) {
|
||
a(3, System.currentTimeMillis() - this.j, str, "url download failed", "");
|
||
return;
|
||
}
|
||
return;
|
||
}
|
||
if (i != 859) {
|
||
return;
|
||
}
|
||
Message obtain3 = Message.obtain();
|
||
obtain3.what = 205;
|
||
Bundle bundle3 = new Bundle();
|
||
bundle3.putString(MBridgeConstans.PROPERTIES_UNIT_ID, this.d);
|
||
bundle3.putString(MBridgeConstans.PLACEMENT_ID, this.c);
|
||
bundle3.putString("request_id", this.e);
|
||
bundle3.putString("message", str2);
|
||
obtain3.setData(bundle3);
|
||
this.h.sendMessage(obtain3);
|
||
if (this.g != null) {
|
||
try {
|
||
this.g.a(str, this.e, b.b(880006, new MBridgeIds(this.c, this.d, this.e), str2, null, null));
|
||
} catch (Exception e) {
|
||
af.b("RewardCampaignsResourceManager", e.getMessage());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
public static final class h extends Handler {
|
||
private Context a;
|
||
private ConcurrentHashMap<String, c> b;
|
||
private ConcurrentHashMap<String, CopyOnWriteArrayList<CampaignEx>> c;
|
||
|
||
public final void a(Context context) {
|
||
this.a = context;
|
||
}
|
||
|
||
public h(Looper looper) {
|
||
super(looper);
|
||
this.b = new ConcurrentHashMap<>();
|
||
this.c = new ConcurrentHashMap<>();
|
||
}
|
||
|
||
public final void a(String str, String str2, String str3, c cVar) {
|
||
this.b.put(str2 + "_" + str3, cVar);
|
||
}
|
||
|
||
public final void a(String str, CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList) {
|
||
this.c.put(str, copyOnWriteArrayList);
|
||
}
|
||
|
||
/* JADX WARN: Can't wrap try/catch for region: R(18:6|(1:8)|9|(1:(1:(1:(1:14)(1:234))(1:235))(1:236))(1:237)|15|(1:233)(1:19)|20|21|22|23|(3:68|69|(3:71|(5:(2:78|(2:80|(2:82|(2:84|(2:87|(0)(2:90|(2:94|(0))))(1:86))(2:99|(0)))(2:102|(0)))(2:105|(0)))|108|109|110|111)(7:116|(2:118|(2:120|(2:122|(1:(1:133)(1:131)))(1:(4:166|(4:169|(2:173|174)|175|167)|178|179)(1:164)))(1:(4:189|(6:192|(1:196)|197|(2:201|202)|203|190)|206|207)(1:187)))(1:(4:217|(4:220|(2:222|223)(1:225)|224|218)|226|227)(1:215))|134|135|136|137|(2:146|147)(2:139|(4:141|142|143|32)))|66))|25|26|27|28|(1:30)(4:(2:41|(2:43|(1:(2:46|(0))(2:52|(0)))(2:55|(0)))(2:58|(0)))|61|62|63)|31|32) */
|
||
/* JADX WARN: Code restructure failed: missing block: B:64:0x03c3, code lost:
|
||
|
||
r0 = e;
|
||
*/
|
||
/* JADX WARN: Code restructure failed: missing block: B:65:0x03c4, code lost:
|
||
|
||
r10 = r15;
|
||
*/
|
||
/* JADX WARN: Multi-variable type inference failed */
|
||
/* JADX WARN: Type inference failed for: r10v12 */
|
||
/* JADX WARN: Type inference failed for: r10v19 */
|
||
/* JADX WARN: Type inference failed for: r10v2 */
|
||
/* JADX WARN: Type inference failed for: r10v20 */
|
||
/* JADX WARN: Type inference failed for: r10v21 */
|
||
/* JADX WARN: Type inference failed for: r10v22 */
|
||
/* JADX WARN: Type inference failed for: r10v3, types: [int] */
|
||
/* JADX WARN: Type inference failed for: r10v4, types: [int] */
|
||
/* JADX WARN: Type inference failed for: r10v5 */
|
||
/* JADX WARN: Type inference failed for: r10v8 */
|
||
/* JADX WARN: Type inference failed for: r15v11, types: [boolean] */
|
||
/* JADX WARN: Type inference failed for: r15v8 */
|
||
/* JADX WARN: Type inference failed for: r18v0, types: [com.mbridge.msdk.videocommon.download.b] */
|
||
@Override // android.os.Handler
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct add '--show-bad-code' argument
|
||
*/
|
||
public final void handleMessage(android.os.Message r30) {
|
||
/*
|
||
Method dump skipped, instructions count: 1218
|
||
To view this dump add '--comments-level debug' option
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.reward.adapter.b.h.handleMessage(android.os.Message):void");
|
||
}
|
||
}
|
||
|
||
/* JADX WARN: Removed duplicated region for block: B:47:0x01b4 A[Catch: all -> 0x003c, TryCatch #7 {, blocks: (B:4:0x000b, B:6:0x0023, B:9:0x002b, B:13:0x0047, B:26:0x008a, B:29:0x0090, B:31:0x0096, B:33:0x00a5, B:36:0x00db, B:38:0x00f1, B:45:0x01b0, B:47:0x01b4, B:49:0x01bf, B:51:0x009f, B:56:0x0166, B:62:0x010d, B:65:0x011d, B:67:0x012f), top: B:3:0x000b }] */
|
||
/* JADX WARN: Removed duplicated region for block: B:49:0x01bf A[Catch: all -> 0x003c, TRY_LEAVE, TryCatch #7 {, blocks: (B:4:0x000b, B:6:0x0023, B:9:0x002b, B:13:0x0047, B:26:0x008a, B:29:0x0090, B:31:0x0096, B:33:0x00a5, B:36:0x00db, B:38:0x00f1, B:45:0x01b0, B:47:0x01b4, B:49:0x01bf, B:51:0x009f, B:56:0x0166, B:62:0x010d, B:65:0x011d, B:67:0x012f), top: B:3:0x000b }] */
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct add '--show-bad-code' argument
|
||
*/
|
||
public final synchronized void a(boolean r24, android.os.Handler r25, boolean r26, boolean r27, com.mbridge.msdk.mbsignalcommon.windvane.WindVaneWebView r28, java.lang.String r29, int r30, com.mbridge.msdk.foundation.entity.CampaignEx r31, java.util.concurrent.CopyOnWriteArrayList<com.mbridge.msdk.foundation.entity.CampaignEx> r32, java.lang.String r33, java.lang.String r34, java.lang.String r35, java.lang.String r36, java.lang.String r37, com.mbridge.msdk.videocommon.d.c r38, com.mbridge.msdk.reward.adapter.b.j r39) {
|
||
/*
|
||
Method dump skipped, instructions count: 485
|
||
To view this dump add '--comments-level debug' option
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.reward.adapter.b.a(boolean, android.os.Handler, boolean, boolean, com.mbridge.msdk.mbsignalcommon.windvane.WindVaneWebView, java.lang.String, int, com.mbridge.msdk.foundation.entity.CampaignEx, java.util.concurrent.CopyOnWriteArrayList, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.mbridge.msdk.videocommon.d.c, com.mbridge.msdk.reward.adapter.b$j):void");
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static synchronized String b(int i2) {
|
||
synchronized (b.class) {
|
||
return i2 != 200 ? i2 != 201 ? i2 != 203 ? i2 != 205 ? "unknown" : "tpl" : x8.D : "zip/html" : "video";
|
||
}
|
||
}
|
||
|
||
public static class k extends com.mbridge.msdk.mbsignalcommon.b.b {
|
||
private Handler a;
|
||
private Runnable b;
|
||
private final boolean c;
|
||
private final boolean d;
|
||
private String e;
|
||
private final j f;
|
||
private final WindVaneWebView g;
|
||
private final String h;
|
||
private final String i;
|
||
private final String j;
|
||
private final a.C0246a k;
|
||
private final CampaignEx l;
|
||
private CopyOnWriteArrayList<CampaignEx> m;
|
||
private long n;
|
||
private boolean o;
|
||
private boolean p;
|
||
private final Runnable q;
|
||
private final Runnable r;
|
||
|
||
public k(Handler handler, Runnable runnable, boolean z, boolean z2, final String str, final j jVar, WindVaneWebView windVaneWebView, final String str2, final String str3, final String str4, final a.C0246a c0246a, CampaignEx campaignEx, CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList, long j) {
|
||
this.a = handler;
|
||
this.b = runnable;
|
||
this.c = z;
|
||
this.d = z2;
|
||
this.e = str;
|
||
this.f = jVar;
|
||
this.g = windVaneWebView;
|
||
this.h = str2;
|
||
this.i = str4;
|
||
this.j = str3;
|
||
this.k = c0246a;
|
||
this.l = campaignEx;
|
||
this.m = copyOnWriteArrayList;
|
||
this.n = j;
|
||
Runnable runnable2 = new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.k.1
|
||
@Override // java.lang.Runnable
|
||
public final void run() {
|
||
WindVaneWebView a;
|
||
a.C0246a c0246a2;
|
||
if (jVar != null && (c0246a2 = c0246a) != null) {
|
||
c0246a2.a(true);
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(str4 + "_" + str + "_" + str2, true);
|
||
j jVar2 = jVar;
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(str4);
|
||
sb.append("_");
|
||
sb.append(str2);
|
||
jVar2.a(sb.toString(), str3, str4, str, str2, c0246a);
|
||
}
|
||
a.C0246a c0246a3 = c0246a;
|
||
if (c0246a3 == null || (a = c0246a3.a()) == null) {
|
||
return;
|
||
}
|
||
try {
|
||
a.release();
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("WindVaneWebView", e.getMessage());
|
||
}
|
||
}
|
||
}
|
||
};
|
||
this.r = runnable2;
|
||
this.q = new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.k.2
|
||
@Override // java.lang.Runnable
|
||
public final void run() {
|
||
WindVaneWebView a;
|
||
a.C0246a c0246a2;
|
||
if (jVar != null && (c0246a2 = c0246a) != null) {
|
||
c0246a2.a(true);
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(str4 + "_" + str + "_" + str2, true);
|
||
j jVar2 = jVar;
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(str4);
|
||
sb.append("_");
|
||
sb.append(str2);
|
||
jVar2.a(sb.toString(), str3, str4, str, str2, c0246a);
|
||
}
|
||
a.C0246a c0246a3 = c0246a;
|
||
if (c0246a3 == null || (a = c0246a3.a()) == null) {
|
||
return;
|
||
}
|
||
try {
|
||
a.release();
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("WindVaneWebView", e.getMessage());
|
||
}
|
||
}
|
||
}
|
||
};
|
||
if (handler != null) {
|
||
handler.postDelayed(runnable2, 5000L);
|
||
}
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.b, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, int i) {
|
||
Handler handler;
|
||
Runnable runnable;
|
||
Runnable runnable2;
|
||
super.a(webView, i);
|
||
Handler handler2 = this.a;
|
||
if (handler2 != null && (runnable2 = this.q) != null) {
|
||
handler2.removeCallbacks(runnable2);
|
||
}
|
||
Handler handler3 = this.a;
|
||
if (handler3 != null && (runnable = this.r) != null) {
|
||
handler3.removeCallbacks(runnable);
|
||
}
|
||
try {
|
||
com.mbridge.msdk.foundation.same.report.d.e eVar = new com.mbridge.msdk.foundation.same.report.d.e();
|
||
eVar.a("type", 2);
|
||
eVar.a("result", Integer.valueOf(i));
|
||
com.mbridge.msdk.foundation.same.report.d.d.a().a("2000155", this.l, eVar);
|
||
} catch (Throwable th) {
|
||
af.b("WindVaneWebView", th.getMessage());
|
||
}
|
||
if (this.p) {
|
||
return;
|
||
}
|
||
String str = this.i + "_" + this.h;
|
||
if (i == 1) {
|
||
Runnable runnable3 = this.b;
|
||
if (runnable3 != null && (handler = this.a) != null) {
|
||
handler.removeCallbacks(runnable3);
|
||
}
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.i + "_" + this.e + "_" + this.h, true);
|
||
a.C0246a c0246a = this.k;
|
||
if (c0246a != null) {
|
||
c0246a.a(true);
|
||
}
|
||
if (this.c) {
|
||
if (this.d) {
|
||
com.mbridge.msdk.videocommon.a.a(287, this.l.getRequestIdNotice(), this.k);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.b(287, this.l.getRequestIdNotice(), this.k);
|
||
}
|
||
} else if (this.d) {
|
||
com.mbridge.msdk.videocommon.a.a(94, this.l.getRequestIdNotice(), this.k);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.b(94, this.l.getRequestIdNotice(), this.k);
|
||
}
|
||
j jVar = this.f;
|
||
if (jVar != null) {
|
||
jVar.a(str, this.j, this.i, this.e, this.h, this.k);
|
||
}
|
||
} else if (this.f != null) {
|
||
this.f.a(str, this.e, this.h, this.k, b.b(880009, new MBridgeIds(this.j, this.i, this.e), "readyState:" + i, null, this.l));
|
||
}
|
||
this.p = true;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.b, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, int i, String str, String str2) {
|
||
super.a(webView, i, str, str2);
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.i + "_" + this.e + "_" + this.h, false);
|
||
Handler handler = this.a;
|
||
if (handler != null) {
|
||
if (this.q != null) {
|
||
handler.removeCallbacks(this.r);
|
||
}
|
||
Runnable runnable = this.q;
|
||
if (runnable != null) {
|
||
this.a.removeCallbacks(runnable);
|
||
}
|
||
}
|
||
try {
|
||
String str3 = this.i + "_" + this.h;
|
||
a.C0246a c0246a = this.k;
|
||
if (c0246a != null) {
|
||
c0246a.a(false);
|
||
}
|
||
if (this.f != null) {
|
||
this.f.a(str3, this.e, str2, this.k, b.b(880009, new MBridgeIds(this.j, this.i, this.e), i + "#" + str, null, this.l));
|
||
}
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("WindVaneWebView", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.b, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
|
||
super.a(webView, sslErrorHandler, sslError);
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.i + "_" + this.e + "_" + this.h, false);
|
||
Handler handler = this.a;
|
||
if (handler != null) {
|
||
if (this.q != null) {
|
||
handler.removeCallbacks(this.r);
|
||
}
|
||
Runnable runnable = this.q;
|
||
if (runnable != null) {
|
||
this.a.removeCallbacks(runnable);
|
||
}
|
||
}
|
||
try {
|
||
String str = this.i + "_" + this.h;
|
||
a.C0246a c0246a = this.k;
|
||
if (c0246a != null) {
|
||
c0246a.a(false);
|
||
}
|
||
if (this.f != null) {
|
||
this.f.a(str, this.e, this.h, this.k, b.b(880009, new MBridgeIds(this.j, this.i, this.e), "onReceivedSslError:" + ((Object) ""), null, this.l));
|
||
}
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("WindVaneWebView", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.b, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, String str) {
|
||
Runnable runnable;
|
||
Handler handler;
|
||
Runnable runnable2;
|
||
super.a(webView, str);
|
||
Handler handler2 = this.a;
|
||
if (handler2 != null && (runnable2 = this.r) != null) {
|
||
handler2.removeCallbacks(runnable2);
|
||
}
|
||
if (this.o) {
|
||
return;
|
||
}
|
||
if (str.contains("wfr=1")) {
|
||
Handler handler3 = this.a;
|
||
if (handler3 != null && (runnable = this.q) != null) {
|
||
handler3.postDelayed(runnable, 5000L);
|
||
}
|
||
} else {
|
||
String str2 = this.i + "_" + this.h;
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.i + "_" + this.e + "_" + this.h, true);
|
||
Runnable runnable3 = this.b;
|
||
if (runnable3 != null && (handler = this.a) != null) {
|
||
handler.removeCallbacks(runnable3);
|
||
}
|
||
a.C0246a c0246a = this.k;
|
||
if (c0246a != null) {
|
||
c0246a.a(true);
|
||
}
|
||
if (this.c) {
|
||
if (this.l.isBidCampaign()) {
|
||
com.mbridge.msdk.videocommon.a.a(287, this.l.getRequestIdNotice(), this.k);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.b(287, this.l.getRequestIdNotice(), this.k);
|
||
}
|
||
} else if (this.l.isBidCampaign()) {
|
||
com.mbridge.msdk.videocommon.a.a(94, this.l.getRequestIdNotice(), this.k);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.b(94, this.l.getRequestIdNotice(), this.k);
|
||
}
|
||
j jVar = this.f;
|
||
if (jVar != null) {
|
||
jVar.a(str2, this.j, this.i, this.e, this.h, this.k);
|
||
}
|
||
}
|
||
com.mbridge.msdk.mbsignalcommon.windvane.g.a().a(webView);
|
||
this.o = true;
|
||
}
|
||
}
|
||
|
||
/* JADX WARN: Removed duplicated region for block: B:58:0x01db A[Catch: all -> 0x0046, TRY_ENTER, TryCatch #1 {, blocks: (B:4:0x000d, B:7:0x0033, B:12:0x004b, B:14:0x007e, B:15:0x008b, B:17:0x00a6, B:19:0x00ac, B:21:0x00b6, B:24:0x00bd, B:26:0x00c3, B:27:0x00cd, B:29:0x00d3, B:31:0x00e7, B:33:0x00f5, B:39:0x00fe, B:41:0x0102, B:43:0x0113, B:46:0x0161, B:49:0x0175, B:52:0x0195, B:58:0x01db, B:59:0x01fd, B:61:0x0201, B:69:0x010c), top: B:3:0x000d }] */
|
||
/* JADX WARN: Removed duplicated region for block: B:61:0x0201 A[Catch: all -> 0x0046, TRY_LEAVE, TryCatch #1 {, blocks: (B:4:0x000d, B:7:0x0033, B:12:0x004b, B:14:0x007e, B:15:0x008b, B:17:0x00a6, B:19:0x00ac, B:21:0x00b6, B:24:0x00bd, B:26:0x00c3, B:27:0x00cd, B:29:0x00d3, B:31:0x00e7, B:33:0x00f5, B:39:0x00fe, B:41:0x0102, B:43:0x0113, B:46:0x0161, B:49:0x0175, B:52:0x0195, B:58:0x01db, B:59:0x01fd, B:61:0x0201, B:69:0x010c), top: B:3:0x000d }] */
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct add '--show-bad-code' argument
|
||
*/
|
||
public final synchronized void a(boolean r27, android.os.Handler r28, boolean r29, boolean r30, java.lang.String r31, java.lang.String r32, java.lang.String r33, java.lang.String r34, java.lang.String r35, int r36, com.mbridge.msdk.foundation.entity.CampaignEx r37, java.util.concurrent.CopyOnWriteArrayList<com.mbridge.msdk.foundation.entity.CampaignEx> r38, java.lang.String r39, java.lang.String r40, com.mbridge.msdk.videocommon.d.c r41, com.mbridge.msdk.reward.adapter.b.j r42, boolean r43) {
|
||
/*
|
||
Method dump skipped, instructions count: 526
|
||
To view this dump add '--comments-level debug' option
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.reward.adapter.b.a(boolean, android.os.Handler, boolean, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, com.mbridge.msdk.foundation.entity.CampaignEx, java.util.concurrent.CopyOnWriteArrayList, java.lang.String, java.lang.String, com.mbridge.msdk.videocommon.d.c, com.mbridge.msdk.reward.adapter.b$j, boolean):void");
|
||
}
|
||
|
||
/* renamed from: com.mbridge.msdk.reward.adapter.b$b, reason: collision with other inner class name */
|
||
public static class C0224b extends com.mbridge.msdk.mbsignalcommon.b.a {
|
||
private final Handler a;
|
||
private final Runnable b;
|
||
private final boolean c;
|
||
private final boolean d;
|
||
private int e;
|
||
private String f;
|
||
private String g;
|
||
private String h;
|
||
private String i;
|
||
private a.C0246a j;
|
||
private CampaignEx k;
|
||
private CopyOnWriteArrayList<CampaignEx> l;
|
||
private com.mbridge.msdk.videocommon.d.c m;
|
||
private final j n;
|
||
private boolean o;
|
||
private boolean p;
|
||
private boolean q;
|
||
private int r = 0;
|
||
private boolean s;
|
||
private long t;
|
||
|
||
public C0224b(boolean z, Handler handler, Runnable runnable, boolean z2, boolean z3, int i, String str, String str2, String str3, String str4, a.C0246a c0246a, CampaignEx campaignEx, CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList, com.mbridge.msdk.videocommon.d.c cVar, j jVar, boolean z4, long j) {
|
||
this.a = handler;
|
||
this.b = runnable;
|
||
this.c = z2;
|
||
this.d = z3;
|
||
this.e = i;
|
||
this.f = str;
|
||
this.h = str2;
|
||
this.g = str3;
|
||
this.i = str4;
|
||
this.j = c0246a;
|
||
this.k = campaignEx;
|
||
this.l = copyOnWriteArrayList;
|
||
this.m = cVar;
|
||
this.n = jVar;
|
||
this.o = z4;
|
||
this.s = z;
|
||
this.t = j;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.a, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, int i) {
|
||
Runnable runnable;
|
||
try {
|
||
com.mbridge.msdk.foundation.same.report.d.e eVar = new com.mbridge.msdk.foundation.same.report.d.e();
|
||
eVar.a("type", 1);
|
||
eVar.a("result", Integer.valueOf(i));
|
||
com.mbridge.msdk.foundation.same.report.d.d.a().a("2000155", this.k, eVar);
|
||
} catch (Throwable th) {
|
||
af.b("RVWindVaneWebView", th.getMessage());
|
||
}
|
||
if (this.q) {
|
||
return;
|
||
}
|
||
String str = this.g + "_" + this.f;
|
||
if (i == 1) {
|
||
if (this.o) {
|
||
com.mbridge.msdk.videocommon.a.e(this.g + "_" + this.i);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.d(this.g + "_" + this.i);
|
||
}
|
||
com.mbridge.msdk.videocommon.a.a(this.g + "_" + this.i + "_" + this.f, this.j, true, this.o);
|
||
Handler handler = this.a;
|
||
if (handler != null && (runnable = this.b) != null) {
|
||
handler.removeCallbacks(runnable);
|
||
}
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.g + "_" + this.i + "_" + this.f, true);
|
||
a.C0246a c0246a = this.j;
|
||
if (c0246a != null) {
|
||
c0246a.a(true);
|
||
}
|
||
j jVar = this.n;
|
||
if (jVar != null) {
|
||
jVar.a(str, this.h, this.g, this.i, this.f, this.j);
|
||
}
|
||
} else {
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.g + "_" + this.i + "_" + this.f, false);
|
||
a.C0246a c0246a2 = this.j;
|
||
if (c0246a2 != null) {
|
||
c0246a2.a(false);
|
||
}
|
||
if (this.n != null) {
|
||
this.n.a(str, this.i, this.f, this.j, b.b(880008, new MBridgeIds(this.h, this.g, this.i), "readyState:" + i, null, this.k));
|
||
}
|
||
}
|
||
this.q = true;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.a
|
||
public final void a(WebView webView, String str, String str2, int i, int i2) {
|
||
boolean z = true;
|
||
if (i == 1) {
|
||
try {
|
||
com.mbridge.msdk.reward.b.a aVar = new com.mbridge.msdk.reward.b.a();
|
||
aVar.b(false);
|
||
if (i2 != 2) {
|
||
z = false;
|
||
}
|
||
aVar.a(z);
|
||
aVar.b(str, str2);
|
||
aVar.a(new com.mbridge.msdk.video.bt.module.b.a(null));
|
||
aVar.a(false, com.mbridge.msdk.foundation.same.report.d.d.a().a(0, i2, str2, true, 1));
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RVWindVaneWebView", e.getMessage());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
/* JADX WARN: Can't wrap try/catch for region: R(10:8|(1:10)(1:54)|11|(3:14|15|(5:20|(3:22|23|24)(2:36|(1:41)(1:40))|25|26|28))|46|47|48|25|26|28) */
|
||
/* JADX WARN: Code restructure failed: missing block: B:50:0x0128, code lost:
|
||
|
||
r0 = move-exception;
|
||
*/
|
||
/* JADX WARN: Code restructure failed: missing block: B:52:0x012b, code lost:
|
||
|
||
if (com.mbridge.msdk.MBridgeConstans.DEBUG != false) goto L44;
|
||
*/
|
||
/* JADX WARN: Code restructure failed: missing block: B:53:0x012d, code lost:
|
||
|
||
com.mbridge.msdk.foundation.tools.af.b("RewardCampaignsResourceManager", r0.getLocalizedMessage());
|
||
*/
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.a
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct add '--show-bad-code' argument
|
||
*/
|
||
public final void a(java.lang.Object r18, java.lang.String r19) {
|
||
/*
|
||
Method dump skipped, instructions count: 327
|
||
To view this dump add '--comments-level debug' option
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.reward.adapter.b.C0224b.a(java.lang.Object, java.lang.String):void");
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.a, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, String str) {
|
||
Runnable runnable;
|
||
super.a(webView, str);
|
||
if (this.p) {
|
||
return;
|
||
}
|
||
String str2 = this.g + "_" + this.f;
|
||
if (!str.contains("wfr=1")) {
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.g + "_" + this.i + "_" + this.f, true);
|
||
Handler handler = this.a;
|
||
if (handler != null && (runnable = this.b) != null) {
|
||
handler.removeCallbacks(runnable);
|
||
}
|
||
a.C0246a c0246a = this.j;
|
||
if (c0246a != null) {
|
||
c0246a.a(true);
|
||
}
|
||
j jVar = this.n;
|
||
if (jVar != null) {
|
||
jVar.a(str2, this.h, this.g, this.i, this.f, this.j);
|
||
}
|
||
}
|
||
com.mbridge.msdk.mbsignalcommon.windvane.g.a().a(webView);
|
||
this.p = true;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.a, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, int i, String str, String str2) {
|
||
super.a(webView, i, str, str2);
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.g + "_" + this.i + "_" + this.f, false);
|
||
if (this.n != null) {
|
||
String str3 = this.g + "_" + this.f;
|
||
a.C0246a c0246a = this.j;
|
||
if (c0246a != null) {
|
||
c0246a.a(false);
|
||
}
|
||
this.n.a(str3, this.i, this.f, this.j, b.b(880008, new MBridgeIds(this.h, this.g, this.i), "onReceivedError: " + i + " " + str, null, this.k));
|
||
}
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.a, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView) {
|
||
if (webView != null) {
|
||
try {
|
||
try {
|
||
LinkedHashMap<String, View> b = com.mbridge.msdk.video.bt.a.d.c().b(this.g, this.i);
|
||
if (b != null && !b.isEmpty()) {
|
||
for (View view : b.values()) {
|
||
if (view instanceof MBridgeBTContainer) {
|
||
((MBridgeBTContainer) view).addNativeCloseButtonWhenWebViewCrash();
|
||
}
|
||
}
|
||
}
|
||
} catch (Throwable th) {
|
||
af.b("OperateViews", th.getMessage());
|
||
}
|
||
} catch (Throwable th2) {
|
||
af.b("RVWindVaneWebView", th2.getMessage());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
public static class l extends com.mbridge.msdk.mbsignalcommon.b.b {
|
||
private String a;
|
||
private final boolean b;
|
||
private final WindVaneWebView c;
|
||
private final String d;
|
||
private final String e;
|
||
private final a.C0246a f;
|
||
private final CampaignEx g;
|
||
private boolean h;
|
||
private String i;
|
||
private boolean j;
|
||
private boolean k;
|
||
|
||
public l(String str, boolean z, WindVaneWebView windVaneWebView, String str2, String str3, a.C0246a c0246a, CampaignEx campaignEx, boolean z2, String str4) {
|
||
this.b = z;
|
||
this.c = windVaneWebView;
|
||
this.d = str2;
|
||
this.e = str3;
|
||
this.f = c0246a;
|
||
this.g = campaignEx;
|
||
this.a = str;
|
||
this.h = z2;
|
||
this.i = str4;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.b, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, int i) {
|
||
try {
|
||
com.mbridge.msdk.foundation.same.report.d.e eVar = new com.mbridge.msdk.foundation.same.report.d.e();
|
||
eVar.a("type", 2);
|
||
eVar.a("result", Integer.valueOf(i));
|
||
com.mbridge.msdk.foundation.same.report.d.d.a().a("2000155", this.g, eVar);
|
||
} catch (Throwable th) {
|
||
af.b("WindVaneWebView", th.getMessage());
|
||
}
|
||
if (this.k) {
|
||
return;
|
||
}
|
||
if (this.c != null) {
|
||
JSONObject jSONObject = new JSONObject();
|
||
try {
|
||
jSONObject.put("id", this.a);
|
||
JSONObject jSONObject2 = new JSONObject();
|
||
jSONObject2.put("result", i);
|
||
jSONObject2.put("error", "");
|
||
jSONObject.put("data", jSONObject2);
|
||
com.mbridge.msdk.mbsignalcommon.windvane.g.a().a((WebView) this.c, "onSubPlayTemplateViewLoad", Base64.encodeToString(jSONObject.toString().getBytes(), 2));
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("WindVaneWebView", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
String str = this.e + "_" + this.g.getId() + "_" + this.g.getRequestId() + "_" + this.d;
|
||
if (i == 1) {
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.e + "_" + this.i + "_" + this.d, true);
|
||
a.C0246a c0246a = this.f;
|
||
if (c0246a != null) {
|
||
c0246a.a(true);
|
||
}
|
||
if (this.b) {
|
||
if (this.g.isBidCampaign()) {
|
||
com.mbridge.msdk.videocommon.a.a(str, this.f, false, this.h);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.a(str, this.f, false, this.h);
|
||
}
|
||
} else if (this.g.isBidCampaign()) {
|
||
com.mbridge.msdk.videocommon.a.a(str, this.f, false, this.h);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.a(str, this.f, false, this.h);
|
||
}
|
||
} else {
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.e + "_" + this.i + "_" + this.d, false);
|
||
a.C0246a c0246a2 = this.f;
|
||
if (c0246a2 != null) {
|
||
c0246a2.a(false);
|
||
}
|
||
}
|
||
this.k = true;
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.b, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, int i, String str, String str2) {
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.e + "_" + this.i + "_" + this.d, false);
|
||
a.C0246a c0246a = this.f;
|
||
if (c0246a != null) {
|
||
c0246a.a(false);
|
||
}
|
||
if (this.c != null) {
|
||
JSONObject jSONObject = new JSONObject();
|
||
try {
|
||
jSONObject.put("id", this.a);
|
||
JSONObject jSONObject2 = new JSONObject();
|
||
jSONObject2.put("result", 2);
|
||
jSONObject2.put("error", str);
|
||
jSONObject.put("data", jSONObject2);
|
||
com.mbridge.msdk.mbsignalcommon.windvane.g.a().a((WebView) this.c, "onSubPlayTemplateViewLoad", Base64.encodeToString(jSONObject.toString().getBytes(), 2));
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("WindVaneWebView", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
@Override // com.mbridge.msdk.mbsignalcommon.b.b, com.mbridge.msdk.mbsignalcommon.windvane.d
|
||
public final void a(WebView webView, String str) {
|
||
if (this.j) {
|
||
return;
|
||
}
|
||
if (!str.contains("wfr=1")) {
|
||
if (this.c != null) {
|
||
JSONObject jSONObject = new JSONObject();
|
||
try {
|
||
jSONObject.put("id", this.a);
|
||
JSONObject jSONObject2 = new JSONObject();
|
||
jSONObject2.put("result", 1);
|
||
jSONObject2.put("error", "");
|
||
jSONObject.put("data", jSONObject2);
|
||
com.mbridge.msdk.mbsignalcommon.windvane.g.a().a((WebView) this.c, "componentReact", Base64.encodeToString(jSONObject.toString().getBytes(), 2));
|
||
} catch (Exception e) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("WindVaneWebView", e.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
ResDownloadCheckManager.getInstance().setTemplatePreLoadDone(this.e + "_" + this.i + "_" + this.d, true);
|
||
a.C0246a c0246a = this.f;
|
||
if (c0246a != null) {
|
||
c0246a.a(true);
|
||
}
|
||
String str2 = this.e + "_" + this.g.getId() + "_" + this.g.getRequestId() + "_" + this.d;
|
||
if (this.b) {
|
||
if (this.g.isBidCampaign()) {
|
||
com.mbridge.msdk.videocommon.a.a(287, this.g.getRequestIdNotice(), this.f);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.a(str2, this.f, false, this.h);
|
||
}
|
||
} else if (this.g.isBidCampaign()) {
|
||
com.mbridge.msdk.videocommon.a.a(94, this.g.getRequestIdNotice(), this.f);
|
||
} else {
|
||
com.mbridge.msdk.videocommon.a.a(str2, this.f, false, this.h);
|
||
}
|
||
}
|
||
com.mbridge.msdk.mbsignalcommon.windvane.g.a().a(webView);
|
||
this.j = true;
|
||
}
|
||
}
|
||
|
||
public static class a {
|
||
boolean a;
|
||
boolean b;
|
||
int c;
|
||
int d;
|
||
String e;
|
||
String f;
|
||
int g;
|
||
CopyOnWriteArrayList<CampaignEx> h;
|
||
CopyOnWriteArrayList<CampaignEx> i;
|
||
|
||
public a(boolean z, boolean z2, int i, int i2, String str, String str2, int i3, CopyOnWriteArrayList<CampaignEx> copyOnWriteArrayList) {
|
||
this.a = z;
|
||
this.b = z2;
|
||
this.c = i;
|
||
this.d = i2;
|
||
this.e = str;
|
||
this.f = str2;
|
||
this.g = i3;
|
||
this.h = copyOnWriteArrayList;
|
||
this.i = new CopyOnWriteArrayList<>(copyOnWriteArrayList);
|
||
}
|
||
}
|
||
|
||
private int a(CampaignEx campaignEx) {
|
||
if (campaignEx == null) {
|
||
return 0;
|
||
}
|
||
try {
|
||
if (campaignEx.getAabEntity() != null) {
|
||
return campaignEx.getAabEntity().h3c;
|
||
}
|
||
return 0;
|
||
} catch (Throwable th) {
|
||
af.b("RewardCampaignsResourceManager", th.getMessage());
|
||
return 0;
|
||
}
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static com.mbridge.msdk.foundation.c.b b(int i2, MBridgeIds mBridgeIds, String str, Throwable th, CampaignEx campaignEx) {
|
||
com.mbridge.msdk.foundation.c.b bVar = new com.mbridge.msdk.foundation.c.b(i2);
|
||
bVar.a(mBridgeIds);
|
||
bVar.a(th);
|
||
bVar.a(str);
|
||
bVar.a(campaignEx);
|
||
return bVar;
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public com.mbridge.msdk.foundation.same.report.d.c a(CampaignEx campaignEx, int i2) {
|
||
com.mbridge.msdk.foundation.same.report.d.c a2 = campaignEx != null ? com.mbridge.msdk.foundation.same.report.d.d.a().a(campaignEx.getCurrentLocalRid(), "") : null;
|
||
if (a2 == null) {
|
||
a2 = new com.mbridge.msdk.foundation.same.report.d.c();
|
||
}
|
||
a2.a(campaignEx);
|
||
a2.c(a(campaignEx));
|
||
a2.a(i2);
|
||
return a2;
|
||
}
|
||
|
||
public static /* synthetic */ void a(b bVar, Context context, String str, String str2, String str3, CampaignEx campaignEx, String str4, i iVar, CopyOnWriteArrayList copyOnWriteArrayList) {
|
||
if (TextUtils.isEmpty(str4) || campaignEx.isMraid()) {
|
||
return;
|
||
}
|
||
com.mbridge.msdk.foundation.same.report.d.c a2 = bVar.a(campaignEx, 3);
|
||
if (str4.contains(".zip") && str4.contains(ResourceManager.KEY_MD5FILENAME)) {
|
||
boolean isEmpty = TextUtils.isEmpty(H5DownLoadManager.getInstance().getH5ResAddress(str4));
|
||
try {
|
||
g gVar = new g(context, str, str2, str3, campaignEx, 497, bVar.a, iVar, copyOnWriteArrayList);
|
||
gVar.a(isEmpty);
|
||
H5DownLoadManager.getInstance().downloadH5Res(a2, str4, gVar);
|
||
return;
|
||
} catch (Exception e2) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e2.getLocalizedMessage());
|
||
return;
|
||
}
|
||
return;
|
||
}
|
||
}
|
||
boolean isEmpty2 = TextUtils.isEmpty(HTMLResourceManager.getInstance().getHtmlContentFromUrl(str4));
|
||
try {
|
||
d dVar = new d(497, str, str2, str3, campaignEx, iVar, bVar.a, copyOnWriteArrayList);
|
||
dVar.a(isEmpty2);
|
||
H5DownLoadManager.getInstance().downloadH5Res(a2, str4, dVar);
|
||
} catch (Exception e3) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e3.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
|
||
public static /* synthetic */ void a(n nVar, CampaignEx campaignEx) {
|
||
try {
|
||
com.mbridge.msdk.videocommon.d.c a2 = com.mbridge.msdk.videocommon.d.b.a().a(com.mbridge.msdk.foundation.controller.c.m().k(), campaignEx.getCampaignUnitId());
|
||
if (a2 != null) {
|
||
nVar.v(a2.l());
|
||
}
|
||
com.mbridge.msdk.videocommon.d.a b2 = com.mbridge.msdk.videocommon.d.b.a().b();
|
||
if (b2 != null) {
|
||
nVar.u(b2.c());
|
||
}
|
||
} catch (Exception e2) {
|
||
af.b("RewardCampaignsResourceManager", e2.getMessage());
|
||
}
|
||
}
|
||
|
||
public static /* synthetic */ void a(b bVar, final Context context, final int i2, final CampaignEx campaignEx, final String str, final String str2, final String str3, final String str4) {
|
||
com.mbridge.msdk.foundation.same.f.a.e().execute(new Runnable() { // from class: com.mbridge.msdk.reward.adapter.b.4
|
||
@Override // java.lang.Runnable
|
||
public final void run() {
|
||
if (campaignEx == null || context == null) {
|
||
return;
|
||
}
|
||
try {
|
||
n nVar = new n();
|
||
nVar.a("m_download_end");
|
||
Context context2 = context;
|
||
if (context2 != null) {
|
||
nVar.a(ab.m(context2.getApplicationContext()));
|
||
}
|
||
nVar.b(i2);
|
||
CampaignEx campaignEx2 = campaignEx;
|
||
if (campaignEx2 != null) {
|
||
nVar.e(campaignEx2.getId());
|
||
nVar.f(campaignEx.getRequestId());
|
||
nVar.s(campaignEx.getCurrentLocalRid());
|
||
nVar.g(campaignEx.getRequestIdNotice());
|
||
}
|
||
nVar.a("url", str);
|
||
nVar.q(str);
|
||
nVar.h(str2);
|
||
nVar.c(str3);
|
||
if (!TextUtils.isEmpty(str4)) {
|
||
nVar.t(str4);
|
||
}
|
||
nVar.e(1);
|
||
nVar.a("scenes", "1");
|
||
com.mbridge.msdk.foundation.same.report.d.d.a().a(nVar, campaignEx);
|
||
} catch (Exception e2) {
|
||
if (MBridgeConstans.DEBUG) {
|
||
af.b("RewardCampaignsResourceManager", e2.getLocalizedMessage());
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
}
|