花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e
以下内容为反编译后的 Config.java 源代码,内容仅作参考
package com.czhj.sdk.common.models;
import android.text.TextUtils;
public class Config {
private static Config gInstance;
private boolean disable_boot_mark;
private boolean disable_oaid_api;
private int disable_up_oaid;
private String log;
private int max_send_log_records = 100;
private int send_log_interval = 3;
private boolean mIsGDPRRegion = false;
private Config() {
}
public static Config sharedInstance() {
if (gInstance == null) {
synchronized (Config.class) {
if (gInstance == null) {
gInstance = new Config();
}
}
}
return gInstance;
}
public int getDisable_up_OAid() {
return this.disable_up_oaid;
}
public String getLogUrl() {
return TextUtils.isEmpty(this.log) ? "https://dc.sigmob.cn/log" : this.log;
}
public int getMax_send_log_records() {
if (this.max_send_log_records < 10) {
this.max_send_log_records = 100;
}
return this.max_send_log_records;
}
public boolean getOaidApiDisable() {
return this.disable_oaid_api;
}
public int getSend_log_interval() {
return this.send_log_interval;
}
public boolean isDisableBootMark() {
return this.disable_boot_mark;
}
public boolean isGDPRRegion() {
return this.mIsGDPRRegion;
}
public void update(boolean z, boolean z2, boolean z3, int i2, String str, int i3, int i4) {
this.mIsGDPRRegion = z;
this.disable_boot_mark = z2;
this.disable_oaid_api = z3;
this.disable_up_oaid = i2;
this.max_send_log_records = i4;
this.send_log_interval = i3;
this.log = str;
}
}