Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97

以下内容为反编译后的 b.java 源代码,内容仅作参考


package com.chartboost.sdk.impl;

import android.os.Build;
import android.util.Log;
import android.view.ViewGroup;
import com.chartboost.sdk.ads.Ad;
import com.chartboost.sdk.ads.Banner;
import com.chartboost.sdk.ads.Interstitial;
import com.chartboost.sdk.ads.Rewarded;
import com.chartboost.sdk.callbacks.AdCallback;
import com.chartboost.sdk.events.CacheError;
import com.chartboost.sdk.events.ClickError;
import com.chartboost.sdk.events.ShowError;
import com.chartboost.sdk.impl.q;
import com.chartboost.sdk.internal.Model.CBError;
import com.fyber.inneractive.sdk.external.InneractiveMediationDefs;
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.atomic.AtomicReference;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
@Metadata(d1 = {"\u0000\u0088\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000f\b&\u0018\u00002\u00020\u00012\u00020\u0002BE\u0012\u0006\u0010\"\u001a\u00020 \u0012\u0006\u0010%\u001a\u00020#\u0012\f\u0010)\u001a\b\u0012\u0004\u0012\u00020'0&\u0012\u0006\u0010,\u001a\u00020*\u0012\u0006\u0010/\u001a\u00020-\u0012\u0006\u00102\u001a\u000200\u0012\u0006\u00105\u001a\u000203¢\u0006\u0004\b@\u0010AJ*\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u00052\u0006\u0010\b\u001a\u00020\u00072\b\u0010\t\u001a\u0004\u0018\u00010\u0003H\u0004J\u0018\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0006\u001a\u00020\u00052\u0006\u0010\b\u001a\u00020\u0007H\u0004J\u000e\u0010\f\u001a\u00020\n2\u0006\u0010\u0004\u001a\u00020\u0003J\u000e\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0004\u001a\u00020\u0003J\u0010\u0010\u000f\u001a\u00020\r2\u0006\u0010\u0004\u001a\u00020\u0003H\u0004J\u0012\u0010\u0011\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003H\u0016J\"\u0010\u000b\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0012\u001a\u00020\u00032\u0006\u0010\u0014\u001a\u00020\u0013H\u0016J\u0012\u0010\u0015\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003H\u0016J\u001a\u0010\u0011\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0014\u001a\u00020\u0016H\u0016J\u0012\u0010\u0017\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003H\u0016J\u001a\u0010\u000b\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0014\u001a\u00020\u0016H\u0016J\u001a\u0010\u000b\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0019\u001a\u00020\u0018H\u0016J\u0012\u0010\u000b\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003H\u0016J\u0012\u0010\u001a\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003H\u0016J\u0012\u0010\u001b\u001a\u00020\n2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003H\u0016J(\u0010\u000b\u001a\u00020\n2\u0006\u0010\u001c\u001a\u00020\u00032\u0006\u0010\u001d\u001a\u00020\u00032\u0006\u0010\u001f\u001a\u00020\u001e2\u0006\u0010\u0004\u001a\u00020\u0003H\u0004J\u000e\u0010\u000b\u001a\u0004\u0018\u00010\u001e*\u00020\u0005H\u0002J\u0018\u0010\u000b\u001a\u00020\n2\u0006\u0010\u001c\u001a\u00020\u00032\u0006\u0010\u001d\u001a\u00020\u0003H\u0002J\b\u0010\u000b\u001a\u00020\nH\u0002R\u0014\u0010\"\u001a\u00020 8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010!R\u0014\u0010%\u001a\u00020#8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0011\u0010$R\u001a\u0010)\u001a\b\u0012\u0004\u0012\u00020'0&8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0017\u0010(R\u0014\u0010,\u001a\u00020*8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001b\u0010+R\u0014\u0010/\u001a\u00020-8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001a\u0010.R\u0014\u00102\u001a\u0002008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0015\u00101R\u0014\u00105\u001a\u0002038\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\f\u00104R$\u0010\u0006\u001a\u0004\u0018\u00010\u00058\u0004@\u0004X\u0084\u000e¢\u0006\u0012\n\u0004\b\u000e\u00106\u001a\u0004\b7\u00108\"\u0004\b9\u0010:R$\u0010\b\u001a\u0004\u0018\u00010\u00078\u0004@\u0004X\u0084\u000e¢\u0006\u0012\n\u0004\b\u000f\u0010;\u001a\u0004\b<\u0010=\"\u0004\b>\u0010?¨\u0006B"}, d2 = {"Lcom/chartboost/sdk/impl/b;", "Lcom/chartboost/sdk/impl/b0;", "Lcom/chartboost/sdk/impl/u;", "", "location", "Lcom/chartboost/sdk/ads/Ad;", "ad", "Lcom/chartboost/sdk/callbacks/AdCallback;", "callback", "bidResponse", "", "a", "g", "", "h", "i", "impressionId", "b", "url", "Lcom/chartboost/sdk/internal/Model/CBError$CBClickError;", CampaignEx.JSON_NATIVE_VIDEO_ERROR, InneractiveMediationDefs.GENDER_FEMALE, "Lcom/chartboost/sdk/internal/Model/CBError$CBImpressionError;", "c", "", "reward", com.ironsource.sdk.c.e.a, DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_D, "eventName", "message", "Lcom/chartboost/sdk/impl/q;", "adType", "Lcom/chartboost/sdk/impl/t;", "Lcom/chartboost/sdk/impl/t;", "adUnitLoader", "Lcom/chartboost/sdk/impl/z;", "Lcom/chartboost/sdk/impl/z;", "adUnitRenderer", "Ljava/util/concurrent/atomic/AtomicReference;", "Lcom/chartboost/sdk/impl/t8;", "Ljava/util/concurrent/atomic/AtomicReference;", "sdkConfig", "Ljava/util/concurrent/ScheduledExecutorService;", "Ljava/util/concurrent/ScheduledExecutorService;", "backgroundExecutorService", "Lcom/chartboost/sdk/impl/c;", "Lcom/chartboost/sdk/impl/c;", "adApiCallbackSender", "Lcom/chartboost/sdk/impl/x8;", "Lcom/chartboost/sdk/impl/x8;", "session", "Lcom/chartboost/sdk/impl/h1;", "Lcom/chartboost/sdk/impl/h1;", "base64Wrapper", "Lcom/chartboost/sdk/ads/Ad;", "getAd", "()Lcom/chartboost/sdk/ads/Ad;", "setAd", "(Lcom/chartboost/sdk/ads/Ad;)V", "Lcom/chartboost/sdk/callbacks/AdCallback;", "getCallback", "()Lcom/chartboost/sdk/callbacks/AdCallback;", "setCallback", "(Lcom/chartboost/sdk/callbacks/AdCallback;)V", "<init>", "(Lcom/chartboost/sdk/impl/t;Lcom/chartboost/sdk/impl/z;Ljava/util/concurrent/atomic/AtomicReference;Ljava/util/concurrent/ScheduledExecutorService;Lcom/chartboost/sdk/impl/c;Lcom/chartboost/sdk/impl/x8;Lcom/chartboost/sdk/impl/h1;)V", "Chartboost-9.4.1_productionRelease"}, k = 1, mv = {1, 8, 0})
public abstract class b implements b0, u {
    public final t a;
    public final z f2194b;
    public final AtomicReference<t8> c;
    public final ScheduledExecutorService d;
    public final c e;
    public final x8 f;
    public final h1 g;
    public Ad h;
    public AdCallback i;

