Wolves Themes v1.0版本的 MD5 值为:cddc92b47f6b7c4a195c9625507eb51c
以下内容为反编译后的 jh.java 源代码,内容仅作参考
package com.flurry.sdk;
import android.content.Context;
import android.widget.Toast;
import com.flurry.sdk.le;
import com.flurry.sdk.lg;
import com.flurry.sdk.md;
import java.util.Arrays;
public class jh extends lk implements md.a {
private static final String e = "jh";
private String f;
private boolean g;
public jh() {
this((byte) 0);
}
private jh(byte b) {
super("Analytics", jh.class.getSimpleName());
this.b = "AnalyticsData_";
mc a = mc.a();
this.g = ((Boolean) a.a("UseHttps")).booleanValue();
a.a("UseHttps", (md.a) this);
String str = e;
kx.a(4, str, "initSettings, UseHttps = " + this.g);
String str2 = (String) a.a("ReportUrl");
a.a("ReportUrl", (md.a) this);
b(str2);
String str3 = e;
kx.a(4, str3, "initSettings, ReportUrl = " + str2);
b();
}
private void b(String str) {
if (str != null && !str.endsWith(".do")) {
kx.a(5, e, "overriding analytics agent report URL without an endpoint, are you sure?");
}
this.f = str;
}
@Override
public final void a(String str, Object obj) {
char c;
int hashCode = str.hashCode();
if (hashCode != -239660092) {
if (hashCode == 1650629499 && str.equals("ReportUrl")) {
c = 1;
}
c = 65535;
} else {
if (str.equals("UseHttps")) {
c = 0;
}
c = 65535;
}
switch (c) {
case 0:
this.g = ((Boolean) obj).booleanValue();
String str2 = e;
kx.a(4, str2, "onSettingUpdate, UseHttps = " + this.g);
return;
case 1:
String str3 = (String) obj;
b(str3);
String str4 = e;
kx.a(4, str4, "onSettingUpdate, ReportUrl = " + str3);
return;
default:
kx.a(6, e, "onSettingUpdate internal error!");
return;
}
}
@Override
public final void a(String str, String str2, final int i) {
kh.a().b(new mk() {
@Override
public final void a() {
if (i == 200) {
hu.a();
jl b = hu.b();
if (b != null) {
b.j = true;
}
}
}
});
super.a(str, str2, i);
}
@Override
public final void a(byte[] bArr, final String str, final String str2) {
String str3;
if (this.f != null) {
str3 = this.f;
} else {
str3 = this.g ? "https://data.flurry.com/aap.do" : "http://data.flurry.com/aap.do";
}
String str4 = e;
kx.a(4, str4, "FlurryDataSender: start upload data " + Arrays.toString(bArr) + " with id = " + str + " to " + str3);
le leVar = new le();
leVar.g = str3;
leVar.u = 100000;
leVar.h = lg.a.kPost;
leVar.a("Content-Type", "application/octet-stream");
leVar.c = new lo();
leVar.b = bArr;
leVar.a = new le.a<byte[], Void>() {
@Override
public final void a(le<byte[], Void> leVar2, Void r4) {
final int i = leVar2.q;
if (i > 0) {
kx.e(jh.e, "Analytics report sent.");
String str5 = jh.e;
kx.a(3, str5, "FlurryDataSender: report " + str + " sent. HTTP response: " + i);
if (kx.c() <= 3 && kx.d()) {
kh.a().a(new Runnable() {
@Override
public final void run() {
Context context = kh.a().a;
Toast.makeText(context, "SD HTTP Response Code: " + i, 0).show();
}
});
}
jh.this.a(str, str2, i);
jh.this.d();
return;
}
jh.this.a(str);
}
};
kd.a().a((Object) this, (jh) leVar);
}
}