Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 i4.java 源代码,内容仅作参考
package com.my.target;
import android.content.Context;
import android.os.Build;
import android.util.Base64;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.my.target.common.MyTargetVersion;
import com.my.target.i4;
import com.tapjoy.TJAdUnitConstants;
import com.tapjoy.TapjoyAuctionFlags;
import java.nio.charset.Charset;
import org.json.JSONObject;
public class i4 {
@VisibleForTesting
public static boolean f50748h = true;
@NonNull
public static String f50749i = "https://ad.mail.ru/sdk/log/";
@NonNull
public final String f50750a;
@NonNull
public final String f50751b;
@Nullable
public String f50752c;
public int f50753d;
@Nullable
public String f50754e;
@Nullable
public String f50755f;
@Nullable
public String f50756g;
public i4(@NonNull String str, @NonNull String str2) {
this.f50750a = str;
this.f50751b = str2;
}
@NonNull
public i4 b(@Nullable String str) {
this.f50754e = str;
return this;
}
@NonNull
public i4 c(@Nullable String str) {
this.f50755f = str;
return this;
}
@NonNull
public i4 d(@Nullable String str) {
this.f50756g = str;
return this;
}
@NonNull
public i4 e(@Nullable String str) {
this.f50752c = str;
return this;
}
@NonNull
public i4 a(int i11) {
this.f50753d = i11;
return this;
}
public void b(@NonNull final Context context) {
z.b(new Runnable() {
@Override
public final void run() {
i4.this.a(context);
}
});
}
@NonNull
public static i4 a(@NonNull String str) {
return new i4(str, "error");
}
@NonNull
@VisibleForTesting
public String a() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("sdk", "myTarget");
jSONObject.put("sdkver", MyTargetVersion.VERSION);
jSONObject.put("os", "Android");
jSONObject.put("osver", Build.VERSION.RELEASE);
jSONObject.put(TapjoyAuctionFlags.AUCTION_TYPE, this.f50751b);
jSONObject.put("name", this.f50750a);
String str = this.f50752c;
if (str != null) {
jSONObject.put(TJAdUnitConstants.String.MESSAGE, str);
}
int i11 = this.f50753d;
if (i11 > 0) {
jSONObject.put("slot", i11);
}
String str2 = this.f50754e;
if (str2 != null) {
jSONObject.put("url", str2);
}
String str3 = this.f50755f;
if (str3 != null) {
jSONObject.put("bannerId", str3);
}
String str4 = this.f50756g;
if (str4 != null) {
jSONObject.put("data", str4);
}
} catch (Throwable unused) {
}
return jSONObject.toString();
}
public void a(Context context) {
String a11 = a();
c9.a("send message to log:\n " + a11);
if (f50748h) {
s1.d().a(f50749i, Base64.encodeToString(a11.getBytes(Charset.forName(C.UTF8_NAME)), 0), context);
}
}
}