正在查看: VivaMoneda v1.4 应用的 y.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: VivaMoneda v1.4 应用的 y.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package u4;
import android.app.Activity;
import android.text.TextUtils;
import androidx.activity.ComponentActivity;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Lifecycle;
import com.moneda.cloud.iotdqkynjet.Jersey;
import com.moneda.cloud.iqplrcjvl.nfqwidqi.gzk.Funders;
import com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.Dyne;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.lang.reflect.Method;
import java.net.Proxy;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import me.jessyan.autosize.BuildConfig;
import okhttp3.logging.HttpLoggingInterceptor;
import okhttp3.z;
import retrofit2.HttpException;
import retrofit2.b0;
public class y {
public static final Map<String, Object> f13464a = new HashMap();
public static b0 f13465b = j();
public static l4.i f13466c;
public static <T> l6.g<? extends v4.d<? extends T>> e(l6.g<? extends v4.d<? extends T>> gVar) {
try {
g();
} catch (Exception unused) {
}
return gVar.Q(a7.a.b(a5.a.a())).G(n6.a.a());
}
public static <T> T f(Class<T> cls) {
if (f13465b == null) {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.f().v("创建retrofit实例");
f13465b = j();
}
return (T) f13465b.b(cls);
}
public static String g() {
String str = null;
try {
LineNumberReader lineNumberReader = new LineNumberReader(new InputStreamReader(Runtime.getRuntime().exec("cat /sys/class/net/wlan0/address").getInputStream()));
int i9 = 0;
String str2 = BuildConfig.FLAVOR;
while (true) {
if (str2 == null || i9 >= 100) {
break;
}
str2 = lineNumberReader.readLine();
if (str2 != null) {
str = str2.trim();
break;
}
i9++;
}
if (!TextUtils.isEmpty(str)) {
String[] split = str.split(":");
if (split == null) {
return BuildConfig.FLAVOR;
}
if (split.length != 6) {
return BuildConfig.FLAVOR;
}
}
} catch (Exception e9) {
e9.printStackTrace();
}
return str;
}
public static <T> T h(Class<T> cls) {
Map<String, Object> map = f13464a;
if (!map.containsKey(cls.getSimpleName())) {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.f().v(cls.getSimpleName() + "未发现实例,创建");
map.put(cls.getSimpleName(), f(cls));
}
return (T) map.get(cls.getSimpleName());
}
public static l4.i i() {
try {
g();
} catch (Exception unused) {
}
l4.i iVar = f13466c;
if (iVar != null) {
return iVar;
}
try {
Object newInstance = Dyne.class.newInstance();
Method declaredMethod = Dyne.class.getDeclaredMethod("injectApiInstance", Jersey.class);
Object h9 = h(Jersey.class);
if (h9 instanceof l4.i) {
f13466c = (l4.i) h9;
}
declaredMethod.invoke(newInstance, h9);
return (l4.i) newInstance;
} catch (Exception e9) {
e9.printStackTrace();
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.f().v("请检查ApiGenerator的配置是否生效");
return null;
}
}
public static b0 j() {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.f().v("Base Url == https://prod-gateway.vivamoneda.mx");
z.a aVar = new z.a();
aVar.d(null);
HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor();
httpLoggingInterceptor.d(HttpLoggingInterceptor.Level.BODY);
aVar.b(httpLoggingInterceptor);
aVar.a(new com.moneda.cloud.iotdqkynjet.l());
aVar.a(new n());
aVar.a(new f4.c());
aVar.e(30L, TimeUnit.SECONDS);
aVar.M(false);
aVar.K(Proxy.NO_PROXY);
okhttp3.z c9 = aVar.c();
c9.o().m(16);
c9.o().n(16);
return new b0.b().c("https://prod-gateway.vivamoneda.mx").g(c9).a(m8.g.d()).b(n8.a.f()).e();
}
public static void k(f4.d dVar, v4.d dVar2) {
if (dVar2.code() != 200) {
if (dVar instanceof o4.o) {
((o4.o) dVar).b(new Funders(dVar2.msg(), dVar2.code(), null));
}
} else if (dVar != null) {
try {
dVar.a(dVar2.data());
} catch (ClassCastException e9) {
e9.printStackTrace();
}
}
}
public static void l(com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.p pVar, f4.d dVar, Throwable th) {
th.printStackTrace();
pVar.f();
if (!(th instanceof HttpException)) {
if (dVar instanceof o4.o) {
((o4.o) dVar).b(new Funders(th.getMessage(), -1, th));
return;
} else {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.h().E(com.moneda.cloud.iotdqkynjet.k.a("LmVkcmF0IHPDoW0gZXRuZW1hdmV1biBldG5ldG5JIC5uw7NpeGVub2MgZWQgYW1lbGJvclA="));
return;
}
}
if (!(dVar instanceof o4.o)) {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.h().E(com.moneda.cloud.iotdqkynjet.k.a("LmVkcmF0IHPDoW0gZXRuZW1hdmV1biBldG5ldG5JIC5uw7NpeGVub2MgZWQgYW1lbGJvclA="));
} else {
HttpException httpException = (HttpException) th;
((o4.o) dVar).b(new Funders(httpException.c(), httpException.a(), th));
}
}
public static void m(f4.d dVar, v4.d dVar2) {
if (dVar2.code() != 200) {
if (dVar instanceof o4.o) {
((o4.o) dVar).b(new Funders(dVar2.msg(), dVar2.code(), null));
}
} else if (dVar != null) {
try {
dVar.a(dVar2.data());
} catch (ClassCastException e9) {
e9.printStackTrace();
}
}
}
public static void n(com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.p pVar, f4.d dVar, Throwable th) {
th.printStackTrace();
pVar.f();
if (!(th instanceof HttpException)) {
if (dVar instanceof o4.o) {
((o4.o) dVar).b(new Funders(th.getMessage(), -1, th));
return;
} else {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.h().E(com.moneda.cloud.iotdqkynjet.k.a("LmVkcmF0IHPDoW0gZXRuZW1hdmV1biBldG5ldG5JIC5uw7NpeGVub2MgZWQgYW1lbGJvclA="));
return;
}
}
if (!(dVar instanceof o4.o)) {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.h().E(com.moneda.cloud.iotdqkynjet.k.a("LmVkcmF0IHPDoW0gZXRuZW1hdmV1biBldG5ldG5JIC5uw7NpeGVub2MgZWQgYW1lbGJvclA="));
} else {
HttpException httpException = (HttpException) th;
((o4.o) dVar).b(new Funders(httpException.c(), httpException.a(), th));
}
}
public static <T, R> void o(l6.g<? extends v4.d<? extends T>> gVar, ComponentActivity componentActivity, f4.d<R> dVar) {
try {
g();
} catch (Exception unused) {
}
s(gVar, componentActivity, componentActivity, dVar);
}
public static <T, R> void p(l6.g<? extends v4.d<? extends T>> gVar, ComponentActivity componentActivity, boolean z8, f4.d<R> dVar) {
try {
g();
} catch (Exception unused) {
}
try {
g();
} catch (Exception unused2) {
}
if (z8) {
s(gVar, componentActivity, componentActivity, dVar);
} else {
s(gVar, componentActivity, null, dVar);
}
}
public static <T, R> void q(l6.g<? extends v4.d<? extends T>> gVar, Fragment fragment, f4.d<R> dVar) {
try {
g();
} catch (Exception unused) {
}
s(gVar, fragment.Y(), fragment.n(), dVar);
}
public static <T, R> void r(l6.g<? extends v4.d<? extends T>> gVar, Fragment fragment, boolean z8, f4.d<R> dVar) {
if (z8) {
s(gVar, fragment.Y(), fragment.n(), dVar);
} else {
s(gVar, fragment.Y(), null, dVar);
}
}
public static <T, RESULT> void s(l6.g<? extends v4.d<? extends T>> gVar, androidx.lifecycle.n nVar, Activity activity, final f4.d<RESULT> dVar) {
final com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.p pVar = new com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.p(activity);
try {
if (nVar == null) {
e(gVar).h(pVar).N(new r6.g() {
@Override
public final void accept(Object obj) {
y.k(f4.d.this, (v4.d) obj);
}
}, new r6.g() {
@Override
public final void accept(Object obj) {
y.l(com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.p.this, dVar, (Throwable) obj);
}
});
} else {
((com.uber.autodispose.o) e(gVar).h(pVar).c(com.uber.autodispose.d.b(com.uber.autodispose.android.lifecycle.b.h(nVar, Lifecycle.Event.ON_DESTROY)))).a(new r6.g() {
@Override
public final void accept(Object obj) {
y.m(f4.d.this, (v4.d) obj);
}
}, new r6.g() {
@Override
public final void accept(Object obj) {
y.n(com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.p.this, dVar, (Throwable) obj);
}
});
}
} catch (Exception e9) {
if (dVar instanceof o4.o) {
((o4.o) dVar).b(new Funders(e9.getMessage(), -1, e9));
} else {
com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.p.h().E(com.moneda.cloud.iotdqkynjet.k.a("LmVkcmF0IHPDoW0gZXRuZW1hdmV1biBldG5ldG5JIC5uw7NpeGVub2MgZWQgYW1lbGJvclA="));
}
}
}
}