Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 b.java 源代码,内容仅作参考
package myobfuscated.lf2;
import android.net.Uri;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.snapchat.kit.sdk.core.networking.FirebaseExtensionClient;
import java.util.List;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.ko2.n;
import okhttp3.CertificatePinner;
import retrofit2.Converter;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public final class b {
public final okhttp3.b a;
public final Gson b;
public final f c;
public final g d;
public b(okhttp3.b bVar, Gson gson, f fVar, g gVar) {
this.a = bVar;
this.b = gson;
this.c = fVar;
this.d = gVar;
}
public static Object b(String str) {
return new Retrofit.Builder().baseUrl(str).client(new n(new n.a())).addConverterFactory(GsonConverterFactory.create(new GsonBuilder().setLenient().create())).build().create(FirebaseExtensionClient.class);
}
public final <T> T a(g gVar, String str, Class<T> cls, Converter.Factory factory) {
CertificatePinner certificatePinner;
n.a aVar = new n.a();
aVar.k = this.a;
aVar.a(gVar);
if (str.startsWith("https://api.snapkit.com") || str.startsWith("https://us-central1-gcp.api.snapchat.com")) {
List<String> list = k.a;
synchronized (k.class) {
try {
CertificatePinner.a aVar2 = new CertificatePinner.a();
try {
String pattern = Uri.parse("https://api.snapkit.com").getHost();
if (TextUtils.isEmpty(pattern)) {
certificatePinner = new CertificatePinner(kotlin.collections.c.B0(aVar2.a), null);
} else {
for (String str2 : k.a) {
String[] pins = {str2};
Intrinsics.checkNotNullParameter(pattern, "pattern");
Intrinsics.checkNotNullParameter(pins, "pins");
aVar2.a.add(new CertificatePinner.c(pattern, pins[0]));
}
certificatePinner = new CertificatePinner(kotlin.collections.c.B0(aVar2.a), null);
}
} catch (NullPointerException unused) {
certificatePinner = new CertificatePinner(kotlin.collections.c.B0(aVar2.a), null);
}
} catch (Throwable th) {
throw th;
}
}
Intrinsics.checkNotNullParameter(certificatePinner, "certificatePinner");
if (!Intrinsics.c(certificatePinner, aVar.v)) {
aVar.D = null;
}
aVar.v = certificatePinner;
}
return (T) new Retrofit.Builder().baseUrl(str).client(new n(aVar)).addConverterFactory(factory).build().create(cls);
}
}