Cyber Surfer v5.2.5版本的 MD5 值为:db13c5fce988de393e52d2679f934b22
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.ui.b;
import android.content.Context;
import android.text.TextUtils;
import com.applovin.communicator.AppLovinCommunicator;
import com.applovin.communicator.AppLovinCommunicatorMessage;
import com.applovin.communicator.AppLovinCommunicatorSubscriber;
import com.applovin.impl.mediation.debugger.a;
import com.applovin.impl.mediation.debugger.b.c.b;
import com.applovin.impl.mediation.debugger.ui.d.c;
import com.applovin.impl.privacy.a.d;
import com.applovin.impl.sdk.f;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.g;
import com.applovin.impl.sdk.utils.u;
import com.applovin.impl.sdk.x;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkConfiguration;
import com.applovin.sdk.AppLovinSdkUtils;
import com.applovin.sdk.R;
import com.safedk.android.analytics.brandsafety.creatives.discoveries.h;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import kotlin.UByte$$ExternalSyntheticBackport0;
public class b extends com.applovin.impl.mediation.debugger.ui.d.d implements AppLovinCommunicatorSubscriber, a.InterfaceC0069a {
private final AtomicBoolean akD;
private String apI;
private List<com.applovin.impl.mediation.debugger.b.a.a> aqN;
private List<com.applovin.impl.mediation.debugger.b.a.a> aqO;
private List<com.applovin.impl.mediation.debugger.b.b.b> aqP;
private String aqQ;
private String aqR;
private Boolean aqS;
private boolean aqT;
private final StringBuilder aqU;
private boolean aqV;
private List<com.applovin.impl.mediation.debugger.b.c.b> aqW;
private List<com.applovin.impl.mediation.debugger.b.c.b> aqX;
private List<com.applovin.impl.mediation.debugger.b.c.b> aqY;
private List<com.applovin.impl.mediation.debugger.b.a.c> aqZ;
private List<com.applovin.impl.mediation.debugger.b.a.c> ara;
private List<com.applovin.impl.mediation.debugger.b.c.b> arb;
private List<com.applovin.impl.mediation.debugger.ui.d.c> arc;
private List<com.applovin.impl.mediation.debugger.ui.d.c> ard;
private List<com.applovin.impl.mediation.debugger.ui.d.c> are;
private List<com.applovin.impl.mediation.debugger.ui.d.c> arf;
private List<com.applovin.impl.mediation.debugger.ui.d.c> arg;
private List<com.applovin.impl.mediation.debugger.ui.d.c> arh;
private List<com.applovin.impl.mediation.debugger.ui.d.c> ari;
private n sdk;
public static class AnonymousClass1 {
static final int[] arj;
static {
int[] iArr = new int[a.b.values().length];
arj = iArr;
try {
iArr[a.b.DEVELOPER_URI_NOT_FOUND.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
arj[a.b.APPADSTXT_NOT_FOUND.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
arj[a.b.MISSING_APPLOVIN_ENTRIES.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
arj[a.b.MISSING_NON_APPLOVIN_ENTRIES.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
}
}
public enum a {
AD_UNITS,
SELECT_LIVE_NETWORKS,
SELECT_TEST_MODE_NETWORKS,
INITIALIZATION_AD_UNITS,
COUNT
}
public enum EnumC0075b {
SUCCESS,
WARNING,
ERROR
}
public enum c {
SDK_VERSION,
PLUGIN_VERSION,
AD_REVIEW_VERSION,
CONSENT_FLOW_TYPE,
GOOGLE_UMP_SDK,
PRIVACY_POLICY_URL,
TERMS_OF_SERVICE_URL,
APP_ADS_TXT
}
public enum d {
CMP,
NETWORK_CONSENT_STATUSES,
IS_AGE_RESTRICTED_USER,
DO_NOT_SELL,
COUNT
}
public enum e {
APP_INFO,
MAX,
PRIVACY,
ADS,
INCOMPLETE_NETWORKS,
COMPLETED_NETWORKS,
MISSING_NETWORKS,
COUNT
}
public b(Context context) {
super(context);
this.aqU = new StringBuilder("");
this.akD = new AtomicBoolean();
this.aqV = false;
this.aqW = new ArrayList();
this.aqX = new ArrayList();
this.aqY = new ArrayList();
this.aqZ = new ArrayList();
this.ara = new ArrayList();
this.arb = new ArrayList();
this.arc = new ArrayList();
this.ard = new ArrayList();
this.are = new ArrayList();
this.arf = new ArrayList();
this.arg = new ArrayList();
this.arh = new ArrayList();
this.ari = new ArrayList();
}
private com.applovin.impl.mediation.debugger.ui.d.c a(String str, EnumC0075b enumC0075b) {
int i;
int a2;
if (enumC0075b == EnumC0075b.SUCCESS) {
i = R.drawable.applovin_ic_check_mark_bordered;
a2 = g.a(R.color.applovin_sdk_checkmarkColor, this.E);
} else if (enumC0075b == EnumC0075b.WARNING) {
i = R.drawable.applovin_ic_warning;
a2 = g.a(R.color.applovin_sdk_warningColor, this.E);
} else {
i = R.drawable.applovin_ic_x_mark;
a2 = g.a(R.color.applovin_sdk_xmarkColor, this.E);
}
return com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("app-ads.txt").gk(i).gn(a2).bQ("app-ads.txt").bR(str).aF(true).wW();
}
private String a(a.b bVar, String str, String str2) {
if (TextUtils.isEmpty(str)) {
str = "app-ads.txt URL";
}
int i = AnonymousClass1.arj[bVar.ordinal()];
if (i != 1) {
if (i == 2) {
return "Unable to find app-ads.txt file or parse entries of the file at " + str + ".\n\nFor more information, please visit Account -> App-Ads.txt Info at:\nhttps://dash.applovin.com/o/account?r=2#app_ads_txt";
} else if (i != 3) {
if (i != 4) {
return "";
}
return "Text file at " + str + " is missing some of the suggested lines.\n\nFor more information, please visit Account -> App-Ads.txt Info at:\nhttps://dash.applovin.com/o/account?r=2#app_ads_txt";
} else {
return "Text file at " + str + " is missing the required AppLovin line:\n\n" + str2 + "\n\nFor more information, please visit Account -> App-Ads.txt Info at:\nhttps://dash.applovin.com/o/account?r=2#app_ads_txt";
}
}
return "Could not retrieve developer website from the Play Store for this package name. Check back once this app has been published on the Play Store.";
}
private void a(c.a aVar, String str) {
aVar.bQ("MAX Ad Review").bR(str).gk(R.drawable.applovin_ic_x_mark).gn(g.a(R.color.applovin_sdk_xmarkColor, this.E)).aF(true);
}
private void a(StringBuilder sb, String str) {
String sb2 = sb.toString();
if (sb2.length() + str.length() >= ((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aKu)).intValue()) {
x.D("MediationDebuggerListAdapter", sb2);
this.aqU.append(sb2);
sb.setLength(1);
}
sb.append(str);
}
private com.applovin.impl.mediation.debugger.ui.d.c aA(boolean z) {
return com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Java 8").gk(z ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).gn(g.a(z ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.E)).bQ("Upgrade to Java 8").bR("For optimal performance, please enable Java 8 support. This will be required in a future SDK release. See: https://dash.applovin.com/documentation/mediation/android/getting-started/integration").aF(!z).wW();
}
private EnumC0075b b(a.b bVar) {
int i = AnonymousClass1.arj[bVar.ordinal()];
return (i == 1 || i == 2 || i == 3) ? EnumC0075b.ERROR : i != 4 ? EnumC0075b.ERROR : EnumC0075b.WARNING;
}
private String b(List<String> list, boolean z) {
if (list == null || list.isEmpty()) {
return null;
}
if (z) {
for (com.applovin.impl.mediation.debugger.b.a.c cVar : this.aqZ) {
if (list.equals(cVar.uO())) {
return cVar.getDisplayName();
}
}
for (com.applovin.impl.mediation.debugger.b.a.c cVar2 : this.ara) {
if (list.equals(cVar2.uO())) {
return cVar2.getDisplayName();
}
}
} else {
for (com.applovin.impl.mediation.debugger.b.c.b bVar : this.arb) {
if (list.equals(Collections.singletonList(bVar.getName()))) {
return bVar.getDisplayName();
}
}
}
return UByte$$ExternalSyntheticBackport0.m(",", list);
}
private com.applovin.impl.mediation.debugger.ui.d.c bM(String str) {
c.a wV = com.applovin.impl.mediation.debugger.ui.d.c.wV();
if (!this.sdk.CC().isEnabled()) {
wV.y(this.E);
}
c.a bO = wV.bO((StringUtils.isValidString(str) ? "" : "Select ").concat("Live Network"));
if (this.sdk.CC().isEnabled()) {
str = "Enable";
}
return bO.bP(str).gm(-16776961).bR("Ad loads are not supported while Test Mode is enabled. Please restart the app and make sure your GAID has not been enabled for test mode and that you are not on an emulator.").aF(true).wW();
}
private com.applovin.impl.mediation.debugger.ui.d.c bN(String str) {
c.a wV = com.applovin.impl.mediation.debugger.ui.d.c.wV();
if (this.sdk.CC().isEnabled()) {
wV.y(this.E);
}
c.a bO = wV.bO((StringUtils.isValidString(str) ? "" : "Select ").concat("Test Mode Network"));
if (!this.sdk.CC().isEnabled()) {
str = "Enable";
}
return bO.bP(str).gm(-16776961).bR("Please re-launch the app to enable test mode. This will allow the selection of test mode networks.").aF(true).wW();
}
private void t(List<com.applovin.impl.mediation.debugger.b.c.b> list) {
for (com.applovin.impl.mediation.debugger.b.c.b bVar : list) {
if (!bVar.vr()) {
if (bVar.vl() == b.a.INCOMPLETE_INTEGRATION || bVar.vl() == b.a.INVALID_INTEGRATION) {
this.aqW.add(bVar);
} else if (bVar.vl() == b.a.COMPLETE) {
this.aqX.add(bVar);
} else if (bVar.vl() == b.a.MISSING) {
this.aqY.add(bVar);
}
}
}
}
private void u(List<com.applovin.impl.mediation.debugger.b.a.a> list) {
HashSet hashSet = new HashSet();
HashSet hashSet2 = new HashSet();
for (com.applovin.impl.mediation.debugger.b.a.a aVar : list) {
com.applovin.impl.mediation.debugger.b.a.b uG = aVar.uG();
for (com.applovin.impl.mediation.debugger.b.a.e eVar : uG.uL()) {
hashSet.add(eVar.uR());
}
for (com.applovin.impl.mediation.debugger.b.a.e eVar2 : uG.uM()) {
hashSet2.add(eVar2.uR());
}
}
this.aqZ = new ArrayList(hashSet);
this.ara = new ArrayList(hashSet2);
Collections.sort(this.aqZ);
Collections.sort(this.ara);
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> v(String str, String str2) {
ArrayList arrayList = new ArrayList(3);
c.a wV = com.applovin.impl.mediation.debugger.ui.d.c.wV();
arrayList.add(wV.bO("View Ad Units (" + this.aqN.size() + ")").y(this.E).aF(true).wW());
arrayList.add(bM(str));
arrayList.add(bN(str2));
if (!this.aqO.isEmpty()) {
c.a wV2 = com.applovin.impl.mediation.debugger.ui.d.c.wV();
arrayList.add(wV2.bO("Selective Init Ad Units (" + this.aqO.size() + ")").y(this.E).aF(true).wW());
}
return arrayList;
}
private void v(List<com.applovin.impl.mediation.debugger.b.c.b> list) {
for (com.applovin.impl.mediation.debugger.b.c.b bVar : list) {
if (bVar.vn() == b.EnumC0071b.READY) {
this.arb.add(bVar);
}
}
}
private com.applovin.impl.mediation.debugger.ui.d.c w(String str, String str2) {
c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO(str);
if (StringUtils.isValidString(str2)) {
bO.bP(str2);
} else {
bO.gk(R.drawable.applovin_ic_x_mark);
bO.gn(g.a(R.color.applovin_sdk_xmarkColor, this.E));
}
return bO.wW();
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> w(List<com.applovin.impl.mediation.debugger.b.c.b> list) {
ArrayList arrayList = new ArrayList(list.size());
for (com.applovin.impl.mediation.debugger.b.c.b bVar : list) {
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.a(bVar, this.E));
}
return arrayList;
}
private void wo() {
Map<String, String> a2;
StringBuilder sb = new StringBuilder("\n========== MEDIATION DEBUGGER ==========");
sb.append("\n========== APP INFO ==========");
sb.append("\nDev Build - " + u.b(this.E, this.sdk));
sb.append("\nTest Mode - ".concat(this.sdk.CC().isEnabled() ? "enabled" : "disabled"));
if (this.sdk.BT() != null) {
sb.append("\nTarget SDK - " + this.sdk.BS().Eg().Ep());
} else {
sb.append("\nTarget SDK - " + this.sdk.BQ().CY().get("target_sdk"));
}
sb.append("\n========== MAX ==========");
String str = AppLovinSdk.VERSION;
String str2 = (String) this.sdk.a(com.applovin.impl.sdk.c.b.aOy);
String version = f.getVersion();
sb.append("\nSDK Version - " + str);
StringBuilder sb2 = new StringBuilder("\nPlugin Version - ");
if (!StringUtils.isValidString(str2)) {
str2 = "None";
}
sb2.append(str2);
sb.append(sb2.toString());
StringBuilder sb3 = new StringBuilder("\nAd Review Version - ");
if (!StringUtils.isValidString(version)) {
version = "Disabled";
}
sb3.append(version);
sb.append(sb3.toString());
if (this.sdk.Bq() && (a2 = u.a(this.sdk.getSettings())) != null) {
String str3 = a2.get("UnityVersion");
StringBuilder sb4 = new StringBuilder("\nUnity Version - ");
sb4.append(StringUtils.isValidString(str3) ? str3 : "None");
sb.append(sb4.toString());
}
sb.append("\n========== PRIVACY ==========");
sb.append(com.applovin.impl.privacy.a.A(this.E));
sb.append(this.sdk.Cj().uI());
sb.append("\n========== CMP (CONSENT MANAGEMENT PLATFORM) ==========");
sb.append(this.sdk.Ck().uI());
sb.append("\n========== NETWORK CONSENT STATUSES ==========");
for (com.applovin.impl.privacy.b.c cVar : this.sdk.Ck().As()) {
sb.append(cVar.uI());
}
sb.append("\n========== NETWORKS ==========");
for (com.applovin.impl.mediation.debugger.b.c.b bVar : this.aqX) {
a(sb, bVar.vI());
}
for (com.applovin.impl.mediation.debugger.b.c.b bVar2 : this.aqW) {
a(sb, bVar2.vI());
}
sb.append("\n========== AD UNITS ==========");
for (com.applovin.impl.mediation.debugger.b.a.a aVar : this.aqN) {
a(sb, aVar.uI());
}
sb.append("\n========== END ==========");
x.D("MediationDebuggerListAdapter", sb.toString());
this.aqU.append(sb.toString());
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> wp() {
String str;
ArrayList arrayList = new ArrayList(7);
try {
str = this.E.getPackageManager().getPackageInfo(this.E.getPackageName(), 0).versionName;
} catch (Throwable unused) {
str = null;
}
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Package Name").bP(this.E.getPackageName()).wW());
c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("App Version");
if (!StringUtils.isValidString(str)) {
str = "None";
}
arrayList.add(bO.bP(str).wW());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("OS").bP(u.Lz()).wW());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Account").bP(StringUtils.isValidString(this.aqR) ? this.aqR : "None").wW());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Mediation Provider").bP(StringUtils.isValidString(this.sdk.getMediationProvider()) ? this.sdk.getMediationProvider() : "None").wW());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("OM SDK Version").bP(this.sdk.Cn().getSdkVersion()).wW());
arrayList.add(aA(n.CF()));
if (this.aqS != null) {
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Google Families Policy").bP(String.valueOf(this.aqS)).wW());
}
return arrayList;
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> wq() {
Map<String, String> a2;
ArrayList arrayList = new ArrayList(7);
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("SDK Version").bP(AppLovinSdk.VERSION).wW());
String str = (String) this.sdk.a(com.applovin.impl.sdk.c.b.aOy);
c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Plugin Version");
if (!StringUtils.isValidString(str)) {
str = "None";
}
arrayList.add(bO.bP(str).wW());
c.a bO2 = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Ad Review Version");
String version = f.getVersion();
if (StringUtils.isValidString(version)) {
String sdkKey = f.getSdkKey();
if (!StringUtils.isValidString(sdkKey)) {
bO2.bP(version);
} else if (sdkKey.equals(this.sdk.getSdkKey())) {
bO2.bP(version);
} else {
StringBuilder sb = new StringBuilder("MAX Ad Review integrated with wrong SDK key. Please check that your ");
sb.append(this.sdk.Bq() ? "SDK key is downloaded" : "Gradle plugin snippet is integrated");
sb.append(" from the correct account.");
a(bO2, sb.toString());
}
} else {
a(bO2, "Integrating MAX Ad review is OPTIONAL. This feature gives developers unprecedented transparency into the creatives the users see in their apps.");
}
arrayList.add(bO2.wW());
if (this.sdk.Bq() && (a2 = u.a(this.sdk.getSettings())) != null) {
String str2 = a2.get("UnityVersion");
arrayList.add(w("Unity Version", StringUtils.isValidString(str2) ? str2 : "None"));
}
if (this.sdk.Cj().isEnabled()) {
arrayList.add(wt());
if (this.sdk.Cj().zV() == d.a.UNIFIED) {
arrayList.add(wu());
}
arrayList.add(wv());
arrayList.add(ww());
}
return arrayList;
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> wr() {
ArrayList arrayList = new ArrayList(d.COUNT.ordinal());
arrayList.add(wx());
if (StringUtils.isValidString(this.sdk.Ck().Aq())) {
arrayList.add(wy());
} else {
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.privacy.a.zN(), false, this.E));
}
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.privacy.a.zM(), true, this.E));
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.privacy.a.zO(), true, this.E));
return arrayList;
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> ws() {
boolean isEnabled = this.sdk.CC().isEnabled();
List<String> xj = this.sdk.CC().xj();
return isEnabled ? v(null, b(xj, false)) : v(b(xj, true), null);
}
private com.applovin.impl.mediation.debugger.ui.d.c wt() {
boolean z = this.sdk.Cj().zV() == d.a.TERMS;
return com.applovin.impl.mediation.debugger.ui.d.c.a(c.b.DETAIL).bO("Flow Type").bP(z ? "MAX Terms Flow" : "MAX Terms and Privacy Policy Flow").gk(z ? R.drawable.applovin_ic_x_mark : R.drawable.applovin_ic_check_mark_bordered).gn(g.a(z ? R.color.applovin_sdk_xmarkColor : R.color.applovin_sdk_checkmarkColor, this.E)).bQ("MAX Terms Flow").bR("MAX Terms Flow is deprecated and will be removed in a future SDK version. For more details, see:\nhttps://dash.applovin.com/documentation/mediation/android/getting-started/terms-and-privacy-policy-flow").aF(z).wW();
}
private com.applovin.impl.mediation.debugger.ui.d.c wu() {
boolean hasSupportedCmp = this.sdk.Cl().hasSupportedCmp();
return com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Google UMP SDK").gk(hasSupportedCmp ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).gn(g.a(hasSupportedCmp ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.E)).bQ("Google UMP SDK").bR("In order to use MAX Terms and Privacy Policy Flow, you must add the Google User Messaging Platform SDK as a dependency. For more details, see:\nhttps://dash.applovin.com/documentation/mediation/android/getting-started/terms-and-privacy-policy-flow\"").aF(!hasSupportedCmp).wW();
}
private com.applovin.impl.mediation.debugger.ui.d.c wv() {
boolean z = this.sdk.Cj().getPrivacyPolicyUri() != null;
return com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Privacy Policy URL").gk(z ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).gn(g.a(z ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.E)).aF(true).wW();
}
private com.applovin.impl.mediation.debugger.ui.d.c ww() {
c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Terms of Service URL");
if (this.sdk.Cj().getTermsOfServiceUri() != null) {
bO.gk(R.drawable.applovin_ic_check_mark_bordered);
bO.gn(g.a(R.color.applovin_sdk_checkmarkColor, this.E));
bO.aF(true);
} else {
bO.bP("None");
bO.aF(false);
}
return bO.wW();
}
private com.applovin.impl.mediation.debugger.ui.d.c wx() {
String Ak = this.sdk.Ck().Ak();
boolean isValidString = StringUtils.isValidString(Ak);
c.a a2 = com.applovin.impl.mediation.debugger.ui.d.c.a(c.b.DETAIL);
a2.bO("CMP (Consent Management Platform)");
if (!isValidString) {
Ak = "None";
}
a2.bP(Ak);
if (this.aqT) {
a2.aF(true);
if (isValidString) {
a2.y(this.E);
} else {
Integer An = this.sdk.Ck().An();
String str = "SharedPreferences value for key IABTCF_CmpSdkID is " + An + ".";
if (An == null || An.intValue() == 0) {
a2.bR("No CMP found. " + str + "\n\nBy January 16, 2024, if you use Google AdMob or Google Ad Manager, you must also use a Google-certified CMP. Test your app in EEA and UK regions to ensure that this warning doesn't appear in those regions.\n\nFor more details, see:\nhttps://support.google.com/admob/answer/13554116");
boolean z = this.sdk.getConfiguration().getConsentFlowUserGeography() == AppLovinSdkConfiguration.ConsentFlowUserGeography.GDPR;
a2.gk(z ? R.drawable.applovin_ic_x_mark : R.drawable.applovin_ic_warning);
a2.gn(g.a(z ? R.color.applovin_sdk_xmarkColor : R.color.applovin_sdk_warningColor, this.E));
} else {
a2.bR("Your integrated CMP might not be Google-certified. " + str + "\n\nBy January 16, 2024, if you use Google AdMob or Google Ad Manager, you must also use a Google-certified CMP. Test your app in EEA and UK regions to ensure that this warning doesn't appear in those regions.\n\nFor more details, see:\nhttps://support.google.com/admob/answer/13554116");
a2.gk(R.drawable.applovin_ic_warning);
a2.gn(g.a(R.color.applovin_sdk_warningColor, this.E));
}
}
}
return a2.wW();
}
private com.applovin.impl.mediation.debugger.ui.d.c wy() {
return com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Network Consent Statuses").y(this.E).aF(true).wW();
}
@Override
public void a(com.applovin.impl.mediation.debugger.b.b.a aVar, String str) {
com.applovin.impl.mediation.debugger.b.b.b bVar;
String a2;
EnumC0075b b2;
ArrayList arrayList = new ArrayList();
for (com.applovin.impl.mediation.debugger.b.b.b bVar2 : this.aqP) {
List<com.applovin.impl.mediation.debugger.b.b.b> list = aVar.va().get(bVar2.vd());
if (list == null || !list.contains(bVar2)) {
this.sdk.BL();
if (x.Fk()) {
this.sdk.BL().i("MediationDebuggerListAdapter", str + " is missing a required entry: " + bVar2.vg());
}
arrayList.add(bVar2);
}
}
if (arrayList.isEmpty()) {
a2 = "All required entries found at " + str + ".";
b2 = EnumC0075b.SUCCESS;
} else {
Iterator it = arrayList.iterator();
while (true) {
if (!it.hasNext()) {
bVar = null;
break;
}
bVar = (com.applovin.impl.mediation.debugger.b.b.b) it.next();
if (bVar.vc()) {
break;
}
}
if (bVar != null) {
a2 = a(a.b.MISSING_APPLOVIN_ENTRIES, str, bVar.vg());
b2 = b(a.b.MISSING_APPLOVIN_ENTRIES);
} else {
a2 = a(a.b.MISSING_NON_APPLOVIN_ENTRIES, str, null);
b2 = b(a.b.MISSING_NON_APPLOVIN_ENTRIES);
}
}
this.ard.add(a(a2, b2));
wY();
}
public void a(List<com.applovin.impl.mediation.debugger.b.c.b> list, List<com.applovin.impl.mediation.debugger.b.a.a> list2, List<com.applovin.impl.mediation.debugger.b.a.a> list3, List<com.applovin.impl.mediation.debugger.b.b.b> list4, String str, String str2, String str3, Boolean bool, boolean z, n nVar) {
this.sdk = nVar;
this.aqN = list2;
this.aqO = list3;
this.aqP = list4;
this.aqQ = str;
this.apI = str2;
this.aqR = str3;
this.aqS = bool;
this.aqT = z;
if (list != null && this.akD.compareAndSet(false, true)) {
nVar.BL();
if (x.Fk()) {
nVar.BL().f("MediationDebuggerListAdapter", "Populating networks...");
}
nVar.Ck().F(list);
t(list);
u(list2);
v(this.aqX);
this.arc.addAll(wp());
this.ard.addAll(wq());
this.are.addAll(wr());
this.arf.addAll(ws());
this.arg = w(this.aqW);
this.arh = w(this.aqX);
this.ari = w(this.aqY);
ArrayList arrayList = new ArrayList(3);
arrayList.add("privacy_setting_updated");
arrayList.add("network_sdk_version_updated");
arrayList.add("live_networks_updated");
arrayList.add("test_mode_networks_updated");
AppLovinCommunicator.getInstance(this.E).subscribe(this, arrayList);
wo();
}
AppLovinSdkUtils.runOnUiThread(new Runnable() {
@Override
public final void run() {
b.this.notifyDataSetChanged();
}
});
}
public void az(boolean z) {
this.aqV = z;
}
@Override
public void b(a.b bVar, String str) {
if (bVar != a.b.DEVELOPER_URI_NOT_FOUND) {
this.ard.add(a(a(bVar, str, null), b(bVar)));
wY();
return;
}
this.sdk.BL();
if (x.Fk()) {
this.sdk.BL().f("MediationDebuggerListAdapter", "Developer URI was not found; app-ads.txt row will not show on the mediation debugger");
}
}
@Override
public String getCommunicatorId() {
return "MediationDebuggerListAdapter";
}
public n getSdk() {
return this.sdk;
}
@Override
protected int gg(int i) {
return i == e.APP_INFO.ordinal() ? this.arc.size() : i == e.MAX.ordinal() ? this.ard.size() : i == e.PRIVACY.ordinal() ? this.are.size() : i == e.ADS.ordinal() ? this.arf.size() : i == e.INCOMPLETE_NETWORKS.ordinal() ? this.arg.size() : i == e.COMPLETED_NETWORKS.ordinal() ? this.arh.size() : this.ari.size();
}
@Override
protected com.applovin.impl.mediation.debugger.ui.d.c gh(int i) {
return i == e.APP_INFO.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("APP INFO") : i == e.MAX.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("MAX") : i == e.PRIVACY.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("PRIVACY") : i == e.ADS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("ADS") : i == e.INCOMPLETE_NETWORKS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("INCOMPLETE SDK INTEGRATIONS") : i == e.COMPLETED_NETWORKS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("COMPLETED SDK INTEGRATIONS") : new com.applovin.impl.mediation.debugger.ui.d.e("MISSING SDK INTEGRATIONS");
}
@Override
protected List<com.applovin.impl.mediation.debugger.ui.d.c> gi(int i) {
return i == e.APP_INFO.ordinal() ? this.arc : i == e.MAX.ordinal() ? this.ard : i == e.PRIVACY.ordinal() ? this.are : i == e.ADS.ordinal() ? this.arf : i == e.INCOMPLETE_NETWORKS.ordinal() ? this.arg : i == e.COMPLETED_NETWORKS.ordinal() ? this.arh : this.ari;
}
public boolean isInitialized() {
return this.akD.get();
}
@Override
public void onMessageReceived(AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
if ("privacy_setting_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.are = wr();
wY();
} else if ("network_sdk_version_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.arg = w(this.aqW);
this.arh = w(this.aqX);
wY();
} else if ("live_networks_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.arf = v(b((List<String>) appLovinCommunicatorMessage.getMessageData().getStringArrayList("live_networks"), true), null);
wY();
} else if ("test_mode_networks_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.arf = v(null, b((List<String>) appLovinCommunicatorMessage.getMessageData().getStringArrayList("test_mode_networks"), false));
wY();
}
}
@Override
protected int tM() {
return e.COUNT.ordinal();
}
public String toString() {
return "MediationDebuggerListAdapter{isInitialized=" + this.akD.get() + h.A;
}
public String vP() {
return this.apI;
}
public boolean wg() {
return this.aqV;
}
public List<com.applovin.impl.mediation.debugger.b.a.a> wh() {
return this.aqN;
}
public List<com.applovin.impl.mediation.debugger.b.a.a> wi() {
return this.aqO;
}
public String wj() {
return this.aqQ;
}
public List<com.applovin.impl.mediation.debugger.b.a.c> wk() {
return this.aqZ;
}
public List<com.applovin.impl.mediation.debugger.b.a.c> wl() {
return this.ara;
}
public List<com.applovin.impl.mediation.debugger.b.c.b> wm() {
return this.arb;
}
public String wn() {
return this.aqU.toString();
}
}