Idle Egg Factory v2.1.5版本的 MD5 值为:7d2ba6677008ca521af0101bb927d72a
以下内容为反编译后的 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.f;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
@AdNetworkIdentifier(packageName = f.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 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, f.p, id, creativeId, clickUrl, videoUrl, "");
this.K = spotId;
Logger.d(Y, "FyberCreativeInfo ctor started");
m(adFormat);
this.ad = campaignId;
this.Q = sdkVersion;
this.ar = adNetwork;
this.aG = adDomain;
this.ag = alternativeClickUrl;
d(eventId);
}
@Override
public boolean a() {
return false;
}
@Override
public Bundle b() {
Bundle b = super.b();
if (!TextUtils.isEmpty(this.ad)) {
b.putString(CreativeInfo.D, this.ad);
}
if (!TextUtils.isEmpty(this.ag)) {
b.putString(aa, this.ag);
}
return b;
}
@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 x = x(it.next());
boolean z = false;
if (!TextUtils.isEmpty(x)) {
if (a(x)) {
s(x);
z = true;
} else if (b(x)) {
u(x);
z = true;
} else if (r(x) && !x.equals(A())) {
s(x);
z = true;
}
if (!z) {
Logger.d(Y, "classifyPrefetchUrl url is unclassified and will be dropped : " + x);
}
}
}
}
}
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;
}
}