GoooBet v1.0版本的 MD5 值为:ff9748f16167bfd7735b669c0a9931c5

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


package com.adcolony.sdk;

import android.content.Context;
import android.util.Log;
import com.amazon.device.ads.DtbConstants;
import com.amazon.device.ads.DtbDeviceDataRetriever;
import com.mopub.network.ImpressionData;
import com.unity3d.ads.metadata.MediationMetaData;
import com.unity3d.services.ads.adunit.AdUnitActivity;
import java.util.Locale;
import org.json.JSONObject;

public class AdColonyAppOptions {
    public static final String ADMARVEL = "AdMarvel";
    public static final String ADMOB = "AdMob";
    public static final String ADOBEAIR = "Adobe AIR";
    public static final String AERSERVE = "AerServe";

    @Deprecated
    public static final int ALL = 2;
    public static final String APPODEAL = "Appodeal";
    public static final String CCPA = "CCPA";
    public static final String COCOS2DX = "Cocos2d-x";
    public static final String COPPA = "COPPA";
    public static final String CORONA = "Corona";
    public static final String FUSEPOWERED = "Fuse Powered";
    public static final String FYBER = "Fyber";
    public static final String GDPR = "GDPR";
    public static final String IRONSOURCE = "ironSource";

    @Deprecated
    public static final int LANDSCAPE = 1;
    public static final String MOPUB = "MoPub";

    @Deprecated
    public static final int PORTRAIT = 0;

    @Deprecated
    public static final int SENSOR = 2;
    public static final String UNITY = "Unity";
    private String[] b;
    private AdColonyUserMetadata e;

    private String f43a = "";
    private y0 c = new y0();
    private z0 d = new z0();

    public AdColonyAppOptions() {
        setOriginStore("google");
        if (a.e()) {
            i c = a.c();
            if (c.G()) {
                a(c.x().f43a);
                a(c.x().b);
            }
        }
    }

    public AdColonyAppOptions a(String str) {
        if (str == null) {
            return this;
        }
        this.f43a = str;
        y.a(this.d, "app_id", str);
        return this;
    }

    public z0 b() {
        return this.d;
    }

    public String[] c() {
        return this.b;
    }

    public y0 d() {
        return this.c;
    }

    public int getAppOrientation() {
        return y.a(this.d, "app_orientation", -1);
    }

    public String getAppVersion() {
        return y.h(this.d, ImpressionData.APP_VERSION);
    }

    @Deprecated
    public String getGDPRConsentString() {
        return y.h(this.d, "consent_string");
    }

    @Deprecated
    public boolean getGDPRRequired() {
        return y.b(this.d, "gdpr_required");
    }

    public boolean getKeepScreenOn() {
        return y.b(this.d, "keep_screen_on");
    }

    public JSONObject getMediationInfo() {
        z0 b = y.b();
        y.a(b, MediationMetaData.KEY_NAME, y.h(this.d, "mediation_network"));
        y.a(b, MediationMetaData.KEY_VERSION, y.h(this.d, "mediation_network_version"));
        return b.a();
    }

    public boolean getMultiWindowEnabled() {
        return y.b(this.d, "multi_window_enabled");
    }

    public Object getOption(String str) {
        return y.g(this.d, str);
    }

    public String getOriginStore() {
        return y.h(this.d, "origin_store");
    }

    public JSONObject getPluginInfo() {
        z0 b = y.b();
        y.a(b, MediationMetaData.KEY_NAME, y.h(this.d, "plugin"));
        y.a(b, MediationMetaData.KEY_VERSION, y.h(this.d, "plugin_version"));
        return b.a();
    }

    public String getPrivacyConsentString(String str) {
        return y.h(this.d, str.toLowerCase(Locale.ENGLISH) + "_consent_string");
    }

    public boolean getPrivacyFrameworkRequired(String str) {
        return y.b(this.d, str.toLowerCase(Locale.ENGLISH) + "_required");
    }

    @Deprecated
    public int getRequestedAdOrientation() {
        return y.a(this.d, AdUnitActivity.EXTRA_ORIENTATION, -1);
    }

    public boolean getTestModeEnabled() {
        return y.b(this.d, "test_mode");
    }

    public String getUserID() {
        return y.h(this.d, "user_id");
    }

    @Deprecated
    public AdColonyUserMetadata getUserMetadata() {
        return this.e;
    }

    public AdColonyAppOptions setAppOrientation(int i) {
        setOption("app_orientation", i);
        return this;
    }

    public AdColonyAppOptions setAppVersion(String str) {
        setOption(ImpressionData.APP_VERSION, str);
        return this;
    }

    @Deprecated
    public AdColonyAppOptions setGDPRConsentString(String str) {
        y.a(this.d, "consent_string", str);
        return this;
    }

