正在查看: Hyouka private v5.8.9 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package va;
import org.json.JSONException;
import org.json.JSONObject;
class k implements v {
k() {
}
private b b(JSONObject jSONObject) {
return new b(jSONObject.optString("url", "https://e.crashlytics.com/spi/v2/events"), jSONObject.optInt("flush_interval_secs", 600), jSONObject.optInt("max_byte_size_per_file", io.fabric.sdk.android.services.events.b.MAX_BYTE_SIZE_PER_FILE), jSONObject.optInt("max_file_count_per_send", 1), jSONObject.optInt("max_pending_send_file_count", 100), jSONObject.optBoolean("forward_to_google_analytics", false), jSONObject.optBoolean("include_purchase_events_in_forwarded_events", false), jSONObject.optBoolean("track_custom_events", true), jSONObject.optBoolean("track_predefined_events", true), jSONObject.optInt("sampling_rate", 1), jSONObject.optBoolean("flush_on_background", true));
}
private e c(JSONObject jSONObject) throws JSONException {
return new e(jSONObject.getString("identifier"), jSONObject.getString("status"), jSONObject.getString("url"), jSONObject.getString("reports_url"), jSONObject.getString("ndk_reports_url"), jSONObject.optBoolean("update_required", false), (jSONObject.has("icon") && jSONObject.getJSONObject("icon").has("hash")) ? f(jSONObject.getJSONObject("icon")) : null);
}
private f d(JSONObject jSONObject) throws JSONException {
return new f(jSONObject.optString("update_endpoint", u.a), jSONObject.optInt("update_suspend_duration", 3600));
}
private m e(JSONObject jSONObject) {
return new m(jSONObject.optBoolean("prompt_enabled", false), jSONObject.optBoolean("collect_logged_exceptions", true), jSONObject.optBoolean("collect_reports", true), jSONObject.optBoolean("collect_analytics", false), jSONObject.optBoolean("firebase_crashlytics_enabled", false));
}
private c f(JSONObject jSONObject) throws JSONException {
return new c(jSONObject.getString("hash"), jSONObject.getInt("width"), jSONObject.getInt("height"));
}
private o g(JSONObject jSONObject) throws JSONException {
return new o(jSONObject.optString("title", "Send Crash Report?"), jSONObject.optString("message", "Looks like we crashed! Please help us fix the problem by sending a crash report."), jSONObject.optString("send_button_title", "Send"), jSONObject.optBoolean("show_cancel_button", true), jSONObject.optString("cancel_button_title", "Don't Send"), jSONObject.optBoolean("show_always_send_button", true), jSONObject.optString("always_send_button_title", "Always Send"));
}
private p h(JSONObject jSONObject) throws JSONException {
return new p(jSONObject.optInt("log_buffer_size", 64000), jSONObject.optInt("max_chained_exception_depth", 8), jSONObject.optInt("max_custom_exception_events", 64), jSONObject.optInt("max_custom_key_value_pairs", 64), jSONObject.optInt("identifier_mask", 255), jSONObject.optBoolean("send_session_without_crash", false), jSONObject.optInt("max_complete_sessions_count", 4));
}
private long i(io.fabric.sdk.android.services.common.k kVar, long j, JSONObject jSONObject) throws JSONException {
return jSONObject.has("expires_at") ? jSONObject.getLong("expires_at") : kVar.a() + (j * 1000);
}
@Override
public t a(io.fabric.sdk.android.services.common.k kVar, JSONObject jSONObject) throws JSONException {
int optInt = jSONObject.optInt("settings_version", 0);
int optInt2 = jSONObject.optInt("cache_duration", 3600);
return new t(i(kVar, optInt2, jSONObject), c(jSONObject.getJSONObject("app")), h(jSONObject.getJSONObject("session")), g(jSONObject.getJSONObject("prompt")), e(jSONObject.getJSONObject("features")), b(jSONObject.getJSONObject("analytics")), d(jSONObject.getJSONObject("beta")), optInt, optInt2);
}
}