JieJing Cleaner v1.4.2版本的 MD5 值为:a574eea9fb07160f0bbb08ba0adf1c62
以下内容为反编译后的 TTAdConfig.java 源代码,内容仅作参考
package com.bytedance.sdk.openadsdk;
import com.bytedance.sdk.openadsdk.AdConfig;
import java.util.HashMap;
import java.util.Map;
public final class TTAdConfig implements AdConfig {
public String a;
public String b;
public boolean c;
public String d;
public String e;
public int f;
public boolean g;
public boolean f2126h;
public boolean f2127i;
public int[] j;
public boolean k;
public boolean l;
public String[] m;
public boolean n;
public Map<String, Object> o;
public TTCustomController p;
public int f2128q;
public static class Builder {
public String a;
public String b;
public String d;
public String e;
public int[] j;
public String[] m;
public TTCustomController o;
public int p;
public boolean c = false;
public int f = 0;
public boolean g = true;
public boolean f2129h = false;
public boolean f2130i = false;
public boolean k = false;
public boolean l = false;
public boolean n = false;
public int f2131q = 2;
public Builder allowShowNotify(boolean z) {
this.g = z;
return this;
}
@Deprecated
public Builder allowShowPageWhenScreenLock(boolean z) {
this.f2130i = z;
return this;
}
public Builder appId(String str) {
this.a = str;
return this;
}
public Builder appName(String str) {
this.b = str;
return this;
}
public Builder asyncInit(boolean z) {
this.n = z;
return this;
}
public TTAdConfig build() {
TTAdConfig tTAdConfig = new TTAdConfig();
tTAdConfig.setAppId(this.a);
tTAdConfig.setAppName(this.b);
tTAdConfig.setPaid(this.c);
tTAdConfig.setKeywords(this.d);
tTAdConfig.setData(this.e);
tTAdConfig.setTitleBarTheme(this.f);
tTAdConfig.setAllowShowNotify(this.g);
tTAdConfig.setDebug(this.f2129h);
tTAdConfig.setAllowShowPageWhenScreenLock(this.f2130i);
tTAdConfig.setDirectDownloadNetworkType(this.j);
tTAdConfig.setUseTextureView(this.k);
tTAdConfig.setSupportMultiProcess(this.l);
tTAdConfig.setNeedClearTaskReset(this.m);
tTAdConfig.setAsyncInit(this.n);
tTAdConfig.setCustomController(this.o);
tTAdConfig.setThemeStatus(this.p);
tTAdConfig.setExtra("plugin_update_conf", Integer.valueOf(this.f2131q));
return tTAdConfig;
}
public Builder customController(TTCustomController tTCustomController) {
this.o = tTCustomController;
return this;
}
public Builder data(String str) {
this.e = str;
return this;
}
public Builder debug(boolean z) {
this.f2129h = z;
return this;
}
public Builder directDownloadNetworkType(int... iArr) {
this.j = iArr;
return this;
}
public Builder keywords(String str) {
this.d = str;
return this;
}
public Builder needClearTaskReset(String... strArr) {
this.m = strArr;
return this;
}
public Builder paid(boolean z) {
this.c = z;
return this;
}
public Builder setPluginUpdateConfig(int i2) {
this.f2131q = i2;
return this;
}
public Builder supportMultiProcess(boolean z) {
this.l = z;
return this;
}
public Builder themeStatus(int i2) {
this.p = i2;
return this;
}
public Builder titleBarTheme(int i2) {
this.f = i2;
return this;
}
public Builder useTextureView(boolean z) {
this.k = z;
return this;
}
}
@Override
public String getAppId() {
return this.a;
}
@Override
public String getAppName() {
return this.b;
}
@Override
public TTCustomController getCustomController() {
return this.p;
}
@Override
public String getData() {
return this.e;
}
@Override
public int[] getDirectDownloadNetworkType() {
return this.j;
}
@Override
@Deprecated
public Object getExtra(String str) {
return this.o.get(str);
}
@Override
public String getKeywords() {
return this.d;
}
@Override
public String[] getNeedClearTaskReset() {
return this.m;
}
@Override
public AdConfig.SdkInfo getSdkInfo() {
return new AdConfig.SdkInfo() {
@Override
public boolean isPlugin() {
return true;
}
@Override
public String pluginName() {
return TTAdConstant.BUILT_IN_PLUGIN_NAME;
}
@Override
public int sdkVersionCode() {
return 4003;
}
@Override
public String sdkVersionName() {
return "4.0.0.3";
}
};
}
public int getThemeStatus() {
return this.f2128q;
}
@Override
public int getTitleBarTheme() {
return this.f;
}
@Override
public boolean isAllowShowNotify() {
return this.g;
}
@Override
public boolean isAllowShowPageWhenScreenLock() {
return this.f2127i;
}
@Override
public boolean isAsyncInit() {
return this.n;
}
@Override
public boolean isDebug() {
return this.f2126h;
}
@Override
public boolean isPaid() {
return this.c;
}
@Override
public boolean isSupportMultiProcess() {
return this.l;
}
@Override
public boolean isUseTextureView() {
return this.k;
}
@Override
public Object removeExtra(String str) {
return this.o.remove(str);
}
public void setAllowShowNotify(boolean z) {
this.g = z;
}
public void setAllowShowPageWhenScreenLock(boolean z) {
this.f2127i = z;
}
public void setAppId(String str) {
this.a = str;
}
public void setAppName(String str) {
this.b = str;
}
public void setAsyncInit(boolean z) {
this.n = z;
}
public void setCustomController(TTCustomController tTCustomController) {
this.p = tTCustomController;
}
public void setData(String str) {
this.e = str;
}
public void setDebug(boolean z) {
this.f2126h = z;
}
public void setDirectDownloadNetworkType(int... iArr) {
this.j = iArr;
}
@Override
@Deprecated
public void setExtra(String str, Object obj) {
this.o.put(str, obj);
}
public void setKeywords(String str) {
this.d = str;
}
public void setNeedClearTaskReset(String... strArr) {
this.m = strArr;
}
public void setPaid(boolean z) {
this.c = z;
}
public void setSupportMultiProcess(boolean z) {
this.l = z;
}
public void setThemeStatus(int i2) {
this.f2128q = i2;
}
public void setTitleBarTheme(int i2) {
this.f = i2;
}
public void setUseTextureView(boolean z) {
this.k = z;
}
public TTAdConfig() {
this.c = false;
this.f = 0;
this.g = true;
this.f2126h = false;
this.f2127i = false;
this.k = false;
this.l = false;
this.n = false;
this.o = new HashMap();
}
}