- 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
95 lines
4.4 KiB
Java
95 lines
4.4 KiB
Java
package com.mbridge.msdk.reward.adapter;
|
|
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.same.net.f.e;
|
|
import com.mbridge.msdk.foundation.tools.SameMD5;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class d {
|
|
private final String a;
|
|
private final String b;
|
|
private final boolean c;
|
|
private final com.mbridge.msdk.videocommon.d.c d;
|
|
private final String e;
|
|
|
|
public d(String str, String str2, boolean z, com.mbridge.msdk.videocommon.d.c cVar, String str3) {
|
|
this.a = str;
|
|
this.b = str2;
|
|
this.c = z;
|
|
this.d = cVar;
|
|
this.e = str3;
|
|
}
|
|
|
|
public final e a(boolean z, String str, int i, String str2, String str3, String str4, String str5, boolean z2, int i2) {
|
|
int i3;
|
|
int i4;
|
|
String k = com.mbridge.msdk.foundation.controller.c.m().k();
|
|
String md5 = SameMD5.getMD5(com.mbridge.msdk.foundation.controller.c.m().k() + com.mbridge.msdk.foundation.controller.c.m().b());
|
|
int i5 = z ? 2 : 3;
|
|
com.mbridge.msdk.videocommon.d.c cVar = this.d;
|
|
if (cVar != null) {
|
|
i3 = cVar.t();
|
|
i4 = this.d.u();
|
|
} else {
|
|
i3 = 0;
|
|
i4 = 0;
|
|
}
|
|
String a = com.mbridge.msdk.foundation.same.a.b.a(this.b, "reward");
|
|
int i6 = this.c ? 287 : 94;
|
|
e eVar = new e();
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "app_id", k);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, MBridgeConstans.PROPERTIES_UNIT_ID, this.b);
|
|
if (!TextUtils.isEmpty(this.a)) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, MBridgeConstans.PLACEMENT_ID, this.a);
|
|
}
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ttc_ids", str4 == null ? "" : str4);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "install_ids", str3 == null ? "" : str3);
|
|
}
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "sign", md5);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "req_type", String.valueOf(i5));
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ad_num", String.valueOf(i3));
|
|
if (this.c) {
|
|
i4 = 1;
|
|
}
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "tnum", String.valueOf(i4));
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "only_impression", "1");
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ping_mode", "1");
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, e.d, a);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, e.e, str == null ? "" : str);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, CampaignEx.JSON_KEY_AD_SOURCE_ID, String.valueOf(1));
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, e.f, str2 == null ? "" : str2);
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ad_type", String.valueOf(i6));
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "offset", String.valueOf(i));
|
|
if (!TextUtils.isEmpty(str5)) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "token", str5);
|
|
}
|
|
if (this.c) {
|
|
if (i2 == com.mbridge.msdk.foundation.same.a.I || i2 == com.mbridge.msdk.foundation.same.a.H) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ivrwd", "1");
|
|
} else {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "ivrwd", "0");
|
|
}
|
|
}
|
|
com.mbridge.msdk.videocommon.d.c cVar2 = this.d;
|
|
if (cVar2 != null && !TextUtils.isEmpty(cVar2.k())) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "u_stid", this.d.k());
|
|
}
|
|
com.mbridge.msdk.videocommon.d.a b = com.mbridge.msdk.videocommon.d.b.a().b();
|
|
if (b != null && !TextUtils.isEmpty(b.b())) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "r_stid", b.b());
|
|
}
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "rw_plus", z2 ? "1" : "0");
|
|
String d = ak.d(this.b);
|
|
if (!TextUtils.isEmpty(d)) {
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, "j", d);
|
|
}
|
|
String str6 = this.e;
|
|
com.mbridge.msdk.foundation.same.net.e.b.a(eVar, CampaignEx.JSON_KEY_LOCAL_REQUEST_ID, str6 != null ? str6 : "");
|
|
return eVar;
|
|
}
|
|
}
|