正在查看: Mint v5.7.3 应用的 MoERichPushIntentService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 MoERichPushIntentService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.moengage.richnotification.internal;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.moengage.pushbase.internal.n;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import kotlin.Metadata;
import kotlin.jvm.internal.c0;
import kotlin.jvm.internal.m;
import kotlin.jvm.internal.n;
import va.h;
import wa.a0;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\n\u0010\u000bJ\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0014R\u0014\u0010\t\u001a\u00020\u00068\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u0007\u0010\b¨\u0006\f"}, d2 = {"Lcom/moengage/richnotification/internal/MoERichPushIntentService;", "Landroid/app/IntentService;", "Landroid/content/Intent;", "intent", "Lug/a0;", "onHandleIntent", BuildConfig.FLAVOR, "a", "Ljava/lang/String;", "tag", "<init>", "()V", "rich-notification_release"}, k = 1, mv = {1, 7, 1})
public final class MoERichPushIntentService extends IntentService {
private final String tag;
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
static final class a extends n implements fh.a<String> {
a() {
super(0);
}
public final String invoke() {
return MoERichPushIntentService.this.tag + " onHandleIntent() : Will attempt to process intent";
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
static final class b extends n implements fh.a<String> {
b() {
super(0);
}
public final String invoke() {
return MoERichPushIntentService.this.tag + " onHandleIntent() : couldn't find SDK Instance.";
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
static final class c extends n implements fh.a<String> {
final String b;
final c0 c;
final int d;
c(String str, c0 c0Var, int i) {
super(0);
this.b = str;
this.c = c0Var;
this.d = i;
}
public final String invoke() {
return MoERichPushIntentService.this.tag + " onHandleIntent() : Navigation Direction: " + this.b + ", current index: " + this.c.a + ", Total image count: " + this.d;
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
static final class d extends n implements fh.a<String> {
d() {
super(0);
}
public final String invoke() {
return MoERichPushIntentService.this.tag + " onHandleIntent() : Current index is -1 resetting to starting position.";
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
static final class e extends n implements fh.a<String> {
final c0 b;
e(c0 c0Var) {
super(0);
this.b = c0Var;
}
public final String invoke() {
return MoERichPushIntentService.this.tag + " onHandleIntent() : Next index: " + this.b.a;
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
static final class f extends n implements fh.a<String> {
f() {
super(0);
}
public final String invoke() {
return MoERichPushIntentService.this.tag + " onHandleIntent() : ";
}
}
public MoERichPushIntentService() {
super("RichPushIntentService");
this.tag = "RichPush_5.0.1_MoERichPushIntentService";
}
@Override
protected void onHandleIntent(Intent intent) {
Bundle extras;
try {
h.Companion companion = h.INSTANCE;
h.Companion.d(companion, 0, null, new a(), 3, null);
if (intent == null || (extras = intent.getExtras()) == null) {
return;
}
yb.c.f0(this.tag, extras);
oa.d.a(extras);
n.Companion companion2 = com.moengage.pushbase.internal.n.INSTANCE;
a0 j = companion2.a().j(extras);
if (j == null) {
h.Companion.d(companion, 0, null, new b(), 3, null);
return;
}
c0 c0Var = new c0();
c0Var.a = extras.getInt("image_index", -1);
int i = extras.getInt("image_count", -1);
String string = extras.getString("nav_dir", "next");
h.f(j.logger, 0, null, new c(string, c0Var, i), 3, null);
if (i == -1) {
return;
}
extras.putBoolean("moe_re_notify", true);
if (c0Var.a == -1) {
h.f(j.logger, 0, null, new d(), 3, null);
extras.putInt("image_index", 0);
com.moengage.pushbase.internal.n a2 = companion2.a();
Context applicationContext = getApplicationContext();
m.f(applicationContext, "applicationContext");
a2.m(applicationContext, extras);
return;
}
if (m.b(string, "next")) {
int i2 = c0Var.a + 1;
c0Var.a = i2;
if (i2 >= i) {
c0Var.a = 0;
}
} else {
if (!m.b(string, "previous")) {
throw new IllegalStateException("Not a valid direction");
}
int i3 = c0Var.a - 1;
c0Var.a = i3;
if (i3 < 0) {
c0Var.a = i - 1;
}
}
h.f(j.logger, 0, null, new e(c0Var), 3, null);
extras.putInt("image_index", c0Var.a);
com.moengage.pushbase.internal.n a3 = companion2.a();
Context applicationContext2 = getApplicationContext();
m.f(applicationContext2, "applicationContext");
a3.m(applicationContext2, extras);
} catch (Throwable th) {
h.INSTANCE.b(1, th, new f());
}
}
}