导航菜单

页面标题

页面副标题

Baubap v3.9.7 - SplashActivity.java 源代码

正在查看: Baubap v3.9.7 应用的 SplashActivity.java JAVA 源代码文件

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


package com.baubap.presentation.splash;

import android.app.NotificationManager;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.webkit.URLUtil;
import androidx.core.app.NotificationManagerCompat;
import com.adjust.sdk.AdjustConfig;
import f6.f1;
import f6.l1;
import io.intercom.android.sdk.Intercom;
import io.intercom.android.sdk.IntercomStatusCallback;
import io.sentry.android.core.c;
import io.sentry.q2;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CancellationException;
import kotlin.jvm.internal.y;
import l10.b;
import lq.h;
import m30.f;
import m30.g;
import m30.m;
import m40.h0;
import m40.m0;
import md.a;
import me.e0;
import n30.u;
import qj.d;
import un.d0;
import vr.e;
import vs.a0;
import wn.k;
import xf.i;
import xf.j;
import xf.o0;

public final class SplashActivity extends o0 {

    public static final int f10128l = 0;

    public m0 f10129f;

    public final f f10130g;

    public final l1 f10131h;

    public a f10132i;

    public final m f10133j;

    public se.f f10134k;

    public SplashActivity() {
        super(19);
        this.f10130g = b.e0(g.c, new d(this, 2));
        this.f10131h = new l1(y.a(SplashViewModel.class), new i(this, 17), new i(this, 16), new j(this, 8));
        this.f10133j = b.f0(new wn.a(this, 1));
    }

