正在查看: Aplazo v2.4.68 应用的 VeriffActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aplazo v2.4.68 应用的 VeriffActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.veriff.sdk.views.base.verification;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import com.veriff.sdk.internal.AbstractC1092sx;
import com.veriff.sdk.internal.C0757k1;
import com.veriff.sdk.internal.C0903nw;
import com.veriff.sdk.internal.C1058s0;
import com.veriff.sdk.internal.C1202vu;
import com.veriff.sdk.internal.C1268xm;
import com.veriff.sdk.internal.C1313yu;
import com.veriff.sdk.internal.C1316yx;
import com.veriff.sdk.internal.Et;
import com.veriff.sdk.internal.G8;
import com.veriff.sdk.internal.Gt;
import com.veriff.sdk.internal.H1;
import com.veriff.sdk.internal.Ht;
import com.veriff.sdk.internal.InterfaceC0901nu;
import com.veriff.sdk.internal.Jt;
import com.veriff.sdk.internal.Q2;
import com.veriff.sdk.internal.Rn;
import com.veriff.sdk.internal.Un;
import com.veriff.sdk.internal.Ux;
import com.veriff.sdk.internal.Vn;
import com.veriff.sdk.internal.Xx;
import gi.i;
import gi.k;
import gi.l;
import gi.z;
import hi.C1468r;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.m;
public final class VeriffActivity extends com.veriff.sdk.views.base.verification.a implements Ht {
public static final a z = new a(null);
public Rn q;
public C1268xm r;
public C0757k1 s;
public Jt t;
public Gt.a u;
public InterfaceC0901nu v;
public C0903nw w;
private final i x = k.a(l.NONE, new b());
private final Function0 y = new g();
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Intent a(Activity activity, C1202vu sessionArguments) {
kotlin.jvm.internal.l.e(activity, "activity");
kotlin.jvm.internal.l.e(sessionArguments, "sessionArguments");
Q2.a aVar = Q2.k;
Intent intent = new Intent(activity, (Class<?>) VeriffActivity.class);
intent.putExtra("com.veriff.EXTRA_NAVIGATE", new Un(C1468r.i(Vn.SessionStart), 0, C1268xm.e.b(), null, 8, null));
intent.putExtra(AbstractC1092sx.b(), false);
intent.putExtra(AbstractC1092sx.a(), true);
return aVar.a(intent, sessionArguments);
}
public final void b(Activity activity, C1202vu sessionArguments) {
kotlin.jvm.internal.l.e(activity, "activity");
kotlin.jvm.internal.l.e(sessionArguments, "sessionArguments");
Intent a = a(activity, sessionArguments);
a.addFlags(33554432);
Q2.k.a(a, sessionArguments);
a.putExtra(AbstractC1092sx.b(), true);
a.putExtra(AbstractC1092sx.a(), false);
C1058s0.a.b(VeriffActivity.class.getName());
activity.startActivity(a);
}
private a() {
}
public final Intent a(Activity activity, C1202vu sessionArguments, C1313yu sessionData, Un navigationState, Xx verificationState) {
kotlin.jvm.internal.l.e(activity, "activity");
kotlin.jvm.internal.l.e(sessionArguments, "sessionArguments");
kotlin.jvm.internal.l.e(sessionData, "sessionData");
kotlin.jvm.internal.l.e(navigationState, "navigationState");
kotlin.jvm.internal.l.e(verificationState, "verificationState");
Intent intent = new Intent(activity, (Class<?>) VeriffActivity.class);
com.veriff.sdk.views.base.verification.a.a(intent, sessionArguments, sessionData);
intent.putExtra("com.veriff.EXTRA_NAVIGATE", navigationState);
intent.putExtra(AbstractC1092sx.b(), false);
intent.putExtra("com.veriff.sdk.EXTRA_VERIFICATION_STATE", verificationState);
intent.addFlags(33554432);
return intent;
}
public final Intent a(Context context, C1202vu sessionArguments, C1313yu sessionData, H1 session, String str, Un navigationState) {
kotlin.jvm.internal.l.e(context, "context");
kotlin.jvm.internal.l.e(sessionArguments, "sessionArguments");
kotlin.jvm.internal.l.e(sessionData, "sessionData");
kotlin.jvm.internal.l.e(session, "session");
kotlin.jvm.internal.l.e(navigationState, "navigationState");
Intent intent = new Intent(context, (Class<?>) VeriffActivity.class);
intent.setFlags(33554432);
intent.addFlags(603979776);
com.veriff.sdk.views.base.verification.a.a(intent, sessionArguments, sessionData);
intent.putExtra("com.veriff.EXTRA_SESSION", session);
intent.putExtra("com.veriff.EXTRA_DOCUMENT_TYPE", str);
intent.putExtra("com.veriff.EXTRA_NAVIGATE", navigationState);
return intent;
}
public final Intent a(Context context, C1202vu sessionArguments, C1313yu sessionData, H1 h1, Un navigationState) {
kotlin.jvm.internal.l.e(context, "context");
kotlin.jvm.internal.l.e(sessionArguments, "sessionArguments");
kotlin.jvm.internal.l.e(sessionData, "sessionData");
kotlin.jvm.internal.l.e(navigationState, "navigationState");
Intent intent = new Intent(context, (Class<?>) VeriffActivity.class);
intent.setFlags(33554432);
com.veriff.sdk.views.base.verification.a.a(intent, sessionArguments, sessionData);
intent.putExtra("com.veriff.EXTRA_SESSION", h1);
intent.putExtra("com.veriff.EXTRA_NAVIGATE", navigationState);
return intent;
}
public final Intent a(Context context, C1202vu sessionArguments, C1313yu sessionData, Ux resubmittedSession, boolean z, Un navigationState) {
kotlin.jvm.internal.l.e(context, "context");
kotlin.jvm.internal.l.e(sessionArguments, "sessionArguments");
kotlin.jvm.internal.l.e(sessionData, "sessionData");
kotlin.jvm.internal.l.e(resubmittedSession, "resubmittedSession");
kotlin.jvm.internal.l.e(navigationState, "navigationState");
Intent intent = new Intent(context, (Class<?>) VeriffActivity.class);
intent.setFlags(33554432);
com.veriff.sdk.views.base.verification.a.a(intent, sessionArguments, sessionData);
intent.putExtra("com.veriff.sdk.EXTRA_RESUBMISSION", resubmittedSession);
intent.putExtra("com.veriff.sdk.EXTRA_IS_FROM_DECISION", z);
intent.putExtra("com.veriff.EXTRA_NAVIGATE", navigationState);
return intent;
}
public final Intent a(Context context, C1202vu c1202vu, C1313yu c1313yu, Un navigationState) {
kotlin.jvm.internal.l.e(context, "context");
kotlin.jvm.internal.l.e(navigationState, "navigationState");
Intent intent = new Intent(context, (Class<?>) VeriffActivity.class);
intent.setFlags(33554432);
com.veriff.sdk.views.base.verification.a.a(intent, c1202vu, c1313yu);
intent.putExtra("com.veriff.EXTRA_NAVIGATE", navigationState);
return intent;
}
}
public static final class b extends m implements Function0 {
public b() {
super(0);
}
@Override
public final Boolean invoke() {
return Boolean.valueOf(VeriffActivity.this.getIntent().getBooleanExtra(AbstractC1092sx.a(), false));
}
}
public static final class c extends m implements Function1 {
final Un a;
public c(Un un) {
super(1);
this.a = un;
}
@Override
public final Un invoke(Un it) {
kotlin.jvm.internal.l.e(it, "it");
return this.a;
}
}
public static final class d extends m implements Function1 {
public static final d a = new d();
public d() {
super(1);
}
public final void a(Jt safeRenderer) {
kotlin.jvm.internal.l.e(safeRenderer, "$this$safeRenderer");
safeRenderer.d();
}
@Override
public Object invoke(Object obj) {
a((Jt) obj);
return z.a;
}
}
public static final class e extends m implements Function1 {
public static final e a = new e();
public e() {
super(1);
}
public final void a(Jt safeRenderer) {
kotlin.jvm.internal.l.e(safeRenderer, "$this$safeRenderer");
safeRenderer.e();
}
@Override
public Object invoke(Object obj) {
a((Jt) obj);
return z.a;
}
}
public static final class f extends m implements Function1 {
public static final f a = new f();
public f() {
super(1);
}
public final void a(Jt safeRenderer) {
kotlin.jvm.internal.l.e(safeRenderer, "$this$safeRenderer");
safeRenderer.f();
}
@Override
public Object invoke(Object obj) {
a((Jt) obj);
return z.a;
}
}
public static final class g extends m implements Function0 {
public g() {
super(0);
}
@Override
public final Gt invoke() {
return VeriffActivity.this.m().create();
}
}
public static final class h extends m implements Function1 {
final Integer a;
public h(Integer num) {
super(1);
this.a = num;
}
public final void a(Jt safeRenderer) {
kotlin.jvm.internal.l.e(safeRenderer, "$this$safeRenderer");
safeRenderer.a(this.a);
}
@Override
public Object invoke(Object obj) {
a((Jt) obj);
return z.a;
}
}
public static final Intent a(Activity activity, C1202vu c1202vu) {
return z.a(activity, c1202vu);
}
public static final void b(Activity activity, C1202vu c1202vu) {
z.b(activity, c1202vu);
}
public boolean dispatchTouchEvent(MotionEvent event) {
kotlin.jvm.internal.l.e(event, "event");
o().b(event);
return super/*android.app.Activity*/.dispatchTouchEvent(event);
}
public final Rn j() {
Rn rn = this.q;
if (rn != null) {
return rn;
}
kotlin.jvm.internal.l.k("navigationManager");
throw null;
}
public final C0757k1 k() {
C0757k1 c0757k1 = this.s;
if (c0757k1 != null) {
return c0757k1;
}
kotlin.jvm.internal.l.k("permissionsVeriff");
throw null;
}
public final Jt l() {
Jt jt = this.t;
if (jt != null) {
return jt;
}
kotlin.jvm.internal.l.k("renderer");
throw null;
}
public final Gt.a m() {
Gt.a aVar = this.u;
if (aVar != null) {
return aVar;
}
kotlin.jvm.internal.l.k("screenComponentFactory");
throw null;
}
public final InterfaceC0901nu n() {
InterfaceC0901nu interfaceC0901nu = this.v;
if (interfaceC0901nu != null) {
return interfaceC0901nu;
}
kotlin.jvm.internal.l.k("sensorDataCollectorService");
throw null;
}
public final C0903nw o() {
C0903nw c0903nw = this.w;
if (c0903nw != null) {
return c0903nw;
}
kotlin.jvm.internal.l.k("touchDataCollector");
throw null;
}
public void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
Et c2 = l().c();
if (c2 != null) {
c2.onResult(i, i2, intent);
}
}
public void onBackPressed() {
if (j().a()) {
return;
}
super/*androidx.activity.l*/.onBackPressed();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
if (p()) {
C1316yx.a aVar = C1316yx.c;
aVar.a();
aVar.a(e().d());
}
}
public void onDestroy() {
a(d.a);
super.onDestroy();
}
@Override
public void onPause() {
super.onPause();
a(e.a);
}
public void onRequestPermissionsResult(int i, String[] permissions, int[] grantResults) {
kotlin.jvm.internal.l.e(permissions, "permissions");
kotlin.jvm.internal.l.e(grantResults, "grantResults");
k().a(i, permissions, grantResults);
}
@Override
public void onResume() {
super.onResume();
a(f.a);
}
@Override
public void onSaveInstanceState(Bundle outState) {
kotlin.jvm.internal.l.e(outState, "outState");
super.onSaveInstanceState(outState);
outState.putParcelable("com.veriff.EXTRA_NAVIGATE", j().l());
}
public void onStart() {
super.onStart();
n().a();
}
public void onStop() {
super.onStop();
n().d();
}
public final boolean p() {
return ((Boolean) this.x.getValue()).booleanValue();
}
@Override
public void a(boolean z2, Bundle bundle) {
this.o.a(this).a(this);
l().b();
Un un = bundle != null ? (Un) bundle.getParcelable("com.veriff.EXTRA_NAVIGATE") : null;
if (un == null && (un = (Un) getIntent().getParcelableExtra("com.veriff.EXTRA_NAVIGATE")) == null) {
throw new IllegalStateException("Navigation cannot be null");
}
if (a(un, e().d())) {
if (hi.z.F(un.p(), un.b()) != Vn.SessionStart) {
n().b();
}
Rn.a.a(j(), false, new c(un), 1, null);
}
}
public final void b(Integer num) {
a(new h(num));
}
@Override
public void b() {
super.b();
j().h();
}
private final boolean a(Un un, G8 g8) {
if (un != null) {
return true;
}
g8.a(new IllegalStateException("Activity launched without any navigation state"));
finish();
return false;
}
private final void a(Function1 function1) {
if (this.t != null) {
function1.invoke(l());
}
}
@Override
public Function0 a() {
return this.y;
}
}