MD5 校验值:d53ec1a251294bef920c76a08ee856d9
a.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.applovin.impl.mediation.debugger.ui.b; import android.R; import android.content.Context; import android.content.Intent; import android.database.DataSetObserver; import android.os.Bundle; import android.text.TextUtils; import android.view.Menu; import android.view.MenuItem; import android.widget.FrameLayout; import android.widget.ListAdapter; import android.widget.ListView; import bU6nVanxCx1XZefIjrUEN.lrEcOucmGxY; import com.applovin.impl.mediation.debugger.ui.b.b; import com.applovin.impl.mediation.debugger.ui.d.c; import com.applovin.impl.mediation.debugger.ui.d.d; import com.applovin.impl.privacy.a.d; import com.applovin.impl.sdk.n; import com.applovin.impl.sdk.utils.StringUtils; import com.applovin.impl.sdk.utils.b; import com.applovin.impl.sdk.utils.s; import com.applovin.impl.sdk.utils.u; import com.applovin.mediation.MaxDebuggerAdUnitsListActivity; import com.applovin.mediation.MaxDebuggerDetailActivity; import com.applovin.mediation.MaxDebuggerTcfConsentStatusesListActivity; import com.applovin.mediation.MaxDebuggerTcfInfoListActivity; import com.applovin.mediation.MaxDebuggerTestLiveNetworkActivity; import com.applovin.mediation.MaxDebuggerTestModeNetworkActivity; import com.applovin.mediation.MaxReward; public class a extends com.applovin.impl.mediation.debugger.ui.a { private FrameLayout akw; private ListView akx; private b anY; private DataSetObserver aqI; private com.applovin.impl.adview.a aqJ; public class AnonymousClass1 extends DataSetObserver { public AnonymousClass1() { } @Override public void onChanged() { a.this.wf(); a aVar = a.this; aVar.w(aVar); } } public class AnonymousClass2 implements d.a { final com.applovin.impl.sdk.a aky; public class AnonymousClass1 implements b.a<MaxDebuggerTcfInfoListActivity> { public AnonymousClass1() { } @Override public void onActivityCreated(MaxDebuggerTcfInfoListActivity maxDebuggerTcfInfoListActivity) { maxDebuggerTcfInfoListActivity.initialize(a.this.anY.getSdk()); } } public class C00542 implements b.a<MaxDebuggerTcfConsentStatusesListActivity> { public C00542() { } @Override public void onActivityCreated(MaxDebuggerTcfConsentStatusesListActivity maxDebuggerTcfConsentStatusesListActivity) { maxDebuggerTcfConsentStatusesListActivity.initialize(a.this.anY.getSdk()); } } public class AnonymousClass3 implements b.a<MaxDebuggerAdUnitsListActivity> { public AnonymousClass3() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wh(), false, a.this.anY.getSdk()); } } public class AnonymousClass4 implements b.a<MaxDebuggerTestLiveNetworkActivity> { public AnonymousClass4() { } @Override public void onActivityCreated(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) { maxDebuggerTestLiveNetworkActivity.initialize(a.this.anY.wk(), a.this.anY.wl(), a.this.anY.getSdk()); } } public class AnonymousClass5 implements b.a<MaxDebuggerTestModeNetworkActivity> { public AnonymousClass5() { } @Override public void onActivityCreated(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) { maxDebuggerTestModeNetworkActivity.initialize(a.this.anY.wm(), a.this.anY.getSdk()); } } public class AnonymousClass6 implements b.a<MaxDebuggerAdUnitsListActivity> { public AnonymousClass6() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wi(), true, a.this.anY.getSdk()); } } public class AnonymousClass7 implements b.a<MaxDebuggerDetailActivity> { final c aqM; public AnonymousClass7(c cVar) { r2 = cVar; } @Override public void onActivityCreated(MaxDebuggerDetailActivity maxDebuggerDetailActivity) { maxDebuggerDetailActivity.initialize(((com.applovin.impl.mediation.debugger.ui.b.a.a) r2).wz()); } } public AnonymousClass2(com.applovin.impl.sdk.a aVar) { r2 = aVar; } @Override public void onClick(com.applovin.impl.mediation.debugger.ui.d.a aVar, c cVar) { int wO = aVar.wO(); if (wO == b.e.APP_INFO.ordinal()) { u.a(cVar.wj(), cVar.vP(), a.this); return; } if (wO == b.e.MAX.ordinal()) { n sdk = a.this.anY.getSdk(); if (sdk.Cj().isEnabled()) { int wP = aVar.wP(); if (sdk.Cj().zV() == d.a.TERMS) { wP++; } if (wP == b.c.PRIVACY_POLICY_URL.ordinal()) { if (sdk.Cj().getPrivacyPolicyUri() != null) { s.a(sdk.Cj().getPrivacyPolicyUri(), n.getApplicationContext(), sdk); return; } else { u.a("Missing Privacy Policy URL", "You cannot use the AppLovin SDK's consent flow without defining a Privacy Policy URL", a.this); return; } } if (wP == b.c.TERMS_OF_SERVICE_URL.ordinal()) { if (sdk.Cj().getTermsOfServiceUri() != null) { s.a(sdk.Cj().getTermsOfServiceUri(), n.getApplicationContext(), sdk); return; } return; } } u.a(cVar.wj(), cVar.vP(), a.this); return; } if (wO == b.e.PRIVACY.ordinal()) { if (aVar.wP() == b.d.CMP.ordinal()) { if (StringUtils.isValidString(a.this.anY.getSdk().Ck().Ak())) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTcfInfoListActivity.class, r2, new b.a<MaxDebuggerTcfInfoListActivity>() { public AnonymousClass1() { } @Override public void onActivityCreated(MaxDebuggerTcfInfoListActivity maxDebuggerTcfInfoListActivity) { maxDebuggerTcfInfoListActivity.initialize(a.this.anY.getSdk()); } }); return; } else { u.a(MaxReward.DEFAULT_LABEL, cVar.vP(), a.this); return; } } if (aVar.wP() == b.d.NETWORK_CONSENT_STATUSES.ordinal()) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTcfConsentStatusesListActivity.class, r2, new b.a<MaxDebuggerTcfConsentStatusesListActivity>() { public C00542() { } @Override public void onActivityCreated(MaxDebuggerTcfConsentStatusesListActivity maxDebuggerTcfConsentStatusesListActivity) { maxDebuggerTcfConsentStatusesListActivity.initialize(a.this.anY.getSdk()); } }); return; } return; } if (wO == b.e.ADS.ordinal()) { if (aVar.wP() == b.a.AD_UNITS.ordinal()) { if (a.this.anY.wh().size() > 0) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, r2, new b.a<MaxDebuggerAdUnitsListActivity>() { public AnonymousClass3() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wh(), false, a.this.anY.getSdk()); } }); return; } else { u.a("No live ad units", "Please setup or enable your MAX ad units on https://applovin.com.", a.this); return; } } if (aVar.wP() == b.a.SELECT_LIVE_NETWORKS.ordinal()) { if (a.this.anY.wk().size() <= 0 && a.this.anY.wl().size() <= 0) { u.a("Complete Integrations", "Please complete integrations in order to access this.", a.this); return; } else if (a.this.anY.getSdk().CC().isEnabled()) { u.a("Restart Required", cVar.vP(), a.this); return; } else { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestLiveNetworkActivity.class, r2, new b.a<MaxDebuggerTestLiveNetworkActivity>() { public AnonymousClass4() { } @Override public void onActivityCreated(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) { maxDebuggerTestLiveNetworkActivity.initialize(a.this.anY.wk(), a.this.anY.wl(), a.this.anY.getSdk()); } }); return; } } if (aVar.wP() == b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) { if (!a.this.anY.getSdk().CC().isEnabled()) { a.this.getSdk().CC().xk(); u.a("Restart Required", cVar.vP(), a.this); return; } else if (a.this.anY.wm().size() > 0) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestModeNetworkActivity.class, r2, new b.a<MaxDebuggerTestModeNetworkActivity>() { public AnonymousClass5() { } @Override public void onActivityCreated(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) { maxDebuggerTestModeNetworkActivity.initialize(a.this.anY.wm(), a.this.anY.getSdk()); } }); return; } else { u.a("Complete Integrations", "Please complete integrations in order to access this.", a.this); return; } } if (aVar.wP() == b.a.INITIALIZATION_AD_UNITS.ordinal()) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, r2, new b.a<MaxDebuggerAdUnitsListActivity>() { public AnonymousClass6() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wi(), true, a.this.anY.getSdk()); } }); return; } return; } if ((wO == b.e.INCOMPLETE_NETWORKS.ordinal() || wO == b.e.COMPLETED_NETWORKS.ordinal()) && (cVar instanceof com.applovin.impl.mediation.debugger.ui.b.a.a)) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerDetailActivity.class, r2, new b.a<MaxDebuggerDetailActivity>() { final c aqM; public AnonymousClass7(c cVar2) { r2 = cVar2; } @Override public void onActivityCreated(MaxDebuggerDetailActivity maxDebuggerDetailActivity) { maxDebuggerDetailActivity.initialize(((com.applovin.impl.mediation.debugger.ui.b.a.a) r2).wz()); } }); } } } public void w(Context context) { if (StringUtils.isValidString(this.anY.vP()) && !this.anY.wg()) { this.anY.az(true); runOnUiThread(new lrEcOucmGxY(this, 17, context)); } } private void wd() { String wn = this.anY.wn(); if (TextUtils.isEmpty(wn)) { return; } Intent intent = new Intent("android.intent.action.SEND"); intent.setType("text/plain"); intent.putExtra("android.intent.extra.TEXT", wn); intent.putExtra("android.intent.extra.TITLE", "Mediation Debugger logs"); intent.putExtra("android.intent.extra.SUBJECT", "MAX Mediation Debugger logs"); startActivity(Intent.createChooser(intent, null)); } private void we() { wf(); com.applovin.impl.adview.a aVar = new com.applovin.impl.adview.a(this, 50, R.attr.progressBarStyleLarge); this.aqJ = aVar; aVar.setColor(-3355444); this.akw.addView(this.aqJ, new FrameLayout.LayoutParams(-1, -1, 17)); this.akw.bringChildToFront(this.aqJ); this.aqJ.qN(); } public void wf() { com.applovin.impl.adview.a aVar = this.aqJ; if (aVar != null) { aVar.qO(); this.akw.removeView(this.aqJ); this.aqJ = null; } } public void x(Context context) { u.a(this.anY.wj(), this.anY.vP(), context); } @Override public n getSdk() { b bVar = this.anY; if (bVar != null) { return bVar.getSdk(); } return null; } @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); setTitle("MAX Mediation Debugger"); setContentView(com.applovin.sdk.R.layout.mediation_debugger_list_view); this.akw = (FrameLayout) findViewById(R.id.content); ListView listView = (ListView) findViewById(com.applovin.sdk.R.id.listView); this.akx = listView; listView.setAdapter((ListAdapter) this.anY); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(com.applovin.sdk.R.menu.mediation_debugger_activity_menu, menu); return true; } @Override public void onDestroy() { super.onDestroy(); b bVar = this.anY; if (bVar != null) { bVar.unregisterDataSetObserver(this.aqI); this.anY.a(null); } } @Override public boolean onOptionsItemSelected(MenuItem menuItem) { if (com.applovin.sdk.R.id.action_share == menuItem.getItemId()) { wd(); return true; } return super.onOptionsItemSelected(menuItem); } @Override public void onStart() { super.onStart(); b bVar = this.anY; if (bVar != null && !bVar.isInitialized()) { we(); } } public void setListAdapter(b bVar, com.applovin.impl.sdk.a aVar) { DataSetObserver dataSetObserver; b bVar2 = this.anY; if (bVar2 != null && (dataSetObserver = this.aqI) != null) { bVar2.unregisterDataSetObserver(dataSetObserver); } this.anY = bVar; this.aqI = new DataSetObserver() { public AnonymousClass1() { } @Override public void onChanged() { a.this.wf(); a aVar2 = a.this; aVar2.w(aVar2); } }; w(this); this.anY.registerDataSetObserver(this.aqI); this.anY.a(new d.a() { final com.applovin.impl.sdk.a aky; public class AnonymousClass1 implements b.a<MaxDebuggerTcfInfoListActivity> { public AnonymousClass1() { } @Override public void onActivityCreated(MaxDebuggerTcfInfoListActivity maxDebuggerTcfInfoListActivity) { maxDebuggerTcfInfoListActivity.initialize(a.this.anY.getSdk()); } } public class C00542 implements b.a<MaxDebuggerTcfConsentStatusesListActivity> { public C00542() { } @Override public void onActivityCreated(MaxDebuggerTcfConsentStatusesListActivity maxDebuggerTcfConsentStatusesListActivity) { maxDebuggerTcfConsentStatusesListActivity.initialize(a.this.anY.getSdk()); } } public class AnonymousClass3 implements b.a<MaxDebuggerAdUnitsListActivity> { public AnonymousClass3() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wh(), false, a.this.anY.getSdk()); } } public class AnonymousClass4 implements b.a<MaxDebuggerTestLiveNetworkActivity> { public AnonymousClass4() { } @Override public void onActivityCreated(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) { maxDebuggerTestLiveNetworkActivity.initialize(a.this.anY.wk(), a.this.anY.wl(), a.this.anY.getSdk()); } } public class AnonymousClass5 implements b.a<MaxDebuggerTestModeNetworkActivity> { public AnonymousClass5() { } @Override public void onActivityCreated(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) { maxDebuggerTestModeNetworkActivity.initialize(a.this.anY.wm(), a.this.anY.getSdk()); } } public class AnonymousClass6 implements b.a<MaxDebuggerAdUnitsListActivity> { public AnonymousClass6() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wi(), true, a.this.anY.getSdk()); } } public class AnonymousClass7 implements b.a<MaxDebuggerDetailActivity> { final c aqM; public AnonymousClass7(c cVar2) { r2 = cVar2; } @Override public void onActivityCreated(MaxDebuggerDetailActivity maxDebuggerDetailActivity) { maxDebuggerDetailActivity.initialize(((com.applovin.impl.mediation.debugger.ui.b.a.a) r2).wz()); } } public AnonymousClass2(com.applovin.impl.sdk.a aVar2) { r2 = aVar2; } @Override public void onClick(com.applovin.impl.mediation.debugger.ui.d.a aVar2, c cVar2) { int wO = aVar2.wO(); if (wO == b.e.APP_INFO.ordinal()) { u.a(cVar2.wj(), cVar2.vP(), a.this); return; } if (wO == b.e.MAX.ordinal()) { n sdk = a.this.anY.getSdk(); if (sdk.Cj().isEnabled()) { int wP = aVar2.wP(); if (sdk.Cj().zV() == d.a.TERMS) { wP++; } if (wP == b.c.PRIVACY_POLICY_URL.ordinal()) { if (sdk.Cj().getPrivacyPolicyUri() != null) { s.a(sdk.Cj().getPrivacyPolicyUri(), n.getApplicationContext(), sdk); return; } else { u.a("Missing Privacy Policy URL", "You cannot use the AppLovin SDK's consent flow without defining a Privacy Policy URL", a.this); return; } } if (wP == b.c.TERMS_OF_SERVICE_URL.ordinal()) { if (sdk.Cj().getTermsOfServiceUri() != null) { s.a(sdk.Cj().getTermsOfServiceUri(), n.getApplicationContext(), sdk); return; } return; } } u.a(cVar2.wj(), cVar2.vP(), a.this); return; } if (wO == b.e.PRIVACY.ordinal()) { if (aVar2.wP() == b.d.CMP.ordinal()) { if (StringUtils.isValidString(a.this.anY.getSdk().Ck().Ak())) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTcfInfoListActivity.class, r2, new b.a<MaxDebuggerTcfInfoListActivity>() { public AnonymousClass1() { } @Override public void onActivityCreated(MaxDebuggerTcfInfoListActivity maxDebuggerTcfInfoListActivity) { maxDebuggerTcfInfoListActivity.initialize(a.this.anY.getSdk()); } }); return; } else { u.a(MaxReward.DEFAULT_LABEL, cVar2.vP(), a.this); return; } } if (aVar2.wP() == b.d.NETWORK_CONSENT_STATUSES.ordinal()) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTcfConsentStatusesListActivity.class, r2, new b.a<MaxDebuggerTcfConsentStatusesListActivity>() { public C00542() { } @Override public void onActivityCreated(MaxDebuggerTcfConsentStatusesListActivity maxDebuggerTcfConsentStatusesListActivity) { maxDebuggerTcfConsentStatusesListActivity.initialize(a.this.anY.getSdk()); } }); return; } return; } if (wO == b.e.ADS.ordinal()) { if (aVar2.wP() == b.a.AD_UNITS.ordinal()) { if (a.this.anY.wh().size() > 0) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, r2, new b.a<MaxDebuggerAdUnitsListActivity>() { public AnonymousClass3() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wh(), false, a.this.anY.getSdk()); } }); return; } else { u.a("No live ad units", "Please setup or enable your MAX ad units on https://applovin.com.", a.this); return; } } if (aVar2.wP() == b.a.SELECT_LIVE_NETWORKS.ordinal()) { if (a.this.anY.wk().size() <= 0 && a.this.anY.wl().size() <= 0) { u.a("Complete Integrations", "Please complete integrations in order to access this.", a.this); return; } else if (a.this.anY.getSdk().CC().isEnabled()) { u.a("Restart Required", cVar2.vP(), a.this); return; } else { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestLiveNetworkActivity.class, r2, new b.a<MaxDebuggerTestLiveNetworkActivity>() { public AnonymousClass4() { } @Override public void onActivityCreated(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) { maxDebuggerTestLiveNetworkActivity.initialize(a.this.anY.wk(), a.this.anY.wl(), a.this.anY.getSdk()); } }); return; } } if (aVar2.wP() == b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) { if (!a.this.anY.getSdk().CC().isEnabled()) { a.this.getSdk().CC().xk(); u.a("Restart Required", cVar2.vP(), a.this); return; } else if (a.this.anY.wm().size() > 0) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestModeNetworkActivity.class, r2, new b.a<MaxDebuggerTestModeNetworkActivity>() { public AnonymousClass5() { } @Override public void onActivityCreated(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) { maxDebuggerTestModeNetworkActivity.initialize(a.this.anY.wm(), a.this.anY.getSdk()); } }); return; } else { u.a("Complete Integrations", "Please complete integrations in order to access this.", a.this); return; } } if (aVar2.wP() == b.a.INITIALIZATION_AD_UNITS.ordinal()) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, r2, new b.a<MaxDebuggerAdUnitsListActivity>() { public AnonymousClass6() { } @Override public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.anY.wi(), true, a.this.anY.getSdk()); } }); return; } return; } if ((wO == b.e.INCOMPLETE_NETWORKS.ordinal() || wO == b.e.COMPLETED_NETWORKS.ordinal()) && (cVar2 instanceof com.applovin.impl.mediation.debugger.ui.b.a.a)) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerDetailActivity.class, r2, new b.a<MaxDebuggerDetailActivity>() { final c aqM; public AnonymousClass7(c cVar22) { r2 = cVar22; } @Override public void onActivityCreated(MaxDebuggerDetailActivity maxDebuggerDetailActivity) { maxDebuggerDetailActivity.initialize(((com.applovin.impl.mediation.debugger.ui.b.a.a) r2).wz()); } }); } } }); } }