导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - PushClickTracker.java 源代码

正在查看: Bhakti v5.4.0 应用的 PushClickTracker.java JAVA 源代码文件

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


package com.moengage.hms.pushkit;

import Ai.p;
import I5.g;
import Xe.o;
import Yf.e;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.FragmentActivity;
import io.sentry.protocol.rN.KGrE;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import mf.h;
import nf.F;
import org.json.JSONObject;
import qg.e0;
import th.b;
import uh.w;
import uq.a;
import yd.c;

@Metadata
public final class PushClickTracker extends FragmentActivity {
    private final String tag = "PushKit_6.0.0_PushClickTracker";

    @Override
    public void onCreate(Bundle bundle) {
        Intent intent;
        b bVar;
        b bVar2;
        try {
            super.onCreate(bundle);
            c cVar = h.c;
            p.P(0, (Throwable) null, (e0) null, new mg.b(this, 0), 7);
            intent = getIntent();
        } catch (Throwable th) {
            c cVar2 = h.c;
            p.P(1, th, (e0) null, new mg.b(this, 2), 4);
        }
        if (intent == null) {
            throw new IllegalStateException("Intent cannot be null");
        }
        Bundle extras = intent.getExtras();
        if (extras == null) {
            throw new IllegalStateException("Intent extras cannot be empty");
        }
        e.T(extras, this.tag);
        if (!extras.containsKey("moe_push_extras")) {
            throw new IllegalStateException("MoEngage key missing.");
        }
        String string = extras.getString("moe_push_extras");
        if (string == null || string.length() == 0) {
            throw new IllegalStateException("MoEngage payload empty");
        }
        Bundle R2 = e.R(new JSONObject(string));
        if (R2.isEmpty()) {
            throw new IllegalStateException("Mapping json to bundle failed.");
        }
        b bVar3 = b.b;
        if (bVar3 == null) {
            synchronized (b.class) {
                try {
                    bVar2 = b.b;
                    if (bVar2 == null) {
                        bVar2 = new b(0);
                    }
                    b.b = bVar2;
                } finally {
                }
            }
            bVar3 = bVar2;
        }
        if (!bVar3.w(R2)) {
            p.P(1, (Throwable) null, (e0) null, new mg.b(this, 1), 6);
            throw new IllegalStateException("Not a MoEngage payload");
        }
        g.a0(R2);
        a.w();
        F J = w.J(R2);
        if (J == null) {
            throw new Ie.b("Instance not initialised.");
        }
        R2.putString("moe_push_source", "hmsPush");
        intent.putExtras(R2);
        intent.removeExtra("moe_push_extras");
        R2.putLong("MOE_MSG_RECEIVED_TIME", System.currentTimeMillis());
        w w = a.w();
        Context applicationContext = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
        w.R(applicationContext, R2);
        boolean hasExtra = intent.hasExtra("gcm_webUrl");
        b bVar4 = b.b;
        if (bVar4 == null) {
            synchronized (b.class) {
                try {
                    bVar = b.b;
                    if (bVar == null) {
                        bVar = new b(0);
                    }
                    b.b = bVar;
                } finally {
                }
            }
            bVar4 = bVar;
        }
        Context applicationContext2 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext2, "getApplicationContext(...)");
        bVar4.A(applicationContext2, intent);
        Ah.e eVar = new Ah.e(J, 1);
        Context applicationContext3 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext3, "getApplicationContext(...)");
        eVar.e(applicationContext3, R2);
        eVar.c(R2, this);
        if (hasExtra) {
            Context applicationContext4 = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext4, KGrE.NldAsFvU);
            Xe.e eVar2 = Xe.e.PUSH_NOTIFICATION_DEEPLINK;
            Intrinsics.checkNotNullParameter(applicationContext4, "context");
            Intrinsics.checkNotNullParameter(J, "sdkInstance");
            Intrinsics.checkNotNullParameter(eVar2, "triggerPoint");
            o.b(applicationContext4, J, eVar2);
        }
        finish();
    }
}