导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - PerplexityFirebaseMessagingService.java 源代码

正在查看: Perplexity v2.48.1 应用的 PerplexityFirebaseMessagingService.java JAVA 源代码文件

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


package ai.perplexity.app.android.util;

import Jk.h;
import Lk.c;
import N9.C0593f;
import N9.C0598k;
import W9.m;
import W9.p;
import X9.d;
import b.C1441d;
import bl.f;
import com.google.android.gms.internal.measurement.t1;
import com.google.firebase.messaging.FirebaseMessagingService;
import g9.I;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import p3.C3608E;
import p3.C3647m1;
import p3.U0;
import qf.l;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lai/perplexity/app/android/util/PerplexityFirebaseMessagingService;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "<init>", "()V", "PerplexityAndroid_v260454(2.48.1)_20250618_122841_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class PerplexityFirebaseMessagingService extends FirebaseMessagingService implements c {

    public volatile h f19583r0;

    public final Object f19584s0 = new Object();

    public boolean f19585t0 = false;

    public C3608E f19586u0;

    public C3647m1 f19587v0;

    public final Object a() {
        if (this.f19583r0 == null) {
            synchronized (this.f19584s0) {
                try {
                    if (this.f19583r0 == null) {
                        this.f19583r0 = new h(this);
                    }
                } finally {
                }
            }
        }
        return this.f19583r0.a();
    }

    public final void d(l lVar) {
        Jn.c.a.b("Message received: %s", new Object[]{lVar});
        try {
            C3647m1 c3647m1 = this.f19587v0;
            if (c3647m1 != null) {
                c3647m1.d(I.k(lVar));
            } else {
                Intrinsics.n("pushNotifications");
                throw null;
            }
        } catch (Exception e10) {
            Jn.c.a.j(e10, "Failed to process notification [data = " + lVar.f() + "]: " + e10.getLocalizedMessage(), new Object[0]);
        }
    }

    public final void e(String str) {
        Intrinsics.h(str, "newDeviceToken");
        C3608E c3608e = this.f19586u0;
        if (c3608e == null) {
            Intrinsics.n("deviceToken");
            throw null;
        }
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("deviceToken", str);
        C0598k c0598k = new C0598k(linkedHashMap);
        t1.a0(c0598k);
        C0593f c0593f = new C0593f(new d(null), 2, false, false, false, false, -1L, -1L, f.r1(new LinkedHashSet()));
        m mVar = new m(DeviceTokenWorker.class);
        p pVar = (p) mVar.f16705y;
        pVar.f16736j = c0593f;
        pVar.f16731e = c0598k;
        ((N9.I) c3608e.f37869e.get()).a(mVar.e());
    }

    public void onCreate() {
        if (!this.f19585t0) {
            this.f19585t0 = true;
            b.l lVar = ((C1441d) ((U0) a())).f21684a;
            this.f19586u0 = (C3608E) lVar.f21726H.get();
            this.f19587v0 = (C3647m1) lVar.f21843e2.get();
        }
        super/*android.app.Service*/.onCreate();
    }
}