Add Discord community version (64-bit only)

- 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
This commit is contained in:
2026-02-18 15:48:36 -08:00
parent c19eb3d7ff
commit c080f0d97f
26930 changed files with 2529574 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
package com.mbridge.msdk.newreward.function.h;
import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;
import com.mbridge.msdk.MBridgeConstans;
/* loaded from: classes4.dex */
public final class a {
/* renamed from: com.mbridge.msdk.newreward.function.h.a$a, reason: collision with other inner class name */
public interface InterfaceC0221a {
void blurFailCallBack();
void blurSuccessCallBack(Bitmap bitmap);
}
public static void a(final Bitmap bitmap, final InterfaceC0221a interfaceC0221a) {
try {
com.mbridge.msdk.foundation.same.f.a.d().execute(new Runnable() { // from class: com.mbridge.msdk.newreward.function.h.a.1
@Override // java.lang.Runnable
public final void run() {
if (InterfaceC0221a.this == null) {
return;
}
try {
Bitmap b = a.b(bitmap);
if (b != null && !b.isRecycled()) {
InterfaceC0221a.this.blurSuccessCallBack(b);
} else {
InterfaceC0221a.this.blurFailCallBack();
}
} catch (Exception unused) {
InterfaceC0221a.this.blurFailCallBack();
}
}
});
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
e.printStackTrace();
}
}
}
/* JADX INFO: Access modifiers changed from: private */
@TargetApi(17)
public static Bitmap b(Bitmap bitmap) {
try {
Bitmap createBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_4444);
RenderScript create = RenderScript.create(com.mbridge.msdk.foundation.controller.c.m().c());
ScriptIntrinsicBlur create2 = ScriptIntrinsicBlur.create(create, Element.U8_4(create));
Allocation createFromBitmap = Allocation.createFromBitmap(create, bitmap);
Allocation createFromBitmap2 = Allocation.createFromBitmap(create, createBitmap);
create2.setRadius(25.0f);
create2.setInput(createFromBitmap);
create2.forEach(createFromBitmap2);
createFromBitmap2.copyTo(createBitmap);
create.destroy();
return createBitmap;
} catch (Throwable unused) {
return null;
}
}
}

View File

