Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 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 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 r7.k;
public class b extends com.applovin.impl.mediation.debugger.ui.d.d implements AppLovinCommunicatorSubscriber, a.InterfaceC0175a {
private final AtomicBoolean akD;
private String apL;
private List<com.applovin.impl.mediation.debugger.b.a.a> aqQ;
private List<com.applovin.impl.mediation.debugger.b.a.a> aqR;
private List<com.applovin.impl.mediation.debugger.b.b.b> aqS;
private String aqT;
private String aqU;
private Boolean aqV;
private boolean aqW;
private final StringBuilder aqX;
private boolean aqY;
private List<com.applovin.impl.mediation.debugger.b.c.b> aqZ;
private List<com.applovin.impl.mediation.debugger.b.c.b> ara;
private List<com.applovin.impl.mediation.debugger.b.c.b> arb;
private List<com.applovin.impl.mediation.debugger.b.a.c> arc;
private List<com.applovin.impl.mediation.debugger.b.a.c> ard;
private List<com.applovin.impl.mediation.debugger.b.c.b> 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 List<com.applovin.impl.mediation.debugger.ui.d.c> arj;
private List<com.applovin.impl.mediation.debugger.ui.d.c> ark;
private List<com.applovin.impl.mediation.debugger.ui.d.c> arl;
private n sdk;
public static class AnonymousClass1 {
static final int[] arm;
static {
int[] iArr = new int[a.b.values().length];
arm = iArr;
try {
iArr[a.b.DEVELOPER_URI_NOT_FOUND.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
arm[a.b.APPADSTXT_NOT_FOUND.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
arm[a.b.MISSING_APPLOVIN_ENTRIES.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
arm[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 EnumC0181b {
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.aqX = new StringBuilder("");
this.akD = new AtomicBoolean();
this.aqY = false;
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();
this.arj = new ArrayList();
this.ark = new ArrayList();
this.arl = new ArrayList();
}
private com.applovin.impl.mediation.debugger.ui.d.c a(String str, EnumC0181b enumC0181b) {
int i10;
int a10;
if (enumC0181b == EnumC0181b.SUCCESS) {
i10 = R.drawable.applovin_ic_check_mark_bordered;
a10 = g.a(R.color.applovin_sdk_checkmarkColor, this.E);
} else if (enumC0181b == EnumC0181b.WARNING) {
i10 = R.drawable.applovin_ic_warning;
a10 = g.a(R.color.applovin_sdk_warningColor, this.E);
} else {
i10 = R.drawable.applovin_ic_x_mark;
a10 = g.a(R.color.applovin_sdk_xmarkColor, this.E);
}
return com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("app-ads.txt").gk(i10).gn(a10).bQ("app-ads.txt").bR(str).aF(true).wX();
}
private String a(a.b bVar, String str, String str2) {
if (TextUtils.isEmpty(str)) {
str = "app-ads.txt URL";
}
int i10 = AnonymousClass1.arm[bVar.ordinal()];
return i10 != 1 ? i10 != 2 ? i10 != 3 ? i10 != 4 ? "" : ag.g.j("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") : ag.d.l("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") : ag.g.j("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") : "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 sb2, String str) {
String sb3 = sb2.toString();
if (str.length() + sb3.length() >= ((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aKy)).intValue()) {
x.D("MediationDebuggerListAdapter", sb3);
this.aqX.append(sb3);
sb2.setLength(1);
}
sb2.append(str);
}
private com.applovin.impl.mediation.debugger.ui.d.c aA(boolean z10) {
return com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Java 8").gk(z10 ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).gn(g.a(z10 ? 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(!z10).wX();
}
private EnumC0181b b(a.b bVar) {
int i10 = AnonymousClass1.arm[bVar.ordinal()];
return (i10 == 1 || i10 == 2 || i10 == 3) ? EnumC0181b.ERROR : i10 != 4 ? EnumC0181b.ERROR : EnumC0181b.WARNING;
}
private String b(List<String> list, boolean z10) {
if (list == null || list.isEmpty()) {
return null;
}
if (z10) {
for (com.applovin.impl.mediation.debugger.b.a.c cVar : this.arc) {
if (list.equals(cVar.uO())) {
return cVar.getDisplayName();
}
}
for (com.applovin.impl.mediation.debugger.b.a.c cVar2 : this.ard) {
if (list.equals(cVar2.uO())) {
return cVar2.getDisplayName();
}
}
} else {
for (com.applovin.impl.mediation.debugger.b.c.b bVar : this.are) {
if (list.equals(Collections.singletonList(bVar.getName()))) {
return bVar.getDisplayName();
}
}
}
StringBuilder sb2 = new StringBuilder();
Iterator<T> it = list.iterator();
if (it.hasNext()) {
while (true) {
sb2.append((CharSequence) it.next());
if (!it.hasNext()) {
break;
}
sb2.append((CharSequence) ",");
}
}
return sb2.toString();
}
private com.applovin.impl.mediation.debugger.ui.d.c bM(String str) {
c.a wW = com.applovin.impl.mediation.debugger.ui.d.c.wW();
if (!this.sdk.CE().isEnabled()) {
wW.y(this.E);
}
c.a bO = wW.bO((StringUtils.isValidString(str) ? "" : "Select ").concat("Live Network"));
if (this.sdk.CE().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).wX();
}
private com.applovin.impl.mediation.debugger.ui.d.c bN(String str) {
c.a wW = com.applovin.impl.mediation.debugger.ui.d.c.wW();
if (this.sdk.CE().isEnabled()) {
wW.y(this.E);
}
c.a bO = wW.bO((StringUtils.isValidString(str) ? "" : "Select ").concat("Test Mode Network"));
if (!this.sdk.CE().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).wX();
}
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.aqZ.add(bVar);
} else if (bVar.vl() == b.a.COMPLETE) {
this.ara.add(bVar);
} else if (bVar.vl() == b.a.MISSING) {
this.arb.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.arc = new ArrayList(hashSet);
this.ard = new ArrayList(hashSet2);
Collections.sort(this.arc);
Collections.sort(this.ard);
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> v(String str, String str2) {
ArrayList arrayList = new ArrayList(3);
c.a wW = com.applovin.impl.mediation.debugger.ui.d.c.wW();
arrayList.add(wW.bO("View Ad Units (" + this.aqQ.size() + ")").y(this.E).aF(true).wX());
arrayList.add(bM(str));
arrayList.add(bN(str2));
if (!this.aqR.isEmpty()) {
c.a wW2 = com.applovin.impl.mediation.debugger.ui.d.c.wW();
arrayList.add(wW2.bO("Selective Init Ad Units (" + this.aqR.size() + ")").y(this.E).aF(true).wX());
}
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.EnumC0177b.READY) {
this.are.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.wW().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.wX();
}
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 wp() {
Map<String, String> a10;
StringBuilder sb2 = new StringBuilder("\n========== MEDIATION DEBUGGER ==========");
sb2.append("\n========== APP INFO ==========");
sb2.append("\nDev Build - " + u.b(this.E, this.sdk));
sb2.append("\nTest Mode - ".concat(this.sdk.CE().isEnabled() ? xa.c.ENABLED : "disabled"));
if (this.sdk.BV() != null) {
sb2.append("\nTarget SDK - " + this.sdk.BU().Ej().Es());
} else {
sb2.append("\nTarget SDK - " + this.sdk.BS().Db().get("target_sdk"));
}
sb2.append("\n========== MAX ==========");
String str = AppLovinSdk.VERSION;
String str2 = (String) this.sdk.a(com.applovin.impl.sdk.c.b.aOD);
String version = f.getVersion();
sb2.append("\nSDK Version - " + str);
StringBuilder sb3 = new StringBuilder("\nPlugin Version - ");
if (!StringUtils.isValidString(str2)) {
str2 = "None";
}
sb3.append(str2);
sb2.append(sb3.toString());
StringBuilder sb4 = new StringBuilder("\nAd Review Version - ");
if (!StringUtils.isValidString(version)) {
version = "Disabled";
}
sb4.append(version);
sb2.append(sb4.toString());
if (this.sdk.Bs() && (a10 = u.a(this.sdk.getSettings())) != null) {
String str3 = a10.get("UnityVersion");
StringBuilder sb5 = new StringBuilder("\nUnity Version - ");
sb5.append(StringUtils.isValidString(str3) ? str3 : "None");
sb2.append(sb5.toString());
}
sb2.append("\n========== PRIVACY ==========");
sb2.append(com.applovin.impl.privacy.a.A(this.E));
sb2.append(this.sdk.Cl().uI());
sb2.append("\n========== CMP (CONSENT MANAGEMENT PLATFORM) ==========");
sb2.append(this.sdk.Cm().uI());
sb2.append("\n========== NETWORK CONSENT STATUSES ==========");
for (com.applovin.impl.privacy.b.c cVar : this.sdk.Cm().Au()) {
sb2.append(cVar.uI());
}
sb2.append("\n========== NETWORKS ==========");
for (com.applovin.impl.mediation.debugger.b.c.b bVar : this.ara) {
a(sb2, bVar.vJ());
}
for (com.applovin.impl.mediation.debugger.b.c.b bVar2 : this.aqZ) {
a(sb2, bVar2.vJ());
}
sb2.append("\n========== AD UNITS ==========");
for (com.applovin.impl.mediation.debugger.b.a.a aVar : this.aqQ) {
a(sb2, aVar.uI());
}
sb2.append("\n========== END ==========");
x.D("MediationDebuggerListAdapter", sb2.toString());
this.aqX.append(sb2.toString());
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> wq() {
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.wW().bO("Package Name").bP(this.E.getPackageName()).wX());
c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("App Version");
if (!StringUtils.isValidString(str)) {
str = "None";
}
arrayList.add(bO.bP(str).wX());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("OS").bP(u.LB()).wX());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Account").bP(StringUtils.isValidString(this.aqU) ? this.aqU : "None").wX());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Mediation Provider").bP(StringUtils.isValidString(this.sdk.getMediationProvider()) ? this.sdk.getMediationProvider() : "None").wX());
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("OM SDK Version").bP(this.sdk.Cp().getSdkVersion()).wX());
arrayList.add(aA(n.CI()));
if (this.aqV != null) {
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Google Families Policy").bP(String.valueOf(this.aqV)).wX());
}
return arrayList;
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> wr() {
Map<String, String> a10;
ArrayList arrayList = new ArrayList(7);
arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("SDK Version").bP(AppLovinSdk.VERSION).wX());
String str = (String) this.sdk.a(com.applovin.impl.sdk.c.b.aOD);
c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Plugin Version");
if (!StringUtils.isValidString(str)) {
str = "None";
}
arrayList.add(bO.bP(str).wX());
c.a bO2 = com.applovin.impl.mediation.debugger.ui.d.c.wW().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 {
a(bO2, ag.d.n(new StringBuilder("MAX Ad Review integrated with wrong SDK key. Please check that your "), this.sdk.Bs() ? "SDK key is downloaded" : "Gradle plugin snippet is integrated", " from the correct account."));
}
} 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.wX());
if (this.sdk.Bs() && (a10 = u.a(this.sdk.getSettings())) != null) {
String str2 = a10.get("UnityVersion");
arrayList.add(w("Unity Version", StringUtils.isValidString(str2) ? str2 : "None"));
}
if (this.sdk.Cl().isEnabled()) {
arrayList.add(wu());
if (this.sdk.Cl().zX() == d.a.UNIFIED) {
arrayList.add(wv());
}
arrayList.add(ww());
arrayList.add(wx());
}
return arrayList;
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> ws() {
ArrayList arrayList = new ArrayList(d.COUNT.ordinal());
arrayList.add(wy());
if (StringUtils.isValidString(this.sdk.Cm().As())) {
arrayList.add(wz());
} else {
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.privacy.a.zP(), false, this.E));
}
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.privacy.a.zO(), true, this.E));
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.privacy.a.zQ(), true, this.E));
return arrayList;
}
private List<com.applovin.impl.mediation.debugger.ui.d.c> wt() {
boolean isEnabled = this.sdk.CE().isEnabled();
List<String> xk2 = this.sdk.CE().xk();
return isEnabled ? v(null, b(xk2, false)) : v(b(xk2, true), null);
}
private com.applovin.impl.mediation.debugger.ui.d.c wu() {
boolean z10 = this.sdk.Cl().zX() == d.a.TERMS;
return com.applovin.impl.mediation.debugger.ui.d.c.a(c.b.DETAIL).bO("Flow Type").bP(z10 ? "MAX Terms Flow" : "MAX Terms and Privacy Policy Flow").gk(z10 ? R.drawable.applovin_ic_x_mark : R.drawable.applovin_ic_check_mark_bordered).gn(g.a(z10 ? 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(z10).wX();
}
private com.applovin.impl.mediation.debugger.ui.d.c wv() {
boolean hasSupportedCmp = this.sdk.Cn().hasSupportedCmp();
return com.applovin.impl.mediation.debugger.ui.d.c.wW().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).wX();
}
private com.applovin.impl.mediation.debugger.ui.d.c ww() {
boolean z10 = this.sdk.Cl().getPrivacyPolicyUri() != null;
return com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Privacy Policy URL").gk(z10 ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).gn(g.a(z10 ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.E)).aF(true).wX();
}
private com.applovin.impl.mediation.debugger.ui.d.c wx() {
c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Terms of Service URL");
if (this.sdk.Cl().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.wX();
}
private com.applovin.impl.mediation.debugger.ui.d.c wy() {
String Am = this.sdk.Cm().Am();
boolean isValidString = StringUtils.isValidString(Am);
c.a a10 = com.applovin.impl.mediation.debugger.ui.d.c.a(c.b.DETAIL);
a10.bO("CMP (Consent Management Platform)");
if (!isValidString) {
Am = "None";
}
a10.bP(Am);
if (this.aqW) {
a10.aF(true);
if (isValidString) {
a10.y(this.E);
} else {
Integer Ap = this.sdk.Cm().Ap();
String str = "SharedPreferences value for key IABTCF_CmpSdkID is " + Ap + ".";
if (Ap == null || Ap.intValue() == 0) {
a10.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 z10 = this.sdk.getConfiguration().getConsentFlowUserGeography() == AppLovinSdkConfiguration.ConsentFlowUserGeography.GDPR;
a10.gk(z10 ? R.drawable.applovin_ic_x_mark : R.drawable.applovin_ic_warning);
a10.gn(g.a(z10 ? R.color.applovin_sdk_xmarkColor : R.color.applovin_sdk_warningColor, this.E));
} else {
a10.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");
a10.gk(R.drawable.applovin_ic_warning);
a10.gn(g.a(R.color.applovin_sdk_warningColor, this.E));
}
}
}
return a10.wX();
}
private com.applovin.impl.mediation.debugger.ui.d.c wz() {
return com.applovin.impl.mediation.debugger.ui.d.c.wW().bO("Network Consent Statuses").y(this.E).aF(true).wX();
}
@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 a10;
EnumC0181b b10;
EnumC0181b enumC0181b;
String str2;
ArrayList arrayList = new ArrayList();
for (com.applovin.impl.mediation.debugger.b.b.b bVar2 : this.aqS) {
List<com.applovin.impl.mediation.debugger.b.b.b> list = aVar.va().get(bVar2.vd());
if (list == null || !list.contains(bVar2)) {
this.sdk.BN();
if (x.Fn()) {
x BN = this.sdk.BN();
StringBuilder q10 = ag.d.q(str, " is missing a required entry: ");
q10.append(bVar2.vg());
BN.i("MediationDebuggerListAdapter", q10.toString());
}
arrayList.add(bVar2);
}
}
if (arrayList.isEmpty()) {
str2 = ag.g.j("All required entries found at ", str, ".");
enumC0181b = EnumC0181b.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) {
a.b bVar3 = a.b.MISSING_APPLOVIN_ENTRIES;
a10 = a(bVar3, str, bVar.vg());
b10 = b(bVar3);
} else {
a.b bVar4 = a.b.MISSING_NON_APPLOVIN_ENTRIES;
a10 = a(bVar4, str, null);
b10 = b(bVar4);
}
String str3 = a10;
enumC0181b = b10;
str2 = str3;
}
this.arg.add(a(str2, enumC0181b));
wZ();
}
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 z10, n nVar) {
this.sdk = nVar;
this.aqQ = list2;
this.aqR = list3;
this.aqS = list4;
this.aqT = str;
this.apL = str2;
this.aqU = str3;
this.aqV = bool;
this.aqW = z10;
if (list != null && this.akD.compareAndSet(false, true)) {
nVar.BN();
if (x.Fn()) {
nVar.BN().f("MediationDebuggerListAdapter", "Populating networks...");
}
nVar.Cm().F(list);
t(list);
u(list2);
v(this.ara);
this.arf.addAll(wq());
this.arg.addAll(wr());
this.arh.addAll(ws());
this.ari.addAll(wt());
this.arj = w(this.aqZ);
this.ark = w(this.ara);
this.arl = w(this.arb);
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);
wp();
}
AppLovinSdkUtils.runOnUiThread(new k(this, 10));
}
public void az(boolean z10) {
this.aqY = z10;
}
@Override
public void b(a.b bVar, String str) {
if (bVar != a.b.DEVELOPER_URI_NOT_FOUND) {
this.arg.add(a(a(bVar, str, null), b(bVar)));
wZ();
return;
}
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().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
public int gg(int i10) {
return i10 == e.APP_INFO.ordinal() ? this.arf.size() : i10 == e.MAX.ordinal() ? this.arg.size() : i10 == e.PRIVACY.ordinal() ? this.arh.size() : i10 == e.ADS.ordinal() ? this.ari.size() : i10 == e.INCOMPLETE_NETWORKS.ordinal() ? this.arj.size() : i10 == e.COMPLETED_NETWORKS.ordinal() ? this.ark.size() : this.arl.size();
}
@Override
public com.applovin.impl.mediation.debugger.ui.d.c gh(int i10) {
return i10 == e.APP_INFO.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("APP INFO") : i10 == e.MAX.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("MAX") : i10 == e.PRIVACY.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("PRIVACY") : i10 == e.ADS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("ADS") : i10 == e.INCOMPLETE_NETWORKS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("INCOMPLETE SDK INTEGRATIONS") : i10 == 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
public List<com.applovin.impl.mediation.debugger.ui.d.c> gi(int i10) {
return i10 == e.APP_INFO.ordinal() ? this.arf : i10 == e.MAX.ordinal() ? this.arg : i10 == e.PRIVACY.ordinal() ? this.arh : i10 == e.ADS.ordinal() ? this.ari : i10 == e.INCOMPLETE_NETWORKS.ordinal() ? this.arj : i10 == e.COMPLETED_NETWORKS.ordinal() ? this.ark : this.arl;
}
public boolean isInitialized() {
return this.akD.get();
}
@Override
public void onMessageReceived(AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
if ("privacy_setting_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.arh = ws();
wZ();
} else if ("network_sdk_version_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.arj = w(this.aqZ);
this.ark = w(this.ara);
wZ();
} else if ("live_networks_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.ari = v(b((List<String>) appLovinCommunicatorMessage.getMessageData().getStringArrayList("live_networks"), true), null);
wZ();
} else if ("test_mode_networks_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.ari = v(null, b((List<String>) appLovinCommunicatorMessage.getMessageData().getStringArrayList("test_mode_networks"), false));
wZ();
}
}
@Override
public int tM() {
return e.COUNT.ordinal();
}
public String toString() {
return "MediationDebuggerListAdapter{isInitialized=" + this.akD.get() + "}";
}
public String vQ() {
return this.apL;
}
public boolean wh() {
return this.aqY;
}
public List<com.applovin.impl.mediation.debugger.b.a.a> wi() {
return this.aqQ;
}
public List<com.applovin.impl.mediation.debugger.b.a.a> wj() {
return this.aqR;
}
public String wk() {
return this.aqT;
}
public List<com.applovin.impl.mediation.debugger.b.a.c> wl() {
return this.arc;
}
public List<com.applovin.impl.mediation.debugger.b.a.c> wm() {
return this.ard;
}
public List<com.applovin.impl.mediation.debugger.b.c.b> wn() {
return this.are;
}
public String wo() {
return this.aqX.toString();
}
}