Driving Zone: Germany v1.22.4版本的 MD5 值为:2b6e2d8e8733a3104dcc306c5770286c

以下内容为反编译后的 f4.java 源代码,内容仅作参考


package com.my.target;

import android.content.Context;
import android.os.Build;
import android.util.Base64;
import com.amazon.aps.shared.APSAnalytics;
import com.my.target.common.MyTargetVersion;
import io.sentry.protocol.OperatingSystem;
import java.nio.charset.Charset;
import org.json.JSONObject;

public class f4 {
    public static boolean h = true;
    public static String i = "https://ad.mail.ru/sdk/log/";

    public final String f5236a;
    public final String b;
    public String c;
    public int d;
    public String e;
    public String f;
    public String g;

    public f4(String str, String str2) {
        this.f5236a = str;
        this.b = str2;
    }

    public static f4 a(String str) {
        return new f4(str, "error");
    }

    public void a(Context context) {
        String a2 = a();
        w8.a("send message to log:\n " + a2);
        if (h) {
            p1.d().a(i, Base64.encodeToString(a2.getBytes(Charset.forName("UTF-8")), 0), context);
        }
    }

    public f4 a(int i2) {
        this.d = i2;
        return this;
    }

    public String a() {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("sdk", "myTarget");
            jSONObject.put("sdkver", MyTargetVersion.VERSION);
            jSONObject.put(OperatingSystem.TYPE, APSAnalytics.OS_NAME);
            jSONObject.put("osver", Build.VERSION.RELEASE);
            jSONObject.put("type", this.b);
            jSONObject.put("name", this.f5236a);
            String str = this.c;
            if (str != null) {
                jSONObject.put("message", str);
            }
            int i2 = this.d;
            if (i2 > 0) {
                jSONObject.put("slot", i2);
            }
            String str2 = this.e;
            if (str2 != null) {
                jSONObject.put("url", str2);
            }
            String str3 = this.f;
            if (str3 != null) {
                jSONObject.put("bannerId", str3);
            }
            String str4 = this.g;
            if (str4 != null) {
                jSONObject.put("data", str4);
            }
        } catch (Throwable unused) {
        }
        return jSONObject.toString();
    }

    public f4 b(String str) {
        this.e = str;
        return this;
    }

    public void b(final Context context) {
        x.b(new Runnable() {
            @Override
            public final void run() {
                f4.this.a(context);
            }
        });
    }

    public f4 c(String str) {
        this.f = str;
        return this;
    }

    public f4 d(String str) {
        this.c = str;
        return this;
    }
}