Wolves Themes v1.0版本的 MD5 值为:cddc92b47f6b7c4a195c9625507eb51c
以下内容为反编译后的 ac.java 源代码,内容仅作参考
package com.adcolony.sdk;
import android.util.Log;
import com.applovin.sdk.AppLovinEventTypes;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.json.JSONArray;
import org.json.JSONObject;
public class ac {
static boolean a = false;
static final int b = 4000;
static final int c = 4;
static final int d = 3;
static final int e = 2;
static final int f = 1;
static final int g = 0;
static final int h = -1;
static int i = 3;
static JSONObject j = y.a();
static int k = 1;
static al l;
public static void a(int i2, String str, boolean z) {
a(0, i2, str, z);
}
public static void a(int i2, int i3, String str, boolean z) {
a(i2, str, i3);
int i4 = 0;
while (i4 <= str.length() / b) {
int i5 = i4 * b;
i4++;
int i6 = i4 * b;
if (i6 > str.length()) {
i6 = str.length();
}
if (i3 == 3 && a(y.f(j, Integer.toString(i2)), 3, z)) {
Log.d("AdColony [TRACE]", str.substring(i5, i6));
} else if (i3 == 2 && a(y.f(j, Integer.toString(i2)), 2, z)) {
Log.i("AdColony [INFO]", str.substring(i5, i6));
} else if (i3 == 1 && a(y.f(j, Integer.toString(i2)), 1, z)) {
Log.w("AdColony [WARNING]", str.substring(i5, i6));
} else if (i3 == 0 && a(y.f(j, Integer.toString(i2)), 0, z)) {
Log.e("AdColony [ERROR]", str.substring(i5, i6));
} else if (i3 == -1 && i >= -1) {
Log.e("AdColony [FATAL]", str.substring(i5, i6));
}
}
}
static boolean a(JSONObject jSONObject, int i2, boolean z) {
int c2 = y.c(jSONObject, "print_level");
boolean d2 = y.d(jSONObject, "log_private");
if (jSONObject.length() == 0) {
c2 = i;
d2 = a;
}
return (!z || d2) && c2 != 4 && c2 >= i2;
}
static boolean a(JSONObject jSONObject, int i2) {
int c2 = y.c(jSONObject, "send_level");
if (jSONObject.length() == 0) {
c2 = k;
}
return c2 >= i2 && c2 != 4;
}
public static void a(HashMap<String, Object> hashMap) {
try {
l = new al(new z(new URL("https://wd.adcolony.com/logs")), Executors.newSingleThreadScheduledExecutor(), hashMap);
l.a(5L, TimeUnit.SECONDS);
} catch (MalformedURLException e2) {
e2.printStackTrace();
}
}
static void a(int i2, String str, int i3) {
if (l == null) {
return;
}
if (i3 == 3 && a(y.f(j, Integer.toString(i2)), 3)) {
l.c(str);
} else if (i3 == 2 && a(y.f(j, Integer.toString(i2)), 2)) {
l.d(str);
} else if (i3 == 1 && a(y.f(j, Integer.toString(i2)), 1)) {
l.e(str);
} else if (i3 == 0 && a(y.f(j, Integer.toString(i2)), 0)) {
l.f(str);
}
}
public static void a(s sVar) {
if (l == null || k == 4) {
return;
}
l.a(sVar);
}
public static void a() {
a.a("Log.set_log_level", new ah() {
@Override
public void a(af afVar) {
ac.i = y.c(afVar.c(), AppLovinEventTypes.USER_COMPLETED_LEVEL);
}
});
a.a("Log.public.trace", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 3, y.b(afVar.c(), "message"), false);
}
});
a.a("Log.private.trace", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 3, y.b(afVar.c(), "message"), true);
}
});
a.a("Log.public.info", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 2, y.b(afVar.c(), "message"), false);
}
});
a.a("Log.private.info", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 2, y.b(afVar.c(), "message"), true);
}
});
a.a("Log.public.warning", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 1, y.b(afVar.c(), "message"), false);
}
});
a.a("Log.private.warning", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 1, y.b(afVar.c(), "message"), true);
}
});
a.a("Log.public.error", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 0, y.b(afVar.c(), "message"), false);
}
});
a.a("Log.private.error", new ah() {
@Override
public void a(af afVar) {
ac.a(y.c(afVar.c(), "module"), 0, y.b(afVar.c(), "message"), true);
}
});
}
public void a(JSONArray jSONArray) {
j = b(jSONArray);
}
JSONObject b(JSONArray jSONArray) {
JSONObject a2 = y.a();
for (int i2 = 0; i2 < jSONArray.length(); i2++) {
JSONObject d2 = y.d(jSONArray, i2);
y.a(a2, Integer.toString(y.c(d2, "id")), d2);
}
return a2;
}
}