PSP Dragon Emulator v1.0版本的 MD5 值为:c6379fb6b63c27b6a7d2f2f6f6f51637
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.startapp.android.publish.adsCommon;
import android.content.Context;
import android.support.v4.view.ViewCompat;
import android.util.Log;
import com.startapp.android.publish.common.Constants;
import com.startapp.android.publish.common.commonUtils.r;
import com.startapp.android.publish.common.metaData.MetaDataStyle;
import java.io.Serializable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.TimeUnit;
public class b implements Serializable {
private static final long serialVersionUID = 1;
private static transient Object h = new Object();
public static final Integer a = 18;
public static final Integer b = -1;
public static final Set<String> c = new HashSet(Arrays.asList("BOLD"));
public static final Integer d = Integer.valueOf((int) ViewCompat.MEASURED_STATE_MASK);
public static final Integer e = -14803426;
public static final Integer f = -1;
public static final String g = "http://www.startappexchange.com/tracking/adClick";
private static transient b i = new b();
private String acMetadataUpdateVersion = Constants.h;
private Integer probability3D = 0;
private Integer homeProbability3D = 80;
private Integer fullpageOfferWallProbability = 100;
private Integer fullpageOverlayProbability = 0;
private Integer backgroundGradientTop = -14606047;
private Integer backgroundGradientBottom = -14606047;
private Integer maxAds = 10;
private Integer titleBackgroundColor = -14803426;
private String titleContent = "Recommended for you";
private Integer titleTextSize = a;
private Integer titleTextColor = b;
@com.startapp.android.publish.common.c.e(b = HashSet.class)
private Set<String> titleTextDecoration = c;
private Integer titleLineColor = d;
private Integer itemGradientTop = Integer.valueOf((int) MetaDataStyle.DEFAULT_ITEM_TOP);
private Integer itemGradientBottom = Integer.valueOf((int) MetaDataStyle.DEFAULT_ITEM_BOTTOM);
private Integer itemTitleTextSize = MetaDataStyle.DEFAULT_ITEM_TITLE_TEXT_SIZE;
private Integer itemTitleTextColor = MetaDataStyle.DEFAULT_ITEM_TITLE_TEXT_COLOR;
@com.startapp.android.publish.common.c.e(b = HashSet.class)
private Set<String> itemTitleTextDecoration = MetaDataStyle.DEFAULT_ITEM_TITLE_TEXT_DECORATION;
private Integer itemDescriptionTextSize = MetaDataStyle.DEFAULT_ITEM_DESC_TEXT_SIZE;
private Integer itemDescriptionTextColor = MetaDataStyle.DEFAULT_ITEM_DESC_TEXT_COLOR;
@com.startapp.android.publish.common.c.e(b = HashSet.class)
private Set<String> itemDescriptionTextDecoration = MetaDataStyle.DEFAULT_ITEM_DESC_TEXT_DECORATION;
@com.startapp.android.publish.common.c.e(b = HashMap.class, c = MetaDataStyle.class)
private HashMap<String, MetaDataStyle> templates = new HashMap<>();
@com.startapp.android.publish.common.c.e(a = true)
private com.startapp.android.publish.adsCommon.a.e adRules = new com.startapp.android.publish.adsCommon.a.e();
private Integer poweredByBackgroundColor = e;
private Integer poweredByTextColor = f;
private String adClickURL = g;
private long returnAdMinBackgroundTime = 300;
private boolean disableReturnAd = false;
private boolean disableSplashAd = false;
private int smartRedirectTimeout = 5;
private boolean enableSmartRedirect = true;
private boolean autoInterstitialEnabled = true;
private int defaultActivitiesBetweenAds = 1;
private int defaultSecondsBetweenAds = 0;
private boolean disableTwoClicks = false;
private boolean appPresence = true;
private boolean disableInAppStore = false;
@com.startapp.android.publish.common.c.e(a = true)
private l video = new l();
private int forceExternalBrowserDaysInterval = 7;
private boolean enableForceExternalBrowser = true;
private boolean enforceForeground = false;
public static b a() {
return i;
}
public static void a(Context context) {
Log.e("AdsCommonMetaData", " init");
b bVar = (b) com.startapp.android.publish.common.commonUtils.g.a(context, "StartappAdsMetadata", (Class<Object>) b.class);
b bVar2 = new b();
if (bVar != null) {
if (bVar.N()) {
r.a(bVar, bVar2);
}
bVar.O();
i = bVar;
return;
}
i = bVar2;
}
private boolean N() {
return !Constants.h.equals(this.acMetadataUpdateVersion);
}
private void O() {
this.adRules.b();
}
public int b() {
return this.fullpageOfferWallProbability.intValue();
}
public int c() {
return this.fullpageOverlayProbability.intValue();
}
public int d() {
return this.probability3D.intValue();
}
public int e() {
return this.backgroundGradientTop.intValue();
}
public MetaDataStyle a(String str) {
return this.templates.get(str);
}
public int f() {
return this.backgroundGradientBottom.intValue();
}
public int g() {
return this.maxAds.intValue();
}
public Integer h() {
return this.titleBackgroundColor;
}
public String i() {
return this.titleContent;
}
public Integer j() {
return this.titleTextSize;
}
public Integer k() {
return this.titleTextColor;
}
public Set<String> l() {
return this.titleTextDecoration;
}
public Integer m() {
return this.titleLineColor;
}
public int n() {
return this.itemGradientTop.intValue();
}
public int o() {
return this.itemGradientBottom.intValue();
}
public Integer p() {
return this.itemTitleTextSize;
}
public Integer q() {
return this.itemTitleTextColor;
}
public Set<String> r() {
return this.itemTitleTextDecoration;
}
public Integer s() {
return this.itemDescriptionTextSize;
}
public Integer t() {
return this.itemDescriptionTextColor;
}
public Set<String> u() {
return this.itemDescriptionTextDecoration;
}
public Integer v() {
return this.poweredByBackgroundColor;
}
public Integer w() {
return this.poweredByTextColor;
}
public long x() {
return TimeUnit.SECONDS.toMillis(this.returnAdMinBackgroundTime);
}
public boolean y() {
return this.disableReturnAd;
}
public boolean z() {
return this.disableSplashAd;
}
public long A() {
return TimeUnit.SECONDS.toMillis(this.smartRedirectTimeout);
}
public boolean B() {
return this.enableSmartRedirect;
}
public boolean C() {
return this.disableTwoClicks;
}
public boolean D() {
return this.appPresence;
}
public com.startapp.android.publish.adsCommon.a.e E() {
return this.adRules;
}
public boolean F() {
return this.disableInAppStore;
}
public l G() {
return this.video;
}
public boolean H() {
return this.autoInterstitialEnabled;
}
public int I() {
return this.defaultActivitiesBetweenAds;
}
public int J() {
return this.defaultSecondsBetweenAds;
}
public int K() {
return this.forceExternalBrowserDaysInterval;
}
public boolean L() {
return this.enableForceExternalBrowser;
}
public boolean M() {
return this.enforceForeground;
}
public static void a(Context context, b bVar) {
Log.e("AdsCommonMetaData", " update");
synchronized (h) {
bVar.acMetadataUpdateVersion = Constants.h;
i = bVar;
com.startapp.android.publish.common.commonUtils.g.a(context, "StartappAdsMetadata", bVar);
}
}
}