- 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
172 lines
7.0 KiB
Java
172 lines
7.0 KiB
Java
package com.mbridge.msdk.video.signal.a;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.foundation.tools.an;
|
|
import com.mbridge.msdk.video.module.MBridgeContainerView;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class o extends p {
|
|
private Activity a;
|
|
private MBridgeContainerView b;
|
|
|
|
public o(Activity activity, MBridgeContainerView mBridgeContainerView) {
|
|
this.a = activity;
|
|
this.b = mBridgeContainerView;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.a.g, com.mbridge.msdk.video.signal.i
|
|
public final String a() {
|
|
if (this.b == null) {
|
|
super.a();
|
|
} else {
|
|
try {
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(this.b.getCampaign());
|
|
String unitID = this.b.getUnitID();
|
|
com.mbridge.msdk.videocommon.d.c a = com.mbridge.msdk.videocommon.d.b.a() == null ? null : com.mbridge.msdk.videocommon.d.b.a().a(com.mbridge.msdk.foundation.controller.c.m().k(), unitID);
|
|
JSONObject jSONObject = new JSONObject();
|
|
if (a != null) {
|
|
jSONObject = a.E();
|
|
}
|
|
af.a("JSRewardVideoV1", "getEndScreenInfo success campaign = " + this.b.getCampaign());
|
|
return a(arrayList, unitID, "MAL_16.8.51,3.0.1", jSONObject);
|
|
} catch (Throwable th) {
|
|
th.printStackTrace();
|
|
}
|
|
}
|
|
return super.a();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.a.g, com.mbridge.msdk.video.signal.h
|
|
public final void toggleCloseBtn(int i) {
|
|
super.toggleCloseBtn(i);
|
|
MBridgeContainerView mBridgeContainerView = this.b;
|
|
if (mBridgeContainerView != null) {
|
|
mBridgeContainerView.toggleCloseBtn(i);
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.a.g, com.mbridge.msdk.video.signal.i
|
|
public final void a(String str) {
|
|
MBridgeContainerView mBridgeContainerView;
|
|
super.a(str);
|
|
try {
|
|
if (this.a == null || TextUtils.isEmpty(str) || !str.equals("click") || (mBridgeContainerView = this.b) == null) {
|
|
return;
|
|
}
|
|
mBridgeContainerView.triggerCloseBtn(str);
|
|
} catch (Throwable th) {
|
|
th.printStackTrace();
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.a.g, com.mbridge.msdk.video.signal.h
|
|
public final void notifyCloseBtn(int i) {
|
|
super.notifyCloseBtn(i);
|
|
MBridgeContainerView mBridgeContainerView = this.b;
|
|
if (mBridgeContainerView != null) {
|
|
mBridgeContainerView.notifyCloseBtn(i);
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.a.g, com.mbridge.msdk.video.signal.i
|
|
public final void c(String str) {
|
|
MBridgeContainerView mBridgeContainerView;
|
|
super.c(str);
|
|
try {
|
|
if (this.a == null || TextUtils.isEmpty(str) || (mBridgeContainerView = this.b) == null) {
|
|
return;
|
|
}
|
|
mBridgeContainerView.handlerPlayableException(str);
|
|
} catch (Throwable th) {
|
|
th.printStackTrace();
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.a.g, com.mbridge.msdk.video.signal.i
|
|
public final void b(String str) {
|
|
super.b(str);
|
|
try {
|
|
if (this.a != null && !TextUtils.isEmpty(str)) {
|
|
if (str.equals("landscape")) {
|
|
this.a.setRequestedOrientation(0);
|
|
} else if (str.equals("portrait")) {
|
|
this.a.setRequestedOrientation(1);
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
th.printStackTrace();
|
|
}
|
|
}
|
|
|
|
private String a(List<CampaignEx> list, String str, String str2, JSONObject jSONObject) {
|
|
if (list == null) {
|
|
return null;
|
|
}
|
|
try {
|
|
if (list.size() <= 0) {
|
|
return null;
|
|
}
|
|
Object parseCamplistToJson = CampaignEx.parseCamplistToJson(list);
|
|
JSONObject jSONObject2 = new JSONObject();
|
|
jSONObject2.put("campaignList", parseCamplistToJson);
|
|
try {
|
|
jSONObject2.put("device", new com.mbridge.msdk.foundation.tools.i(com.mbridge.msdk.foundation.controller.c.m().c()).a());
|
|
jSONObject2.put(MBridgeConstans.PROPERTIES_UNIT_ID, str);
|
|
jSONObject2.put("sdk_info", str2);
|
|
jSONObject2.put("unitSetting", jSONObject);
|
|
if (com.mbridge.msdk.c.h.a() != null) {
|
|
String g = com.mbridge.msdk.c.h.a().g(com.mbridge.msdk.foundation.controller.c.m().k());
|
|
if (!TextUtils.isEmpty(g)) {
|
|
JSONObject jSONObject3 = new JSONObject(g);
|
|
try {
|
|
Context c = com.mbridge.msdk.foundation.controller.c.m().c();
|
|
String obj = an.a(c, "MBridge_ConfirmTitle" + str, "").toString();
|
|
String obj2 = an.a(c, "MBridge_ConfirmContent" + str, "").toString();
|
|
String obj3 = an.a(c, "MBridge_CancelText" + str, "").toString();
|
|
String obj4 = an.a(c, "MBridge_ConfirmText" + str, "").toString();
|
|
if (!TextUtils.isEmpty(obj)) {
|
|
jSONObject3.put("confirm_title", obj);
|
|
}
|
|
if (!TextUtils.isEmpty(obj2)) {
|
|
jSONObject3.put("confirm_description", obj2);
|
|
}
|
|
if (!TextUtils.isEmpty(obj3)) {
|
|
jSONObject3.put("confirm_t", obj3);
|
|
}
|
|
if (!TextUtils.isEmpty(obj4)) {
|
|
jSONObject3.put("confirm_c_play", obj4);
|
|
}
|
|
if (!TextUtils.isEmpty(obj4)) {
|
|
jSONObject3.put("confirm_c_rv", obj4);
|
|
}
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
String c2 = com.mbridge.msdk.c.h.a().c(str);
|
|
if (!TextUtils.isEmpty(c2)) {
|
|
jSONObject3.put("ivreward", new JSONObject(c2));
|
|
}
|
|
jSONObject2.put("appSetting", jSONObject3);
|
|
}
|
|
}
|
|
return jSONObject2.toString();
|
|
} catch (JSONException e2) {
|
|
throw new RuntimeException(e2);
|
|
}
|
|
} catch (Exception e3) {
|
|
e3.printStackTrace();
|
|
return null;
|
|
}
|
|
}
|
|
}
|