导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - as.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 as.java JAVA 源代码文件

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


package bo.app;

import android.content.Context;
import android.content.SharedPreferences;
import bo.app.aa0;
import bo.app.as;
import bo.app.bs;
import bo.app.v30;
import bo.app.x90;
import com.braze.coroutine.BrazeCoroutineScope;
import com.braze.events.IEventSubscriber;
import com.braze.support.BrazeLogger;
import com.braze.support.StringUtils;
import defpackage.C0145ka0;
import defpackage.ex2;
import defpackage.hb4;
import defpackage.la0;
import defpackage.p64;
import defpackage.r31;
import java.util.concurrent.TimeUnit;

public final class as {
    public static final long f = TimeUnit.SECONDS.toMillis(5);
    public final o90 a;
    public final sz b;
    public final SharedPreferences c;
    public final ht d;
    public hb4 e;

    public as(Context context, sv svVar, o90 o90Var, String str, String str2) {
        p64.h(o90Var, "serverConfigStorageProvider");
        p64.h(svVar, "internalPublisher");
        p64.h(context, "context");
        this.a = o90Var;
        this.b = svVar;
        SharedPreferences sharedPreferences = context.getSharedPreferences("com.braze.managers.dust.metadata" + StringUtils.getCacheFileSuffix(context, str, str2), 0);
        p64.g(sharedPreferences, "context.getSharedPrefere…xt.MODE_PRIVATE\n        )");
        this.c = sharedPreferences;
        this.d = new ht();
        svVar.c(new IEventSubscriber() {
            @Override
            public final void trigger(Object obj) {
                as.a(as.this, (x90) obj);
            }
        }, x90.class);
        svVar.c(new IEventSubscriber() {
            @Override
            public final void trigger(Object obj) {
                as.a(as.this, (aa0) obj);
            }
        }, aa0.class);
        svVar.c(new IEventSubscriber() {
            @Override
            public final void trigger(Object obj) {
                as.a(as.this, (v30) obj);
            }
        }, v30.class);
        svVar.c(new IEventSubscriber() {
            @Override
            public final void trigger(Object obj) {
                as.a(as.this, (bs) obj);
            }
        }, bs.class);
    }

    public static final void a(as asVar, x90 x90Var) {
        p64.h(asVar, "this$0");
        p64.h(x90Var, "it");
        BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, asVar, (BrazeLogger.Priority) null, (Throwable) null, mr.a, 3, (Object) null);
        hb4 hb4Var = asVar.e;
        if (hb4Var != null) {
            hb4.a.a(hb4Var, null, 1, null);
        }
        asVar.a(true);
    }

    public static final void a(as asVar, aa0 aa0Var) {
        p64.h(asVar, "this$0");
        p64.h(aa0Var, "it");
        BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, asVar, (BrazeLogger.Priority) null, (Throwable) null, nr.a, 3, (Object) null);
        asVar.e = BrazeCoroutineScope.launchDelayed$default(BrazeCoroutineScope.INSTANCE, Long.valueOf(f), null, new pr(asVar, null), 2, null);
    }

    public static final void a(as asVar, v30 v30Var) {
        p64.h(asVar, "this$0");
        p64.h(v30Var, "it");
        BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, (Object) asVar, (BrazeLogger.Priority) null, (Throwable) null, (ex2) new qr(v30Var), 3, (Object) null);
        u30 u30Var = v30Var.b;
        u30 u30Var2 = u30.NONE;
        if (u30Var == u30Var2) {
            asVar.a();
        } else if (v30Var.a == u30Var2) {
            asVar.a(true);
        }
    }

    public static final void a(as asVar, bs bsVar) {
        p64.h(asVar, "this$0");
        p64.h(bsVar, "it");
        BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
        BrazeLogger.brazelog$default(brazeLogger, (Object) asVar, (BrazeLogger.Priority) null, (Throwable) null, (ex2) rr.a, 3, (Object) null);
        String string = asVar.c.getString("mite", null);
        String str = bsVar.a;
        BrazeLogger.brazelog$default(brazeLogger, (Object) asVar, (BrazeLogger.Priority) null, (Throwable) null, (ex2) new wr(str), 3, (Object) null);
        asVar.c.edit().putString("mite", str).apply();
        asVar.a(p64.c(string, bsVar.a));
    }

    public final void a() {
        BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
        BrazeLogger.brazelog$default(brazeLogger, this, (BrazeLogger.Priority) null, (Throwable) null, tr.a, 3, (Object) null);
        ht htVar = this.d;
        htVar.getClass();
        BrazeLogger.brazelog$default(brazeLogger, htVar, (BrazeLogger.Priority) null, (Throwable) null, new js(htVar), 3, (Object) null);
        hb4 hb4Var = htVar.a;
        if (hb4Var != null) {
            hb4.a.a(hb4Var, null, 1, null);
        }
        htVar.a = null;
    }

    public final void a(boolean z) {
        hb4 d;
        String string = this.c.getString("mite", null);
        if (string != null && this.a.s()) {
            String concat = "https://dust.k8s.test-001.d-usw-2.braze.com/sse?mite=".concat(string);
            BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
            BrazeLogger.brazelog$default(brazeLogger, (Object) this, (BrazeLogger.Priority) null, (Throwable) null, (ex2) new yr(z, string, concat), 3, (Object) null);
            ht htVar = this.d;
            zr zrVar = new zr(this);
            htVar.getClass();
            p64.h(concat, "url");
            p64.h(zrVar, "ingestor");
            BrazeLogger.brazelog$default(brazeLogger, (Object) htVar, (BrazeLogger.Priority) null, (Throwable) null, (ex2) new us(concat), 3, (Object) null);
            if (!z || htVar.a == null) {
                C0145ka0.b(null, new ws(htVar, (r31) null), 1, null);
                d = la0.d(BrazeCoroutineScope.INSTANCE, null, null, new ft(htVar, zrVar, concat, (r31) null), 3, null);
                htVar.a = d;
                BrazeLogger.brazelog$default(brazeLogger, (Object) htVar, (BrazeLogger.Priority) null, (Throwable) null, (ex2) new gt(htVar), 3, (Object) null);
                return;
            }
            BrazeLogger.brazelog$default(brazeLogger, (Object) htVar, (BrazeLogger.Priority) null, (Throwable) null, (ex2) new vs(htVar), 3, (Object) null);
            return;
        }
        BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, (BrazeLogger.Priority) null, (Throwable) null, new xr(string, this), 3, (Object) null);
    }
}