正在查看: CityMall v1.42.1 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package I0;
import L0.H;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import com.clevertap.android.pushtemplates.PTPushNotificationReceiver;
import com.clevertap.android.pushtemplates.PushTemplateReceiver;
import com.clevertap.android.sdk.pushnotification.CTNotificationIntentService;
import com.facebook.ads.NativeAdScrollView;
import com.facebook.applinks.AppLinkData;
import java.util.ArrayList;
import java.util.Random;
public final class g {
public static final g f1108a = new g();
private static Intent f1109b;
private g() {
}
public static final PendingIntent a(Context context, Bundle bundle, String str, int i5) {
Class<CTNotificationIntentService> cls;
kotlin.jvm.internal.j.i(context, "context");
kotlin.jvm.internal.j.i(bundle, AppLinkData.ARGUMENTS_EXTRAS_KEY);
kotlin.jvm.internal.j.i(str, "dl");
try {
cls = CTNotificationIntentService.class;
String str2 = CTNotificationIntentService.MAIN_ACTION;
} catch (ClassNotFoundException unused) {
com.clevertap.android.pushtemplates.a.a("No Intent Service found");
cls = null;
}
boolean x4 = H.x(context, cls);
if (Build.VERSION.SDK_INT >= 31 || !x4) {
bundle.putString("wzrk_dl", str);
PendingIntent a5 = com.clevertap.android.sdk.pushnotification.c.a(bundle, context);
kotlin.jvm.internal.j.h(a5, "{\n extras.put…xtras, context)\n }");
return a5;
}
bundle.putBoolean("autoCancel", true);
bundle.putInt("notificationId", i5);
Intent intent = new Intent(CTNotificationIntentService.MAIN_ACTION);
f1109b = intent;
kotlin.jvm.internal.j.f(intent);
intent.putExtras(bundle);
Intent intent2 = f1109b;
kotlin.jvm.internal.j.f(intent2);
intent2.putExtra("dl", str);
Intent intent3 = f1109b;
kotlin.jvm.internal.j.f(intent3);
intent3.setPackage(context.getPackageName());
Intent intent4 = f1109b;
kotlin.jvm.internal.j.f(intent4);
intent4.putExtra("ct_type", CTNotificationIntentService.TYPE_BUTTON_CLICK);
int currentTimeMillis = (int) System.currentTimeMillis();
Intent intent5 = f1109b;
kotlin.jvm.internal.j.f(intent5);
PendingIntent service = PendingIntent.getService(context, currentTimeMillis, intent5, 201326592);
kotlin.jvm.internal.j.h(service, "{\n extras.put…t\n )\n }");
return service;
}
public static final PendingIntent b(Context context, int i5, Bundle bundle, boolean z4, int i6, com.clevertap.android.pushtemplates.c cVar) {
kotlin.jvm.internal.j.i(context, "context");
kotlin.jvm.internal.j.i(bundle, AppLinkData.ARGUMENTS_EXTRAS_KEY);
f1109b = null;
if (z4 && Build.VERSION.SDK_INT < 31) {
f1109b = new Intent(context, (Class<?>) PTPushNotificationReceiver.class);
} else if (!z4) {
f1109b = new Intent(context, (Class<?>) PushTemplateReceiver.class);
}
int i7 = Build.VERSION.SDK_INT;
switch (i6) {
case 1:
case 2:
case 3:
break;
case 4:
Intent intent = f1109b;
kotlin.jvm.internal.j.f(intent);
intent.putExtra("right_swipe", true);
Intent intent2 = f1109b;
kotlin.jvm.internal.j.f(intent2);
intent2.putExtra("notificationId", i5);
Intent intent3 = f1109b;
kotlin.jvm.internal.j.f(intent3);
intent3.putExtras(bundle);
return d(context, i5, bundle, f1109b);
case 5:
Intent intent4 = f1109b;
kotlin.jvm.internal.j.f(intent4);
intent4.putExtra("right_swipe", false);
Intent intent5 = f1109b;
kotlin.jvm.internal.j.f(intent5);
intent5.putExtra("notificationId", i5);
Intent intent6 = f1109b;
kotlin.jvm.internal.j.f(intent6);
intent6.putExtras(bundle);
return d(context, i5, bundle, f1109b);
case 6:
return c(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
case 7:
bundle.putString("wzrk_dl", cVar != null ? cVar.L() : null);
return i7 < 31 ? d(context, i5, bundle, f1109b) : com.clevertap.android.sdk.pushnotification.c.a(bundle, context);
case androidx.datastore.preferences.d.BYTES_FIELD_NUMBER:
Intent intent7 = f1109b;
kotlin.jvm.internal.j.f(intent7);
intent7.putExtras(bundle);
Intent intent8 = f1109b;
kotlin.jvm.internal.j.f(intent8);
intent8.putExtra("click1", true);
Intent intent9 = f1109b;
kotlin.jvm.internal.j.f(intent9);
intent9.putExtra("clickedStar", 1);
Intent intent10 = f1109b;
kotlin.jvm.internal.j.f(intent10);
intent10.putExtra("notificationId", i5);
Intent intent11 = f1109b;
kotlin.jvm.internal.j.f(intent11);
intent11.putExtra("config", cVar != null ? cVar.m() : null);
Intent intent12 = f1109b;
kotlin.jvm.internal.j.f(intent12);
return PendingIntent.getBroadcast(context, 8, intent12, 67108864);
case 9:
Intent intent13 = f1109b;
kotlin.jvm.internal.j.f(intent13);
intent13.putExtras(bundle);
Intent intent14 = f1109b;
kotlin.jvm.internal.j.f(intent14);
intent14.putExtra("click2", true);
Intent intent15 = f1109b;
kotlin.jvm.internal.j.f(intent15);
intent15.putExtra("clickedStar", 2);
Intent intent16 = f1109b;
kotlin.jvm.internal.j.f(intent16);
intent16.putExtra("notificationId", i5);
Intent intent17 = f1109b;
kotlin.jvm.internal.j.f(intent17);
intent17.putExtra("config", cVar != null ? cVar.m() : null);
Intent intent18 = f1109b;
kotlin.jvm.internal.j.f(intent18);
return PendingIntent.getBroadcast(context, 9, intent18, 67108864);
case NativeAdScrollView.DEFAULT_MAX_ADS:
Intent intent19 = f1109b;
kotlin.jvm.internal.j.f(intent19);
intent19.putExtras(bundle);
Intent intent20 = f1109b;
kotlin.jvm.internal.j.f(intent20);
intent20.putExtra("click3", true);
Intent intent21 = f1109b;
kotlin.jvm.internal.j.f(intent21);
intent21.putExtra("clickedStar", 3);
Intent intent22 = f1109b;
kotlin.jvm.internal.j.f(intent22);
intent22.putExtra("notificationId", i5);
Intent intent23 = f1109b;
kotlin.jvm.internal.j.f(intent23);
intent23.putExtra("config", cVar != null ? cVar.m() : null);
Intent intent24 = f1109b;
kotlin.jvm.internal.j.f(intent24);
return PendingIntent.getBroadcast(context, 10, intent24, 67108864);
case 11:
Intent intent25 = f1109b;
kotlin.jvm.internal.j.f(intent25);
intent25.putExtras(bundle);
Intent intent26 = f1109b;
kotlin.jvm.internal.j.f(intent26);
intent26.putExtra("click4", true);
Intent intent27 = f1109b;
kotlin.jvm.internal.j.f(intent27);
intent27.putExtra("clickedStar", 4);
Intent intent28 = f1109b;
kotlin.jvm.internal.j.f(intent28);
intent28.putExtra("notificationId", i5);
Intent intent29 = f1109b;
kotlin.jvm.internal.j.f(intent29);
intent29.putExtra("config", cVar != null ? cVar.m() : null);
Intent intent30 = f1109b;
kotlin.jvm.internal.j.f(intent30);
return PendingIntent.getBroadcast(context, 11, intent30, 67108864);
case 12:
Intent intent31 = f1109b;
kotlin.jvm.internal.j.f(intent31);
intent31.putExtras(bundle);
Intent intent32 = f1109b;
kotlin.jvm.internal.j.f(intent32);
intent32.putExtra("click5", true);
Intent intent33 = f1109b;
kotlin.jvm.internal.j.f(intent33);
intent33.putExtra("clickedStar", 5);
Intent intent34 = f1109b;
kotlin.jvm.internal.j.f(intent34);
intent34.putExtra("notificationId", i5);
Intent intent35 = f1109b;
kotlin.jvm.internal.j.f(intent35);
intent35.putExtra("config", cVar != null ? cVar.m() : null);
Intent intent36 = f1109b;
kotlin.jvm.internal.j.f(intent36);
return PendingIntent.getBroadcast(context, 12, intent36, 67108864);
case 13:
bundle.putString("wzrk_dl", null);
return d(context, i5, bundle, f1109b);
default:
switch (i6) {
case 19:
int nextInt = new Random().nextInt();
Intent intent37 = f1109b;
kotlin.jvm.internal.j.f(intent37);
intent37.putExtra("close", true);
Intent intent38 = f1109b;
kotlin.jvm.internal.j.f(intent38);
intent38.putExtra("notificationId", i5);
Intent intent39 = f1109b;
kotlin.jvm.internal.j.f(intent39);
intent39.putExtras(bundle);
Intent intent40 = f1109b;
kotlin.jvm.internal.j.f(intent40);
return PendingIntent.getBroadcast(context, nextInt, intent40, 67108864);
case NativeAdScrollView.DEFAULT_INSET:
case 29:
case 30:
case 31:
break;
case 21:
int nextInt2 = new Random().nextInt();
Intent intent41 = f1109b;
kotlin.jvm.internal.j.f(intent41);
intent41.putExtras(bundle);
Intent intent42 = f1109b;
kotlin.jvm.internal.j.f(intent42);
intent42.putExtra("pt_current_position", 0);
Intent intent43 = f1109b;
kotlin.jvm.internal.j.f(intent43);
intent43.putExtra("notificationId", i5);
Intent intent44 = f1109b;
kotlin.jvm.internal.j.f(intent44);
ArrayList o4 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o4);
intent44.putExtra("pt_buy_now_dl", (String) o4.get(0));
Intent intent45 = f1109b;
kotlin.jvm.internal.j.f(intent45);
return PendingIntent.getBroadcast(context, nextInt2, intent45, 67108864);
case 22:
int nextInt3 = new Random().nextInt();
Intent intent46 = f1109b;
kotlin.jvm.internal.j.f(intent46);
intent46.putExtras(bundle);
Intent intent47 = f1109b;
kotlin.jvm.internal.j.f(intent47);
intent47.putExtra("pt_current_position", 1);
Intent intent48 = f1109b;
kotlin.jvm.internal.j.f(intent48);
intent48.putExtra("notificationId", i5);
Intent intent49 = f1109b;
kotlin.jvm.internal.j.f(intent49);
ArrayList o5 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o5);
intent49.putExtra("pt_buy_now_dl", (String) o5.get(1));
Intent intent50 = f1109b;
kotlin.jvm.internal.j.f(intent50);
return PendingIntent.getBroadcast(context, nextInt3, intent50, 67108864);
case 23:
int nextInt4 = new Random().nextInt();
Intent intent51 = f1109b;
kotlin.jvm.internal.j.f(intent51);
intent51.putExtras(bundle);
Intent intent52 = f1109b;
kotlin.jvm.internal.j.f(intent52);
intent52.putExtra("pt_current_position", 2);
Intent intent53 = f1109b;
kotlin.jvm.internal.j.f(intent53);
intent53.putExtra("notificationId", i5);
Intent intent54 = f1109b;
kotlin.jvm.internal.j.f(intent54);
ArrayList o6 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o6);
intent54.putExtra("pt_buy_now_dl", (String) o6.get(2));
Intent intent55 = f1109b;
kotlin.jvm.internal.j.f(intent55);
return PendingIntent.getBroadcast(context, nextInt4, intent55, 67108864);
case 24:
ArrayList o7 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o7);
bundle.putString("wzrk_dl", (String) o7.get(0));
return d(context, i5, bundle, f1109b);
case 25:
ArrayList o8 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o8);
bundle.putString("wzrk_dl", (String) o8.get(1));
return d(context, i5, bundle, f1109b);
case 26:
ArrayList o9 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o9);
bundle.putString("wzrk_dl", (String) o9.get(2));
return d(context, i5, bundle, f1109b);
case 27:
Intent intent56 = f1109b;
kotlin.jvm.internal.j.f(intent56);
intent56.putExtra("img1", true);
Intent intent57 = f1109b;
kotlin.jvm.internal.j.f(intent57);
intent57.putExtra("notificationId", i5);
Intent intent58 = f1109b;
kotlin.jvm.internal.j.f(intent58);
ArrayList o10 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o10);
intent58.putExtra("pt_buy_now_dl", (String) o10.get(0));
Intent intent59 = f1109b;
kotlin.jvm.internal.j.f(intent59);
intent59.putExtra("buynow", true);
Intent intent60 = f1109b;
kotlin.jvm.internal.j.f(intent60);
intent60.putExtra("config", cVar != null ? cVar.m() : null);
Intent intent61 = f1109b;
kotlin.jvm.internal.j.f(intent61);
intent61.putExtras(bundle);
int nextInt5 = new Random().nextInt();
Intent intent62 = f1109b;
kotlin.jvm.internal.j.f(intent62);
return PendingIntent.getBroadcast(context, nextInt5, intent62, 67108864);
case 28:
return c(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
case 32:
ArrayList o11 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o11);
if (o11.size() > 0) {
ArrayList o12 = cVar != null ? cVar.o() : null;
kotlin.jvm.internal.j.f(o12);
bundle.putString("wzrk_dl", (String) o12.get(0));
}
Intent intent63 = f1109b;
kotlin.jvm.internal.j.f(intent63);
intent63.putExtra("pt_input_feedback", cVar != null ? cVar.z() : null);
Intent intent64 = f1109b;
kotlin.jvm.internal.j.f(intent64);
intent64.putExtra("pt_input_auto_open", cVar != null ? cVar.y() : null);
Intent intent65 = f1109b;
kotlin.jvm.internal.j.f(intent65);
intent65.putExtra("config", cVar != null ? cVar.m() : null);
if ((cVar != null ? cVar.o() : null) != null) {
return d(context, i5, bundle, f1109b);
}
bundle.putString("wzrk_dl", null);
return d(context, i5, bundle, f1109b);
default:
throw new IllegalArgumentException("invalid pendingIntentType");
}
}
if ((cVar != null ? cVar.o() : null) != null) {
ArrayList o13 = cVar.o();
kotlin.jvm.internal.j.f(o13);
if (o13.size() > 0) {
ArrayList o14 = cVar.o();
kotlin.jvm.internal.j.f(o14);
bundle.putString("wzrk_dl", (String) o14.get(0));
return d(context, i5, bundle, f1109b);
}
}
if (bundle.get("wzrk_dl") == null) {
bundle.putString("wzrk_dl", null);
}
return d(context, i5, bundle, f1109b);
}
public static final PendingIntent c(Context context, Bundle bundle, Intent intent) {
kotlin.jvm.internal.j.i(context, "context");
kotlin.jvm.internal.j.i(bundle, AppLinkData.ARGUMENTS_EXTRAS_KEY);
kotlin.jvm.internal.j.i(intent, "intent");
intent.putExtras(bundle);
intent.putExtra("pt_dismiss_intent", true);
PendingIntent broadcast = PendingIntent.getBroadcast(context, (int) System.currentTimeMillis(), intent, Build.VERSION.SDK_INT >= 31 ? 301989888 : 268435456);
kotlin.jvm.internal.j.h(broadcast, "getBroadcast(\n …chPendingIntent\n )");
return broadcast;
}
public static final PendingIntent d(Context context, int i5, Bundle bundle, Intent intent) {
kotlin.jvm.internal.j.i(context, "context");
kotlin.jvm.internal.j.i(bundle, AppLinkData.ARGUMENTS_EXTRAS_KEY);
Object obj = bundle.get("wzrk_dl");
bundle.putInt("notificationId", i5);
if (obj != null) {
bundle.putBoolean("default_dl", true);
}
if (intent == null) {
PendingIntent a5 = com.clevertap.android.sdk.pushnotification.c.a(bundle, context);
kotlin.jvm.internal.j.h(a5, "getActivityIntent(extras, context)");
return a5;
}
intent.putExtras(bundle);
intent.removeExtra("wzrk_acts");
intent.putExtra("wzrk_from", "CTPushNotificationReceiver");
intent.setFlags(872415232);
PendingIntent broadcast = PendingIntent.getBroadcast(context, (int) System.currentTimeMillis(), intent, Build.VERSION.SDK_INT >= 31 ? 167772160 : 134217728);
kotlin.jvm.internal.j.h(broadcast, "getBroadcast(\n …ndingIntent\n )");
return broadcast;
}
}