正在查看: Moneyman v2.316.0.0 应用的 UserBehaviourInitializer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Moneyman v2.316.0.0 应用的 UserBehaviourInitializer.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package mx.moneyman.initializer;
import B.g;
import Gl.a;
import Jr.T;
import Jr.U;
import Jr.V;
import Jr.l;
import Jr.p;
import Jr.z;
import Wf.A;
import android.content.Context;
import android.content.ContextWrapper;
import android.net.Uri;
import com.idfinance.userbehavior.processor.model.SessionId;
import com.singular.sdk.BuildConfig;
import com.singular.sdk.internal.Constants;
import ff.C0969b;
import java.lang.reflect.Proxy;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Executor;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.i;
import l5.f;
import m3.b;
import nf.s;
import okhttp3.HttpUrl;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import ub.C1899a;
import vb.C1979a;
import vb.C1980b;
import wl.c;
import yb.C2053a;
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"Lmx/moneyman/initializer/UserBehaviourInitializer;", "Lm3/b;", "LVf/A;", "<init>", "()V", "androidApp_productionMXGmsRelease"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class UserBehaviourInitializer implements b {
public final List a() {
return A.j(KoinInitializer.class);
}
public final Object b(Context context) {
String scheme;
String host;
String path;
i.g(context, "context");
C1899a c1899a = new C1899a();
Uri endpoint = Uri.parse("https://www.moneyman.com.mx/api/3/store/");
i.g(endpoint, "endpoint");
c1899a.a = endpoint;
List list = s.a;
c1899a.a(new Pair("User-Agent", a.a()));
c1899a.a(new Pair("Device-Stock-UA", a.a()));
c1899a.a(new Pair("Os-Name", Constants.PLATFORM));
c1899a.a(new Pair("Os-Version", a.a));
c1899a.a(new Pair("Installation-Source", f.i(a.b((ContextWrapper) context))));
C0969b c0969b = C0969b.a;
c1899a.b = new c();
String sessionId = (String) Gq.c.a.getA();
i.g(sessionId, "sessionId");
SessionId.INSTANCE.setSessionId(sessionId);
Uri uri = c1899a.a;
if (uri == null || (scheme = uri.getScheme()) == null) {
throw new IllegalStateException("Specify endpoint before calling build method!");
}
Uri uri2 = c1899a.a;
if (uri2 == null || (host = uri2.getHost()) == null) {
throw new IllegalStateException("Specify endpoint before calling build method!");
}
Uri uri3 = c1899a.a;
if (uri3 == null || (path = uri3.getPath()) == null) {
throw new IllegalStateException("Specify endpoint before calling build method!");
}
String m = g.m(scheme, "://", host);
HttpLoggingInterceptor.Logger logger = c1899a.b;
if (logger == null) {
logger = new vb.c();
}
HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(logger);
httpLoggingInterceptor.level(HttpLoggingInterceptor.Level.BODY);
OkHttpClient build = new OkHttpClient.Builder().addInterceptor(httpLoggingInterceptor).addInterceptor(new C1979a()).addInterceptor(new C1980b()).build();
U u = new U();
Objects.requireNonNull(m, "baseUrl == null");
HttpUrl httpUrl = HttpUrl.get(m);
Objects.requireNonNull(httpUrl, "baseUrl == null");
List pathSegments = httpUrl.pathSegments();
if (!BuildConfig.FLAVOR.equals(pathSegments.get(pathSegments.size() - 1))) {
throw new IllegalArgumentException("baseUrl must end in /: " + httpUrl);
}
u.b = httpUrl;
Kr.a aVar = new Kr.a(new com.google.gson.g());
ArrayList arrayList = u.c;
arrayList.add(aVar);
Objects.requireNonNull(build, "client == null");
if (u.b == null) {
throw new IllegalStateException("Base URL required.");
}
Executor a = u.a.a();
ArrayList arrayList2 = new ArrayList(u.d);
arrayList2.addAll(Arrays.asList(l.a, new p(a)));
ArrayList arrayList3 = new ArrayList(arrayList.size() + 2);
Jr.b bVar = new Jr.b();
bVar.a = true;
arrayList3.add(bVar);
arrayList3.addAll(arrayList);
arrayList3.addAll(Collections.singletonList(z.a));
V v = new V(build, u.b, Collections.unmodifiableList(arrayList3), Collections.unmodifiableList(arrayList2), a);
if (!yb.b.class.isInterface()) {
throw new IllegalArgumentException("API declarations must be interfaces.");
}
ArrayDeque arrayDeque = new ArrayDeque(1);
arrayDeque.add(yb.b.class);
while (!arrayDeque.isEmpty()) {
Class cls = (Class) arrayDeque.removeFirst();
if (cls.getTypeParameters().length != 0) {
StringBuilder sb2 = new StringBuilder("Type parameters are unsupported on ");
sb2.append(cls.getName());
if (cls != yb.b.class) {
sb2.append(" which is an interface of ");
sb2.append(yb.b.class.getName());
}
throw new IllegalArgumentException(sb2.toString());
}
Collections.addAll(arrayDeque, cls.getInterfaces());
}
Object newProxyInstance = Proxy.newProxyInstance(yb.b.class.getClassLoader(), new Class[]{yb.b.class}, new T(v));
i.f(newProxyInstance, "create(...)");
C2053a.a = (yb.b) newProxyInstance;
C2053a.b = path;
return Vf.A.a;
}
}