- 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
59 lines
2.3 KiB
Java
59 lines
2.3 KiB
Java
package com.mbridge.msdk.click.b;
|
|
|
|
import android.content.Context;
|
|
import android.webkit.URLUtil;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.controller.c;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.same.report.d.d;
|
|
import com.mbridge.msdk.foundation.tools.ab;
|
|
import com.mbridge.msdk.foundation.tools.ad;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.mbbid.common.BidResponsedEx;
|
|
import com.tapjoy.TJAdUnitConstants;
|
|
import com.vungle.ads.internal.model.AdPayload;
|
|
import java.io.File;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class a {
|
|
public static int a = 1;
|
|
public static int b = 2;
|
|
public static int c = 1500;
|
|
private static String d = "2000109";
|
|
private static String e = "DspFilterUtils";
|
|
|
|
public static boolean a(CampaignEx campaignEx, String str, int i) {
|
|
if (campaignEx != null && campaignEx.getTpOffer() == 1) {
|
|
r1 = campaignEx.getFac() != 0;
|
|
try {
|
|
Context c2 = c.m().c();
|
|
if (c2 != null) {
|
|
if (URLUtil.isFileUrl(str)) {
|
|
File file = new File(str.replace("file:////", "").replace("file:///", "").replace(AdPayload.FILE_SCHEME, ""));
|
|
if (file.exists()) {
|
|
str = ad.b(file);
|
|
}
|
|
}
|
|
JSONObject jSONObject = new JSONObject();
|
|
jSONObject.put("key", d);
|
|
jSONObject.put("type", i);
|
|
jSONObject.put(TJAdUnitConstants.String.HTML, str);
|
|
jSONObject.put("network_type", ab.m(c2));
|
|
jSONObject.put(MBridgeConstans.PROPERTIES_UNIT_ID, campaignEx.getCampaignUnitId());
|
|
jSONObject.put("rid", campaignEx.getRequestId());
|
|
jSONObject.put("rid_n", campaignEx.getRequestIdNotice());
|
|
jSONObject.put(BidResponsedEx.KEY_CID, campaignEx.getId());
|
|
if (campaignEx.isBidCampaign()) {
|
|
jSONObject.put("hb", 1);
|
|
}
|
|
d.a().a(jSONObject);
|
|
}
|
|
} catch (Throwable th) {
|
|
af.b(e, th.getMessage());
|
|
}
|
|
}
|
|
return r1;
|
|
}
|
|
}
|