50度灰 v5.8.2版本的 MD5 值为:9fe3d350fdc75fa1a3ec45509fa0107e
以下内容为反编译后的 bk.java 源代码,内容仅作参考
package com.flurry.sdk;
import android.content.Context;
import android.widget.Toast;
import com.flurry.sdk.di;
import com.flurry.sdk.dk;
import com.flurry.sdk.eh;
import com.google.android.exoplayer2.extractor.ogg.DefaultOggSeeker;
public class bk extends Cdo implements eh.a {
private static final String f2702e = "bk";
private String f2703f;
private boolean f2704g;
public bk() {
this((byte) 0);
}
private bk(byte b2) {
super("Analytics", bk.class.getSimpleName());
this.f3047b = "AnalyticsData_";
eg a2 = eg.a();
this.f2704g = ((Boolean) a2.a("UseHttps")).booleanValue();
a2.a("UseHttps", (eh.a) this);
String str = f2702e;
db.a(4, str, "initSettings, UseHttps = " + this.f2704g);
String str2 = (String) a2.a("ReportUrl");
a2.a("ReportUrl", (eh.a) this);
a(str2);
db.a(4, str, "initSettings, ReportUrl = ".concat(String.valueOf(str2)));
b();
}
private void a(String str) {
if (str != null && !str.endsWith(".do")) {
db.a(5, f2702e, "overriding analytics agent report URL without an endpoint, are you sure?");
}
this.f2703f = str;
}
@Override
public final void a(String str, Object obj) {
str.hashCode();
if (str.equals("UseHttps")) {
this.f2704g = ((Boolean) obj).booleanValue();
String str2 = f2702e;
db.a(4, str2, "onSettingUpdate, UseHttps = " + this.f2704g);
} else if (!str.equals("ReportUrl")) {
db.a(6, f2702e, "onSettingUpdate internal error!");
} else {
String str3 = (String) obj;
a(str3);
db.a(4, f2702e, "onSettingUpdate, ReportUrl = ".concat(String.valueOf(str3)));
}
}
@Override
public final void a(String str, String str2, final int i) {
ck.a().b(new eo() {
@Override
public final void a() {
if (i == 200) {
x.a();
bo b2 = x.b();
if (b2 != null) {
b2.j = true;
}
}
}
});
super.a(str, str2, i);
}
@Override
public final void a(byte[] bArr, final String str, final String str2) {
String str3 = this.f2703f;
if (str3 == null) {
str3 = this.f2704g ? "https://data.flurry.com/aap.do" : "http://data.flurry.com/aap.do";
}
String l = Long.toString(System.currentTimeMillis());
String str4 = f2702e;
db.a(4, str4, "FlurryDataSender: id = " + str + " to " + str3 + " at " + l);
di diVar = new di();
diVar.f3019g = str3;
diVar.u = DefaultOggSeeker.MATCH_BYTE_RANGE;
diVar.h = dk.a.kPost;
diVar.a("Content-Type", com.tencent.cos.xml.common.a.n);
diVar.a("X-Flurry-Sdk-Clock", l);
diVar.f3005c = new ds();
diVar.f3004b = bArr;
diVar.f3003a = new di.a<byte[], Void>() {
@Override
public final void a(di<byte[], Void> diVar2, Void r4) {
final int i = diVar2.f3020q;
if (i > 0) {
db.e(bk.f2702e, "Analytics report sent.");
String str5 = bk.f2702e;
db.a(3, str5, "FlurryDataSender: report " + str + " sent. HTTP response: " + i);
if (db.c() <= 3 && db.d()) {
ck.a().a(new Runnable() {
@Override
public final void run() {
Context context = ck.a().f2892a;
Toast.makeText(context, "SD HTTP Response Code: " + i, 0).show();
}
});
}
bk.this.a(str, str2, i);
bk.this.d();
return;
}
bk.a(bk.this, str);
}
};
cg.a().a((Object) this, (bk) diVar);
}
static void a(final bk bkVar, final String str) {
ck.a().b(new eo() {
@Override
public final void a() {
if (bkVar.f3048c.remove(str)) {
return;
}
String str2 = bkVar.f3046a;
db.a(6, str2, "Internal error. Block with id = " + str + " was not in progress state");
}
});
}
}