Puzzle King v2.3.8版本的 MD5 值为:1734eb975c9d2843afa462aec387292e
以下内容为反编译后的 FyberCreativeInfo.java 源代码,内容仅作参考
package com.safedk.android.analytics.brandsafety.creatives.infos;
import android.os.Bundle;
import android.text.TextUtils;
import android.webkit.MimeTypeMap;
import com.safedk.android.analytics.brandsafety.BrandSafetyUtils;
import com.safedk.android.utils.Logger;
import com.safedk.android.utils.annotations.AdNetworkIdentifier;
import com.safedk.android.utils.g;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
@AdNetworkIdentifier(packageName = g.p)
public class FyberCreativeInfo extends CreativeInfo {
private static final String Y = "FyberCreativeInfo";
private static final String aa = "alternative_click_url";
private static final List<String> ab = Arrays.asList("gif", "jpg", "jpeg", "png");
private static final List<String> ac = Arrays.asList("www.serveroute.com/log_string", "column=", "line=", "ad_exchange=inneractive&mraid_version=");
private static final long serialVersionUID = -5726627304425536096L;
private String ad;
private String ag;
public String a() {
return this.ad;
}
public String b() {
return this.ag;
}
public FyberCreativeInfo(String id, String creativeId, String campaignId, String clickUrl, String videoUrl, String adFormat, BrandSafetyUtils.AdType adType, String spotId, String sdkVersion, String adNetwork, String adDomain, String alternativeClickUrl, String eventId) {
super(adType, g.p, id, creativeId, clickUrl, videoUrl, "");
this.K = spotId;
Logger.d(Y, "FyberCreativeInfo ctor started");
n(adFormat);
this.ad = campaignId;
this.Q = sdkVersion;
this.ar = adNetwork;
this.aP = adDomain;
this.ag = alternativeClickUrl;
d(eventId);
}
@Override
public boolean c() {
return false;
}
@Override
public Bundle d() {
Bundle d = super.d();
if (!TextUtils.isEmpty(this.ad)) {
d.putString(CreativeInfo.D, this.ad);
}
if (!TextUtils.isEmpty(this.ag)) {
d.putString(aa, this.ag);
}
return d;
}
@Override
public void b(List<String> list) {
Logger.d(Y, "classifyPrefetchUrl started, urlList=" + list);
if (list != null) {
Iterator<String> it = list.iterator();
while (it.hasNext()) {
String z = z(it.next());
boolean z2 = false;
if (!TextUtils.isEmpty(z)) {
if (a(z)) {
t(z);
z2 = true;
} else if (b(z)) {
v(z);
z2 = true;
} else if (s(z) && !z.equals(J())) {
t(z);
z2 = true;
}
if (!z2) {
Logger.d(Y, "classifyPrefetchUrl url is unclassified and will be dropped : " + z);
}
}
}
}
}
public static boolean a(String str) {
String fileExtensionFromUrl = MimeTypeMap.getFileExtensionFromUrl(str);
Logger.d(Y, "extension: " + fileExtensionFromUrl + " for url: " + str);
if (ab.contains(fileExtensionFromUrl)) {
Logger.d(Y, "checking for tracking url pattern, extension: " + fileExtensionFromUrl + " for url: " + str);
if (str.indexOf("?") > 0) {
return true;
}
}
return false;
}
}