Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 g.java 源代码,内容仅作参考
package myobfuscated.kz;
import android.os.Build;
import com.google.android.gms.vision.barcode.Barcode;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.ko2.n;
import okhttp3.k;
import okhttp3.p;
import okhttp3.q;
import org.jetbrains.annotations.NotNull;
public final class g implements f {
@NotNull
public final n a;
@NotNull
public final myobfuscated.tw.a b;
public static final class a implements myobfuscated.ko2.d {
public final long a;
public final g b;
public a(long j, g gVar) {
this.a = j;
this.b = gVar;
}
@Override
public final void onFailure(@NotNull myobfuscated.ko2.c call, @NotNull IOException e) {
Intrinsics.checkNotNullParameter(call, "call");
Intrinsics.checkNotNullParameter(e, "e");
}
@Override
public final void onResponse(@NotNull myobfuscated.ko2.c call, @NotNull p response) {
q qVar;
InputStream byteStream;
Intrinsics.checkNotNullParameter(call, "call");
Intrinsics.checkNotNullParameter(response, "response");
if (!response.d() || (qVar = response.g) == null || (byteStream = qVar.byteStream()) == null) {
return;
}
try {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
byte[] bArr = new byte[Barcode.UPC_E];
while (byteStream.read(bArr) != -1) {
byteArrayOutputStream.write(bArr);
}
int size = byteArrayOutputStream.size();
Unit unit = Unit.a;
myobfuscated.sr.e.s(byteStream, null);
double floor = size / Math.floor(System.currentTimeMillis() - this.a);
myobfuscated.tw.a aVar = this.b.b;
String str = Build.VERSION.RELEASE;
int i = Build.VERSION.SDK_INT;
aVar.a(new myobfuscated.tw.g("network_state", kotlin.collections.d.i(new Pair("int_speed", Double.valueOf(floor)), new Pair("device_model", myobfuscated.b02.b.n(Build.MANUFACTURER, " ", Build.MODEL)), new Pair("os_version", "Android " + str + ", API Level " + i))));
} catch (Throwable th) {
try {
throw th;
} catch (Throwable th2) {
myobfuscated.sr.e.s(byteStream, th);
throw th2;
}
}
}
}
public g(@NotNull n okHttpClient, @NotNull myobfuscated.tw.a analyticsService) {
Intrinsics.checkNotNullParameter(okHttpClient, "okHttpClient");
Intrinsics.checkNotNullParameter(analyticsService, "analyticsService");
this.a = okHttpClient;
this.b = analyticsService;
}
@Override
public final void a() {
k.a aVar = new k.a();
aVar.j("https://cdn3.iconfinder.com/data/icons/feather-5/24/external-link-16.png");
this.a.a(aVar.b()).e(new a(System.currentTimeMillis(), this));
}
}