    public b(t adUnitLoader, z adUnitRenderer, AtomicReference<t8> sdkConfig, ScheduledExecutorService backgroundExecutorService, c adApiCallbackSender, x8 session, h1 base64Wrapper) {
        Intrinsics.checkNotNullParameter(adUnitLoader, "adUnitLoader");
        Intrinsics.checkNotNullParameter(adUnitRenderer, "adUnitRenderer");
        Intrinsics.checkNotNullParameter(sdkConfig, "sdkConfig");
        Intrinsics.checkNotNullParameter(backgroundExecutorService, "backgroundExecutorService");
        Intrinsics.checkNotNullParameter(adApiCallbackSender, "adApiCallbackSender");
        Intrinsics.checkNotNullParameter(session, "session");
        Intrinsics.checkNotNullParameter(base64Wrapper, "base64Wrapper");
        this.a = adUnitLoader;
        this.f2194b = adUnitRenderer;
        this.c = sdkConfig;
        this.d = backgroundExecutorService;
        this.e = adApiCallbackSender;
        this.f = session;
        this.g = base64Wrapper;
    }

    public final void a(final String location, final Ad ad, AdCallback callback, String str) {
        Intrinsics.checkNotNullParameter(location, "location");
        Intrinsics.checkNotNullParameter(ad, "ad");
        Intrinsics.checkNotNullParameter(callback, "callback");
        this.h = ad;
        this.i = callback;
        final Ref.ObjectRef objectRef = new Ref.ObjectRef();
        if (str != null) {
            ?? b2 = this.g.b(str);
            if (b2.length() == 0) {
                f6.b("AdApi", "Cannot decode provided bidResponse.");
                a("", CBError.CBImpressionError.INVALID_RESPONSE);
                return;
            }
            objectRef.element = b2;
        }
        this.d.execute(new Runnable() {
            @Override
            public final void run() {
                b.a(Ad.this, this, location, objectRef);
            }
        });
    }

    @Override
    public void b(String str) {
        this.e.a(str, (ClickError) null, this.h, this.i);
    }

    @Override
    public void c(String str) {
        a("cache_finish_success", "");
        this.e.a(str, (CacheError) null, this.h, this.i);
    }

    @Override
    public void d(String str) {
        a("impression_recorded", "");
        this.e.b(str, this.h, this.i);
    }

