CrackMe.apk
Download file
package okhttp3;
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
import java.net.Proxy;
import java.net.ProxySelector;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import javax.net.SocketFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.X509TrustManager;
import kotlin.Deprecated;
import kotlin.DeprecationLevel;
import kotlin.Metadata;
import kotlin.ReplaceWith;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import okhttp3.Call;
import okhttp3.EventListener;
import okhttp3.Interceptor;
import okhttp3.WebSocket;
import okhttp3.internal.Util;
import okhttp3.internal.concurrent.TaskRunner;
import okhttp3.internal.connection.RealCall;
import okhttp3.internal.connection.RouteDatabase;
import okhttp3.internal.platform.Platform;
import okhttp3.internal.proxy.NullProxySelector;
import okhttp3.internal.tls.CertificateChainCleaner;
import okhttp3.internal.tls.OkHostnameVerifier;
import okhttp3.internal.ws.RealWebSocket;
import okhttp3.internal.ws.WebSocketExtensions;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000î\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0016\u0018\u0000 y2\u00020\u00012\u00020\u00022\u00020\u0003:\u0002xyB\u0007\b\u0016¢\u0006\u0002\u0010\u0004B\u000f\b\u0000\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\r\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0002\bSJ\u000f\u0010\u000b\u001a\u0004\u0018\u00010\fH\u0007¢\u0006\u0002\bTJ\r\u0010\u000e\u001a\u00020\u000fH\u0007¢\u0006\u0002\bUJ\r\u0010\u0014\u001a\u00020\u0015H\u0007¢\u0006\u0002\bVJ\r\u0010\u0017\u001a\u00020\u000fH\u0007¢\u0006\u0002\bWJ\r\u0010\u0018\u001a\u00020\u0019H\u0007¢\u0006\u0002\bXJ\u0013\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u001d0\u001cH\u0007¢\u0006\u0002\bYJ\r\u0010\u001f\u001a\u00020 H\u0007¢\u0006\u0002\bZJ\r\u0010\"\u001a\u00020#H\u0007¢\u0006\u0002\b[J\r\u0010%\u001a\u00020&H\u0007¢\u0006\u0002\b\\J\r\u0010(\u001a\u00020)H\u0007¢\u0006\u0002\b]J\r\u0010+\u001a\u00020,H\u0007¢\u0006\u0002\b^J\r\u0010.\u001a\u00020,H\u0007¢\u0006\u0002\b_J\r\u0010/\u001a\u000200H\u0007¢\u0006\u0002\b`J\u0013\u00102\u001a\b\u0012\u0004\u0012\u0002030\u001cH\u0007¢\u0006\u0002\baJ\u0013\u00107\u001a\b\u0012\u0004\u0012\u0002030\u001cH\u0007¢\u0006\u0002\bbJ\b\u0010c\u001a\u00020\u0006H\u0016J\u0010\u0010d\u001a\u00020e2\u0006\u0010f\u001a\u00020gH\u0016J\u0018\u0010h\u001a\u00020i2\u0006\u0010f\u001a\u00020g2\u0006\u0010j\u001a\u00020kH\u0016J\r\u00108\u001a\u00020\u000fH\u0007¢\u0006\u0002\blJ\u0013\u00109\u001a\b\u0012\u0004\u0012\u00020:0\u001cH\u0007¢\u0006\u0002\bmJ\u000f\u0010;\u001a\u0004\u0018\u00010<H\u0007¢\u0006\u0002\bnJ\r\u0010>\u001a\u00020\tH\u0007¢\u0006\u0002\boJ\r\u0010?\u001a\u00020@H\u0007¢\u0006\u0002\bpJ\r\u0010B\u001a\u00020\u000fH\u0007¢\u0006\u0002\bqJ\r\u0010C\u001a\u00020,H\u0007¢\u0006\u0002\brJ\r\u0010H\u001a\u00020IH\u0007¢\u0006\u0002\bsJ\r\u0010K\u001a\u00020LH\u0007¢\u0006\u0002\btJ\b\u0010u\u001a\u00020vH\u0002J\r\u0010O\u001a\u00020\u000fH\u0007¢\u0006\u0002\bwR\u0013\u0010\b\u001a\u00020\t8G¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\nR\u0015\u0010\u000b\u001a\u0004\u0018\u00010\f8G¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\rR\u0013\u0010\u000e\u001a\u00020\u000f8G¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u0010R\u0015\u0010\u0011\u001a\u0004\u0018\u00010\u00128G¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0013R\u0013\u0010\u0014\u001a\u00020\u00158G¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0016R\u0013\u0010\u0017\u001a\u00020\u000f8G¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0010R\u0013\u0010\u0018\u001a\u00020\u00198G¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u001aR\u0019\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u001d0\u001c8G¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u001eR\u0013\u0010\u001f\u001a\u00020 8G¢\u0006\b\n\u0000\u001a\u0004\b\u001f\u0010!R\u0013\u0010\"\u001a\u00020#8G¢\u0006\b\n\u0000\u001a\u0004\b\"\u0010$R\u0013\u0010%\u001a\u00020&8G¢\u0006\b\n\u0000\u001a\u0004\b%\u0010'R\u0013\u0010(\u001a\u00020)8G¢\u0006\b\n\u0000\u001a\u0004\b(\u0010*R\u0013\u0010+\u001a\u00020,8G¢\u0006\b\n\u0000\u001a\u0004\b+\u0010-R\u0013\u0010.\u001a\u00020,8G¢\u0006\b\n\u0000\u001a\u0004\b.\u0010-R\u0013\u0010/\u001a\u0002008G¢\u0006\b\n\u0000\u001a\u0004\b/\u00101R\u0019\u00102\u001a\b\u0012\u0004\u0012\u0002030\u001c8G¢\u0006\b\n\u0000\u001a\u0004\b2\u0010\u001eR\u0013\u00104\u001a\u0002058G¢\u0006\b\n\u0000\u001a\u0004\b4\u00106R\u0019\u00107\u001a\b\u0012\u0004\u0012\u0002030\u001c8G¢\u0006\b\n\u0000\u001a\u0004\b7\u0010\u001eR\u0013\u00108\u001a\u00020\u000f8G¢\u0006\b\n\u0000\u001a\u0004\b8\u0010\u0010R\u0019\u00109\u001a\b\u0012\u0004\u0012\u00020:0\u001c8G¢\u0006\b\n\u0000\u001a\u0004\b9\u0010\u001eR\u0015\u0010;\u001a\u0004\u0018\u00010<8G¢\u0006\b\n\u0000\u001a\u0004\b;\u0010=R\u0013\u0010>\u001a\u00020\t8G¢\u0006\b\n\u0000\u001a\u0004\b>\u0010\nR\u0013\u0010?\u001a\u00020@8G¢\u0006\b\n\u0000\u001a\u0004\b?\u0010AR\u0013\u0010B\u001a\u00020\u000f8G¢\u0006\b\n\u0000\u001a\u0004\bB\u0010\u0010R\u0013\u0010C\u001a\u00020,8G¢\u0006\b\n\u0000\u001a\u0004\bC\u0010-R\u0011\u0010D\u001a\u00020E¢\u0006\b\n\u0000\u001a\u0004\bF\u0010GR\u0013\u0010H\u001a\u00020I8G¢\u0006\b\n\u0000\u001a\u0004\bH\u0010JR\u0011\u0010K\u001a\u00020L8G¢\u0006\u0006\u001a\u0004\bK\u0010MR\u0010\u0010N\u001a\u0004\u0018\u00010LX\u0004¢\u0006\u0002\n\u0000R\u0013\u0010O\u001a\u00020\u000f8G¢\u0006\b\n\u0000\u001a\u0004\bO\u0010\u0010R\u0015\u0010P\u001a\u0004\u0018\u00010Q8G¢\u0006\b\n\u0000\u001a\u0004\bP\u0010R¨\u0006z"}, d2 = {"Lokhttp3/OkHttpClient;", "", "Lokhttp3/Call$Factory;", "Lokhttp3/WebSocket$Factory;", "()V", "builder", "Lokhttp3/OkHttpClient$Builder;", "(Lokhttp3/OkHttpClient$Builder;)V", "authenticator", "Lokhttp3/Authenticator;", "()Lokhttp3/Authenticator;", "cache", "Lokhttp3/Cache;", "()Lokhttp3/Cache;", "callTimeoutMillis", "", "()I", "certificateChainCleaner", "Lokhttp3/internal/tls/CertificateChainCleaner;", "()Lokhttp3/internal/tls/CertificateChainCleaner;", "certificatePinner", "Lokhttp3/CertificatePinner;", "()Lokhttp3/CertificatePinner;", "connectTimeoutMillis", "connectionPool", "Lokhttp3/ConnectionPool;", "()Lokhttp3/ConnectionPool;", "connectionSpecs", "", "Lokhttp3/ConnectionSpec;", "()Ljava/util/List;", "cookieJar", "Lokhttp3/CookieJar;", "()Lokhttp3/CookieJar;", "dispatcher", "Lokhttp3/Dispatcher;", "()Lokhttp3/Dispatcher;", "dns", "Lokhttp3/Dns;", "()Lokhttp3/Dns;", "eventListenerFactory", "Lokhttp3/EventListener$Factory;", "()Lokhttp3/EventListener$Factory;", "followRedirects", "", "()Z", "followSslRedirects", "hostnameVerifier", "Ljavax/net/ssl/HostnameVerifier;", "()Ljavax/net/ssl/HostnameVerifier;", "interceptors", "Lokhttp3/Interceptor;", "minWebSocketMessageToCompress", "", "()J", "networkInterceptors", "pingIntervalMillis", "protocols", "Lokhttp3/Protocol;", "proxy", "Ljava/net/Proxy;", "()Ljava/net/Proxy;", "proxyAuthenticator", "proxySelector", "Ljava/net/ProxySelector;", "()Ljava/net/ProxySelector;", "readTimeoutMillis", "retryOnConnectionFailure", "routeDatabase", "Lokhttp3/internal/connection/RouteDatabase;", "getRouteDatabase", "()Lokhttp3/internal/connection/RouteDatabase;", "socketFactory", "Ljavax/net/SocketFactory;", "()Ljavax/net/SocketFactory;", "sslSocketFactory", "Ljavax/net/ssl/SSLSocketFactory;", "()Ljavax/net/ssl/SSLSocketFactory;", "sslSocketFactoryOrNull", "writeTimeoutMillis", "x509TrustManager", "Ljavax/net/ssl/X509TrustManager;", "()Ljavax/net/ssl/X509TrustManager;", "-deprecated_authenticator", "-deprecated_cache", "-deprecated_callTimeoutMillis", "-deprecated_certificatePinner", "-deprecated_connectTimeoutMillis", "-deprecated_connectionPool", "-deprecated_connectionSpecs", "-deprecated_cookieJar", "-deprecated_dispatcher", "-deprecated_dns", "-deprecated_eventListenerFactory", "-deprecated_followRedirects", "-deprecated_followSslRedirects", "-deprecated_hostnameVerifier", "-deprecated_interceptors", "-deprecated_networkInterceptors", "newBuilder", "newCall", "Lokhttp3/Call;", "request", "Lokhttp3/Request;", "newWebSocket", "Lokhttp3/WebSocket;", "listener", "Lokhttp3/WebSocketListener;", "-deprecated_pingIntervalMillis", "-deprecated_protocols", "-deprecated_proxy", "-deprecated_proxyAuthenticator", "-deprecated_proxySelector", "-deprecated_readTimeoutMillis", "-deprecated_retryOnConnectionFailure", "-deprecated_socketFactory", "-deprecated_sslSocketFactory", "verifyClientState", "", "-deprecated_writeTimeoutMillis", "Builder", "Companion", "okhttp"}, k = 1, mv = {1, 4, 0})
/* compiled from: OkHttpClient.kt */
public class OkHttpClient implements Cloneable, Call.Factory, WebSocket.Factory {
public static final Companion Companion = new Companion((DefaultConstructorMarker) null);
/* access modifiers changed from: private */
public static final List<ConnectionSpec> DEFAULT_CONNECTION_SPECS = Util.immutableListOf(ConnectionSpec.MODERN_TLS, ConnectionSpec.CLEARTEXT);
/* access modifiers changed from: private */
public static final List<Protocol> DEFAULT_PROTOCOLS = Util.immutableListOf(Protocol.HTTP_2, Protocol.HTTP_1_1);
private final Authenticator authenticator;
private final Cache cache;
private final int callTimeoutMillis;
private final CertificateChainCleaner certificateChainCleaner;
private final CertificatePinner certificatePinner;
private final int connectTimeoutMillis;
private final ConnectionPool connectionPool;
private final List<ConnectionSpec> connectionSpecs;
private final CookieJar cookieJar;
private final Dispatcher dispatcher;
private final Dns dns;
private final EventListener.Factory eventListenerFactory;
private final boolean followRedirects;
private final boolean followSslRedirects;
private final HostnameVerifier hostnameVerifier;
private final List<Interceptor> interceptors;
private final long minWebSocketMessageToCompress;
private final List<Interceptor> networkInterceptors;
private final int pingIntervalMillis;
private final List<Protocol> protocols;
private final Proxy proxy;
private final Authenticator proxyAuthenticator;
private final ProxySelector proxySelector;
private final int readTimeoutMillis;
private final boolean retryOnConnectionFailure;
private final RouteDatabase routeDatabase;
private final SocketFactory socketFactory;
/* access modifiers changed from: private */
public final SSLSocketFactory sslSocketFactoryOrNull;
private final int writeTimeoutMillis;
private final X509TrustManager x509TrustManager;
public OkHttpClient(Builder builder) {
ProxySelector proxySelector2;
Intrinsics.checkNotNullParameter(builder, "builder");
this.dispatcher = builder.getDispatcher$okhttp();
this.connectionPool = builder.getConnectionPool$okhttp();
this.interceptors = Util.toImmutableList(builder.getInterceptors$okhttp());
this.networkInterceptors = Util.toImmutableList(builder.getNetworkInterceptors$okhttp());
this.eventListenerFactory = builder.getEventListenerFactory$okhttp();
this.retryOnConnectionFailure = builder.getRetryOnConnectionFailure$okhttp();
this.authenticator = builder.getAuthenticator$okhttp();
this.followRedirects = builder.getFollowRedirects$okhttp();
this.followSslRedirects = builder.getFollowSslRedirects$okhttp();
this.cookieJar = builder.getCookieJar$okhttp();
this.cache = builder.getCache$okhttp();
this.dns = builder.getDns$okhttp();
this.proxy = builder.getProxy$okhttp();
if (builder.getProxy$okhttp() != null) {
proxySelector2 = NullProxySelector.INSTANCE;
} else {
proxySelector2 = builder.getProxySelector$okhttp();
proxySelector2 = proxySelector2 == null ? ProxySelector.getDefault() : proxySelector2;
if (proxySelector2 == null) {
proxySelector2 = NullProxySelector.INSTANCE;
}
}
this.proxySelector = proxySelector2;
this.proxyAuthenticator = builder.getProxyAuthenticator$okhttp();
this.socketFactory = builder.getSocketFactory$okhttp();
List<ConnectionSpec> connectionSpecs$okhttp = builder.getConnectionSpecs$okhttp();
this.connectionSpecs = connectionSpecs$okhttp;
this.protocols = builder.getProtocols$okhttp();
this.hostnameVerifier = builder.getHostnameVerifier$okhttp();
this.callTimeoutMillis = builder.getCallTimeout$okhttp();
this.connectTimeoutMillis = builder.getConnectTimeout$okhttp();
this.readTimeoutMillis = builder.getReadTimeout$okhttp();
this.writeTimeoutMillis = builder.getWriteTimeout$okhttp();
this.pingIntervalMillis = builder.getPingInterval$okhttp();
this.minWebSocketMessageToCompress = builder.getMinWebSocketMessageToCompress$okhttp();
RouteDatabase routeDatabase$okhttp = builder.getRouteDatabase$okhttp();
this.routeDatabase = routeDatabase$okhttp == null ? new RouteDatabase() : routeDatabase$okhttp;
Iterable iterable = connectionSpecs$okhttp;
boolean z = true;
if (!(iterable instanceof Collection) || !((Collection) iterable).isEmpty()) {
Iterator it = iterable.iterator();
while (true) {
if (it.hasNext()) {
if (((ConnectionSpec) it.next()).isTls()) {
z = false;
break;
}
} else {
break;
}
}
}
if (z) {
SSLSocketFactory sSLSocketFactory = null;
this.sslSocketFactoryOrNull = null;
CertificateChainCleaner certificateChainCleaner2 = null;
this.certificateChainCleaner = null;
X509TrustManager x509TrustManager2 = null;
this.x509TrustManager = null;
this.certificatePinner = CertificatePinner.DEFAULT;
} else if (builder.getSslSocketFactoryOrNull$okhttp() != null) {
this.sslSocketFactoryOrNull = builder.getSslSocketFactoryOrNull$okhttp();
CertificateChainCleaner certificateChainCleaner$okhttp = builder.getCertificateChainCleaner$okhttp();
Intrinsics.checkNotNull(certificateChainCleaner$okhttp);
this.certificateChainCleaner = certificateChainCleaner$okhttp;
X509TrustManager x509TrustManagerOrNull$okhttp = builder.getX509TrustManagerOrNull$okhttp();
Intrinsics.checkNotNull(x509TrustManagerOrNull$okhttp);
this.x509TrustManager = x509TrustManagerOrNull$okhttp;
CertificatePinner certificatePinner$okhttp = builder.getCertificatePinner$okhttp();
Intrinsics.checkNotNull(certificateChainCleaner$okhttp);
this.certificatePinner = certificatePinner$okhttp.withCertificateChainCleaner$okhttp(certificateChainCleaner$okhttp);
} else {
X509TrustManager platformTrustManager = Platform.Companion.get().platformTrustManager();
this.x509TrustManager = platformTrustManager;
Platform platform = Platform.Companion.get();
Intrinsics.checkNotNull(platformTrustManager);
this.sslSocketFactoryOrNull = platform.newSslSocketFactory(platformTrustManager);
CertificateChainCleaner.Companion companion = CertificateChainCleaner.Companion;
Intrinsics.checkNotNull(platformTrustManager);
CertificateChainCleaner certificateChainCleaner3 = companion.get(platformTrustManager);
this.certificateChainCleaner = certificateChainCleaner3;
CertificatePinner certificatePinner$okhttp2 = builder.getCertificatePinner$okhttp();
Intrinsics.checkNotNull(certificateChainCleaner3);
this.certificatePinner = certificatePinner$okhttp2.withCertificateChainCleaner$okhttp(certificateChainCleaner3);
}
verifyClientState();
}
public Object clone() {
return super.clone();
}
public final Dispatcher dispatcher() {
return this.dispatcher;
}
public final ConnectionPool connectionPool() {
return this.connectionPool;
}
public final List<Interceptor> interceptors() {
return this.interceptors;
}
public final List<Interceptor> networkInterceptors() {
return this.networkInterceptors;
}
public final EventListener.Factory eventListenerFactory() {
return this.eventListenerFactory;
}
public final boolean retryOnConnectionFailure() {
return this.retryOnConnectionFailure;
}
public final Authenticator authenticator() {
return this.authenticator;
}
public final boolean followRedirects() {
return this.followRedirects;
}
public final boolean followSslRedirects() {
return this.followSslRedirects;
}
public final CookieJar cookieJar() {
return this.cookieJar;
}
public final Cache cache() {
return this.cache;
}
public final Dns dns() {
return this.dns;
}
public final Proxy proxy() {
return this.proxy;
}
public final ProxySelector proxySelector() {
return this.proxySelector;
}
public final Authenticator proxyAuthenticator() {
return this.proxyAuthenticator;
}
public final SocketFactory socketFactory() {
return this.socketFactory;
}
public final SSLSocketFactory sslSocketFactory() {
SSLSocketFactory sSLSocketFactory = this.sslSocketFactoryOrNull;
if (sSLSocketFactory != null) {
return sSLSocketFactory;
}
throw new IllegalStateException("CLEARTEXT-only client");
}
public final X509TrustManager x509TrustManager() {
return this.x509TrustManager;
}
public final List<ConnectionSpec> connectionSpecs() {
return this.connectionSpecs;
}
public final List<Protocol> protocols() {
return this.protocols;
}
public final HostnameVerifier hostnameVerifier() {
return this.hostnameVerifier;
}
public final CertificatePinner certificatePinner() {
return this.certificatePinner;
}
public final CertificateChainCleaner certificateChainCleaner() {
return this.certificateChainCleaner;
}
public final int callTimeoutMillis() {
return this.callTimeoutMillis;
}
public final int connectTimeoutMillis() {
return this.connectTimeoutMillis;
}
public final int readTimeoutMillis() {
return this.readTimeoutMillis;
}
public final int writeTimeoutMillis() {
return this.writeTimeoutMillis;
}
public final int pingIntervalMillis() {
return this.pingIntervalMillis;
}
public final long minWebSocketMessageToCompress() {
return this.minWebSocketMessageToCompress;
}
public final RouteDatabase getRouteDatabase() {
return this.routeDatabase;
}
public OkHttpClient() {
this(new Builder());
}
private final void verifyClientState() {
boolean z;
List<Interceptor> list = this.interceptors;
Objects.requireNonNull(list, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Interceptor?>");
boolean z2 = true;
if (!list.contains((Object) null)) {
List<Interceptor> list2 = this.networkInterceptors;
Objects.requireNonNull(list2, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Interceptor?>");
if (!list2.contains((Object) null)) {
Iterable iterable = this.connectionSpecs;
if (!(iterable instanceof Collection) || !((Collection) iterable).isEmpty()) {
Iterator it = iterable.iterator();
while (true) {
if (it.hasNext()) {
if (((ConnectionSpec) it.next()).isTls()) {
z = false;
break;
}
} else {
break;
}
}
}
z = true;
if (z) {
if (this.sslSocketFactoryOrNull == null) {
if (this.certificateChainCleaner == null) {
if (this.x509TrustManager != null) {
z2 = false;
}
if (!z2) {
throw new IllegalStateException("Check failed.".toString());
} else if (!Intrinsics.areEqual((Object) this.certificatePinner, (Object) CertificatePinner.DEFAULT)) {
throw new IllegalStateException("Check failed.".toString());
}
} else {
throw new IllegalStateException("Check failed.".toString());
}
} else {
throw new IllegalStateException("Check failed.".toString());
}
} else if (this.sslSocketFactoryOrNull == null) {
throw new IllegalStateException("sslSocketFactory == null".toString());
} else if (this.certificateChainCleaner == null) {
throw new IllegalStateException("certificateChainCleaner == null".toString());
} else if (this.x509TrustManager == null) {
throw new IllegalStateException("x509TrustManager == null".toString());
}
} else {
throw new IllegalStateException(("Null network interceptor: " + this.networkInterceptors).toString());
}
} else {
throw new IllegalStateException(("Null interceptor: " + this.interceptors).toString());
}
}
public Call newCall(Request request) {
Intrinsics.checkNotNullParameter(request, "request");
return new RealCall(this, request, false);
}
public WebSocket newWebSocket(Request request, WebSocketListener webSocketListener) {
Intrinsics.checkNotNullParameter(request, "request");
Intrinsics.checkNotNullParameter(webSocketListener, ServiceSpecificExtraArgs.CastExtraArgs.LISTENER);
RealWebSocket realWebSocket = new RealWebSocket(TaskRunner.INSTANCE, request, webSocketListener, new Random(), (long) this.pingIntervalMillis, (WebSocketExtensions) null, this.minWebSocketMessageToCompress);
realWebSocket.connect(this);
return realWebSocket;
}
public Builder newBuilder() {
return new Builder(this);
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "dispatcher", imports = {}))
/* renamed from: -deprecated_dispatcher reason: not valid java name */
public final Dispatcher m1942deprecated_dispatcher() {
return this.dispatcher;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "connectionPool", imports = {}))
/* renamed from: -deprecated_connectionPool reason: not valid java name */
public final ConnectionPool m1939deprecated_connectionPool() {
return this.connectionPool;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "interceptors", imports = {}))
/* renamed from: -deprecated_interceptors reason: not valid java name */
public final List<Interceptor> m1948deprecated_interceptors() {
return this.interceptors;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "networkInterceptors", imports = {}))
/* renamed from: -deprecated_networkInterceptors reason: not valid java name */
public final List<Interceptor> m1949deprecated_networkInterceptors() {
return this.networkInterceptors;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "eventListenerFactory", imports = {}))
/* renamed from: -deprecated_eventListenerFactory reason: not valid java name */
public final EventListener.Factory m1944deprecated_eventListenerFactory() {
return this.eventListenerFactory;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "retryOnConnectionFailure", imports = {}))
/* renamed from: -deprecated_retryOnConnectionFailure reason: not valid java name */
public final boolean m1956deprecated_retryOnConnectionFailure() {
return this.retryOnConnectionFailure;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "authenticator", imports = {}))
/* renamed from: -deprecated_authenticator reason: not valid java name */
public final Authenticator m1934deprecated_authenticator() {
return this.authenticator;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "followRedirects", imports = {}))
/* renamed from: -deprecated_followRedirects reason: not valid java name */
public final boolean m1945deprecated_followRedirects() {
return this.followRedirects;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "followSslRedirects", imports = {}))
/* renamed from: -deprecated_followSslRedirects reason: not valid java name */
public final boolean m1946deprecated_followSslRedirects() {
return this.followSslRedirects;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "cookieJar", imports = {}))
/* renamed from: -deprecated_cookieJar reason: not valid java name */
public final CookieJar m1941deprecated_cookieJar() {
return this.cookieJar;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "cache", imports = {}))
/* renamed from: -deprecated_cache reason: not valid java name */
public final Cache m1935deprecated_cache() {
return this.cache;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "dns", imports = {}))
/* renamed from: -deprecated_dns reason: not valid java name */
public final Dns m1943deprecated_dns() {
return this.dns;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxy", imports = {}))
/* renamed from: -deprecated_proxy reason: not valid java name */
public final Proxy m1952deprecated_proxy() {
return this.proxy;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxySelector", imports = {}))
/* renamed from: -deprecated_proxySelector reason: not valid java name */
public final ProxySelector m1954deprecated_proxySelector() {
return this.proxySelector;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxyAuthenticator", imports = {}))
/* renamed from: -deprecated_proxyAuthenticator reason: not valid java name */
public final Authenticator m1953deprecated_proxyAuthenticator() {
return this.proxyAuthenticator;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "socketFactory", imports = {}))
/* renamed from: -deprecated_socketFactory reason: not valid java name */
public final SocketFactory m1957deprecated_socketFactory() {
return this.socketFactory;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "sslSocketFactory", imports = {}))
/* renamed from: -deprecated_sslSocketFactory reason: not valid java name */
public final SSLSocketFactory m1958deprecated_sslSocketFactory() {
return sslSocketFactory();
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "connectionSpecs", imports = {}))
/* renamed from: -deprecated_connectionSpecs reason: not valid java name */
public final List<ConnectionSpec> m1940deprecated_connectionSpecs() {
return this.connectionSpecs;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "protocols", imports = {}))
/* renamed from: -deprecated_protocols reason: not valid java name */
public final List<Protocol> m1951deprecated_protocols() {
return this.protocols;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "hostnameVerifier", imports = {}))
/* renamed from: -deprecated_hostnameVerifier reason: not valid java name */
public final HostnameVerifier m1947deprecated_hostnameVerifier() {
return this.hostnameVerifier;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "certificatePinner", imports = {}))
/* renamed from: -deprecated_certificatePinner reason: not valid java name */
public final CertificatePinner m1937deprecated_certificatePinner() {
return this.certificatePinner;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "callTimeoutMillis", imports = {}))
/* renamed from: -deprecated_callTimeoutMillis reason: not valid java name */
public final int m1936deprecated_callTimeoutMillis() {
return this.callTimeoutMillis;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "connectTimeoutMillis", imports = {}))
/* renamed from: -deprecated_connectTimeoutMillis reason: not valid java name */
public final int m1938deprecated_connectTimeoutMillis() {
return this.connectTimeoutMillis;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "readTimeoutMillis", imports = {}))
/* renamed from: -deprecated_readTimeoutMillis reason: not valid java name */
public final int m1955deprecated_readTimeoutMillis() {
return this.readTimeoutMillis;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "writeTimeoutMillis", imports = {}))
/* renamed from: -deprecated_writeTimeoutMillis reason: not valid java name */
public final int m1959deprecated_writeTimeoutMillis() {
return this.writeTimeoutMillis;
}
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "pingIntervalMillis", imports = {}))
/* renamed from: -deprecated_pingIntervalMillis reason: not valid java name */
public final int m1950deprecated_pingIntervalMillis() {
return this.pingIntervalMillis;
}
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000ø\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u000f\b\u0010\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004B\u0005¢\u0006\u0002\u0010\u0005J?\u0010\u0001\u001a\u00020\u00002*\b\u0004\u0010\u0001\u001a#\u0012\u0017\u0012\u00150¡\u0001¢\u0006\u000f\b¢\u0001\u0012\n\b£\u0001\u0012\u0005\b\b(¤\u0001\u0012\u0005\u0012\u00030¥\u00010 \u0001H\bø\u0001\u0000¢\u0006\u0003\b¦\u0001J\u0010\u0010\u0001\u001a\u00020\u00002\u0007\u0010§\u0001\u001a\u00020]J?\u0010¨\u0001\u001a\u00020\u00002*\b\u0004\u0010\u0001\u001a#\u0012\u0017\u0012\u00150¡\u0001¢\u0006\u000f\b¢\u0001\u0012\n\b£\u0001\u0012\u0005\b\b(¤\u0001\u0012\u0005\u0012\u00030¥\u00010 \u0001H\bø\u0001\u0000¢\u0006\u0003\b©\u0001J\u0010\u0010¨\u0001\u001a\u00020\u00002\u0007\u0010§\u0001\u001a\u00020]J\u000e\u0010\u0006\u001a\u00020\u00002\u0006\u0010\u0006\u001a\u00020\u0007J\u0007\u0010ª\u0001\u001a\u00020\u0003J\u0010\u0010\f\u001a\u00020\u00002\b\u0010\f\u001a\u0004\u0018\u00010\rJ\u0012\u0010\u0012\u001a\u00020\u00002\b\u0010«\u0001\u001a\u00030¬\u0001H\u0007J\u0019\u0010\u0012\u001a\u00020\u00002\u0007\u0010\u0001\u001a\u00020`2\b\u0010®\u0001\u001a\u00030¯\u0001J\u000e\u0010\u001e\u001a\u00020\u00002\u0006\u0010\u001e\u001a\u00020\u001fJ\u0012\u0010$\u001a\u00020\u00002\b\u0010«\u0001\u001a\u00030¬\u0001H\u0007J\u0019\u0010$\u001a\u00020\u00002\u0007\u0010\u0001\u001a\u00020`2\b\u0010®\u0001\u001a\u00030¯\u0001J\u000e\u0010'\u001a\u00020\u00002\u0006\u0010'\u001a\u00020(J\u0014\u0010-\u001a\u00020\u00002\f\u0010-\u001a\b\u0012\u0004\u0012\u00020/0.J\u000e\u00104\u001a\u00020\u00002\u0006\u00104\u001a\u000205J\u000e\u0010:\u001a\u00020\u00002\u0006\u0010:\u001a\u00020;J\u000e\u0010@\u001a\u00020\u00002\u0006\u0010@\u001a\u00020AJ\u0011\u0010°\u0001\u001a\u00020\u00002\b\u0010°\u0001\u001a\u00030±\u0001J\u000e\u0010F\u001a\u00020\u00002\u0006\u0010F\u001a\u00020GJ\u000e\u0010L\u001a\u00020\u00002\u0006\u0010L\u001a\u00020MJ\u000f\u0010R\u001a\u00020\u00002\u0007\u0010²\u0001\u001a\u00020MJ\u000e\u0010U\u001a\u00020\u00002\u0006\u0010U\u001a\u00020VJ\f\u0010[\u001a\b\u0012\u0004\u0012\u00020]0\\J\u000f\u0010_\u001a\u00020\u00002\u0007\u0010³\u0001\u001a\u00020`J\f\u0010e\u001a\b\u0012\u0004\u0012\u00020]0\\J\u0012\u0010g\u001a\u00020\u00002\b\u0010«\u0001\u001a\u00030¬\u0001H\u0007J\u0019\u0010g\u001a\u00020\u00002\u0007\u0010´\u0001\u001a\u00020`2\b\u0010®\u0001\u001a\u00030¯\u0001J\u0014\u0010j\u001a\u00020\u00002\f\u0010j\u001a\b\u0012\u0004\u0012\u00020k0.J\u0010\u0010n\u001a\u00020\u00002\b\u0010n\u001a\u0004\u0018\u00010oJ\u000e\u0010t\u001a\u00020\u00002\u0006\u0010t\u001a\u00020\u0007J\u000e\u0010w\u001a\u00020\u00002\u0006\u0010w\u001a\u00020xJ\u0012\u0010}\u001a\u00020\u00002\b\u0010«\u0001\u001a\u00030¬\u0001H\u0007J\u0019\u0010}\u001a\u00020\u00002\u0007\u0010\u0001\u001a\u00020`2\b\u0010®\u0001\u001a\u00030¯\u0001J\u0010\u0010\u0001\u001a\u00020\u00002\u0007\u0010\u0001\u001a\u00020MJ\u0011\u0010\u0001\u001a\u00020\u00002\b\u0010\u0001\u001a\u00030\u0001J\u0013\u0010µ\u0001\u001a\u00020\u00002\b\u0010µ\u0001\u001a\u00030\u0001H\u0007J\u001b\u0010µ\u0001\u001a\u00020\u00002\b\u0010µ\u0001\u001a\u00030\u00012\b\u0010¶\u0001\u001a\u00030\u0001J\u0013\u0010\u0001\u001a\u00020\u00002\b\u0010«\u0001\u001a\u00030¬\u0001H\u0007J\u001a\u0010\u0001\u001a\u00020\u00002\u0007\u0010\u0001\u001a\u00020`2\b\u0010®\u0001\u001a\u00030¯\u0001R\u001a\u0010\u0006\u001a\u00020\u0007X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\b\u0010\t\"\u0004\b\n\u0010\u000bR\u001c\u0010\f\u001a\u0004\u0018\u00010\rX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u001a\u0010\u0012\u001a\u00020\u0013X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\u001c\u0010\u0018\u001a\u0004\u0018\u00010\u0019X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001a\u0010\u001b\"\u0004\b\u001c\u0010\u001dR\u001a\u0010\u001e\u001a\u00020\u001fX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#R\u001a\u0010$\u001a\u00020\u0013X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b%\u0010\u0015\"\u0004\b&\u0010\u0017R\u001a\u0010'\u001a\u00020(X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b)\u0010*\"\u0004\b+\u0010,R \u0010-\u001a\b\u0012\u0004\u0012\u00020/0.X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b0\u00101\"\u0004\b2\u00103R\u001a\u00104\u001a\u000205X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b6\u00107\"\u0004\b8\u00109R\u001a\u0010:\u001a\u00020;X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b<\u0010=\"\u0004\b>\u0010?R\u001a\u0010@\u001a\u00020AX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bB\u0010C\"\u0004\bD\u0010ER\u001a\u0010F\u001a\u00020GX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bH\u0010I\"\u0004\bJ\u0010KR\u001a\u0010L\u001a\u00020MX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bN\u0010O\"\u0004\bP\u0010QR\u001a\u0010R\u001a\u00020MX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bS\u0010O\"\u0004\bT\u0010QR\u001a\u0010U\u001a\u00020VX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bW\u0010X\"\u0004\bY\u0010ZR\u001a\u0010[\u001a\b\u0012\u0004\u0012\u00020]0\\X\u0004¢\u0006\b\n\u0000\u001a\u0004\b^\u00101R\u001a\u0010_\u001a\u00020`X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\ba\u0010b\"\u0004\bc\u0010dR\u001a\u0010e\u001a\b\u0012\u0004\u0012\u00020]0\\X\u0004¢\u0006\b\n\u0000\u001a\u0004\bf\u00101R\u001a\u0010g\u001a\u00020\u0013X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bh\u0010\u0015\"\u0004\bi\u0010\u0017R \u0010j\u001a\b\u0012\u0004\u0012\u00020k0.X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bl\u00101\"\u0004\bm\u00103R\u001c\u0010n\u001a\u0004\u0018\u00010oX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bp\u0010q\"\u0004\br\u0010sR\u001a\u0010t\u001a\u00020\u0007X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\bu\u0010\t\"\u0004\bv\u0010\u000bR\u001c\u0010w\u001a\u0004\u0018\u00010xX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\by\u0010z\"\u0004\b{\u0010|R\u001a\u0010}\u001a\u00020\u0013X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b~\u0010\u0015\"\u0004\b\u0010\u0017R\u001d\u0010\u0001\u001a\u00020MX\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u0001\u0010O\"\u0005\b\u0001\u0010QR\"\u0010\u0001\u001a\u0005\u0018\u00010\u0001X\u000e¢\u0006\u0012\n\u0000\u001a\u0006\b
\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R \u0010\u0001\u001a\u00030\u0001X\u000e¢\u0006\u0012\n\u0000\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R\"\u0010\u0001\u001a\u0005\u0018\u00010\u0001X\u000e¢\u0006\u0012\n\u0000\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R\u001d\u0010\u0001\u001a\u00020\u0013X\u000e¢\u0006\u0010\n\u0000\u001a\u0005\b\u0001\u0010\u0015\"\u0005\b\u0001\u0010\u0017R\"\u0010\u0001\u001a\u0005\u0018\u00010\u0001X\u000e¢\u0006\u0012\n\u0000\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001\u0002\u0007\n\u0005\b20\u0001¨\u0006·\u0001"}, d2 = {"Lokhttp3/OkHttpClient$Builder;", "", "okHttpClient", "Lokhttp3/OkHttpClient;", "(Lokhttp3/OkHttpClient;)V", "()V", "authenticator", "Lokhttp3/Authenticator;", "getAuthenticator$okhttp", "()Lokhttp3/Authenticator;", "setAuthenticator$okhttp", "(Lokhttp3/Authenticator;)V", "cache", "Lokhttp3/Cache;", "getCache$okhttp", "()Lokhttp3/Cache;", "setCache$okhttp", "(Lokhttp3/Cache;)V", "callTimeout", "", "getCallTimeout$okhttp", "()I", "setCallTimeout$okhttp", "(I)V", "certificateChainCleaner", "Lokhttp3/internal/tls/CertificateChainCleaner;", "getCertificateChainCleaner$okhttp", "()Lokhttp3/internal/tls/CertificateChainCleaner;", "setCertificateChainCleaner$okhttp", "(Lokhttp3/internal/tls/CertificateChainCleaner;)V", "certificatePinner", "Lokhttp3/CertificatePinner;", "getCertificatePinner$okhttp", "()Lokhttp3/CertificatePinner;", "setCertificatePinner$okhttp", "(Lokhttp3/CertificatePinner;)V", "connectTimeout", "getConnectTimeout$okhttp", "setConnectTimeout$okhttp", "connectionPool", "Lokhttp3/ConnectionPool;", "getConnectionPool$okhttp", "()Lokhttp3/ConnectionPool;", "setConnectionPool$okhttp", "(Lokhttp3/ConnectionPool;)V", "connectionSpecs", "", "Lokhttp3/ConnectionSpec;", "getConnectionSpecs$okhttp", "()Ljava/util/List;", "setConnectionSpecs$okhttp", "(Ljava/util/List;)V", "cookieJar", "Lokhttp3/CookieJar;", "getCookieJar$okhttp", "()Lokhttp3/CookieJar;", "setCookieJar$okhttp", "(Lokhttp3/CookieJar;)V", "dispatcher", "Lokhttp3/Dispatcher;", "getDispatcher$okhttp", "()Lokhttp3/Dispatcher;", "setDispatcher$okhttp", "(Lokhttp3/Dispatcher;)V", "dns", "Lokhttp3/Dns;", "getDns$okhttp", "()Lokhttp3/Dns;", "setDns$okhttp", "(Lokhttp3/Dns;)V", "eventListenerFactory", "Lokhttp3/EventListener$Factory;", "getEventListenerFactory$okhttp", "()Lokhttp3/EventListener$Factory;", "setEventListenerFactory$okhttp", "(Lokhttp3/EventListener$Factory;)V", "followRedirects", "", "getFollowRedirects$okhttp", "()Z", "setFollowRedirects$okhttp", "(Z)V", "followSslRedirects", "getFollowSslRedirects$okhttp", "setFollowSslRedirects$okhttp", "hostnameVerifier", "Ljavax/net/ssl/HostnameVerifier;", "getHostnameVerifier$okhttp", "()Ljavax/net/ssl/HostnameVerifier;", "setHostnameVerifier$okhttp", "(Ljavax/net/ssl/HostnameVerifier;)V", "interceptors", "", "Lokhttp3/Interceptor;", "getInterceptors$okhttp", "minWebSocketMessageToCompress", "", "getMinWebSocketMessageToCompress$okhttp", "()J", "setMinWebSocketMessageToCompress$okhttp", "(J)V", "networkInterceptors", "getNetworkInterceptors$okhttp", "pingInterval", "getPingInterval$okhttp", "setPingInterval$okhttp", "protocols", "Lokhttp3/Protocol;", "getProtocols$okhttp", "setProtocols$okhttp", "proxy", "Ljava/net/Proxy;", "getProxy$okhttp", "()Ljava/net/Proxy;", "setProxy$okhttp", "(Ljava/net/Proxy;)V", "proxyAuthenticator", "getProxyAuthenticator$okhttp", "setProxyAuthenticator$okhttp", "proxySelector", "Ljava/net/ProxySelector;", "getProxySelector$okhttp", "()Ljava/net/ProxySelector;", "setProxySelector$okhttp", "(Ljava/net/ProxySelector;)V", "readTimeout", "getReadTimeout$okhttp", "setReadTimeout$okhttp", "retryOnConnectionFailure", "getRetryOnConnectionFailure$okhttp", "setRetryOnConnectionFailure$okhttp", "routeDatabase", "Lokhttp3/internal/connection/RouteDatabase;", "getRouteDatabase$okhttp", "()Lokhttp3/internal/connection/RouteDatabase;", "setRouteDatabase$okhttp", "(Lokhttp3/internal/connection/RouteDatabase;)V", "socketFactory", "Ljavax/net/SocketFactory;", "getSocketFactory$okhttp", "()Ljavax/net/SocketFactory;", "setSocketFactory$okhttp", "(Ljavax/net/SocketFactory;)V", "sslSocketFactoryOrNull", "Ljavax/net/ssl/SSLSocketFactory;", "getSslSocketFactoryOrNull$okhttp", "()Ljavax/net/ssl/SSLSocketFactory;", "setSslSocketFactoryOrNull$okhttp", "(Ljavax/net/ssl/SSLSocketFactory;)V", "writeTimeout", "getWriteTimeout$okhttp", "setWriteTimeout$okhttp", "x509TrustManagerOrNull", "Ljavax/net/ssl/X509TrustManager;", "getX509TrustManagerOrNull$okhttp", "()Ljavax/net/ssl/X509TrustManager;", "setX509TrustManagerOrNull$okhttp", "(Ljavax/net/ssl/X509TrustManager;)V", "addInterceptor", "block", "Lkotlin/Function1;", "Lokhttp3/Interceptor$Chain;", "Lkotlin/ParameterName;", "name", "chain", "Lokhttp3/Response;", "-addInterceptor", "interceptor", "addNetworkInterceptor", "-addNetworkInterceptor", "build", "duration", "Ljava/time/Duration;", "timeout", "unit", "Ljava/util/concurrent/TimeUnit;", "eventListener", "Lokhttp3/EventListener;", "followProtocolRedirects", "bytes", "interval", "sslSocketFactory", "trustManager", "okhttp"}, k = 1, mv = {1, 4, 0})
/* compiled from: OkHttpClient.kt */
public static final class Builder {
private Authenticator authenticator;
private Cache cache;
private int callTimeout;
private CertificateChainCleaner certificateChainCleaner;
private CertificatePinner certificatePinner;
private int connectTimeout;
private ConnectionPool connectionPool;
private List<ConnectionSpec> connectionSpecs;
private CookieJar cookieJar;
private Dispatcher dispatcher;
private Dns dns;
private EventListener.Factory eventListenerFactory;
private boolean followRedirects;
private boolean followSslRedirects;
private HostnameVerifier hostnameVerifier;
private final List<Interceptor> interceptors;
private long minWebSocketMessageToCompress;
private final List<Interceptor> networkInterceptors;
private int pingInterval;
private List<? extends Protocol> protocols;
private Proxy proxy;
private Authenticator proxyAuthenticator;
private ProxySelector proxySelector;
private int readTimeout;
private boolean retryOnConnectionFailure;
private RouteDatabase routeDatabase;
private SocketFactory socketFactory;
private SSLSocketFactory sslSocketFactoryOrNull;
private int writeTimeout;
private X509TrustManager x509TrustManagerOrNull;
public Builder() {
this.dispatcher = new Dispatcher();
this.connectionPool = new ConnectionPool();
this.interceptors = new ArrayList();
this.networkInterceptors = new ArrayList();
this.eventListenerFactory = Util.asFactory(EventListener.NONE);
this.retryOnConnectionFailure = true;
this.authenticator = Authenticator.NONE;
this.followRedirects = true;
this.followSslRedirects = true;
this.cookieJar = CookieJar.NO_COOKIES;
this.dns = Dns.SYSTEM;
this.proxyAuthenticator = Authenticator.NONE;
SocketFactory socketFactory2 = SocketFactory.getDefault();
Intrinsics.checkNotNullExpressionValue(socketFactory2, "SocketFactory.getDefault()");
this.socketFactory = socketFactory2;
this.connectionSpecs = OkHttpClient.Companion.getDEFAULT_CONNECTION_SPECS$okhttp();
this.protocols = OkHttpClient.Companion.getDEFAULT_PROTOCOLS$okhttp();
this.hostnameVerifier = OkHostnameVerifier.INSTANCE;
this.certificatePinner = CertificatePinner.DEFAULT;
this.connectTimeout = 10000;
this.readTimeout = 10000;
this.writeTimeout = 10000;
this.minWebSocketMessageToCompress = 1024;
}
public final Dispatcher getDispatcher$okhttp() {
return this.dispatcher;
}
public final void setDispatcher$okhttp(Dispatcher dispatcher2) {
Intrinsics.checkNotNullParameter(dispatcher2, "<set-?>");
this.dispatcher = dispatcher2;
}
public final ConnectionPool getConnectionPool$okhttp() {
return this.connectionPool;
}
public final void setConnectionPool$okhttp(ConnectionPool connectionPool2) {
Intrinsics.checkNotNullParameter(connectionPool2, "<set-?>");
this.connectionPool = connectionPool2;
}
public final List<Interceptor> getInterceptors$okhttp() {
return this.interceptors;
}
public final List<Interceptor> getNetworkInterceptors$okhttp() {
return this.networkInterceptors;
}
public final EventListener.Factory getEventListenerFactory$okhttp() {
return this.eventListenerFactory;
}
public final void setEventListenerFactory$okhttp(EventListener.Factory factory) {
Intrinsics.checkNotNullParameter(factory, "<set-?>");
this.eventListenerFactory = factory;
}
public final boolean getRetryOnConnectionFailure$okhttp() {
return this.retryOnConnectionFailure;
}
public final void setRetryOnConnectionFailure$okhttp(boolean z) {
this.retryOnConnectionFailure = z;
}
public final Authenticator getAuthenticator$okhttp() {
return this.authenticator;
}
public final void setAuthenticator$okhttp(Authenticator authenticator2) {
Intrinsics.checkNotNullParameter(authenticator2, "<set-?>");
this.authenticator = authenticator2;
}
public final boolean getFollowRedirects$okhttp() {
return this.followRedirects;
}
public final void setFollowRedirects$okhttp(boolean z) {
this.followRedirects = z;
}
public final boolean getFollowSslRedirects$okhttp() {
return this.followSslRedirects;
}
public final void setFollowSslRedirects$okhttp(boolean z) {
this.followSslRedirects = z;
}
public final CookieJar getCookieJar$okhttp() {
return this.cookieJar;
}
public final void setCookieJar$okhttp(CookieJar cookieJar2) {
Intrinsics.checkNotNullParameter(cookieJar2, "<set-?>");
this.cookieJar = cookieJar2;
}
public final Cache getCache$okhttp() {
return this.cache;
}
public final void setCache$okhttp(Cache cache2) {
this.cache = cache2;
}
public final Dns getDns$okhttp() {
return this.dns;
}
public final void setDns$okhttp(Dns dns2) {
Intrinsics.checkNotNullParameter(dns2, "<set-?>");
this.dns = dns2;
}
public final Proxy getProxy$okhttp() {
return this.proxy;
}
public final void setProxy$okhttp(Proxy proxy2) {
this.proxy = proxy2;
}
public final ProxySelector getProxySelector$okhttp() {
return this.proxySelector;
}
public final void setProxySelector$okhttp(ProxySelector proxySelector2) {
this.proxySelector = proxySelector2;
}
public final Authenticator getProxyAuthenticator$okhttp() {
return this.proxyAuthenticator;
}
public final void setProxyAuthenticator$okhttp(Authenticator authenticator2) {
Intrinsics.checkNotNullParameter(authenticator2, "<set-?>");
this.proxyAuthenticator = authenticator2;
}
public final SocketFactory getSocketFactory$okhttp() {
return this.socketFactory;
}
public final void setSocketFactory$okhttp(SocketFactory socketFactory2) {
Intrinsics.checkNotNullParameter(socketFactory2, "<set-?>");
this.socketFactory = socketFactory2;
}
public final SSLSocketFactory getSslSocketFactoryOrNull$okhttp() {
return this.sslSocketFactoryOrNull;
}
public final void setSslSocketFactoryOrNull$okhttp(SSLSocketFactory sSLSocketFactory) {
this.sslSocketFactoryOrNull = sSLSocketFactory;
}
public final X509TrustManager getX509TrustManagerOrNull$okhttp() {
return this.x509TrustManagerOrNull;
}
public final void setX509TrustManagerOrNull$okhttp(X509TrustManager x509TrustManager) {
this.x509TrustManagerOrNull = x509TrustManager;
}
public final List<ConnectionSpec> getConnectionSpecs$okhttp() {
return this.connectionSpecs;
}
public final void setConnectionSpecs$okhttp(List<ConnectionSpec> list) {
Intrinsics.checkNotNullParameter(list, "<set-?>");
this.connectionSpecs = list;
}
public final List<Protocol> getProtocols$okhttp() {
return this.protocols;
}
public final void setProtocols$okhttp(List<? extends Protocol> list) {
Intrinsics.checkNotNullParameter(list, "<set-?>");
this.protocols = list;
}
public final HostnameVerifier getHostnameVerifier$okhttp() {
return this.hostnameVerifier;
}
public final void setHostnameVerifier$okhttp(HostnameVerifier hostnameVerifier2) {
Intrinsics.checkNotNullParameter(hostnameVerifier2, "<set-?>");
this.hostnameVerifier = hostnameVerifier2;
}
public final CertificatePinner getCertificatePinner$okhttp() {
return this.certificatePinner;
}
public final void setCertificatePinner$okhttp(CertificatePinner certificatePinner2) {
Intrinsics.checkNotNullParameter(certificatePinner2, "<set-?>");
this.certificatePinner = certificatePinner2;
}
public final CertificateChainCleaner getCertificateChainCleaner$okhttp() {
return this.certificateChainCleaner;
}
public final void setCertificateChainCleaner$okhttp(CertificateChainCleaner certificateChainCleaner2) {
this.certificateChainCleaner = certificateChainCleaner2;
}
public final int getCallTimeout$okhttp() {
return this.callTimeout;
}
public final void setCallTimeout$okhttp(int i) {
this.callTimeout = i;
}
public final int getConnectTimeout$okhttp() {
return this.connectTimeout;
}
public final void setConnectTimeout$okhttp(int i) {
this.connectTimeout = i;
}
public final int getReadTimeout$okhttp() {
return this.readTimeout;
}
public final void setReadTimeout$okhttp(int i) {
this.readTimeout = i;
}
public final int getWriteTimeout$okhttp() {
return this.writeTimeout;
}
public final void setWriteTimeout$okhttp(int i) {
this.writeTimeout = i;
}
public final int getPingInterval$okhttp() {
return this.pingInterval;
}
public final void setPingInterval$okhttp(int i) {
this.pingInterval = i;
}
public final long getMinWebSocketMessageToCompress$okhttp() {
return this.minWebSocketMessageToCompress;
}
public final void setMinWebSocketMessageToCompress$okhttp(long j) {
this.minWebSocketMessageToCompress = j;
}
public final RouteDatabase getRouteDatabase$okhttp() {
return this.routeDatabase;
}
public final void setRouteDatabase$okhttp(RouteDatabase routeDatabase2) {
this.routeDatabase = routeDatabase2;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public Builder(OkHttpClient okHttpClient) {
this();
Intrinsics.checkNotNullParameter(okHttpClient, "okHttpClient");
this.dispatcher = okHttpClient.dispatcher();
this.connectionPool = okHttpClient.connectionPool();
CollectionsKt.addAll(this.interceptors, okHttpClient.interceptors());
CollectionsKt.addAll(this.networkInterceptors, okHttpClient.networkInterceptors());
this.eventListenerFactory = okHttpClient.eventListenerFactory();
this.retryOnConnectionFailure = okHttpClient.retryOnConnectionFailure();
this.authenticator = okHttpClient.authenticator();
this.followRedirects = okHttpClient.followRedirects();
this.followSslRedirects = okHttpClient.followSslRedirects();
this.cookieJar = okHttpClient.cookieJar();
this.cache = okHttpClient.cache();
this.dns = okHttpClient.dns();
this.proxy = okHttpClient.proxy();
this.proxySelector = okHttpClient.proxySelector();
this.proxyAuthenticator = okHttpClient.proxyAuthenticator();
this.socketFactory = okHttpClient.socketFactory();
this.sslSocketFactoryOrNull = okHttpClient.sslSocketFactoryOrNull;
this.x509TrustManagerOrNull = okHttpClient.x509TrustManager();
this.connectionSpecs = okHttpClient.connectionSpecs();
this.protocols = okHttpClient.protocols();
this.hostnameVerifier = okHttpClient.hostnameVerifier();
this.certificatePinner = okHttpClient.certificatePinner();
this.certificateChainCleaner = okHttpClient.certificateChainCleaner();
this.callTimeout = okHttpClient.callTimeoutMillis();
this.connectTimeout = okHttpClient.connectTimeoutMillis();
this.readTimeout = okHttpClient.readTimeoutMillis();
this.writeTimeout = okHttpClient.writeTimeoutMillis();
this.pingInterval = okHttpClient.pingIntervalMillis();
this.minWebSocketMessageToCompress = okHttpClient.minWebSocketMessageToCompress();
this.routeDatabase = okHttpClient.getRouteDatabase();
}
public final Builder dispatcher(Dispatcher dispatcher2) {
Intrinsics.checkNotNullParameter(dispatcher2, "dispatcher");
Builder builder = this;
this.dispatcher = dispatcher2;
return this;
}
public final Builder connectionPool(ConnectionPool connectionPool2) {
Intrinsics.checkNotNullParameter(connectionPool2, "connectionPool");
Builder builder = this;
this.connectionPool = connectionPool2;
return this;
}
public final List<Interceptor> interceptors() {
return this.interceptors;
}
public final Builder addInterceptor(Interceptor interceptor) {
Intrinsics.checkNotNullParameter(interceptor, "interceptor");
Builder builder = this;
this.interceptors.add(interceptor);
return this;
}
/* renamed from: -addInterceptor reason: not valid java name */
public final Builder m1960addInterceptor(Function1<? super Interceptor.Chain, Response> function1) {
Intrinsics.checkNotNullParameter(function1, "block");
return addInterceptor(new OkHttpClient$Builder$addInterceptor$2(function1));
}
public final List<Interceptor> networkInterceptors() {
return this.networkInterceptors;
}
public final Builder addNetworkInterceptor(Interceptor interceptor) {
Intrinsics.checkNotNullParameter(interceptor, "interceptor");
Builder builder = this;
this.networkInterceptors.add(interceptor);
return this;
}
/* renamed from: -addNetworkInterceptor reason: not valid java name */
public final Builder m1961addNetworkInterceptor(Function1<? super Interceptor.Chain, Response> function1) {
Intrinsics.checkNotNullParameter(function1, "block");
return addNetworkInterceptor(new OkHttpClient$Builder$addNetworkInterceptor$2(function1));
}
public final Builder eventListener(EventListener eventListener) {
Intrinsics.checkNotNullParameter(eventListener, "eventListener");
Builder builder = this;
this.eventListenerFactory = Util.asFactory(eventListener);
return this;
}
public final Builder eventListenerFactory(EventListener.Factory factory) {
Intrinsics.checkNotNullParameter(factory, "eventListenerFactory");
Builder builder = this;
this.eventListenerFactory = factory;
return this;
}
public final Builder retryOnConnectionFailure(boolean z) {
Builder builder = this;
this.retryOnConnectionFailure = z;
return this;
}
public final Builder authenticator(Authenticator authenticator2) {
Intrinsics.checkNotNullParameter(authenticator2, "authenticator");
Builder builder = this;
this.authenticator = authenticator2;
return this;
}
public final Builder followRedirects(boolean z) {
Builder builder = this;
this.followRedirects = z;
return this;
}
public final Builder followSslRedirects(boolean z) {
Builder builder = this;
this.followSslRedirects = z;
return this;
}
public final Builder cookieJar(CookieJar cookieJar2) {
Intrinsics.checkNotNullParameter(cookieJar2, "cookieJar");
Builder builder = this;
this.cookieJar = cookieJar2;
return this;
}
public final Builder cache(Cache cache2) {
Builder builder = this;
this.cache = cache2;
return this;
}
public final Builder dns(Dns dns2) {
Intrinsics.checkNotNullParameter(dns2, "dns");
Builder builder = this;
if (!Intrinsics.areEqual((Object) dns2, (Object) this.dns)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.dns = dns2;
return this;
}
public final Builder proxy(Proxy proxy2) {
Builder builder = this;
if (!Intrinsics.areEqual((Object) proxy2, (Object) this.proxy)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.proxy = proxy2;
return this;
}
public final Builder proxySelector(ProxySelector proxySelector2) {
Intrinsics.checkNotNullParameter(proxySelector2, "proxySelector");
Builder builder = this;
if (!Intrinsics.areEqual((Object) proxySelector2, (Object) this.proxySelector)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.proxySelector = proxySelector2;
return this;
}
public final Builder proxyAuthenticator(Authenticator authenticator2) {
Intrinsics.checkNotNullParameter(authenticator2, "proxyAuthenticator");
Builder builder = this;
if (!Intrinsics.areEqual((Object) authenticator2, (Object) this.proxyAuthenticator)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.proxyAuthenticator = authenticator2;
return this;
}
public final Builder socketFactory(SocketFactory socketFactory2) {
Intrinsics.checkNotNullParameter(socketFactory2, "socketFactory");
Builder builder = this;
if (!(socketFactory2 instanceof SSLSocketFactory)) {
if (!Intrinsics.areEqual((Object) socketFactory2, (Object) this.socketFactory)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.socketFactory = socketFactory2;
return this;
}
throw new IllegalArgumentException("socketFactory instanceof SSLSocketFactory".toString());
}
@Deprecated(level = DeprecationLevel.ERROR, message = "Use the sslSocketFactory overload that accepts a X509TrustManager.")
public final Builder sslSocketFactory(SSLSocketFactory sSLSocketFactory) {
Intrinsics.checkNotNullParameter(sSLSocketFactory, "sslSocketFactory");
Builder builder = this;
if (!Intrinsics.areEqual((Object) sSLSocketFactory, (Object) this.sslSocketFactoryOrNull)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.sslSocketFactoryOrNull = sSLSocketFactory;
X509TrustManager trustManager = Platform.Companion.get().trustManager(sSLSocketFactory);
if (trustManager != null) {
this.x509TrustManagerOrNull = trustManager;
Platform platform = Platform.Companion.get();
X509TrustManager x509TrustManager = this.x509TrustManagerOrNull;
Intrinsics.checkNotNull(x509TrustManager);
this.certificateChainCleaner = platform.buildCertificateChainCleaner(x509TrustManager);
return this;
}
throw new IllegalStateException("Unable to extract the trust manager on " + Platform.Companion.get() + ", " + "sslSocketFactory is " + sSLSocketFactory.getClass());
}
public final Builder sslSocketFactory(SSLSocketFactory sSLSocketFactory, X509TrustManager x509TrustManager) {
Intrinsics.checkNotNullParameter(sSLSocketFactory, "sslSocketFactory");
Intrinsics.checkNotNullParameter(x509TrustManager, "trustManager");
Builder builder = this;
if ((!Intrinsics.areEqual((Object) sSLSocketFactory, (Object) this.sslSocketFactoryOrNull)) || (!Intrinsics.areEqual((Object) x509TrustManager, (Object) this.x509TrustManagerOrNull))) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.sslSocketFactoryOrNull = sSLSocketFactory;
this.certificateChainCleaner = CertificateChainCleaner.Companion.get(x509TrustManager);
this.x509TrustManagerOrNull = x509TrustManager;
return this;
}
public final Builder connectionSpecs(List<ConnectionSpec> list) {
Intrinsics.checkNotNullParameter(list, "connectionSpecs");
Builder builder = this;
if (!Intrinsics.areEqual((Object) list, (Object) this.connectionSpecs)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.connectionSpecs = Util.toImmutableList(list);
return this;
}
public final Builder protocols(List<? extends Protocol> list) {
Intrinsics.checkNotNullParameter(list, "protocols");
Builder builder = this;
List mutableList = CollectionsKt.toMutableList(list);
boolean z = false;
if (mutableList.contains(Protocol.H2_PRIOR_KNOWLEDGE) || mutableList.contains(Protocol.HTTP_1_1)) {
if (!mutableList.contains(Protocol.H2_PRIOR_KNOWLEDGE) || mutableList.size() <= 1) {
z = true;
}
if (!z) {
throw new IllegalArgumentException(("protocols containing h2_prior_knowledge cannot use other protocols: " + mutableList).toString());
} else if (!mutableList.contains(Protocol.HTTP_1_0)) {
Objects.requireNonNull(mutableList, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Protocol?>");
if (!mutableList.contains((Object) null)) {
mutableList.remove(Protocol.SPDY_3);
if (!Intrinsics.areEqual((Object) mutableList, (Object) this.protocols)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
List<? extends Protocol> unmodifiableList = Collections.unmodifiableList(mutableList);
Intrinsics.checkNotNullExpressionValue(unmodifiableList, "Collections.unmodifiableList(protocolsCopy)");
this.protocols = unmodifiableList;
return this;
}
throw new IllegalArgumentException("protocols must not contain null".toString());
} else {
throw new IllegalArgumentException(("protocols must not contain http/1.0: " + mutableList).toString());
}
} else {
throw new IllegalArgumentException(("protocols must contain h2_prior_knowledge or http/1.1: " + mutableList).toString());
}
}
public final Builder hostnameVerifier(HostnameVerifier hostnameVerifier2) {
Intrinsics.checkNotNullParameter(hostnameVerifier2, "hostnameVerifier");
Builder builder = this;
if (!Intrinsics.areEqual((Object) hostnameVerifier2, (Object) this.hostnameVerifier)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.hostnameVerifier = hostnameVerifier2;
return this;
}
public final Builder certificatePinner(CertificatePinner certificatePinner2) {
Intrinsics.checkNotNullParameter(certificatePinner2, "certificatePinner");
Builder builder = this;
if (!Intrinsics.areEqual((Object) certificatePinner2, (Object) this.certificatePinner)) {
RouteDatabase routeDatabase2 = null;
this.routeDatabase = null;
}
this.certificatePinner = certificatePinner2;
return this;
}
public final Builder callTimeout(long j, TimeUnit timeUnit) {
Intrinsics.checkNotNullParameter(timeUnit, "unit");
Builder builder = this;
this.callTimeout = Util.checkDuration("timeout", j, timeUnit);
return this;
}
public final Builder callTimeout(Duration duration) {
Intrinsics.checkNotNullParameter(duration, "duration");
Builder builder = this;
callTimeout(duration.toMillis(), TimeUnit.MILLISECONDS);
return this;
}
public final Builder connectTimeout(long j, TimeUnit timeUnit) {
Intrinsics.checkNotNullParameter(timeUnit, "unit");
Builder builder = this;
this.connectTimeout = Util.checkDuration("timeout", j, timeUnit);
return this;
}
public final Builder connectTimeout(Duration duration) {
Intrinsics.checkNotNullParameter(duration, "duration");
Builder builder = this;
connectTimeout(duration.toMillis(), TimeUnit.MILLISECONDS);
return this;
}
public final Builder readTimeout(long j, TimeUnit timeUnit) {
Intrinsics.checkNotNullParameter(timeUnit, "unit");
Builder builder = this;
this.readTimeout = Util.checkDuration("timeout", j, timeUnit);
return this;
}
public final Builder readTimeout(Duration duration) {
Intrinsics.checkNotNullParameter(duration, "duration");
Builder builder = this;
readTimeout(duration.toMillis(), TimeUnit.MILLISECONDS);
return this;
}
public final Builder writeTimeout(long j, TimeUnit timeUnit) {
Intrinsics.checkNotNullParameter(timeUnit, "unit");
Builder builder = this;
this.writeTimeout = Util.checkDuration("timeout", j, timeUnit);
return this;
}
public final Builder writeTimeout(Duration duration) {
Intrinsics.checkNotNullParameter(duration, "duration");
Builder builder = this;
writeTimeout(duration.toMillis(), TimeUnit.MILLISECONDS);
return this;
}
public final Builder pingInterval(long j, TimeUnit timeUnit) {
Intrinsics.checkNotNullParameter(timeUnit, "unit");
Builder builder = this;
this.pingInterval = Util.checkDuration("interval", j, timeUnit);
return this;
}
public final Builder pingInterval(Duration duration) {
Intrinsics.checkNotNullParameter(duration, "duration");
Builder builder = this;
pingInterval(duration.toMillis(), TimeUnit.MILLISECONDS);
return this;
}
public final Builder minWebSocketMessageToCompress(long j) {
Builder builder = this;
if (j >= 0) {
this.minWebSocketMessageToCompress = j;
return this;
}
throw new IllegalArgumentException(("minWebSocketMessageToCompress must be positive: " + j).toString());
}
public final OkHttpClient build() {
return new OkHttpClient(this);
}
}
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u001a\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u001a\u0010\b\u001a\b\u0012\u0004\u0012\u00020\t0\u0004X\u0004¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u0007¨\u0006\u000b"}, d2 = {"Lokhttp3/OkHttpClient$Companion;", "", "()V", "DEFAULT_CONNECTION_SPECS", "", "Lokhttp3/ConnectionSpec;", "getDEFAULT_CONNECTION_SPECS$okhttp", "()Ljava/util/List;", "DEFAULT_PROTOCOLS", "Lokhttp3/Protocol;", "getDEFAULT_PROTOCOLS$okhttp", "okhttp"}, k = 1, mv = {1, 4, 0})
/* compiled from: OkHttpClient.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final List<Protocol> getDEFAULT_PROTOCOLS$okhttp() {
return OkHttpClient.DEFAULT_PROTOCOLS;
}
public final List<ConnectionSpec> getDEFAULT_CONNECTION_SPECS$okhttp() {
return OkHttpClient.DEFAULT_CONNECTION_SPECS;
}
}
}
Download file