Apk Done v1.0版本的 MD5 值为:44cfb8e1ce639995aa7f0de6a3a6388b
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.appnext.core.ra;
import android.content.Context;
import android.text.TextUtils;
import com.appnext.base.b.b;
import com.appnext.core.g;
import org.json.JSONObject;
public class a {
private static final String eb = "https://cdn.appnext.com/tools/sdk/confign/sdk_core/" + g.W() + "/sdk_config.json";
private static volatile a ec;
private Context aM;
private JSONObject ed;
public static a o(Context context) {
if (ec == null) {
synchronized (a.class) {
if (ec == null) {
ec = new a(context);
}
}
}
return ec;
}
private a(Context context) {
try {
this.aM = context;
String c = b.N().c("config_store", null);
if (TextUtils.isEmpty(c)) {
return;
}
this.ed = new JSONObject(c);
} catch (Throwable th) {
com.appnext.base.a.a("RAConfigManager$RAConfigManager", th);
}
}
public final boolean ah() {
if (this.ed == null) {
al();
}
String m = m("rc_send", "on");
return m != null && m.equalsIgnoreCase("on");
}
public final void ai() {
try {
al();
com.appnext.core.ra.services.a.p(this.aM).a(ak());
if (ah()) {
com.appnext.core.ra.services.a.p(this.aM).b(aj());
} else {
com.appnext.core.ra.services.a.p(this.aM).ax();
}
} catch (Throwable th) {
com.appnext.base.a.a("RRAConfigManager$downloadConfigFileFromServer", th);
}
}
private synchronized long aj() {
return c("send_rc_int", 240);
}
private synchronized long ak() {
return c("config_int", 14400);
}
private long c(String str, int i) {
try {
if (this.ed != null) {
return d(str, i);
}
} catch (Throwable th) {
com.appnext.base.a.a("RAConfigManager$getLongValue", th);
}
return i;
}
private long d(String str, int i) {
try {
if (this.ed != null && this.ed.has(str)) {
return this.ed.getLong(str);
}
} catch (Throwable th) {
th.printStackTrace();
}
return i;
}
private String m(String str, String str2) {
try {
if (this.ed != null && this.ed != null) {
return n(str, str2);
}
} catch (Throwable th) {
com.appnext.base.a.a("RAConfigManager$getStringValue", th);
}
return str2;
}
private String n(String str, String str2) {
try {
if (this.ed != null && this.ed.has(str)) {
return this.ed.getString(str);
}
} catch (Throwable th) {
com.appnext.base.a.a("RAConfigManager$getStringValueFromLocalJson", th);
}
return str2;
}
private JSONObject al() {
try {
String am = am();
if (TextUtils.isEmpty(am)) {
return null;
}
if (!TextUtils.isEmpty(am)) {
b.N().d("config_store", am);
}
JSONObject jSONObject = new JSONObject(am);
this.ed = jSONObject;
return jSONObject;
} catch (Throwable th) {
com.appnext.base.a.a("RAConfigManager$downloadConfigFileAndStore", th);
return null;
}
}
private String am() {
try {
return g.a(this.aM, eb, null);
} catch (Throwable th) {
com.appnext.base.a.a("RAConfigManager$downloadConfigFile", th);
return null;
}
}
}