导航菜单

页面标题

页面副标题

CallApp v2.226 - c8.java 源代码

正在查看: CallApp v2.226 应用的 c8.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.fyber.fairbid;

import android.content.Context;
import android.content.SharedPreferences;
import com.fyber.fairbid.http.connection.HttpClient;
import com.fyber.fairbid.http.requests.JsonPostBodyProvider;
import com.fyber.fairbid.internal.Logger;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public final class c8 {
    public final SharedPreferences a;

    public c8(Context context, ScheduledThreadPoolExecutor scheduledThreadPoolExecutor) {
        String string;
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(scheduledThreadPoolExecutor, "ioExecutorService");
        SharedPreferences sharedPreferences = context.getSharedPreferences("fairbid.crash_report", 0);
        Intrinsics.checkNotNullExpressionValue(sharedPreferences, "getSharedPreferences(...)");
        this.a = sharedPreferences;
        if (!sharedPreferences.contains("crash") || (string = sharedPreferences.getString("crash", null)) == null || string.length() == 0) {
            return;
        }
        try {
            JSONObject jSONObject = new JSONObject(string);
            b2 b2Var = b2.c;
            a9 a9Var = new a9(2999);
            h2 h2Var = new h2(new com.callapp.contacts.manager.b(scheduledThreadPoolExecutor, 10, jSONObject, a9Var), scheduledThreadPoolExecutor, new ox(this, 0));
            Intrinsics.checkNotNullParameter(h2Var, "callback");
            a9Var.a.add(h2Var);
            synchronized (h2Var) {
                h2Var.a(0, TimeUnit.SECONDS);
            }
        } catch (Exception e) {
            Logger.debug("CrashReportUtils An issue occurred while trying to report back the error", e);
        }
    }

    public static final void a(ScheduledExecutorService scheduledExecutorService, JSONObject jSONObject, a9 a9Var, int i) {
        u9 u9Var = u9.a;
        Intrinsics.checkNotNullParameter(scheduledExecutorService, "executorService");
        Intrinsics.checkNotNullParameter(u9Var, "logger");
        c2 c2Var = new c2(scheduledExecutorService);
        Intrinsics.checkNotNullParameter(c2Var, "payloadSender");
        Intrinsics.checkNotNullParameter(u9Var, "logger");
        Map<String, String> singletonMap = Collections.singletonMap("X-FairBid-EventId", String.valueOf(i));
        Intrinsics.checkNotNullExpressionValue(singletonMap, "singletonMap(...)");
        Intrinsics.checkNotNullParameter(jSONObject, "eventDataJSON");
        Intrinsics.checkNotNullParameter(a9Var, "responseHandler");
        Intrinsics.checkNotNullParameter(singletonMap, "headers");
        JSONObject jSONObject2 = new JSONObject();
        JSONArray jSONArray = new JSONArray();
        jSONArray.put(jSONObject);
        try {
            jSONObject2.put("events", jSONArray);
        } catch (JSONException e) {
            u9Var.b("Sending events failed: " + e.getMessage());
        }
        HttpClient.createHttpConnectionBuilder("https://fev.fyber.com/event").withPostBodyProvider(new JsonPostBodyProvider(jSONObject2)).withHeaders(singletonMap).withResponseHandler(a9Var).build().trigger(c2Var.a);
    }

    public static final Unit a(c8 c8Var) {
        c8Var.a();
        return Unit.a;
    }

    public final void a() {
        this.a.edit().remove("crash").apply();
    }

    public final void a(z1 z1Var) {
        Intrinsics.checkNotNullParameter(z1Var, "analyticsEvent");
        this.a.edit().putString("crash", j2.a(z1Var.a()).toString()).apply();
    }

    public final void a(a2 a2Var) {
        Intrinsics.checkNotNullParameter(a2Var, "analyticsEventConfiguration");
        SharedPreferences.Editor edit = this.a.edit();
        b2 b2Var = b2.c;
        String valueOf = String.valueOf(2999);
        Boolean bool = (Boolean) a2Var.get$fairbid_sdk_release("enabled", Boolean.TRUE);
        bool.getClass();
        edit.putBoolean("should_report", ((Boolean) a2Var.get$fairbid_sdk_release(valueOf, bool)).booleanValue()).apply();
    }
}