Ice Scream Tycoon v1.0.4版本的 MD5 值为:f589390679eebf9f2a1d825e8c8a632e
以下内容为反编译后的 l3.java 源代码,内容仅作参考
package com.my.target;
import android.content.Context;
import android.util.Base64;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.my.target.f5;
import com.safedk.android.analytics.events.CrashEvent;
import com.safedk.android.analytics.events.MaxEvent;
import com.tapjoy.TapjoyConstants;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
public final class l3 {
public final Map<String, Object> f5272a;
public final Map<Integer, Long> b;
public final long c;
public final int d;
public boolean e;
public static final class a {
public final int f5273a;
public boolean b = false;
public a(int i) {
this.f5273a = i;
}
public l3 a() {
l3 l3Var = new l3(this.f5273a, "myTarget", 0);
l3Var.a(this.b);
return l3Var;
}
public l3 a(String str, float f) {
l3 l3Var = new l3(this.f5273a, str, 5);
l3Var.a(this.b);
l3Var.f5272a.put("priority", Float.valueOf(f));
return l3Var;
}
public void a(boolean z) {
this.b = z;
}
public l3 b() {
l3 l3Var = new l3(this.f5273a, "myTarget", 4);
l3Var.a(this.b);
return l3Var;
}
}
public l3(int i, String str, int i2) {
HashMap hashMap = new HashMap();
this.f5272a = hashMap;
this.b = new HashMap();
this.d = i2;
this.c = System.currentTimeMillis();
hashMap.put("slot", Integer.valueOf(i));
hashMap.put(MaxEvent.d, str);
}
public static a a(int i) {
return new a(i);
}
public void a(Context context) {
String a2 = a();
e0.a("send metrics message:\n " + a2);
g3.d().b("https://ad.mail.ru/sdk/ms/", Base64.encodeToString(a2.getBytes(Charset.forName("UTF-8")), 0), context);
}
public String a() {
JSONObject jSONObject = new JSONObject();
try {
for (Map.Entry<String, Object> entry : this.f5272a.entrySet()) {
jSONObject.put(entry.getKey(), entry.getValue());
}
JSONArray jSONArray = new JSONArray();
jSONObject.put(CrashEvent.f, jSONArray);
for (Map.Entry<Integer, Long> entry2 : this.b.entrySet()) {
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("type", entry2.getKey());
jSONObject2.put(AppMeasurementSdk.ConditionalUserProperty.VALUE, entry2.getValue());
jSONArray.put(jSONObject2);
}
} catch (Throwable unused) {
}
return jSONObject.toString();
}
public void a(int i, long j) {
Long l = this.b.get(Integer.valueOf(i));
if (l != null) {
j += l.longValue();
}
b(i, j);
}
public void a(boolean z) {
this.e = z;
}
public void b() {
b(this.d, System.currentTimeMillis() - this.c);
}
public void b(int i, long j) {
this.b.put(Integer.valueOf(i), Long.valueOf(j));
}
public void b(final Context context) {
if (!this.e) {
e0.a("metrics sending disabled");
return;
}
if (this.b.isEmpty()) {
e0.a("metrics not send: empty");
return;
}
f5.a a2 = i5.c().a();
if (a2 == null) {
e0.a("metrics not send: basic info not collected");
return;
}
this.f5272a.put("instanceId", a2.f5199a);
this.f5272a.put("os", a2.b);
this.f5272a.put("osver", a2.c);
this.f5272a.put(TapjoyConstants.TJC_APP_PLACEMENT, a2.d);
this.f5272a.put("appver", a2.e);
this.f5272a.put("sdkver", a2.f);
f0.b(new Runnable() {
@Override
public final void run() {
l3.this.a(context);
}
});
}
}