Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 e.java 源代码,内容仅作参考
package yn;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkCapabilities;
import com.fairmatic.sdk.classes.FairmaticErrorCode;
import com.fairmatic.sdk.utilities.NetworkResponse$Error;
import com.google.android.gms.common.ConnectionResult;
import com.google.gson.Gson;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import ns.a0;
import ns.d0;
import ns.e0;
import ns.w;
public final class e implements w {
public final Context f180819a;
public final Gson f180820b;
public e(Context context, Gson gson) {
this.f180819a = context;
this.f180820b = gson;
}
@Override
public final d0 intercept(w.a aVar) {
ConnectivityManager connectivityManager = (ConnectivityManager) this.f180819a.getSystemService("connectivity");
NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(connectivityManager.getActiveNetwork());
if (networkCapabilities != null && (networkCapabilities.hasTransport(1) || networkCapabilities.hasTransport(0))) {
try {
Socket socket = new Socket();
socket.connect(new InetSocketAddress("8.8.8.8", 53), ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED);
socket.close();
return aVar.a(aVar.request());
} catch (IOException unused) {
String string = this.f180819a.getString(ja.a.f77726c);
FairmaticErrorCode fairmaticErrorCode = FairmaticErrorCode.NETWORK_NOT_AVAILABLE;
String x15 = this.f180820b.x(new NetworkResponse$Error(string, fairmaticErrorCode.toErrorCode$sdk_release()));
return new d0.a().g(fairmaticErrorCode.toErrorCode$sdk_release()).t(aVar.request()).q(a0.HTTP_2).b(e0.h(null, x15)).n(x15).c();
}
}
String string2 = this.f180819a.getString(ja.a.f77727d);
FairmaticErrorCode fairmaticErrorCode2 = FairmaticErrorCode.NETWORK_NOT_AVAILABLE;
String x16 = this.f180820b.x(new NetworkResponse$Error(string2, fairmaticErrorCode2.toErrorCode$sdk_release()));
return new d0.a().g(fairmaticErrorCode2.toErrorCode$sdk_release()).t(aVar.request()).q(a0.HTTP_2).b(e0.h(null, x16)).n(x16).c();
}
}