正在查看: Mitra Bukalapak v2.55.0 应用的 DanaDeeplink.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mitra Bukalapak v2.55.0 应用的 DanaDeeplink.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bukalapak.mitra.feature.deeplink.registry;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.bukalapak.mitra.feature.deeplink.DialogWrapperActivity;
import com.bukalapak.mitra.feature.deeplink.MitraDeeplink;
import defpackage.dd0;
import defpackage.k54;
import defpackage.kk1$a;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u001f\u0010 J\u001f\u0010\t\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0001¢\u0006\u0004\b\u0007\u0010\bJ!\u0010\r\u001a\u0004\u0018\u00010\n2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0001¢\u0006\u0004\b\u000b\u0010\fJ\u001f\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0001¢\u0006\u0004\b\u000e\u0010\bJ!\u0010\u0011\u001a\u0004\u0018\u00010\n2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0001¢\u0006\u0004\b\u0010\u0010\fJ\u0018\u0010\u0012\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0013\u001a\u0004\u0018\u00010\n2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007JU\u0010\u0019\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00142\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042.\u0010\u0018\u001a*\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u00020\n0\u0017\u0012\u0004\u0012\u00028\u00000\u0015H\u0002¢\u0006\u0004\b\u0019\u0010\u001aR\u0011\u0010\u001e\u001a\u00020\u001b8F¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001d¨\u0006!"}, d2 = {"Lcom/bukalapak/mitra/feature/deeplink/registry/DanaDeeplink;", "", "Landroid/content/Context;", "context", "Landroid/os/Bundle;", "extras", "Lvz8;", "goToLandingDanaScreen$feature_deeplink_release", "(Landroid/content/Context;Landroid/os/Bundle;)Lvz8;", "goToLandingDanaScreen", "Landroid/content/Intent;", "goToLandingDanaScreenInternal$feature_deeplink_release", "(Landroid/content/Context;Landroid/os/Bundle;)Landroid/content/Intent;", "goToLandingDanaScreenInternal", "goToDanaBindingScreen$feature_deeplink_release", "goToDanaBindingScreen", "goToDanaBindingScreenInternal$feature_deeplink_release", "goToDanaBindingScreenInternal", "goToDanaActivationScreen", "goToDanaActivationScreenInternal", "T", "Lkotlin/Function4;", "", "Lkotlin/Function0;", "body", "b", "(Landroid/content/Context;Landroid/os/Bundle;Lyx2;)Ljava/lang/Object;", "Lkk1;", "a", "()Lkk1;", "danaNavigation", "<init>", "()V", "feature_deeplink_release"}, k = 1, mv = {1, 8, 0})
public final class DanaDeeplink {
public static final DanaDeeplink a = new DanaDeeplink();
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
class a extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, vz8> {
public static final a a = new a();
a() {
super(4, k54.class, "buildStackLogin", "buildStackLogin(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)Landroidx/core/app/TaskStackBuilder;", 1);
}
public final vz8 k(Context context, String str, String str2, ex2<? extends Intent> ex2Var) {
p64.h(context, "p0");
p64.h(ex2Var, "p3");
return k54.g(context, str, str2, ex2Var);
}
}
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
class b extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, Intent> {
public static final b a = new b();
b() {
super(4, k54.class, "buildIntentLogin", "buildIntentLogin(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)Landroid/content/Intent;", 1);
}
public final Intent k(Context context, String str, String str2, ex2<? extends Intent> ex2Var) {
p64.h(context, "p0");
p64.h(ex2Var, "p3");
return k54.b(context, str, str2, ex2Var);
}
}
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"T", "Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
static final class c extends dk4 implements ex2<Intent> {
final Context $context;
final String $entryPoint;
final String $sourceScreen;
c(Context context, String str, String str2) {
super(0);
this.$context = context;
this.$sourceScreen = str;
this.$entryPoint = str2;
}
public final Intent invoke() {
return kk1$a.a(DanaDeeplink.a.a(), this.$context, false, this.$sourceScreen, this.$entryPoint, false, 16, null);
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
static final class d extends dk4 implements ex2<Intent> {
public static final d g = new d();
d() {
super(0);
}
public final Intent invoke() {
return new Intent("DeeplinkTaskIntent");
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
static final class e extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/app/Activity;", "act", "Llm9;", "a", "(Landroid/app/Activity;)V"}, k = 3, mv = {1, 8, 0})
static final class a extends dk4 implements gx2<Activity, lm9> {
final String $entryPoint;
final String $sourceScreen;
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
static final class C0042a extends dk4 implements ex2<lm9> {
final Activity $act;
C0042a(Activity activity) {
super(0);
this.$act = activity;
}
public final void a() {
this.$act.finish();
}
public Object invoke() {
a();
return lm9.a;
}
}
a(String str, String str2) {
super(1);
this.$entryPoint = str;
this.$sourceScreen = str2;
}
public final void a(Activity activity) {
p64.h(activity, "act");
kk1$a.i(DanaDeeplink.a.a(), activity, this.$entryPoint, this.$sourceScreen, new C0042a(activity), null, 16, null);
}
public Object invoke(Object obj) {
a((Activity) obj);
return lm9.a;
}
}
e(Bundle bundle, Context context) {
super(0);
this.$extras = bundle;
this.$context = context;
}
public final Intent invoke() {
Bundle bundle = this.$extras.getBundle("args");
if (bundle == null || !bundle.getBoolean("_task_done")) {
return new Intent("DeeplinkTaskIntent");
}
String string = bundle != null ? bundle.getString("trxUrl") : null;
String string2 = bundle != null ? bundle.getString("ott") : null;
boolean z = bundle != null ? bundle.getBoolean("isDanaConnected") : false;
String string3 = this.$extras.getString("sourceScreen");
if (string3 == null) {
string3 = d48.a.c0().b();
}
p64.g(string3, "extras.getString(DopeNav… ?: Screens.DEEPLINK.name");
d48 d48Var = d48.a;
String str = p64.c(string3, d48Var.c0().b()) ^ true ? "mitra_dope" : null;
if (str == null) {
str = d48Var.c0().b();
}
Intent b = (!z || string == null || string2 == null) ? kk1$a.b(DanaDeeplink.a.a(), this.$context, str, string3, false, false, 24, null) : DanaDeeplink.a.a().h(this.$context, string, string2);
String action = b.getAction();
if (action == null || action.hashCode() != 1030607428 || !action.equals("DanaRebindDialogIntent")) {
return b;
}
DialogWrapperActivity.INSTANCE.a(new a(str, string3));
return new Intent(this.$context, (Class<?>) DialogWrapperActivity.class);
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
static final class f extends dk4 implements ex2<Intent> {
public static final f g = new f();
f() {
super(0);
}
public final Intent invoke() {
return new Intent("DeeplinkTaskIntent");
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
static final class g extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/app/Activity;", "act", "Llm9;", "a", "(Landroid/app/Activity;)V"}, k = 3, mv = {1, 8, 0})
static final class a extends dk4 implements gx2<Activity, lm9> {
final String $referrer;
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llm9;", "a", "()V"}, k = 3, mv = {1, 8, 0})
static final class C0043a extends dk4 implements ex2<lm9> {
final Activity $act;
C0043a(Activity activity) {
super(0);
this.$act = activity;
}
public final void a() {
this.$act.finish();
}
public Object invoke() {
a();
return lm9.a;
}
}
a(String str) {
super(1);
this.$referrer = str;
}
public final void a(Activity activity) {
p64.h(activity, "act");
kk1$a.i(DanaDeeplink.a.a(), activity, "", this.$referrer, new C0043a(activity), null, 16, null);
}
public Object invoke(Object obj) {
a((Activity) obj);
return lm9.a;
}
}
g(Bundle bundle, Context context) {
super(0);
this.$extras = bundle;
this.$context = context;
}
public final Intent invoke() {
Bundle bundle = this.$extras.getBundle("args");
if (bundle == null || !bundle.getBoolean("_task_done")) {
return new Intent("DeeplinkTaskIntent");
}
String b = d48.a.c0().b();
Intent c = kk1$a.c(DanaDeeplink.a.a(), this.$context, b, null, null, 12, null);
String action = c.getAction();
if (action == null || action.hashCode() != 1030607428 || !action.equals("DanaRebindDialogIntent")) {
return c;
}
DialogWrapperActivity.INSTANCE.a(new a(b));
return new Intent(this.$context, (Class<?>) DialogWrapperActivity.class);
}
}
private DanaDeeplink() {
}
private final <T> T b(Context context, Bundle extras, yx2<? super Context, ? super String, ? super String, ? super ex2<? extends Intent>, ? extends T> body) {
String string;
Bundle bundle = extras.getBundle("args");
if ((bundle == null || (string = bundle.getString("sourceScreen")) == null) && (string = extras.getString("sourceScreen")) == null) {
string = d48.a.c0().b();
}
p64.g(string, "extras.getBundle(Deeplin… ?: Screens.DEEPLINK.name");
d48 d48Var = d48.a;
String str = p64.c(string, d48Var.c0().b()) ^ true ? "mitra_dope" : null;
if (str == null) {
str = d48Var.c0().b();
}
return (T) body.k(context, dd0.a(extras), (Object) null, new c(context, string, str));
}
@MitraDeeplink
public static final vz8 goToDanaActivationScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return (vz8) a.b(context, extras, a.a);
}
@MitraDeeplink
public static final Intent goToDanaActivationScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return (Intent) a.b(context, extras, b.a);
}
@MitraDeeplink
public static final vz8 goToDanaBindingScreen$feature_deeplink_release(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.g(context, dd0.a(extras), "/dana-binding", d.g);
}
@MitraDeeplink
public static final Intent goToDanaBindingScreenInternal$feature_deeplink_release(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.b(context, dd0.a(extras), "/dana-binding", new e(extras, context));
}
@MitraDeeplink
public static final vz8 goToLandingDanaScreen$feature_deeplink_release(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.g(context, dd0.a(extras), "/landing-dana", f.g);
}
@MitraDeeplink
public static final Intent goToLandingDanaScreenInternal$feature_deeplink_release(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.b(context, dd0.a(extras), "/landing-dana", new g(extras, context));
}
public final kk1 a() {
return xp1.a.a().b1();
}
}