@@ -0,0 +1,183 @@
package com.mbridge.msdk.newreward.function.h;
import android.text.TextUtils;
import android.util.Base64;
import com.ironsource.v8;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.c.g;
import com.mbridge.msdk.c.h;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.i;
import java.util.Iterator;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class b {
public static CampaignEx a(String str, CampaignEx campaignEx) {
JSONObject campaignToJsonObject;
String str2;
String str3;
if (TextUtils.isEmpty(str)) {
return campaignEx;
}
CampaignEx campaignEx2 = null;
if (campaignEx != null) {
try {
campaignToJsonObject = CampaignEx.campaignToJsonObject(campaignEx);
} catch (Throwable th) {
af.b("HybridCommunicatorUtil", th.getMessage());
return campaignEx;
}
} else {
campaignToJsonObject = null;
}
if (campaignToJsonObject != null) {
JSONObject jSONObject = new JSONObject(str);
String optString = jSONObject.optString(CampaignEx.JSON_KEY_NOTICE_URL);
if (TextUtils.isEmpty(optString)) {
optString = campaignEx.getNoticeUrl();
}
String optString2 = jSONObject.optString(CampaignEx.JSON_KEY_CLICK_URL);
if (TextUtils.isEmpty(optString2)) {
optString2 = campaignEx.getClickURL();
}
if (!str.contains("notice")) {
JSONObject optJSONObject = jSONObject.optJSONObject(com.mbridge.msdk.foundation.same.a.j);
if (optJSONObject != null) {
str2 = String.valueOf(ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), Integer.parseInt(optJSONObject.getString(com.mbridge.msdk.foundation.same.a.h))));
str3 = String.valueOf(ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), Integer.parseInt(optJSONObject.getString(com.mbridge.msdk.foundation.same.a.i))));
} else {
str2 = "-999";
str3 = "-999";
}
if (optJSONObject != null && optJSONObject.length() > 0) {
Iterator<String> keys = optJSONObject.keys();
StringBuilder sb = new StringBuilder();
while (keys.hasNext()) {
sb.append(v8.i.c);
String next = keys.next();
String optString3 = optJSONObject.optString(next);
if (com.mbridge.msdk.foundation.same.a.h.equals(next) || com.mbridge.msdk.foundation.same.a.i.equals(next)) {
optString3 = String.valueOf(ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), Integer.parseInt(optString3)));
}
sb.append(next);
sb.append(v8.i.b);
sb.append(optString3);
}
optString = optString + ((Object) sb);
}
optString2 = com.mbridge.msdk.click.c.a(campaignEx.getClickURL(), str2, str3);
} else {
if (!jSONObject.has(CampaignEx.JSON_KEY_DEEP_LINK_URL)) {
campaignToJsonObject.put(CampaignEx.JSON_KEY_DEEP_LINK_URL, "");
}
if (jSONObject.opt("akdlui") == null) {
campaignToJsonObject.put("akdlui", "");
}
}
Iterator<String> keys2 = jSONObject.keys();
while (keys2.hasNext()) {
String next2 = keys2.next();
campaignToJsonObject.put(next2, jSONObject.getString(next2));
}
if (!TextUtils.isEmpty(campaignEx.getCampaignUnitId())) {
campaignToJsonObject.put("unitId", campaignEx.getCampaignUnitId());
}
campaignToJsonObject.put(CampaignEx.JSON_KEY_CLICK_URL, optString2);
campaignToJsonObject.put(CampaignEx.JSON_KEY_NOTICE_URL, optString);
campaignEx2 = CampaignEx.parseCampaignWithBackData(campaignToJsonObject);
}
return campaignEx2 == null ? campaignEx : campaignEx2;
}
public static String a(String str, List<CampaignEx> list, boolean z) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put(MBridgeConstans.PROPERTIES_UNIT_ID, str);
jSONObject.put("sdk_info", "MAL_16.8.51,3.0.1");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("isRootTemplateWebView", false);
jSONObject2.put("playVideoMute", 2);
jSONObject.put("sdkSetting", jSONObject2);
jSONObject.put("device", new i(com.mbridge.msdk.foundation.controller.c.m().c()).a());
JSONArray jSONArray = new JSONArray();
if (list != null && !list.isEmpty()) {
for (CampaignEx campaignEx : list) {
jSONArray.put(CampaignEx.campaignToJsonObject(campaignEx, campaignEx.isReady(), a(campaignEx)));
}
}
jSONObject.put("campaignList", jSONArray);
String g = h.a().g(com.mbridge.msdk.foundation.controller.c.m().k());
if (!TextUtils.isEmpty(g)) {
JSONObject jSONObject3 = new JSONObject(g);
String c = h.a().c(str);
if (!TextUtils.isEmpty(c)) {
jSONObject3.put("ivreward", new JSONObject(c));
}
jSONObject.put("appSetting", jSONObject3);
}
jSONObject.put("rewardSetting", com.mbridge.msdk.videocommon.d.b.a().b().k());
jSONObject.put("unitSetting", com.mbridge.msdk.videocommon.d.b.a().a(com.mbridge.msdk.foundation.controller.c.m().k(), str).E());
jSONObject.put("rw_plus", z ? "1" : "0");
} catch (Throwable th) {
af.b("HybridCommunicatorUtil", th.getMessage());
}
return jSONObject.toString();
}
private static boolean a(CampaignEx campaignEx) {
g b;
try {
String k = com.mbridge.msdk.foundation.controller.c.m().k();
long ad = (TextUtils.isEmpty(k) || (b = h.a().b(k)) == null) ? 0L : b.ad() * 1000;
com.mbridge.msdk.videocommon.d.a b2 = com.mbridge.msdk.videocommon.d.b.a().b();
long f = b2 != null ? b2.f() : 0L;
if (campaignEx != null) {
return campaignEx.isSpareOffer(f, ad);
}
return false;
} catch (Exception e) {
af.b("HybridCommunicatorUtil", e.getMessage());
return false;
}
}
public static String a(int i) {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("code", i);
String jSONObject2 = jSONObject.toString();
return !TextUtils.isEmpty(jSONObject2) ? Base64.encodeToString(jSONObject2.getBytes(), 2) : jSONObject2;
} catch (Throwable th) {
af.b("HybridCommunicatorUtil", th.getMessage());
return "";
}
}
public static String a(float f, float f2, int i) {
int i2;
JSONObject jSONObject = new JSONObject();
try {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(com.mbridge.msdk.foundation.same.a.h, ak.b(com.mbridge.msdk.foundation.controller.c.m().c(), f));
jSONObject2.put(com.mbridge.msdk.foundation.same.a.i, ak.b(com.mbridge.msdk.foundation.controller.c.m().c(), f2));
jSONObject2.put(com.mbridge.msdk.foundation.same.a.m, i);
try {
i2 = com.mbridge.msdk.foundation.controller.c.m().c().getResources().getConfiguration().orientation;
} catch (Throwable th) {
af.b("HybridCommunicatorUtil", th.getMessage());
i2 = 1;
}
jSONObject2.put(com.mbridge.msdk.foundation.same.a.k, i2);
jSONObject2.put(com.mbridge.msdk.foundation.same.a.l, ak.d(com.mbridge.msdk.foundation.controller.c.m().c()));
jSONObject.put(com.mbridge.msdk.foundation.same.a.j, jSONObject2);
} catch (Throwable th2) {
af.b("HybridCommunicatorUtil", th2.getMessage());
}
return jSONObject.toString();
}
}

