正在查看: Bhakti v5.4.0 应用的 MoEPushWorker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Bhakti v5.4.0 应用的 MoEPushWorker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.moengage.pushbase.internal;
import A8.w;
import Ai.p;
import Dh.b;
import Fe.e;
import Fh.a;
import I5.g;
import Je.t;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.moengage.richnotification.internal.RichNotificationHandlerImpl;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import mf.h;
import mp.d;
import nf.F;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import qg.C2184s;
import qg.e0;
import uh.c;
import uh.m;
import uh.u;
@Metadata
public final class MoEPushWorker extends IntentService {
private final String tag;
public MoEPushWorker() {
super("RegistrationIntentService");
this.tag = "PushBase_9.1.0_MoEPushWorker";
}
private final void dismissNotification(Bundle bundle, F f10) throws JSONException {
h.a(f10.d, 0, (Throwable) null, (Function0) null, new m(this, 0), 7);
Context applicationContext = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
w.p(applicationContext, f10, bundle, false);
JSONArray y10 = w.y(bundle);
if (y10.length() == 0) {
return;
}
JSONObject jSONObject = y10.getJSONObject(0);
Intrinsics.checkNotNullExpressionValue(jSONObject, "getJSONObject(...)");
Intrinsics.checkNotNullParameter(jSONObject, "actionJson");
String string = jSONObject.getString("name");
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
a aVar = new a(string, jSONObject);
String string2 = jSONObject.getString("value");
Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
Intrinsics.checkNotNullParameter(aVar, "action");
Intrinsics.checkNotNullParameter(string2, "notificationTag");
Intrinsics.checkNotNullParameter(aVar, "action");
Intrinsics.checkNotNullParameter(string, "actionType");
Intrinsics.checkNotNullParameter(jSONObject, "payload");
Context applicationContext2 = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext2, "getApplicationContext(...)");
w.Y(applicationContext2, string2);
Context applicationContext3 = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext3, "getApplicationContext(...)");
Intrinsics.checkNotNullParameter(applicationContext3, "context");
Intrinsics.checkNotNullParameter(f10, "sdkInstance");
Intrinsics.checkNotNullParameter(bundle, "payload");
try {
e eVar = new e();
eVar.c(bundle.getString("gcm_campaign_id"), "gcm_campaign_id");
A6.a.f(bundle, eVar, f10);
String str = f10.a.a;
Intrinsics.checkNotNullParameter(applicationContext3, "context");
Intrinsics.checkNotNullParameter("MOE_NOTIFICATION_DISMISSED", "eventName");
Intrinsics.checkNotNullParameter(eVar, "properties");
Intrinsics.checkNotNullParameter(str, "appId");
F c5 = t.c(str);
if (c5 != null) {
c5.f.h(new df.e("TRACK_EVENT", false, new Ge.a(c5, applicationContext3, "MOE_NOTIFICATION_DISMISSED", eVar)));
}
} catch (Throwable th2) {
h.a(f10.d, 1, th2, (Function0) null, c.f20648r, 4);
}
RichNotificationHandlerImpl richNotificationHandlerImpl = b.a;
Context applicationContext4 = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext4, "getApplicationContext(...)");
b.a(applicationContext4, bundle, f10);
bundle.putString("action_type", "dismiss_button");
uh.t b = u.b(f10);
Context applicationContext5 = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext5, "getApplicationContext(...)");
b.h(applicationContext5, bundle);
}
private final void handleNotificationCleared(Bundle bundle, F f10) {
h.a(f10.d, 0, (Throwable) null, (Function0) null, new m(this, 1), 7);
Context applicationContext = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
w.p(applicationContext, f10, bundle, false);
bundle.putString("action_type", "swipe");
uh.t b = u.b(f10);
Context applicationContext2 = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext2, "getApplicationContext(...)");
b.h(applicationContext2, bundle);
RichNotificationHandlerImpl richNotificationHandlerImpl = b.a;
Context applicationContext3 = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext3, "getApplicationContext(...)");
b.a(applicationContext3, bundle, f10);
}
@Override
@d
public void onHandleIntent(Intent intent) {
if (intent == null) {
return;
}
try {
Bundle extras = intent.getExtras();
if (extras == null || extras.isEmpty()) {
return;
}
g.a0(extras);
if (uh.w.b == null) {
synchronized (uh.w.class) {
try {
uh.w wVar = uh.w.b;
if (wVar == null) {
wVar = new uh.w(0);
}
uh.w.b = wVar;
} finally {
}
}
}
F J9 = uh.w.J(extras);
if (J9 == null) {
return;
}
Yf.e.U(J9.d, this.tag, extras);
String action = intent.getAction();
if (action == null) {
return;
}
h.a(J9.d, 0, (Throwable) null, (Function0) null, new C2184s(29, this, action), 7);
if (action.equals("ACTION_NOTIFICATION_CLEARED")) {
handleNotificationCleared(extras, J9);
} else if (action.equals("ACTION_NOTIFICATION_CLOSE_CLICK")) {
dismissNotification(extras, J9);
}
} catch (Throwable th2) {
yd.c cVar = h.c;
p.P(1, th2, (e0) null, new m(this, 2), 4);
}
}
}