Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 AdColonyAppOptions.java 源代码,内容仅作参考
package com.adcolony.sdk;
import android.content.Context;
import android.util.Log;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import com.adjust.sdk.Constants;
import com.my.target.common.NavigationType;
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 a = "";
private f1 f27b = new f1();
private AdColonyUserMetadata c;
public AdColonyAppOptions() {
setOriginStore(Constants.REFERRER_API_GOOGLE);
}
public static AdColonyAppOptions getMoPubAppOptions(@NonNull String str) {
AdColonyAppOptions mediationNetwork = new AdColonyAppOptions().setMediationNetwork("MoPub", "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(NavigationType.STORE)) {
mediationNetwork.setOriginStore(split[1]);
} else if (!str3.equals(MediationMetaData.KEY_VERSION)) {
Log.e("AdColonyMoPub", "AdColony client options in wrong format - please check your MoPub dashboard");
return mediationNetwork;
} else {
mediationNetwork.setAppVersion(split[1]);
}
} else {
Log.e("AdColonyMoPub", "AdColony client options not recognized - please check your MoPub dashboard");
return null;
}
}
}
return mediationNetwork;
}
public AdColonyAppOptions a(String str) {
if (str == null) {
return this;
}
this.a = str;
c0.a(this.f27b, "app_id", str);
return this;
}
public f1 b() {
return this.f27b;
}
public int getAppOrientation() {
return c0.a(this.f27b, "app_orientation", -1);
}
public String getAppVersion() {
return c0.h(this.f27b, "app_version");
}
@Deprecated
public String getGDPRConsentString() {
return c0.h(this.f27b, "consent_string");
}
@Deprecated
public boolean getGDPRRequired() {
return c0.b(this.f27b, "gdpr_required");
}
public boolean getIsChildDirectedApp() {
return c0.b(this.f27b, "is_child_directed");
}
public boolean getKeepScreenOn() {
return c0.b(this.f27b, "keep_screen_on");
}
public JSONObject getMediationInfo() {
f1 b2 = c0.b();
c0.a(b2, "name", c0.h(this.f27b, "mediation_network"));
c0.a(b2, MediationMetaData.KEY_VERSION, c0.h(this.f27b, "mediation_network_version"));
return b2.a();
}
public boolean getMultiWindowEnabled() {
return c0.b(this.f27b, "multi_window_enabled");
}
public Object getOption(@NonNull String str) {
return c0.g(this.f27b, str);
}
public String getOriginStore() {
return c0.h(this.f27b, "origin_store");
}
public JSONObject getPluginInfo() {
f1 b2 = c0.b();
c0.a(b2, "name", c0.h(this.f27b, "plugin"));
c0.a(b2, MediationMetaData.KEY_VERSION, c0.h(this.f27b, "plugin_version"));
return b2.a();
}
public String getPrivacyConsentString(@NonNull String str) {
f1 f1Var = this.f27b;
return c0.h(f1Var, str.toLowerCase(Locale.ENGLISH) + "_consent_string");
}
public boolean getPrivacyFrameworkRequired(@NonNull String str) {
f1 f1Var = this.f27b;
return c0.b(f1Var, str.toLowerCase(Locale.ENGLISH) + "_required");
}
@Deprecated
public int getRequestedAdOrientation() {
return c0.a(this.f27b, AdUnitActivity.EXTRA_ORIENTATION, -1);
}
public boolean getTestModeEnabled() {
return c0.b(this.f27b, "test_mode");
}
public String getUserID() {
return c0.h(this.f27b, "user_id");
}
@Deprecated
public AdColonyUserMetadata getUserMetadata() {
return this.c;
}
public boolean isPrivacyFrameworkRequiredSet(@NonNull String str) {
f1 f1Var = this.f27b;
return f1Var.a(str.toLowerCase(Locale.ENGLISH) + "_required");
}
public AdColonyAppOptions setAppOrientation(@IntRange(from = 0, to = 2) int i) {
setOption("app_orientation", i);
return this;
}
public AdColonyAppOptions setAppVersion(@NonNull String str) {
setOption("app_version", str);
return this;
}
@Deprecated
public AdColonyAppOptions setGDPRConsentString(@NonNull String str) {
c0.a(this.f27b, "consent_string", str);
return this;
}
@Deprecated
public AdColonyAppOptions setGDPRRequired(boolean z) {
setOption("gdpr_required", z);
return this;
}
public AdColonyAppOptions setIsChildDirectedApp(boolean z) {
setOption("is_child_directed", z);
return this;
}
public AdColonyAppOptions setKeepScreenOn(boolean z) {
c0.b(this.f27b, "keep_screen_on", z);
return this;
}
public AdColonyAppOptions setMediationNetwork(@NonNull String str, @NonNull String str2) {
c0.a(this.f27b, "mediation_network", str);
c0.a(this.f27b, "mediation_network_version", str2);
return this;
}
public AdColonyAppOptions setMultiWindowEnabled(boolean z) {
c0.b(this.f27b, "multi_window_enabled", z);
return this;
}
public AdColonyAppOptions setOption(@NonNull String str, boolean z) {
c0.b(this.f27b, str, z);
return this;
}
public AdColonyAppOptions setOriginStore(@NonNull String str) {
setOption("origin_store", str);
return this;
}
public AdColonyAppOptions setPlugin(@NonNull String str, @NonNull String str2) {
c0.a(this.f27b, "plugin", str);
c0.a(this.f27b, "plugin_version", str2);
return this;
}
public AdColonyAppOptions setPrivacyConsentString(@NonNull String str, @NonNull String str2) {
f1 f1Var = this.f27b;
c0.a(f1Var, str.toLowerCase(Locale.ENGLISH) + "_consent_string", str2);
return this;
}
public AdColonyAppOptions setPrivacyFrameworkRequired(@NonNull String str, boolean z) {
setOption(str.toLowerCase(Locale.ENGLISH) + "_required", z);
return this;
}
@Deprecated
public AdColonyAppOptions setRequestedAdOrientation(@IntRange(from = 0, to = 2) int i) {
setOption(AdUnitActivity.EXTRA_ORIENTATION, i);
return this;
}
public AdColonyAppOptions setTestModeEnabled(boolean z) {
c0.b(this.f27b, "test_mode", z);
return this;
}
public AdColonyAppOptions setUserID(@NonNull String str) {
setOption("user_id", str);
return this;
}
@Deprecated
public AdColonyAppOptions setUserMetadata(@NonNull AdColonyUserMetadata adColonyUserMetadata) {
this.c = adColonyUserMetadata;
c0.a(this.f27b, "user_metadata", adColonyUserMetadata.f36b);
return this;
}
public void b(@NonNull Context context) {
a(context);
Boolean g = this.f27b.g("use_forced_controller");
if (g != null) {
l.H = g.booleanValue();
}
if (this.f27b.f("use_staging_launch_server")) {
k.Z = "https://adc3-launch-staging.adcolony.com/v4/launch";
}
String b2 = z0.b(context, "IABUSPrivacy_String");
String b3 = z0.b(context, "IABTCF_TCString");
int a = z0.a(context, "IABTCF_gdprApplies");
if (b2 != null) {
c0.a(this.f27b, "ccpa_consent_string", b2);
}
if (b3 != null) {
c0.a(this.f27b, "gdpr_consent_string", b3);
}
if (a == 0 || a == 1) {
c0.b(this.f27b, "gdpr_required", a == 1);
}
}
public AdColonyAppOptions setOption(@NonNull String str, double d) {
c0.a(this.f27b, str, d);
return this;
}
public String a() {
return this.a;
}
public AdColonyAppOptions setOption(@NonNull String str, @NonNull String str2) {
c0.a(this.f27b, str, str2);
return this;
}
private void a(@NonNull Context context) {
setOption("bundle_id", z0.d(context));
}
}