- 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
146 lines
6.3 KiB
Java
146 lines
6.3 KiB
Java
package com.mbridge.msdk.newreward.a.b;
|
|
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.newreward.function.c.c.q;
|
|
import com.mbridge.msdk.newreward.function.c.c.x;
|
|
import com.mbridge.msdk.newreward.function.common.MBridgeError;
|
|
import java.io.IOException;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class d implements a {
|
|
private com.mbridge.msdk.newreward.function.command.c a;
|
|
private com.mbridge.msdk.newreward.a.e b;
|
|
private int c = 0;
|
|
|
|
@Override // com.mbridge.msdk.newreward.a.b.a
|
|
public final void a(Object obj, final b bVar) throws IOException {
|
|
com.mbridge.msdk.newreward.function.c.a.b bVar2 = (com.mbridge.msdk.newreward.function.c.a.b) obj;
|
|
final com.mbridge.msdk.newreward.function.c.c.d<?> w = bVar2.w();
|
|
if (bVar2.H() != null) {
|
|
if (bVar2.H().containsKey("command_manager")) {
|
|
this.a = (com.mbridge.msdk.newreward.function.command.c) bVar2.H().get("command_manager");
|
|
}
|
|
if (bVar2.H().containsKey("adapter_model")) {
|
|
this.b = (com.mbridge.msdk.newreward.a.e) bVar2.H().get("adapter_model");
|
|
}
|
|
}
|
|
if (w == null) {
|
|
bVar.reqSuccessful(bVar2);
|
|
return;
|
|
}
|
|
if (w.f() == 1) {
|
|
this.c = 1;
|
|
} else {
|
|
this.c = 2;
|
|
}
|
|
a(com.mbridge.msdk.newreward.function.command.f.REPORT_DOWNLOAD_START, bVar2, 0, "");
|
|
w.l().a(0, new x() { // from class: com.mbridge.msdk.newreward.a.b.d.1
|
|
@Override // com.mbridge.msdk.newreward.function.c.c.x
|
|
public final void a(com.mbridge.msdk.newreward.function.c.a.b bVar3, com.mbridge.msdk.newreward.function.c.a.a aVar, q qVar) {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.function.c.c.x
|
|
public final void b(com.mbridge.msdk.newreward.function.c.a.b bVar3, com.mbridge.msdk.newreward.function.c.a.a aVar, q qVar) {
|
|
if (bVar3.y()) {
|
|
bVar.reqSuccessful(bVar3);
|
|
}
|
|
d.this.a(com.mbridge.msdk.newreward.function.command.f.REPORT_DOWNLOAD_END, bVar3, 1, "");
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.function.c.c.x
|
|
public final void a(com.mbridge.msdk.newreward.function.c.a.b bVar3, com.mbridge.msdk.newreward.function.c.a.a aVar, q qVar, MBridgeError mBridgeError) {
|
|
d.this.a(com.mbridge.msdk.newreward.function.command.f.REPORT_DOWNLOAD_END, bVar3, 3, mBridgeError != null ? mBridgeError.getErrorMessage() : "");
|
|
a(bVar3, bVar, mBridgeError, "errorCode: 3203 errorMessage:");
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.function.c.c.x
|
|
public final void b(com.mbridge.msdk.newreward.function.c.a.b bVar3, com.mbridge.msdk.newreward.function.c.a.a aVar, q qVar, MBridgeError mBridgeError) {
|
|
d.this.a(com.mbridge.msdk.newreward.function.command.f.REPORT_DOWNLOAD_END, bVar3, 2, mBridgeError != null ? mBridgeError.getErrorMessage() : "");
|
|
a(bVar3, bVar, mBridgeError, "errorCode: 3401 errorMessage: ");
|
|
}
|
|
|
|
private void a(com.mbridge.msdk.newreward.function.c.a.b bVar3, b bVar4, MBridgeError mBridgeError, String str) {
|
|
int errorCode;
|
|
String errorMessage;
|
|
if (bVar3.y()) {
|
|
try {
|
|
bVar4.reqSuccessful(bVar3);
|
|
return;
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("ReqDownBigTempleService", "doReq: ", e);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
if (mBridgeError != null) {
|
|
try {
|
|
errorCode = mBridgeError.getErrorCode();
|
|
errorMessage = mBridgeError.getErrorMessage();
|
|
} catch (Exception e2) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("ReqDownBigTempleService", "doReq: ", e2);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
} else {
|
|
errorMessage = "big temp load fail ";
|
|
errorCode = -1;
|
|
}
|
|
if (w.d()) {
|
|
return;
|
|
}
|
|
bVar4.reqFailed(com.mbridge.msdk.foundation.c.a.a(errorCode, 880005, str + errorMessage));
|
|
}
|
|
});
|
|
}
|
|
|
|
/* renamed from: com.mbridge.msdk.newreward.a.b.d$2, reason: invalid class name */
|
|
public static /* synthetic */ class AnonymousClass2 {
|
|
static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[com.mbridge.msdk.newreward.function.command.f.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[com.mbridge.msdk.newreward.function.command.f.REPORT_DOWNLOAD_START.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[com.mbridge.msdk.newreward.function.command.f.REPORT_DOWNLOAD_END.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(com.mbridge.msdk.newreward.function.command.f fVar, com.mbridge.msdk.newreward.function.c.a.b bVar, int i, String str) {
|
|
com.mbridge.msdk.newreward.function.command.c cVar = this.a;
|
|
if (cVar == null || this.b == null) {
|
|
return;
|
|
}
|
|
try {
|
|
Map a = cVar.a("resource_type", 1, "url", bVar.w().j());
|
|
int i2 = AnonymousClass2.a[fVar.ordinal()];
|
|
if (i2 == 1) {
|
|
a.put("cache", Integer.valueOf(this.c));
|
|
this.a.a(this.b, fVar, a);
|
|
} else if (i2 == 2 && this.c == 2) {
|
|
a.put("result", Integer.valueOf(i));
|
|
if (i != 1) {
|
|
a.put("reason", str);
|
|
}
|
|
this.a.a(this.b, fVar, a);
|
|
}
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|