    @Deprecated
    public AdColonyAppOptions setGDPRRequired(boolean z) {
        setOption("gdpr_required", z);
        return this;
    }

    public AdColonyAppOptions setKeepScreenOn(boolean z) {
        y.b(this.d, "keep_screen_on", z);
        return this;
    }

    public AdColonyAppOptions setMediationNetwork(String str, String str2) {
        y.a(this.d, "mediation_network", str);
        y.a(this.d, "mediation_network_version", str2);
        return this;
    }

    public AdColonyAppOptions setMultiWindowEnabled(boolean z) {
        y.b(this.d, "multi_window_enabled", z);
        return this;
    }

    public AdColonyAppOptions setOption(String str, boolean z) {
        y.b(this.d, str, z);
        return this;
    }

    public AdColonyAppOptions setOriginStore(String str) {
        setOption("origin_store", str);
        return this;
    }

    public AdColonyAppOptions setPlugin(String str, String str2) {
        y.a(this.d, "plugin", str);
        y.a(this.d, "plugin_version", str2);
        return this;
    }

    public AdColonyAppOptions setPrivacyConsentString(String str, String str2) {
        y.a(this.d, str.toLowerCase(Locale.ENGLISH) + "_consent_string", str2);
        return this;
    }

    public AdColonyAppOptions setPrivacyFrameworkRequired(String str, boolean z) {
        setOption(str.toLowerCase(Locale.ENGLISH) + "_required", z);
        return this;
    }

    @Deprecated
    public AdColonyAppOptions setRequestedAdOrientation(int i) {
        setOption(AdUnitActivity.EXTRA_ORIENTATION, i);
        return this;
    }

    public AdColonyAppOptions setTestModeEnabled(boolean z) {
        y.b(this.d, "test_mode", z);
        return this;
    }

    public AdColonyAppOptions setUserID(String str) {
        setOption("user_id", str);
        return this;
    }

    @Deprecated
    public AdColonyAppOptions setUserMetadata(AdColonyUserMetadata adColonyUserMetadata) {
        this.e = adColonyUserMetadata;
        y.a(this.d, "user_metadata", adColonyUserMetadata.b);
        return this;
    }

    public void b(Context context) {
        a(context);
        Boolean i = this.d.i("use_forced_controller");
        if (i != null) {
            w0.Q = i.booleanValue();
        }
        if (this.d.h("use_staging_launch_server")) {
            i.c0 = "https://adc3-launch-staging.adcolony.com/v4/launch";
        }
        String b = u0.b(context, "IABUSPrivacy_String");
        String b2 = u0.b(context, DtbConstants.IABTCF_TC_STRING);
        int a2 = u0.a(context, DtbConstants.IABTCF_GDPR_APPLIES);
        if (b != null) {
            y.a(this.d, "ccpa_consent_string", b);
        }
        if (b2 != null) {
            y.a(this.d, "gdpr_consent_string", b2);
        }
        if (a2 == 0 || a2 == 1) {
            y.b(this.d, "gdpr_required", a2 == 1);
        }
    }

    public AdColonyAppOptions setOption(String str, double d) {
        y.a(this.d, str, d);
        return this;
    }

    public AdColonyAppOptions a(String... strArr) {
        if (strArr == null) {
            return this;
        }
        this.b = strArr;
        this.c = y.a();
        for (String str : strArr) {
            y.b(this.c, str);
        }
        return this;
    }

    public AdColonyAppOptions setOption(String str, String str2) {
        y.a(this.d, str, str2);
        return this;
    }

    public static AdColonyAppOptions getMoPubAppOptions(String str) {
        AdColonyAppOptions mediationNetwork = new AdColonyAppOptions().setMediationNetwork("MoPub", DtbDeviceDataRetriever.ORIENTATION_UNKNOWN);
        if (str != null && !str.isEmpty()) {
            for (String str2 : str.split(",")) {
                String[] split = str2.split(":");
                if (split.length == 2) {
                    String str3 = split[0];
                    str3.hashCode();
                    if (!str3.equals("store")) {
                        if (!str3.equals(MediationMetaData.KEY_VERSION)) {
                            Log.e("AdColonyMoPub", "AdColony client options in wrong format - please check your MoPub dashboard");
                            return mediationNetwork;
                        }
                        mediationNetwork.setAppVersion(split[1]);
                    } else {
                        mediationNetwork.setOriginStore(split[1]);
                    }
                } else {
                    Log.e("AdColonyMoPub", "AdColony client options not recognized - please check your MoPub dashboard");
                    return null;
                }
            }
        }
        return mediationNetwork;
    }

    public String a() {
        return this.f43a;
    }

    private void a(Context context) {
        setOption("bundle_id", u0.d(context));
    }
}