- 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
93 lines
2.9 KiB
Java
93 lines
2.9 KiB
Java
package com.mbridge.msdk.video.dynview.i;
|
|
|
|
import android.content.Context;
|
|
import android.net.Uri;
|
|
import android.text.TextUtils;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.tools.ab;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class a {
|
|
public static String a(Context context, int i) {
|
|
String str = i == 1 ? "_por" : "_land";
|
|
String t = ab.t(context);
|
|
if (t.startsWith("zh")) {
|
|
return (t.contains("TW") || t.contains("HK")) ? "mbridge_reward_two_title_zh_trad" : "mbridge_reward_two_title_zh";
|
|
}
|
|
if (t.startsWith("ja")) {
|
|
return "mbridge_reward_two_title_japan" + str;
|
|
}
|
|
if (t.startsWith(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_ERROR)) {
|
|
return "mbridge_reward_two_title_germany" + str;
|
|
}
|
|
if (t.startsWith("ko")) {
|
|
return "mbridge_reward_two_title_korea" + str;
|
|
}
|
|
if (t.startsWith("fr")) {
|
|
return "mbridge_reward_two_title_france" + str;
|
|
}
|
|
if (t.startsWith("ar")) {
|
|
return "mbridge_reward_two_title_arabia" + str;
|
|
}
|
|
if (t.startsWith("ru")) {
|
|
return "mbridge_reward_two_title_russian" + str;
|
|
}
|
|
return "mbridge_reward_two_title_en" + str;
|
|
}
|
|
|
|
public static boolean a(String str) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return false;
|
|
}
|
|
try {
|
|
Uri parse = Uri.parse(str);
|
|
if (parse == null) {
|
|
return false;
|
|
}
|
|
String queryParameter = parse.getQueryParameter("alecfc");
|
|
if (TextUtils.isEmpty(queryParameter)) {
|
|
return false;
|
|
}
|
|
return queryParameter.equals("1");
|
|
} catch (Throwable unused) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public static String a(String str, String str2) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
return "";
|
|
}
|
|
try {
|
|
Uri parse = Uri.parse(str);
|
|
if (parse != null) {
|
|
String queryParameter = parse.getQueryParameter(str2);
|
|
if (!TextUtils.isEmpty(queryParameter)) {
|
|
return queryParameter;
|
|
}
|
|
}
|
|
return "";
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e.printStackTrace();
|
|
}
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static int a(CampaignEx campaignEx) {
|
|
if (campaignEx != null && campaignEx.getRewardTemplateMode() != null) {
|
|
int f = campaignEx.getRewardTemplateMode().f();
|
|
if (f == 302 || f == 802 || f == 902) {
|
|
return -3;
|
|
}
|
|
if (f == 904) {
|
|
return !a(campaignEx.getRewardTemplateMode().e()) ? -1 : -3;
|
|
}
|
|
}
|
|
return 100;
|
|
}
|
|
}
|