导航菜单

页面标题

页面副标题

CallApp v2.226 - a.java 源代码

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

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


package com.fyber;

import android.content.ContextWrapper;
import android.text.TextUtils;
import com.fyber.fairbid.adtransparency.interceptors.AbstractInterceptor;
import com.fyber.fairbid.b8;
import com.fyber.fairbid.be;
import com.fyber.fairbid.e2;
import com.fyber.fairbid.internal.ActivityProvider;
import com.fyber.fairbid.internal.ContextReference;
import com.fyber.fairbid.internal.FairBidState;
import com.fyber.fairbid.internal.Logger;
import com.fyber.fairbid.internal.e;
import com.fyber.fairbid.internal.f;
import com.fyber.fairbid.jr;
import com.fyber.fairbid.jt;
import com.fyber.fairbid.lt;
import com.fyber.fairbid.mediation.MediationManager;
import com.fyber.fairbid.mediation.adapter.AdapterPool;
import com.fyber.fairbid.mediation.config.MediationConfig;
import com.fyber.fairbid.sdk.testsuite.bus.EventBus;
import com.fyber.fairbid.sf;
import com.fyber.fairbid.tf;
import com.fyber.fairbid.tl;
import com.fyber.fairbid.x9;
import kotlin.jvm.internal.Intrinsics;

public final class a {
    public static a d;
    public final x9 a;
    public final FairBidState b;
    public final tl c;

    public a(x9 x9Var, FairBidState fairBidState, tl tlVar) {
        this.a = x9Var;
        this.b = fairBidState;
        this.c = tlVar;
    }

    public static boolean a() {
        if (!d()) {
            Logger.warn("FairBid needs to be started. Call FairBid.start('<publisher_id>', activity) from either the onCreate or onResume methods in your Activity.");
        }
        return d();
    }

    public static synchronized a b(String str) {
        a aVar;
        synchronized (a.class) {
            try {
                if (d == null) {
                    x9 i = e.a.i();
                    i.d = str;
                    f fVar = e.b;
                    d = new a(i, (FairBidState) fVar.d.getValue(), (tl) fVar.h.getValue());
                }
                aVar = d;
            } catch (Throwable th) {
                throw th;
            }
        }
        return aVar;
    }

    public static String c() {
        return (String) jr.a(AbstractInterceptor.INJECTION_STATUS_CLASS_NAME, "pluginVersion");
    }

    public static boolean d() {
        return ((FairBidState) e.b.d.getValue()).isFairBidSdkStartedOrStarting();
    }

    public final synchronized void e(ContextWrapper contextWrapper) {
        try {
            if (!this.b.isFairBidDisabled()) {
                if (this.b.hasNeverBeenStarted()) {
                    try {
                        Logger.debug("Start options: " + this.a.f);
                        e eVar = e.a;
                        f fVar = e.b;
                        ((ContextReference) fVar.f()).a(contextWrapper);
                        if (this.b.canSDKBeStarted(contextWrapper)) {
                            tf tfVar = ((sf) fVar.D.getValue()).a;
                            tfVar.a.edit().putInt("num_sdk_starts", tfVar.a.getInt("num_sdk_starts", 0) + 1).apply();
                            tfVar.a.edit().putInt("num_app_version_starts", tfVar.a.getInt("num_app_version_starts", 0) + 1).apply();
                            tfVar.a.edit().putInt("num_sdk_version_starts", tfVar.a.getInt("num_sdk_version_starts", 0) + 1).apply();
                            this.c.getClass();
                            Logger.init(contextWrapper);
                            ((e2) eVar.c()).k.b();
                            MediationManager mediationManager = (MediationManager) eVar.n();
                            mediationManager.a(contextWrapper);
                            this.b.setFairBidStarting();
                            x9 x9Var = this.a;
                            mediationManager.a(((Boolean) x9Var.e.getValue(x9Var, x9.g[0])).booleanValue());
                            lt ltVar = (lt) fVar.E.getValue();
                            ActivityProvider e = fVar.e();
                            MediationConfig m = eVar.m();
                            ltVar.getClass();
                            Intrinsics.checkNotNullParameter(e, "activityProvider");
                            Intrinsics.checkNotNullParameter(m, "mediationConfig");
                            EventBus.registerReceiver(1, new jt((ContextReference) e, ltVar, m));
                            Logger.debug("SDK has been started: auto-requesting = " + this.a.b.get());
                            if (TextUtils.isEmpty(c())) {
                                Logger.warn("FairBid - You are missing the FairBid SDK Plugin in your integration.");
                                Logger.warn("FairBid - Please, follow the integration guide under https://developer.digitalturbine.com/hc/en-us/articles/360010079657-Android-SDK-Integration");
                            }
                        } else {
                            this.b.disableSDK();
                        }
                    } catch (RuntimeException e2) {
                        Logger.error("FairBid encountered a runtime exception and is now disabled. Error: " + e2.getMessage());
                        AdapterPool a = this.b.isFairBidSdkStartedOrStarting() ? e.a.a() : null;
                        b8 b8Var = (b8) ((be) e.b.x.getValue());
                        b8Var.getClass();
                        Intrinsics.checkNotNullParameter(e2, "exception");
                        b8Var.a((Throwable) e2, a, false, (Runnable) null);
                        throw e2;
                    }
                } else {
                    ((ContextReference) e.b.f()).a(contextWrapper);
                }
            }
        } catch (Throwable th) {
            throw th;
        }
    }
}