MD5 校验值:d53ec1a251294bef920c76a08ee856d9
b.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.applovin.impl.mediation.debugger.ui.b; import AeD4S2V0JTkFNNCat.MhXFz4O2fao0frTdgvSgsROV; import android.content.Context; import android.text.TextUtils; import androidx.activity.xgYehFlZAxMDizbH0hKTuJMEFk; import com.applovin.communicator.AppLovinCommunicator; import com.applovin.communicator.AppLovinCommunicatorMessage; import com.applovin.communicator.AppLovinCommunicatorSubscriber; import com.applovin.exoplayer2.ui.LlsAwtCXtFvPG3dW4; 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.mediation.MaxReward; 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; public class b extends com.applovin.impl.mediation.debugger.ui.d.d implements AppLovinCommunicatorSubscriber, a.InterfaceC0049a { 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 EnumC0055b { 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(MaxReward.DEFAULT_LABEL); 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 aA(boolean z) { int i; int i2; c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Java 8"); if (z) { i = R.drawable.applovin_ic_check_mark_bordered; } else { i = R.drawable.applovin_ic_x_mark; } c.a gk = bO.gk(i); if (z) { i2 = R.color.applovin_sdk_checkmarkColor; } else { i2 = R.color.applovin_sdk_xmarkColor; } return gk.gn(g.a(i2, 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 com.applovin.impl.mediation.debugger.ui.d.c bM(String str) { String str2; c.a wV = com.applovin.impl.mediation.debugger.ui.d.c.wV(); if (!this.sdk.CC().isEnabled()) { wV.y(this.E); } if (StringUtils.isValidString(str)) { str2 = MaxReward.DEFAULT_LABEL; } else { str2 = "Select "; } c.a bO = wV.bO(str2.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) { String str2; c.a wV = com.applovin.impl.mediation.debugger.ui.d.c.wV(); if (this.sdk.CC().isEnabled()) { wV.y(this.E); } if (StringUtils.isValidString(str)) { str2 = MaxReward.DEFAULT_LABEL; } else { str2 = "Select "; } c.a bO = wV.bO(str2.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) { if (bVar.vl() == b.a.COMPLETE) { this.aqX.add(bVar); } else if (bVar.vl() == b.a.MISSING) { this.aqY.add(bVar); } } else { this.aqW.add(bVar); } } } } private void u(List<com.applovin.impl.mediation.debugger.b.a.a> list) { HashSet hashSet = new HashSet(); HashSet hashSet2 = new HashSet(); Iterator<com.applovin.impl.mediation.debugger.b.a.a> it = list.iterator(); while (it.hasNext()) { com.applovin.impl.mediation.debugger.b.a.b uG = it.next().uG(); Iterator<com.applovin.impl.mediation.debugger.b.a.e> it2 = uG.uL().iterator(); while (it2.hasNext()) { hashSet.add(it2.next().uR()); } Iterator<com.applovin.impl.mediation.debugger.b.a.e> it3 = uG.uM().iterator(); while (it3.hasNext()) { hashSet2.add(it3.next().uR()); } } this.aqZ = new ArrayList(hashSet); this.ara = new ArrayList(hashSet2); Collections.sort(this.aqZ); Collections.sort(this.ara); } 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.EnumC0051b.READY) { this.arb.add(bVar); } } } 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()); Iterator<com.applovin.impl.mediation.debugger.b.c.b> it = list.iterator(); while (it.hasNext()) { arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.a(it.next(), this.E)); } return arrayList; } private void wo() { String str; 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)); if (this.sdk.CC().isEnabled()) { str = "enabled"; } else { str = "disabled"; } sb.append("\nTest Mode - ".concat(str)); 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 str2 = AppLovinSdk.VERSION; String str3 = (String) this.sdk.a(com.applovin.impl.sdk.c.b.aOy); String version = f.getVersion(); sb.append("\nSDK Version - " + str2); StringBuilder sb2 = new StringBuilder("\nPlugin Version - "); String str4 = "None"; if (!StringUtils.isValidString(str3)) { str3 = "None"; } sb2.append(str3); 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 str5 = a2.get("UnityVersion"); StringBuilder sb4 = new StringBuilder("\nUnity Version - "); if (StringUtils.isValidString(str5)) { str4 = str5; } sb4.append(str4); 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 =========="); Iterator<com.applovin.impl.privacy.b.c> it = this.sdk.Ck().As().iterator(); while (it.hasNext()) { sb.append(it.next().uI()); } sb.append("\n========== NETWORKS =========="); Iterator<com.applovin.impl.mediation.debugger.b.c.b> it2 = this.aqX.iterator(); while (it2.hasNext()) { a(sb, it2.next().vI()); } Iterator<com.applovin.impl.mediation.debugger.b.c.b> it3 = this.aqW.iterator(); while (it3.hasNext()) { a(sb, it3.next().vI()); } sb.append("\n========== AD UNITS =========="); Iterator<com.applovin.impl.mediation.debugger.b.a.a> it4 = this.aqN.iterator(); while (it4.hasNext()) { a(sb, it4.next().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; String str2; 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"); String str3 = "None"; 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()); c.a bO2 = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Account"); if (!StringUtils.isValidString(this.aqR)) { str2 = "None"; } else { str2 = this.aqR; } arrayList.add(bO2.bP(str2).wW()); c.a bO3 = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Mediation Provider"); if (StringUtils.isValidString(this.sdk.getMediationProvider())) { str3 = this.sdk.getMediationProvider(); } arrayList.add(bO3.bP(str3).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; String str; ArrayList arrayList = new ArrayList(7); arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("SDK Version").bP(AppLovinSdk.VERSION).wW()); String str2 = (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"); String str3 = "None"; if (!StringUtils.isValidString(str2)) { str2 = "None"; } arrayList.add(bO.bP(str2).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)) { 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 "); if (this.sdk.Bq()) { str = "SDK key is downloaded"; } else { str = "Gradle plugin snippet is integrated"; } a(bO2, MhXFz4O2fao0frTdgvSgsROV.rgTMBIMqwhG0lN8ErHkQ0ymEiq(sb, str, " from the correct account.")); } } else { bO2.bP(version); } } 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 str4 = a2.get("UnityVersion"); if (StringUtils.isValidString(str4)) { str3 = str4; } arrayList.add(w("Unity Version", str3)); } 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(); if (isEnabled) { return v(null, b(xj, false)); } return v(b(xj, true), null); } private com.applovin.impl.mediation.debugger.ui.d.c wt() { boolean z; String str; int i; int i2; if (this.sdk.Cj().zV() == d.a.TERMS) { z = true; } else { z = false; } c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.a(c.b.DETAIL).bO("Flow Type"); if (z) { str = "MAX Terms Flow"; } else { str = "MAX Terms and Privacy Policy Flow"; } c.a bP = bO.bP(str); if (z) { i = R.drawable.applovin_ic_x_mark; } else { i = R.drawable.applovin_ic_check_mark_bordered; } c.a gk = bP.gk(i); if (z) { i2 = R.color.applovin_sdk_xmarkColor; } else { i2 = R.color.applovin_sdk_checkmarkColor; } return gk.gn(g.a(i2, 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() { int i; int i2; boolean hasSupportedCmp = this.sdk.Cl().hasSupportedCmp(); c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Google UMP SDK"); if (hasSupportedCmp) { i = R.drawable.applovin_ic_check_mark_bordered; } else { i = R.drawable.applovin_ic_x_mark; } c.a gk = bO.gk(i); if (hasSupportedCmp) { i2 = R.color.applovin_sdk_checkmarkColor; } else { i2 = R.color.applovin_sdk_xmarkColor; } return gk.gn(g.a(i2, 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; int i; int i2; if (this.sdk.Cj().getPrivacyPolicyUri() != null) { z = true; } else { z = false; } c.a bO = com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Privacy Policy URL"); if (z) { i = R.drawable.applovin_ic_check_mark_bordered; } else { i = R.drawable.applovin_ic_x_mark; } c.a gk = bO.gk(i); if (z) { i2 = R.color.applovin_sdk_checkmarkColor; } else { i2 = R.color.applovin_sdk_xmarkColor; } return gk.gn(g.a(i2, 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() { int i; int i2; 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) { boolean z = true; 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("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)); } else { 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"); if (this.sdk.getConfiguration().getConsentFlowUserGeography() != AppLovinSdkConfiguration.ConsentFlowUserGeography.GDPR) { z = false; } if (z) { i = R.drawable.applovin_ic_x_mark; } else { i = R.drawable.applovin_ic_warning; } a2.gk(i); if (z) { i2 = R.color.applovin_sdk_xmarkColor; } else { i2 = R.color.applovin_sdk_warningColor; } a2.gn(g.a(i2, 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(); } 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 xgYehFlZAxMDizbH0hKTuJMEFk(this, 12)); } 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.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"); return; } return; } this.ard.add(a(a(bVar, str, null), b(bVar))); wY(); } @Override public String getCommunicatorId() { return "MediationDebuggerListAdapter"; } public n getSdk() { return this.sdk; } @Override public int gg(int i) { if (i == e.APP_INFO.ordinal()) { return this.arc.size(); } if (i == e.MAX.ordinal()) { return this.ard.size(); } if (i == e.PRIVACY.ordinal()) { return this.are.size(); } if (i == e.ADS.ordinal()) { return this.arf.size(); } if (i == e.INCOMPLETE_NETWORKS.ordinal()) { return this.arg.size(); } if (i == e.COMPLETED_NETWORKS.ordinal()) { return this.arh.size(); } return this.ari.size(); } @Override public com.applovin.impl.mediation.debugger.ui.d.c gh(int i) { if (i == e.APP_INFO.ordinal()) { return new com.applovin.impl.mediation.debugger.ui.d.e("APP INFO"); } if (i == e.MAX.ordinal()) { return new com.applovin.impl.mediation.debugger.ui.d.e("MAX"); } if (i == e.PRIVACY.ordinal()) { return new com.applovin.impl.mediation.debugger.ui.d.e("PRIVACY"); } if (i == e.ADS.ordinal()) { return new com.applovin.impl.mediation.debugger.ui.d.e("ADS"); } if (i == e.INCOMPLETE_NETWORKS.ordinal()) { return new com.applovin.impl.mediation.debugger.ui.d.e("INCOMPLETE SDK INTEGRATIONS"); } if (i == e.COMPLETED_NETWORKS.ordinal()) { return new com.applovin.impl.mediation.debugger.ui.d.e("COMPLETED SDK INTEGRATIONS"); } return 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 i) { if (i == e.APP_INFO.ordinal()) { return this.arc; } if (i == e.MAX.ordinal()) { return this.ard; } if (i == e.PRIVACY.ordinal()) { return this.are; } if (i == e.ADS.ordinal()) { return this.arf; } if (i == e.INCOMPLETE_NETWORKS.ordinal()) { return this.arg; } if (i == e.COMPLETED_NETWORKS.ordinal()) { return this.arh; } return 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(); return; } 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 public int tM() { return e.COUNT.ordinal(); } public String toString() { return "MediationDebuggerListAdapter{isInitialized=" + this.akD.get() + "}"; } 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(); } private List<com.applovin.impl.mediation.debugger.ui.d.c> v(String str, String str2) { ArrayList arrayList = new ArrayList(3); arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.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()) { arrayList.add(com.applovin.impl.mediation.debugger.ui.d.c.wV().bO("Selective Init Ad Units (" + this.aqO.size() + ")").y(this.E).aF(true).wW()); } return arrayList; } 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 EnumC0055b b(a.b bVar) { int i = AnonymousClass1.arj[bVar.ordinal()]; if (i == 1 || i == 2 || i == 3) { return EnumC0055b.ERROR; } if (i != 4) { return EnumC0055b.ERROR; } return EnumC0055b.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(); } } } StringBuilder sb = new StringBuilder(); Iterator<T> it = list.iterator(); if (it.hasNext()) { while (true) { sb.append((CharSequence) it.next()); if (!it.hasNext()) { break; } sb.append((CharSequence) ","); } } return sb.toString(); } @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; EnumC0055b b; EnumC0055b enumC0055b; String str2; 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()) { str2 = LlsAwtCXtFvPG3dW4.aG7kT0ezy("All required entries found at ", str, "."); enumC0055b = EnumC0055b.SUCCESS; } else { Iterator it = arrayList.iterator(); while (true) { if (it.hasNext()) { bVar = (com.applovin.impl.mediation.debugger.b.b.b) it.next(); if (bVar.vc()) { break; } } else { bVar = null; break; } } if (bVar != null) { a.b bVar3 = a.b.MISSING_APPLOVIN_ENTRIES; a2 = a(bVar3, str, bVar.vg()); b = b(bVar3); } else { a.b bVar4 = a.b.MISSING_NON_APPLOVIN_ENTRIES; a2 = a(bVar4, str, null); b = b(bVar4); } String str3 = a2; enumC0055b = b; str2 = str3; } this.ard.add(a(str2, enumC0055b)); wY(); } private void a(StringBuilder sb, String str) { String sb2 = sb.toString(); if (str.length() + sb2.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 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 com.applovin.impl.mediation.debugger.ui.d.c a(String str, EnumC0055b enumC0055b) { int i; int a2; if (enumC0055b == EnumC0055b.SUCCESS) { i = R.drawable.applovin_ic_check_mark_bordered; a2 = g.a(R.color.applovin_sdk_checkmarkColor, this.E); } else if (enumC0055b == EnumC0055b.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) { 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."; } if (i == 2) { return LlsAwtCXtFvPG3dW4.aG7kT0ezy("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"); } if (i != 3) { return i != 4 ? MaxReward.DEFAULT_LABEL : LlsAwtCXtFvPG3dW4.aG7kT0ezy("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"); } return MhXFz4O2fao0frTdgvSgsROV.WWEgdPrhVv("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"); } }