Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 p.java 源代码,内容仅作参考
package com.braintreepayments.api;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;
import java.util.Locale;
public class p {
private final k f26131a;
private final com.braintreepayments.api.a f26132b;
private final u f26133c;
private final s f26134d;
private final x f26135e;
private final t0 f26136f;
private final Context f26137g;
private final w0 f26138h;
private final z1 f26139i;
private final String f26140j;
private final String f26141k;
private final String f26142l;
private final String f26143m;
private boolean f26144n;
public class a implements j {
final s0 f26145a;
class C0702a implements u0 {
final i f26147a;
C0702a(i iVar) {
this.f26147a = iVar;
}
@Override
public void a(v0 v0Var, Exception exc) {
if (v0Var != null) {
q0 a15 = v0Var.a();
a.this.f26145a.a(a15, null);
if (v0Var.b() != null) {
p.this.w("configuration.cache.load.failed", a15, this.f26147a);
}
if (v0Var.c() != null) {
p.this.w("configuration.cache.save.failed", a15, this.f26147a);
return;
}
return;
}
a.this.f26145a.a(null, exc);
}
}
a(s0 s0Var) {
this.f26145a = s0Var;
}
@Override
public void a(i iVar, Exception exc) {
if (iVar != null) {
p.this.f26136f.d(iVar, new C0702a(iVar));
} else {
this.f26145a.a(null, exc);
}
}
}
public class b implements j {
final String f26149a;
class a implements s0 {
final i f26151a;
a(i iVar) {
this.f26151a = iVar;
}
@Override
public void a(q0 q0Var, Exception exc) {
b bVar = b.this;
p.this.w(bVar.f26149a, q0Var, this.f26151a);
}
}
b(String str) {
this.f26149a = str;
}
@Override
public void a(i iVar, Exception exc) {
if (iVar != null) {
p.this.n(new a(iVar));
}
}
}
class c implements j {
final String f26153a;
final String f26154b;
final r1 f26155c;
class a implements s0 {
final i f26157a;
a(i iVar) {
this.f26157a = iVar;
}
@Override
public void a(q0 q0Var, Exception exc) {
if (q0Var != null) {
u uVar = p.this.f26133c;
c cVar = c.this;
uVar.d(cVar.f26153a, cVar.f26154b, q0Var, this.f26157a, cVar.f26155c);
return;
}
c.this.f26155c.a(null, exc);
}
}
c(String str, String str2, r1 r1Var) {
this.f26153a = str;
this.f26154b = str2;
this.f26155c = r1Var;
}
@Override
public void a(i iVar, Exception exc) {
if (iVar != null) {
p.this.n(new a(iVar));
} else {
this.f26155c.a(null, exc);
}
}
}
class d implements j {
final String f26159a;
final r1 f26160b;
class a implements s0 {
final i f26162a;
a(i iVar) {
this.f26162a = iVar;
}
@Override
public void a(q0 q0Var, Exception exc) {
if (q0Var != null) {
s sVar = p.this.f26134d;
d dVar = d.this;
sVar.b(dVar.f26159a, q0Var, this.f26162a, dVar.f26160b);
return;
}
d.this.f26160b.a(null, exc);
}
}
d(String str, r1 r1Var) {
this.f26159a = str;
this.f26160b = r1Var;
}
@Override
public void a(i iVar, Exception exc) {
if (iVar != null) {
p.this.n(new a(iVar));
} else {
this.f26160b.a(null, exc);
}
}
}
public p(@NonNull Context context, @NonNull String str) {
this(f(context, str, null));
}
private static q f(Context context, String str, p0 p0Var) {
StringBuilder sb5 = new StringBuilder();
String packageName = context.getApplicationContext().getPackageName();
Locale locale = Locale.ROOT;
sb5.append(packageName.toLowerCase(locale).replace("_", ""));
sb5.append(".braintree");
return h(context, str, p0Var, sb5.toString(), null, "custom", context.getApplicationContext().getPackageName().toLowerCase(locale).replace("_", "") + ".braintree.deeplinkhandler");
}
private static q g(Context context, String str, p0 p0Var, String str2) {
return h(context, str, p0Var, str2, null, "custom", null);
}
private static q h(Context context, String str, p0 p0Var, String str2, String str3, String str4, String str5) {
k kVar = new k(str, p0Var);
u uVar = new u();
return new q().c(kVar).g(context).z(str4).y(str3).v(uVar).x(str2).d(str5).u(new s()).b(new com.braintreepayments.api.a(context)).e(new x()).w(new z1()).a(new p3()).f(new t0(context, uVar));
}
static boolean s(q0 q0Var) {
if (q0Var != null && q0Var.n()) {
return true;
}
return false;
}
public void w(String str, q0 q0Var, i iVar) {
if (s(q0Var)) {
this.f26132b.h(q0Var, str, this.f26140j, o(), iVar);
}
}
public boolean e(FragmentActivity fragmentActivity, int i15) {
Uri parse = Uri.parse("https://braintreepayments.com");
try {
this.f26135e.a(fragmentActivity, new z().i(parse).h(q()).g(i15));
return true;
} catch (BrowserSwitchException unused) {
return false;
}
}
public c0 i(@NonNull FragmentActivity fragmentActivity) {
return this.f26135e.c(fragmentActivity);
}
public c0 j(@NonNull Context context) {
return this.f26135e.d(context);
}
public void k(@NonNull j jVar) {
this.f26131a.b(jVar);
}
public c0 l(@NonNull FragmentActivity fragmentActivity) {
return this.f26135e.e(fragmentActivity);
}
public c0 m(@NonNull Context context) {
return this.f26135e.f(context);
}
public void n(@NonNull s0 s0Var) {
k(new a(s0Var));
}
public String o() {
return this.f26141k;
}
public <T> ActivityInfo p(Class<T> cls) {
return this.f26139i.a(this.f26137g, cls);
}
public String q() {
return this.f26144n ? this.f26143m : this.f26142l;
}
public String r() {
return this.f26140j;
}
public boolean t() {
return this.f26144n;
}
public void u() {
this.f26132b.d(this.f26137g, this.f26140j, this.f26141k, this.f26131a.a());
}
public void v(String str) {
k(new b(str));
}
public void x(String str, r1 r1Var) {
k(new d(str, r1Var));
}
public void y(String str, String str2, r1 r1Var) {
k(new c(str, str2, r1Var));
}
public void z(FragmentActivity fragmentActivity, z zVar) throws BrowserSwitchException {
x xVar = this.f26135e;
if (xVar != null) {
xVar.h(fragmentActivity, zVar);
}
}
public p(@NonNull Context context, @NonNull String str, @NonNull String str2) {
this(g(context, str, null, str2));
}
p(q qVar) {
this.f26132b = qVar.h();
this.f26137g = qVar.m().getApplicationContext();
this.f26131a = qVar.i();
this.f26135e = qVar.k();
this.f26136f = qVar.l();
this.f26134d = qVar.n();
this.f26133c = qVar.o();
this.f26139i = qVar.q();
String s15 = qVar.s();
this.f26140j = s15 == null ? qVar.t().a() : s15;
this.f26141k = qVar.p();
this.f26142l = qVar.r();
this.f26143m = qVar.j();
w0 w0Var = new w0(this);
this.f26138h = w0Var;
w0Var.e();
}
}