正在查看: Housing v14.7.8 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package jh;
import com.chuckerteam.chucker.api.f;
import com.google.gson.Gson;
import com.locon.home.presentation.ui.components.sections.t2;
import dagger.Module;
import dagger.hilt.InstallIn;
import java.util.concurrent.TimeUnit;
import kotlin.Metadata;
import kotlin.jvm.internal.r;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import org.jetbrains.annotations.NotNull;
import retrofit2.m0;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\bÁ\u0002\u0018\u00002\u00020\u0001R\u0014\u0010\u0002\u001a\u00020\u00018\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0002\u0010\u0003R\u0014\u0010\u0004\u001a\u00020\u00018\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Ljh/b;", "", "timeoutSeconds", "J", "housingBaseUrl", "Ljava/lang/String;", "network_gammaRelease"}, k = t2.HOUSE_RENT_ID, mv = {t2.OFFICE_RENT_ID, 0, 0}, xi = 48)
@Module
@InstallIn({to.a.class})
public final class b {
@NotNull
public static final b INSTANCE = new b();
@NotNull
private static final String housingBaseUrl = "https://api.housing.com";
private static final long timeoutSeconds = 20000;
public static OkHttpClient a(HttpLoggingInterceptor httpLoggingInterceptor, kh.a aVar, f fVar) {
r.k(httpLoggingInterceptor, "loggingInterceptor");
r.k(aVar, "headerInterceptor");
r.k(fVar, "chuckerInterceptor");
OkHttpClient.Builder builder = new OkHttpClient.Builder();
builder.addInterceptor(aVar);
long j = timeoutSeconds;
TimeUnit timeUnit = TimeUnit.SECONDS;
builder.connectTimeout(j, timeUnit);
builder.readTimeout(j, timeUnit);
builder.writeTimeout(j, timeUnit);
return builder.build();
}
public static m0 b(OkHttpClient okHttpClient) {
r.k(okHttpClient, "okHttpClient");
m0.a aVar = new m0.a();
aVar.b(housingBaseUrl);
aVar.a(new retrofit2.converter.gson.a(new Gson()));
aVar.d(okHttpClient);
return aVar.c();
}
}