- 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
113 lines
3.8 KiB
Java
113 lines
3.8 KiB
Java
package com.mbridge.msdk.newreward.function.f;
|
|
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.interstitial.view.MBInterstitialActivity;
|
|
import com.mbridge.msdk.newreward.function.command.f;
|
|
import com.mbridge.msdk.newreward.function.common.MBridgeGlobalCommon;
|
|
import com.mbridge.msdk.newreward.function.common.MBridgeOffsetManager;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class c {
|
|
private static volatile c a;
|
|
|
|
private c() {
|
|
}
|
|
|
|
public static c a() {
|
|
if (a == null) {
|
|
synchronized (c.class) {
|
|
try {
|
|
if (a == null) {
|
|
a = new c();
|
|
}
|
|
} finally {
|
|
}
|
|
}
|
|
}
|
|
return a;
|
|
}
|
|
|
|
/* renamed from: com.mbridge.msdk.newreward.function.f.c$1, reason: invalid class name */
|
|
public static /* synthetic */ class AnonymousClass1 {
|
|
static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[f.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[f.REQ_SETTING.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[f.REQ_CAMPAIGN.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
a[f.REQ_MORE_OFFER_CAMPAIGN.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public final <T extends a> a a(Object obj, f fVar) {
|
|
int i = AnonymousClass1.a[fVar.ordinal()];
|
|
if (i == 1) {
|
|
d dVar = new d();
|
|
com.mbridge.msdk.newreward.function.command.b bVar = (com.mbridge.msdk.newreward.function.command.b) obj;
|
|
if (!(bVar.b() instanceof Map)) {
|
|
return dVar;
|
|
}
|
|
Map map = (Map) bVar.b();
|
|
dVar.a(((Integer) map.get("mb_ad_type")).intValue());
|
|
dVar.a((String) map.get("mb_ad_unit_id"));
|
|
return dVar;
|
|
}
|
|
if (i != 2) {
|
|
if (i != 3) {
|
|
return null;
|
|
}
|
|
b bVar2 = new b();
|
|
if (!(obj instanceof Map)) {
|
|
return bVar2;
|
|
}
|
|
bVar2.a((CampaignEx) ((Map) obj).get(MBInterstitialActivity.INTENT_CAMAPIGN));
|
|
return bVar2;
|
|
}
|
|
Map map2 = (Map) obj;
|
|
com.mbridge.msdk.newreward.a.e eVar = (com.mbridge.msdk.newreward.a.e) map2.get("adapter_model");
|
|
MBridgeOffsetManager mBridgeOffsetManager = (MBridgeOffsetManager) ((com.mbridge.msdk.newreward.function.command.c) map2.get("command_manager")).a((Object) null, f.CREATE_OFFSET);
|
|
if (mBridgeOffsetManager == null) {
|
|
eVar.a(0);
|
|
} else {
|
|
eVar.a(mBridgeOffsetManager.getOffset());
|
|
}
|
|
e eVar2 = new e(eVar.h(), eVar.C(), eVar.H(), !TextUtils.isEmpty(eVar.J()), eVar.J());
|
|
eVar2.a(eVar.L());
|
|
eVar2.e(eVar.G());
|
|
eVar2.c(eVar.M());
|
|
eVar2.b(eVar.N());
|
|
eVar2.a(eVar.n());
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
eVar.H();
|
|
com.mbridge.msdk.foundation.controller.c.m().c();
|
|
TextUtils.isEmpty("");
|
|
eVar2.c("");
|
|
}
|
|
String a2 = ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), eVar.H());
|
|
if (TextUtils.isEmpty(a2)) {
|
|
a2 = "";
|
|
}
|
|
eVar2.a(a2);
|
|
eVar2.b("");
|
|
eVar2.d(TextUtils.isEmpty(MBridgeGlobalCommon.SESSION_ID) ? "" : MBridgeGlobalCommon.SESSION_ID);
|
|
Object obj2 = map2.get("params_ext_map_key");
|
|
if (obj2 instanceof Map) {
|
|
eVar2.a((Map<String, String>) obj2);
|
|
}
|
|
return eVar2;
|
|
}
|
|
}
|