    @Override
    public void e(String str) {
        this.e.c(str, this.h, this.i);
    }

    @Override
    public void f(String str) {
        a("show_finish_success", "");
        a();
        this.e.a(str, (ShowError) null, this.h, this.i);
    }

    public final void g(String location) {
        Intrinsics.checkNotNullParameter(location, "location");
        if (h(location)) {
            this.a.b();
        }
    }

    public final boolean h(String location) {
        Intrinsics.checkNotNullParameter(location, "location");
        s0 a = this.a.a();
        return (a != null ? a.a() : null) != null;
    }

    public final boolean i(String location) {
        Intrinsics.checkNotNullParameter(location, "location");
        if (Build.VERSION.SDK_INT < 21) {
            return true;
        }
        t8 t8Var = this.c.get();
        if (!(t8Var != null && t8Var.d())) {
            return location.length() == 0;
        }
        f6.b("AdApi", "Chartboost Integration Warning: your account has been disabled for this session. This app has no active publishing campaigns, please create a publishing campaign in the Chartboost dashboard and wait at least 30 minutes to re-enable. If you need assistance, please visit http://chartboo.st/publishing .");
        return true;
    }

    @Override
    public void b(String str, CBError.CBImpressionError error) {
        Intrinsics.checkNotNullParameter(error, "error");
        a("show_finish_failure", error.name());
        this.e.a(str, g.b(error), this.h, this.i);
    }

    public static final void a(Ad ad, b this$0, String location, Ref.ObjectRef decodedBidResponse) {
        Intrinsics.checkNotNullParameter(ad, "$ad");
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        Intrinsics.checkNotNullParameter(location, "$location");
        Intrinsics.checkNotNullParameter(decodedBidResponse, "$decodedBidResponse");
        if (ad instanceof Banner) {
            ViewGroup viewGroup = (ViewGroup) ad;
            Banner banner = (Banner) ad;
            this$0.a.a(location, this$0, (String) decodedBidResponse.element, new s(viewGroup, banner.getBannerWidth(), banner.getBannerHeight()));
            return;
        }
        t.a(this$0.a, location, this$0, (String) decodedBidResponse.element, null, 8, null);
    }

    public final void a(Ad ad, AdCallback callback) {
        Intrinsics.checkNotNullParameter(ad, "ad");
        Intrinsics.checkNotNullParameter(callback, "callback");
        this.h = ad;
        this.i = callback;
        this.d.execute(new Runnable() {
            @Override
            public final void run() {
                b.a(b.this);
            }
        });
    }

    public static final void a(b this$0) {
        Intrinsics.checkNotNullParameter(this$0, "this$0");
        s0 a = this$0.a.a();
        if (a != null) {
            this$0.f2194b.a(a, this$0);
        } else {
            Log.e("AdApi", "Missing app request on render");
        }
    }

    @Override
    public void a(String str, String url, CBError.CBClickError error) {
        Intrinsics.checkNotNullParameter(url, "url");
        Intrinsics.checkNotNullParameter(error, "error");
        String str2 = "Click error: " + error.name() + " url: " + url;
        a("click_invalid_url_error", str2);
        this.e.a(str, g.a(error, str2), this.h, this.i);
    }

    @Override
    public void a(String str, CBError.CBImpressionError error) {
        Intrinsics.checkNotNullParameter(error, "error");
        a("cache_finish_failure", error.name());
        this.e.a(str, g.a(error), this.h, this.i);
    }

    @Override
    public void a(String str, int i) {
        this.e.a(str, this.h, this.i, i);
    }

    @Override
    public void a(String str) {
        this.e.a(str, this.h, this.i);
    }

    public final void a(String eventName, String message, q adType, String location) {
        Intrinsics.checkNotNullParameter(eventName, "eventName");
        Intrinsics.checkNotNullParameter(message, "message");
        Intrinsics.checkNotNullParameter(adType, "adType");
        Intrinsics.checkNotNullParameter(location, "location");
        y3.d(new y5(eventName, message, adType.b(), location, this.f2194b.F()));
    }

    public final q a(Ad ad) {
        if (ad instanceof Interstitial) {
            return q.b.g;
        }
        if (ad instanceof Rewarded) {
            return q.c.g;
        }
        if (ad instanceof Banner) {
            return q.a.g;
        }
        throw new NoWhenBranchMatchedException();
    }

    public final void a(String str, String str2) {
        q a;
        Ad ad = this.h;
        String str3 = (ad == null || (a = a(ad)) == null || (r0 = a.b()) == null) ? "Unknown" : "Unknown";
        Ad ad2 = this.h;
        y3.d(new y5(str, str2, str3, ad2 != null ? ad2.getLocation() : null, this.f2194b.F()));
    }

    public final void a() {
        q a;
        Ad ad = this.h;
        if (ad == null || (a = a(ad)) == null) {
            return;
        }
        this.f.a(a);
        f6.c("AdApi", "Current session impression count: " + this.f.b(a) + " in session: " + this.f.c());
    }
}