Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 v5.java 源代码,内容仅作参考
package com.my.target;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.my.target.nativeads.banners.NativeBanner;
import com.my.target.nativeads.banners.NativePromoBanner;
import com.my.target.v5;
import org.json.JSONException;
import org.json.JSONObject;
public final class v5 {
@Nullable
public static String a(@NonNull String str, @NonNull String str2, @Nullable String str3, @Nullable String str4, @Nullable String str5, @Nullable String str6, @Nullable String str7, @Nullable String str8, float f11, int i11, boolean z11, @NonNull Context context) {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("instance_id", j1.c().b(context));
jSONObject.put("network", str);
jSONObject.put("navigationType", str2);
if (a(str3)) {
jSONObject.put("title", str3);
}
if (a(str4)) {
jSONObject.put("ctaText", str4);
}
if (a(str5)) {
jSONObject.put("domain", str5);
}
if (a(str6)) {
jSONObject.put("ageRestrictions", str6);
}
if (a(str7)) {
jSONObject.put("disclaimer", str7);
}
if (f11 > 0.0f) {
jSONObject.put("rating", String.valueOf(f11));
}
if (i11 > 0) {
jSONObject.put("votes", String.valueOf(i11));
}
if (a(str8)) {
jSONObject.put("description", str8);
}
if (z11) {
jSONObject.put("hasVideo", "true");
}
return jSONObject.toString();
} catch (JSONException unused) {
return null;
}
}
public static void b(@NonNull final String str, @NonNull final NativeBanner nativeBanner, @NonNull final Context context) {
z.b(new Runnable() {
@Override
public final void run() {
v5.a(v5.a(str, r1.getNavigationType(), r1.getTitle(), r1.getCtaText(), r1.getDomain(), r1.getAgeRestrictions(), r1.getDisclaimer(), r1.getDescription(), r1.getRating(), nativeBanner.getVotes(), false, r2), context);
}
});
}
public static void a(@Nullable String str, @NonNull Context context) {
if (str == null) {
return;
}
s1.d().a("https://ad.mail.ru/mobile/adcontext", f1.b(str), context);
}
public static void b(@NonNull final String str, @NonNull final NativePromoBanner nativePromoBanner, @NonNull final Context context) {
z.b(new Runnable() {
@Override
public final void run() {
v5.a(v5.a(str, r1.getNavigationType(), r1.getTitle(), r1.getCtaText(), r1.getDomain(), r1.getAgeRestrictions(), r1.getDisclaimer(), r1.getDescription(), r1.getRating(), r1.getVotes(), nativePromoBanner.hasVideo(), r2), context);
}
});
}
public static boolean a(@Nullable String str) {
return str != null && str.length() > 0;
}
}