导航菜单

页面标题

页面副标题

24Six v66.1.24 - e.java 源代码

正在查看: 24Six v66.1.24 应用的 e.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package s;

import Q.g;
import android.content.Context;
import android.os.Build;
import androidx.core.util.Supplier;
import com.google.gson.Gson;
import g.C0458a;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.m;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import r.C0707s;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava3.RxJava3CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

public final class e {
    public static final e a = new e();
    private static f b;
    private static OkHttpClient c;

    static final class a implements Supplier, h {
        private final Y0.a a;

        a(Y0.a aVar) {
            m.e(aVar, "function");
            this.a = aVar;
        }

        public final boolean equals(Object obj) {
            if ((obj instanceof Supplier) && (obj instanceof h)) {
                return m.a(getFunctionDelegate(), ((h) obj).getFunctionDelegate());
            }
            return false;
        }

        public final Object get() {
            return this.a.invoke();
        }

        public final L0.c getFunctionDelegate() {
            return this.a;
        }

        public final int hashCode() {
            return getFunctionDelegate().hashCode();
        }
    }

    private e() {
    }

    public static final String f() {
        String str = (String) C0458a.e.a();
        return str == null ? "" : str;
    }

    public static final String g(g gVar) {
        return (String) gVar.a();
    }

    public static final String h(Context context) {
        return C0707s.a.e(context) ? "iw" : "en";
    }

    public final f d() {
        f fVar = b;
        if (fVar != null) {
            return fVar;
        }
        m.w("restInterface");
        return null;
    }

    public final void e(final Context context) {
        m.e(context, "context");
        Gson b2 = s.a.b();
        com.rustybrick.web.b bVar = new com.rustybrick.web.b("AppWebService");
        bVar.f(false);
        bVar.g(HttpLoggingInterceptor.Level.NONE);
        bVar.d("Accept", "application/json");
        bVar.d("os", "Android");
        bVar.b("os-version", Build.VERSION.SDK_INT);
        bVar.b("app-version", 224);
        bVar.d("X-API-MINOR-VERSION", "6");
        String p2 = C0707s.a.p();
        if (p2 == null) {
            p2 = "";
        }
        bVar.d("X-PLATFORM-DEVICE", p2);
        bVar.c("X-DEVICE-ID", new Supplier() {
            public final Object get() {
                String f2;
                f2 = e.f();
                return f2;
            }
        });
        bVar.d("X-DEVICE-NAME", C0707s.q());
        String m2 = C0707s.m();
        bVar.d("X-DEVICE-SERIAL", m2 != null ? m2 : "");
        bVar.d("X-PLATFORM-KEY", "production-android-44fd2f70");
        final g gVar = C0458a.d;
        bVar.a(new a(new Y0.a() {
            public final Object invoke() {
                String g2;
                g2 = e.g(gVar);
                return g2;
            }
        }));
        bVar.c("Accept-Language", new Supplier() {
            public final Object get() {
                String h2;
                h2 = e.h(context);
                return h2;
            }
        });
        c = bVar.e(context);
        Retrofit.Builder baseUrl = new Retrofit.Builder().baseUrl("https://24six.app/");
        OkHttpClient okHttpClient = c;
        if (okHttpClient == null) {
            m.w("client");
            okHttpClient = null;
        }
        b = (f) baseUrl.client(okHttpClient).addConverterFactory(GsonConverterFactory.create(b2)).addCallAdapterFactory(RxJava3CallAdapterFactory.create()).build().create(f.class);
    }
}