View File

@@ -0,0 +1,137 @@
package com.mbridge.msdk.newreward.function.h;
import android.text.TextUtils;
import com.mbridge.msdk.c.h;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.z;
import com.mbridge.msdk.newreward.function.common.MBridgeTaskManager;
import java.io.File;
import java.io.FileInputStream;
import java.net.URL;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class c {
public static String a(String str) {
if (TextUtils.isEmpty(str)) {
return "";
}
try {
String path = new URL(str).getPath();
return path.substring(path.lastIndexOf(47) + 1);
} catch (Exception unused) {
return str;
}
}
public static boolean b(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
return ak.i(str);
}
public static boolean c(String str) {
String[] split;
if (TextUtils.isEmpty(str)) {
return false;
}
try {
String[] split2 = str.split("_");
if (split2.length < 4) {
return false;
}
String str2 = split2[3];
if (!TextUtils.isEmpty(str2) && (split = z.a(str2).split("\\|")) != null) {
if (split.length != 0) {
return true;
}
}
return false;
} catch (Exception unused) {
return true;
}
}
public static String a(File file) {
FileInputStream fileInputStream;
StringBuilder sb = new StringBuilder();
FileInputStream fileInputStream2 = null;
try {
try {
try {
fileInputStream = new FileInputStream(file);
} catch (Exception unused) {
}
} catch (Throwable th) {
th = th;
}
} catch (Exception unused2) {
}
try {
byte[] bArr = new byte[1024];
for (int read = fileInputStream.read(bArr); read > 0; read = fileInputStream.read(bArr)) {
sb.append(new String(bArr, 0, read));
}
fileInputStream.close();
} catch (Exception unused3) {
fileInputStream2 = fileInputStream;
sb.setLength(0);
if (fileInputStream2 != null) {
fileInputStream2.close();
}
return sb.toString();
} catch (Throwable th2) {
th = th2;
fileInputStream2 = fileInputStream;
if (fileInputStream2 != null) {
try {
fileInputStream2.close();
} catch (Exception unused4) {
}
}
throw th;
}
return sb.toString();
}
public static double d(String str) {
String[] split;
if (TextUtils.isEmpty(str)) {
return 0.0d;
}
try {
split = str.split("_");
} catch (Exception unused) {
}
if (split.length < 4) {
return 0.0d;
}
String str2 = split[3];
if (TextUtils.isEmpty(str2)) {
return 0.0d;
}
String[] split2 = z.a(str2).split("\\|");
if (split2.length > 0) {
return Double.parseDouble(split2[0]);
}
return 0.0d;
}
public static void a(final String str, final int i, final int i2, final int i3) {
MBridgeTaskManager.commonExecute(new Runnable() { // from class: com.mbridge.msdk.newreward.function.h.c.1
@Override // java.lang.Runnable
public final void run() {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("ivRewardEnable", 1);
jSONObject.put("ivRewardMode", i == com.mbridge.msdk.foundation.same.a.H ? 0 : 1);
jSONObject.put("ivRewardPlayValueMode", i2 == com.mbridge.msdk.foundation.same.a.J ? 0 : 1);
jSONObject.put("ivRewardPlayValue", i3);
h.a().f(str, jSONObject.toString());
} catch (Exception unused) {
}
}
});
}
}

View File

@@ -0,0 +1,21 @@
package com.mbridge.msdk.newreward.function.h;
import android.text.TextUtils;
import com.mbridge.msdk.foundation.tools.SameMD5;
import com.mbridge.msdk.foundation.tools.ak;
/* loaded from: classes4.dex */
public final class d {
public static String a(String str) {
if (TextUtils.isEmpty(str)) {
return SameMD5.getMD5(ak.d());
}
try {
String[] split = str.split("_");
String str2 = (split == null || split.length < 3) ? "" : split[2];
return TextUtils.isEmpty(str2) ? SameMD5.getMD5(ak.d()) : str2;
} catch (Exception unused) {
return SameMD5.getMD5(ak.d());
}
}
}