Idle Egg Factory v2.1.5版本的 MD5 值为:7d2ba6677008ca521af0101bb927d72a
以下内容为反编译后的 gf.java 源代码,内容仅作参考
package com.inmobi.media;
import com.inmobi.media.gh;
import org.json.JSONObject;
public class gf extends fw {
private static final boolean DEFAULT_CATCH_ENABLED = false;
private static final boolean DEFAULT_CRASH_ENABLED = true;
private static final long DEFAULT_EVENT_TTL_SEC = 259200;
private static final long DEFAULT_INGESTION_LATENCY_SEC = 86400;
private static final int DEFAULT_MAX_BATCH_SIZE = 2;
private static final int DEFAULT_MAX_EVENTS_TO_PERSIST = 50;
private static final int DEFAULT_MAX_RETRIES = 3;
private static final int DEFAULT_MIN_BATCH_SIZE = 1;
private static final long DEFAULT_PROCESSING_INTERVAL_SEC = 60;
private static final long DEFAULT_RETRY_INTERVAL_SEC = 10;
private static final String DEFAULT_URL = "https://crash-metrics.sdk.inmobi.com/trace";
public boolean catchEnabled;
public boolean crashEnabled;
public long eventTTL;
public int maxEventsToPersist;
public int maxRetryCount;
public gh networkType;
public long processingInterval;
public long txLatency;
public String url;
@Override
public String b() {
return "crashReporting";
}
public static iz<gf> a() {
return new iz<>();
}
public gf(String str) {
super(str);
this.url = DEFAULT_URL;
this.processingInterval = 60L;
this.maxRetryCount = 3;
this.maxEventsToPersist = 50;
this.eventTTL = DEFAULT_EVENT_TTL_SEC;
this.txLatency = DEFAULT_INGESTION_LATENCY_SEC;
this.crashEnabled = true;
this.catchEnabled = false;
gh ghVar = new gh();
this.networkType = ghVar;
ghVar.wifi = new gh.a();
this.networkType.wifi.retryInterval = 10L;
this.networkType.wifi.minBatchSize = 1;
this.networkType.wifi.maxBatchSize = 2;
this.networkType.others = new gh.a();
this.networkType.others.retryInterval = 10L;
this.networkType.others.minBatchSize = 1;
this.networkType.others.maxBatchSize = 2;
}
@Override
public boolean d() {
if (this.url.trim().length() != 0 && (this.url.startsWith("http://") || this.url.startsWith("https://"))) {
long j = this.txLatency;
if (j >= this.processingInterval && j <= this.eventTTL && this.networkType.a(this.maxEventsToPersist) && this.processingInterval > 0 && this.maxRetryCount >= 0 && this.txLatency > 0 && this.eventTTL > 0 && this.maxEventsToPersist > 0) {
return true;
}
}
return false;
}
@Override
public JSONObject c() {
return new iz().a((iz) this);
}
}