    @Override
    public final void onCreate(Bundle bundle) {
        ArrayList arrayList;
        String str;
        mr.b.Z(this);
        super.onCreate(bundle);
        setContentView(((e0) this.f10130g.getValue()).f20696a);
        SplashViewModel splashViewModel = (SplashViewModel) this.f10131h.getValue();
        boolean areNotificationsEnabled = NotificationManagerCompat.from(this).areNotificationsEnabled();
        splashViewModel.getClass();
        tx.b.X(f1.Q(splashViewModel), splashViewModel.f10139e, (h0) null, new wn.j(splashViewModel, areNotificationsEnabled, null), 2);
        se.f fVar = this.f10134k;
        if (fVar == null) {
            xu.b.r0("getConfig");
            throw null;
        }
        ((e0) this.f10130g.getValue()).f20697b.setText("3.9.7".concat(fVar.c("build")));
        Intent intent = getIntent();
        if (intent != null) {
            ((NotificationManager) this.f10133j.getValue()).cancel(intent.getIntExtra("id", -1));
            Bundle extras = intent.getExtras();
            Integer valueOf = extras != null ? Integer.valueOf(extras.getInt("id")) : null;
            if (valueOf != null) {
                int intValue = valueOf.intValue();
                SplashViewModel splashViewModel2 = (SplashViewModel) this.f10131h.getValue();
                splashViewModel2.getClass();
                tx.b.X(f1.Q(splashViewModel2), (q30.j) null, (h0) null, new wn.i(intValue, splashViewModel2, null), 3);
            }
            Bundle extras2 = intent.getExtras();
            if (extras2 == null || (str = extras2.getString("url")) == null || (!URLUtil.isHttpUrl(str) && !URLUtil.isHttpsUrl(str))) {
                str = null;
            }
            if (str != null) {
                try {
                    startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str)));
                } catch (ActivityNotFoundException unused) {
                    Log.d(SplashActivity.class.getName(), "Malformed URL caught: ".concat(str));
                } catch (Exception e10) {
                    e10.printStackTrace();
                }
            }
        }
        ((e0) this.f10130g.getValue()).f20698c.setOnClickListener(new n8.j(this, 26));
        SplashViewModel splashViewModel3 = (SplashViewModel) this.f10131h.getValue();
        splashViewModel3.getClass();
        c.c("SplashViewModel", "validateInstallation");
        tx.b.X(f1.Q(splashViewModel3), (q30.j) null, (h0) null, new k(splashViewModel3, null), 3);
        se.f fVar2 = this.f10134k;
        if (fVar2 == null) {
            xu.b.r0("getConfig");
            throw null;
        }
        po.d dVar = new po.d(this, fVar2);
        if (dVar.f24976b.a("is_datadog_enable")) {
            Log.i("DataDog", "Enable Datadog");
            iq.b bVar = new iq.b();
            bq.d dVar2 = bq.d.d;
            xu.b.y(dVar2, "site");
            bVar.b = iq.c.a(bVar.b, 0, 0, dVar2, 1790);
            iq.d dVar3 = new iq.d(bVar.b, "pubfaf2d9189822a0a6d2ed589e7d51472a", AdjustConfig.ENVIRONMENT_PRODUCTION, "gmsbp", (String) null, bVar.c, bVar.a);
            Context context = dVar.f24975a;
            ur.a aVar = ur.a.b;
            h hVar = bq.c.a;
            xu.b.y(context, "context");
            h hVar2 = bq.c.a;
            synchronized (hVar2) {
                if (((cq.d) hVar2.b.get("_dd.sdk_core.default")) != null) {
                    ea.f.r0(dr.c.a, 4, cq.b.b, bq.b.i, null, false, 56);
                } else {
                    String G = bq.c.b.G("null/" + dVar3.a.h.b);
                    if (G == null) {
                        ea.f.r0(dr.c.a, 5, cq.b.b, bq.b.j, null, false, 56);
                    } else {
                        String str2 = "_dd.sdk_core.default";
                        hq.d dVar4 = new hq.d(context, G, "_dd.sdk_core.default");
                        dVar4.y(dVar3);
                        dVar4.x().i.q(aVar);
                        LinkedHashMap linkedHashMap = hVar2.b;
                        if (linkedHashMap.containsKey("_dd.sdk_core.default")) {
                            ea.f.r0(hVar2.a, 4, cq.b.b, new ne.j(str2, 7), null, false, 56);
                        } else {
                            linkedHashMap.put("_dd.sdk_core.default", dVar4);
                        }
                    }
                }
            }
            q2 q2Var = new q2();
            q2Var.d = xr.h.a((xr.h) q2Var.d, 0.0f, a40.a.T0(new hs.c[0]), new ks.j(), (ks.i) null, (cs.a) null, false, 2097055);
            xr.h a10 = xr.h.a((xr.h) q2Var.d, 0.0f, (List) null, (ks.j) null, (ks.i) null, new cs.a(250L), false, 2096895);
            q2Var.d = a10;
            q2Var.d = xr.h.a(a10, 0.0f, (List) null, (ks.j) null, (ks.i) null, (cs.a) null, true, 2064383);
            xr.h a11 = xr.h.a((xr.h) q2Var.d, 0.0f, (List) null, (ks.j) null, new ks.i(), (cs.a) null, false, 2097023);
            q2Var.d = a11;
            Object obj = a11.u.get("_dd.telemetry.configuration_sample_rate");
            Float valueOf2 = (obj == null || !(obj instanceof Number)) ? null : Float.valueOf(((Number) obj).floatValue());
            String str3 = (String) q2Var.c;
            Object obj2 = q2Var.d;
            p0.d.r(new e(str3, valueOf2 != null ? xr.h.a((xr.h) obj2, valueOf2.floatValue(), (List) null, (ks.j) null, (ks.i) null, (cs.a) null, false, 2097143) : (xr.h) obj2));
            float b6 = dVar.f24976b.b("datadog_sessions_replay");
            vb.c cVar = new vb.c();
            cVar.f32140a = b6;
            cVar.f32142c = ms.e.g;
            cVar.f32143d = new lj.a();
            cVar.f32143d = new dt.c();
            ms.e eVar = ms.e.f;
            xu.b.y(eVar, "privacy");
            cVar.f32142c = eVar;
            String str4 = (String) cVar.f32141b;
            Iterator it = ((ms.a) cVar.f32143d).Q().entrySet().iterator();
            while (true) {
                if (!it.hasNext()) {
                    arrayList = u.b;
                    break;
                }
                Map.Entry entry = (Map.Entry) it.next();
                if (entry.getKey() == ((ms.e) cVar.f32142c)) {
                    Map map = (Map) entry.getValue();
                    ArrayList arrayList2 = new ArrayList(map.size());
                    for (Map.Entry entry2 : map.entrySet()) {
                        arrayList2.add(new vs.k((Class) entry2.getKey(), (a0) entry2.getValue()));
                    }
                    arrayList = arrayList2;
                }
            }
            ms.d dVar5 = new ms.d(str4, eVar, arrayList, ((ms.a) cVar.f32143d).r(), cVar.f32140a);
            eq.d a12 = bq.c.a((String) null);
            a12.n(new ns.d(a12, dVar5.a, dVar5.b, dVar5.c, dVar5.d, dVar5.e));
            bq.c.c = 4;
            q00.a aVar2 = new q00.a(16);
            ir.d dVar6 = new ir.d((String) aVar2.c, (hr.a) aVar2.d);
            eq.d a13 = bq.c.a((String) null);
            a13.n(new jr.c(a13, dVar6.a, dVar6.b));
        } else if (bq.c.b((String) null)) {
            Log.i("DataDog", "Disable Datadog if is initialized");
            b.N();
        } else {
            Log.i("DataDog", "Disable Datadog");
        }
        if (this.f10132i == null) {
            xu.b.r0("contactSupportManager");
            throw null;
        }
        Intercom.loginUnidentifiedUser$default(Intercom.Companion.client(), (IntercomStatusCallback) null, 1, (Object) null);
    }

    @Override
    public final void onPause() {
        m0 m0Var = this.f10129f;
        if (m0Var == null) {
            xu.b.r0("job");
            throw null;
        }
        m0Var.j((CancellationException) null);
        super.onPause();
    }

    @Override
    public final void onResume() {
        super.onResume();
        this.f10129f = tx.b.r(c0.d.u0(this), (q30.j) null, new wn.c(2, null), 3);
        ((SplashViewModel) this.f10131h.getValue()).f10141g.e(this, new d0(new wn.d(this, 0), 1));
    }
}