正在查看: TodoCrédito v1.4 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: TodoCrédito v1.4 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package i5;
import android.app.Activity;
import androidx.activity.ComponentActivity;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.n;
import com.tdcd.mx.app.heartbeat.fahey.byl.jajknpu.Jacob;
import com.tdcd.mx.app.heartbeat.pkx.Friend;
import com.tdcd.mx.app.nrfboyv.corroborate.w;
import com.tdcd.mx.app.nrfboyv.corroborate.ywfwut.irzl.Gandhian;
import j5.o;
import java.lang.reflect.Method;
import java.net.Proxy;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import okhttp3.logging.HttpLoggingInterceptor;
import okhttp3.z;
import q4.l;
import retrofit2.HttpException;
import retrofit2.b0;
import s4.e0;
public class i {
public static final Map<String, Object> f9963a = new HashMap();
public static b0 f9964b = i();
public static o4.c f9965c;
public static <T> h6.g<? extends o<? extends T>> e(h6.g<? extends o<? extends T>> gVar) {
return gVar.Q(w6.a.b(c5.f.b())).G(j6.a.a());
}
public static <T> T f(Class<T> cls) {
if (f9964b == null) {
o4.d.f().v("创建retrofit实例");
f9964b = i();
}
return (T) f9964b.b(cls);
}
public static <T> T g(Class<T> cls) {
Map<String, Object> map = f9963a;
if (!map.containsKey(cls.getSimpleName())) {
o4.d.f().v(cls.getSimpleName() + "未发现实例,创建");
map.put(cls.getSimpleName(), f(cls));
}
return (T) map.get(cls.getSimpleName());
}
public static o4.c h() {
o4.c cVar = f9965c;
if (cVar != null) {
return cVar;
}
try {
Object newInstance = Gandhian.class.newInstance();
Method declaredMethod = Gandhian.class.getDeclaredMethod("injectApiInstance", Jacob.class);
Object g9 = g(Jacob.class);
if (g9 instanceof o4.c) {
f9965c = (o4.c) g9;
}
declaredMethod.invoke(newInstance, g9);
return (o4.c) newInstance;
} catch (Exception e9) {
e9.printStackTrace();
o4.d.f().v("请检查ApiGenerator的配置是否生效");
return null;
}
}
public static b0 i() {
o4.d.f().v("Base Url == https://prod-gateway.todocredito.mx");
z.a aVar = new z.a();
aVar.d(null);
aVar.a(new s4.b());
aVar.a(new com.tdcd.mx.app.nrfboyv.corroborate.eldjzinmgg.d());
final j5.b f9 = o4.d.f();
Objects.requireNonNull(f9);
HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(new HttpLoggingInterceptor.a() {
@Override
public final void a(String str) {
j5.b.this.B(str);
}
});
httpLoggingInterceptor.e(HttpLoggingInterceptor.Level.BODY);
aVar.b(httpLoggingInterceptor);
aVar.a(new t4.a());
aVar.e(30L, TimeUnit.SECONDS);
aVar.M(false);
aVar.K(Proxy.NO_PROXY);
z c9 = aVar.c();
c9.o().m(16);
c9.o().n(16);
return new b0.b().c("https://prod-gateway.todocredito.mx").g(c9).a(i8.g.d()).b(j8.a.f()).e();
}
public static void j(e0 e0Var, o oVar) {
if (oVar.code() != 200) {
if (e0Var instanceof y4.a) {
((y4.a) e0Var).b(new Friend(oVar.msg(), oVar.code(), null));
}
} else if (e0Var != null) {
try {
e0Var.a(oVar.data());
} catch (ClassCastException e9) {
e9.printStackTrace();
}
}
}
public static void k(w wVar, e0 e0Var, Throwable th) {
th.printStackTrace();
wVar.e();
if (!(th instanceof HttpException)) {
if (e0Var instanceof y4.a) {
((y4.a) e0Var).b(new Friend(th.getMessage(), -1, th));
return;
} else {
o4.d.h().E(l.a("Z|ylvowk*no*myxo\u0082sýx8*Sx~ox~o*x\u007fo\u0080kwox~o*wë}*~k|no8"));
return;
}
}
if (!(e0Var instanceof y4.a)) {
o4.d.h().E(l.a("Z|ylvowk*no*myxo\u0082sýx8*Sx~ox~o*x\u007fo\u0080kwox~o*wë}*~k|no8"));
} else {
HttpException httpException = (HttpException) th;
((y4.a) e0Var).b(new Friend(httpException.c(), httpException.a(), th));
}
}
public static void l(e0 e0Var, o oVar) {
if (oVar.code() != 200) {
if (e0Var instanceof y4.a) {
((y4.a) e0Var).b(new Friend(oVar.msg(), oVar.code(), null));
}
} else if (e0Var != null) {
try {
e0Var.a(oVar.data());
} catch (ClassCastException e9) {
e9.printStackTrace();
}
}
}
public static void m(w wVar, e0 e0Var, Throwable th) {
th.printStackTrace();
wVar.e();
if (!(th instanceof HttpException)) {
if (e0Var instanceof y4.a) {
((y4.a) e0Var).b(new Friend(th.getMessage(), -1, th));
return;
} else {
o4.d.h().E(l.a("Z|ylvowk*no*myxo\u0082sýx8*Sx~ox~o*x\u007fo\u0080kwox~o*wë}*~k|no8"));
return;
}
}
if (!(e0Var instanceof y4.a)) {
o4.d.h().E(l.a("Z|ylvowk*no*myxo\u0082sýx8*Sx~ox~o*x\u007fo\u0080kwox~o*wë}*~k|no8"));
} else {
HttpException httpException = (HttpException) th;
((y4.a) e0Var).b(new Friend(httpException.c(), httpException.a(), th));
}
}
public static <T, R> void n(h6.g<? extends o<? extends T>> gVar, ComponentActivity componentActivity, e0<R> e0Var) {
r(gVar, componentActivity, componentActivity, e0Var);
}
public static <T, R> void o(h6.g<? extends o<? extends T>> gVar, ComponentActivity componentActivity, boolean z8, e0<R> e0Var) {
if (z8) {
r(gVar, componentActivity, componentActivity, e0Var);
} else {
r(gVar, componentActivity, null, e0Var);
}
}
public static <T, R> void p(h6.g<? extends o<? extends T>> gVar, Fragment fragment, e0<R> e0Var) {
r(gVar, fragment.Z(), fragment.n(), e0Var);
}
public static <T, R> void q(h6.g<? extends o<? extends T>> gVar, Fragment fragment, boolean z8, e0<R> e0Var) {
if (z8) {
r(gVar, fragment.Z(), fragment.n(), e0Var);
} else {
r(gVar, fragment.Z(), null, e0Var);
}
}
public static <T, RESULT> void r(h6.g<? extends o<? extends T>> gVar, n nVar, Activity activity, final e0<RESULT> e0Var) {
final w wVar = new w(activity);
try {
if (nVar == null) {
e(gVar).h(wVar).N(new n6.g() {
@Override
public final void accept(Object obj) {
i.j(e0.this, (o) obj);
}
}, new n6.g() {
@Override
public final void accept(Object obj) {
i.k(w.this, e0Var, (Throwable) obj);
}
});
} else {
((com.uber.autodispose.o) e(gVar).h(wVar).c(com.uber.autodispose.d.b(com.uber.autodispose.android.lifecycle.b.h(nVar, Lifecycle.Event.ON_DESTROY)))).a(new n6.g() {
@Override
public final void accept(Object obj) {
i.l(e0.this, (o) obj);
}
}, new n6.g() {
@Override
public final void accept(Object obj) {
i.m(w.this, e0Var, (Throwable) obj);
}
});
}
} catch (Exception e9) {
if (e0Var instanceof y4.a) {
((y4.a) e0Var).b(new Friend(e9.getMessage(), -1, e9));
} else {
o4.d.h().E(l.a("Z|ylvowk*no*myxo\u0082sýx8*Sx~ox~o*x\u007fo\u0080kwox~o*wë}*~k|no8"));
}
}
}
}