CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 h.java 源代码,内容仅作参考
package i.j.b.k.j.p;
import com.liulishuo.filedownloader.model.FileDownloadModel;
import i.j.b.k.j.j.o0;
import java.util.Locale;
import java.util.Objects;
import org.json.JSONException;
import org.json.JSONObject;
public class h implements g {
@Override
public i.j.b.k.j.p.i.e a(o0 o0Var, JSONObject jSONObject) throws JSONException {
long currentTimeMillis;
int optInt = jSONObject.optInt("settings_version", 0);
int optInt2 = jSONObject.optInt("cache_duration", 3600);
JSONObject jSONObject2 = jSONObject.getJSONObject("fabric");
JSONObject jSONObject3 = jSONObject.getJSONObject("app");
String string = jSONObject3.getString(FileDownloadModel.STATUS);
boolean equals = "new".equals(string);
String string2 = jSONObject2.getString("bundle_id");
String string3 = jSONObject2.getString("org_id");
String format = equals ? "https://update.crashlytics.com/spi/v1/platforms/android/apps" : String.format(Locale.US, "https://update.crashlytics.com/spi/v1/platforms/android/apps/%s", string2);
Locale locale = Locale.US;
i.j.b.k.j.p.i.a aVar = new i.j.b.k.j.p.i.a(string, format, String.format(locale, "https://reports.crashlytics.com/spi/v1/platforms/android/apps/%s/reports", string2), String.format(locale, "https://reports.crashlytics.com/sdk-api/v1/platforms/android/apps/%s/minidumps", string2), string2, string3, jSONObject3.optBoolean("update_required", false), jSONObject3.optInt("report_upload_variant", 0), jSONObject3.optInt("native_report_upload_variant", 0));
i.j.b.k.j.p.i.c cVar = new i.j.b.k.j.p.i.c(8, 4);
JSONObject jSONObject4 = jSONObject.getJSONObject("features");
i.j.b.k.j.p.i.b bVar = new i.j.b.k.j.p.i.b(jSONObject4.optBoolean("collect_reports", true), jSONObject4.optBoolean("collect_anrs", false));
long j2 = optInt2;
if (jSONObject.has("expires_at")) {
currentTimeMillis = jSONObject.optLong("expires_at");
} else {
Objects.requireNonNull(o0Var);
currentTimeMillis = (j2 * 1000) + System.currentTimeMillis();
}
return new i.j.b.k.j.p.i.e(currentTimeMillis, aVar, cVar, bVar, optInt, optInt2);
}
}