Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.ui.b;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.Nullable;
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.mediation.debugger.ui.d.d;
import com.applovin.impl.mediation.debugger.ui.d.e;
import com.applovin.impl.sdk.g;
import com.applovin.impl.sdk.p;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.impl.sdk.y;
import com.applovin.sdk.AppLovinSdk;
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 d implements AppLovinCommunicatorSubscriber, a.InterfaceC0540a {
private p f30744a;
private List<com.applovin.impl.mediation.debugger.b.a.a> f30745b;
private List<com.applovin.impl.mediation.debugger.b.a.a> f30746d;
private String f30747e;
private String f30748f;
private String f30749g;
@Nullable
private com.applovin.impl.mediation.debugger.b.b.b f30750h;
private final StringBuilder f30751i;
private final AtomicBoolean f30752j;
private boolean f30753k;
private List<com.applovin.impl.mediation.debugger.b.c.b> f30754l;
private List<com.applovin.impl.mediation.debugger.b.c.b> f30755m;
private List<com.applovin.impl.mediation.debugger.b.c.b> f30756n;
private List<com.applovin.impl.mediation.debugger.b.a.d> f30757o;
private List<com.applovin.impl.mediation.debugger.b.a.d> f30758p;
private List<com.applovin.impl.mediation.debugger.b.c.b> f30759q;
private List<c> f30760r;
private List<c> f30761s;
private List<c> f30762t;
private List<c> f30763u;
private List<c> f30764v;
private List<c> f30765w;
private List<c> f30766x;
public static class AnonymousClass2 {
static final int[] f30768a;
static {
int[] iArr = new int[a.b.values().length];
f30768a = iArr;
try {
iArr[a.b.DEVELOPER_URI_NOT_FOUND.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
f30768a[a.b.APPADSTXT_NOT_FOUND.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
f30768a[a.b.MISSING_REQUIRED_ENTRY.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
public enum a {
AD_UNITS,
SELECT_LIVE_NETWORKS,
SELECT_TEST_MODE_NETWORKS,
INITIALIZATION_AD_UNITS,
COUNT
}
public enum EnumC0547b {
APP_INFO,
MAX,
PRIVACY,
ADS,
INCOMPLETE_NETWORKS,
COMPLETED_NETWORKS,
MISSING_NETWORKS,
COUNT
}
public b(Context context) {
super(context);
this.f30751i = new StringBuilder("");
this.f30752j = new AtomicBoolean();
this.f30753k = false;
this.f30754l = new ArrayList();
this.f30755m = new ArrayList();
this.f30756n = new ArrayList();
this.f30757o = new ArrayList();
this.f30758p = new ArrayList();
this.f30759q = new ArrayList();
this.f30760r = new ArrayList();
this.f30761s = new ArrayList();
this.f30762t = new ArrayList();
this.f30763u = new ArrayList();
this.f30764v = new ArrayList();
this.f30765w = new ArrayList();
this.f30766x = new ArrayList();
}
private void o() {
String str;
Map<String, String> metaData;
StringBuilder sb2 = new StringBuilder("\n========== MEDIATION DEBUGGER ==========");
sb2.append("\n========== APP INFO ==========");
sb2.append("\nDev Build - " + Utils.isPubInDebugMode(this.f30847c, this.f30744a));
StringBuilder sb3 = new StringBuilder();
sb3.append("\nTest Mode - ");
if (this.f30744a.av().a()) {
str = "enabled";
} else {
str = "disabled";
}
sb3.append(str);
sb2.append(sb3.toString());
if (this.f30744a.S() != null) {
sb2.append("\nTarget SDK - " + this.f30744a.Q().B().j());
} else {
sb2.append("\nTarget SDK - " + this.f30744a.R().h().get("target_sdk"));
}
sb2.append("\n========== MAX ==========");
String str2 = AppLovinSdk.VERSION;
String str3 = (String) this.f30744a.a(com.applovin.impl.sdk.c.b.dU);
String a11 = g.a();
sb2.append("\nSDK Version - " + str2);
StringBuilder sb4 = new StringBuilder();
sb4.append("\nPlugin Version - ");
String str4 = "None";
if (!StringUtils.isValidString(str3)) {
str3 = "None";
}
sb4.append(str3);
sb2.append(sb4.toString());
StringBuilder sb5 = new StringBuilder();
sb5.append("\nAd Review Version - ");
if (!StringUtils.isValidString(a11)) {
a11 = "Disabled";
}
sb5.append(a11);
sb2.append(sb5.toString());
if (this.f30744a.g() && (metaData = Utils.getMetaData(this.f30744a.C())) != null) {
String str5 = metaData.get("UnityVersion");
StringBuilder sb6 = new StringBuilder();
sb6.append("\nUnity Version - ");
if (StringUtils.isValidString(str5)) {
str4 = str5;
}
sb6.append(str4);
sb2.append(sb6.toString());
}
sb2.append("\n========== PRIVACY ==========");
sb2.append(com.applovin.impl.b.a.a(this.f30847c));
sb2.append(this.f30744a.ae().j());
sb2.append("\n========== NETWORKS ==========");
Iterator<com.applovin.impl.mediation.debugger.b.c.b> it = this.f30755m.iterator();
while (it.hasNext()) {
a(sb2, it.next().z());
}
Iterator<com.applovin.impl.mediation.debugger.b.c.b> it2 = this.f30754l.iterator();
while (it2.hasNext()) {
a(sb2, it2.next().z());
}
sb2.append("\n========== AD UNITS ==========");
Iterator<com.applovin.impl.mediation.debugger.b.a.a> it3 = this.f30745b.iterator();
while (it3.hasNext()) {
a(sb2, it3.next().f());
}
sb2.append("\n========== END ==========");
y.f("MediationDebuggerListAdapter", sb2.toString());
this.f30751i.append(sb2.toString());
}
private List<c> p() {
String str;
String str2;
ArrayList arrayList = new ArrayList(5);
try {
str = this.f30847c.getPackageManager().getPackageInfo(this.f30847c.getPackageName(), 0).versionName;
} catch (Throwable unused) {
str = null;
}
arrayList.add(c.p().a("Package Name").b(this.f30847c.getPackageName()).a());
c.a a11 = c.p().a("App Version");
String str3 = "None";
if (!StringUtils.isValidString(str)) {
str = "None";
}
arrayList.add(a11.b(str).a());
arrayList.add(c.p().a("OS").b(Utils.getAndroidOSInfo()).a());
c.a a12 = c.p().a("Account");
if (!StringUtils.isValidString(this.f30749g)) {
str2 = "None";
} else {
str2 = this.f30749g;
}
arrayList.add(a12.b(str2).a());
c.a a13 = c.p().a("Mediation Provider");
if (StringUtils.isValidString(this.f30744a.s())) {
str3 = this.f30744a.s();
}
arrayList.add(a13.b(str3).a());
arrayList.add(c.p().a("OM SDK Version").b(this.f30744a.ag().c()).a());
arrayList.add(b(p.A()));
return arrayList;
}
private List<c> q() {
Map<String, String> metaData;
String str;
ArrayList arrayList = new ArrayList(4);
arrayList.add(c.p().a("SDK Version").b(AppLovinSdk.VERSION).a());
String str2 = (String) this.f30744a.a(com.applovin.impl.sdk.c.b.dU);
c.a a11 = c.p().a("Plugin Version");
String str3 = "None";
if (!StringUtils.isValidString(str2)) {
str2 = "None";
}
arrayList.add(a11.b(str2).a());
c.a a12 = c.p().a("Ad Review Version");
String a13 = g.a();
if (StringUtils.isValidString(a13)) {
String b11 = g.b();
if (StringUtils.isValidString(b11)) {
if (b11.equals(this.f30744a.B())) {
a12.b(a13);
} else {
StringBuilder sb2 = new StringBuilder("MAX Ad Review integrated with wrong SDK key. Please check that your ");
if (this.f30744a.g()) {
str = "SDK key is downloaded";
} else {
str = "Gradle plugin snippet is integrated";
}
sb2.append(str);
sb2.append(" from the correct account.");
a(a12, sb2.toString());
}
} else {
a12.b(a13);
}
} else {
a(a12, "Integrating MAX Ad review is OPTIONAL. This feature gives developers unprecedented transparency into the creatives the users see in their apps.");
}
arrayList.add(a12.a());
if (this.f30744a.g() && (metaData = Utils.getMetaData(this.f30744a.C())) != null) {
String str4 = metaData.get("UnityVersion");
if (StringUtils.isValidString(str4)) {
str3 = str4;
}
arrayList.add(b("Unity Version", str3));
}
return arrayList;
}
private List<c> r() {
ArrayList arrayList = new ArrayList(3);
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.b.a.a(), true, this.f30847c));
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.b.a.b(), false, this.f30847c));
arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(com.applovin.impl.b.a.c(), true, this.f30847c));
return arrayList;
}
private List<c> s() {
return a((String) null, (String) null);
}
public boolean a() {
return this.f30752j.get();
}
public boolean b() {
return this.f30753k;
}
public p c() {
return this.f30744a;
}
public List<com.applovin.impl.mediation.debugger.b.a.a> d() {
return this.f30745b;
}
@Override
public int e() {
return EnumC0547b.COUNT.ordinal();
}
public List<com.applovin.impl.mediation.debugger.b.a.a> f() {
return this.f30746d;
}
public String g() {
return this.f30747e;
}
@Override
public String getCommunicatorId() {
return "MediationDebuggerListAdapter";
}
public String h() {
return this.f30748f;
}
public List<com.applovin.impl.mediation.debugger.b.a.d> i() {
return this.f30757o;
}
public List<com.applovin.impl.mediation.debugger.b.a.d> j() {
return this.f30758p;
}
public List<com.applovin.impl.mediation.debugger.b.c.b> k() {
return this.f30759q;
}
public String l() {
return this.f30751i.toString();
}
@Override
public void onMessageReceived(AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
if ("privacy_setting_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.f30762t = r();
m();
return;
}
if ("network_sdk_version_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.f30764v = d(this.f30754l);
this.f30765w = d(this.f30755m);
m();
} else if ("live_network_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.f30763u = a(appLovinCommunicatorMessage.getMessageData().getString("live_network", null), (String) null);
m();
} else if ("test_mode_network_updated".equals(appLovinCommunicatorMessage.getTopic())) {
this.f30763u = a((String) null, appLovinCommunicatorMessage.getMessageData().getString("test_mode_network", null));
m();
}
}
public String toString() {
return "MediationDebuggerListAdapter{isInitialized=" + this.f30752j.get() + "}";
}
private List<c> d(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.f30847c));
}
return arrayList;
}
public void a(boolean z11) {
this.f30753k = z11;
}
@Override
public c b(int i11) {
if (i11 == EnumC0547b.APP_INFO.ordinal()) {
return new e("APP INFO");
}
if (i11 == EnumC0547b.MAX.ordinal()) {
return new e("MAX");
}
if (i11 == EnumC0547b.PRIVACY.ordinal()) {
return new e("PRIVACY");
}
if (i11 == EnumC0547b.ADS.ordinal()) {
return new e("ADS");
}
if (i11 == EnumC0547b.INCOMPLETE_NETWORKS.ordinal()) {
return new e("INCOMPLETE INTEGRATIONS");
}
if (i11 == EnumC0547b.COMPLETED_NETWORKS.ordinal()) {
return new e("COMPLETED INTEGRATIONS");
}
return new e("MISSING INTEGRATIONS");
}
@Override
public List<c> c(int i11) {
if (i11 == EnumC0547b.APP_INFO.ordinal()) {
return this.f30760r;
}
if (i11 == EnumC0547b.MAX.ordinal()) {
return this.f30761s;
}
if (i11 == EnumC0547b.PRIVACY.ordinal()) {
return this.f30762t;
}
if (i11 == EnumC0547b.ADS.ordinal()) {
return this.f30763u;
}
if (i11 == EnumC0547b.INCOMPLETE_NETWORKS.ordinal()) {
return this.f30764v;
}
if (i11 == EnumC0547b.COMPLETED_NETWORKS.ordinal()) {
return this.f30765w;
}
return this.f30766x;
}
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, com.applovin.impl.mediation.debugger.b.b.b bVar, String str, String str2, String str3, p pVar) {
this.f30744a = pVar;
this.f30745b = list2;
this.f30746d = list3;
this.f30750h = bVar;
this.f30747e = str;
this.f30748f = str2;
this.f30749g = str3;
if (list != null && this.f30752j.compareAndSet(false, true)) {
pVar.L();
if (y.a()) {
pVar.L().b("MediationDebuggerListAdapter", "Populating networks...");
}
a(list);
b(list2);
c(this.f30755m);
this.f30760r.addAll(p());
this.f30761s.addAll(q());
this.f30762t.addAll(r());
this.f30763u.addAll(s());
this.f30764v = d(this.f30754l);
this.f30765w = d(this.f30755m);
this.f30766x = d(this.f30756n);
ArrayList arrayList = new ArrayList(3);
arrayList.add("privacy_setting_updated");
arrayList.add("network_sdk_version_updated");
arrayList.add("live_network_updated");
arrayList.add("test_mode_network_updated");
AppLovinCommunicator.getInstance(this.f30847c).subscribe(this, arrayList);
o();
}
AppLovinSdkUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
b.this.notifyDataSetChanged();
}
});
}
private void b(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.c e11 = it.next().e();
Iterator<com.applovin.impl.mediation.debugger.b.a.b> it2 = e11.a().iterator();
while (it2.hasNext()) {
hashSet.add(it2.next().a());
}
Iterator<com.applovin.impl.mediation.debugger.b.a.b> it3 = e11.b().iterator();
while (it3.hasNext()) {
hashSet2.add(it3.next().a());
}
}
this.f30757o = new ArrayList(hashSet);
this.f30758p = new ArrayList(hashSet2);
Collections.sort(this.f30757o);
Collections.sort(this.f30758p);
}
private void c(List<com.applovin.impl.mediation.debugger.b.c.b> list) {
for (com.applovin.impl.mediation.debugger.b.c.b bVar : list) {
if (bVar.c() == b.EnumC0542b.READY) {
this.f30759q.add(bVar);
}
}
}
private c b(String str, String str2) {
c.a a11 = c.p().a(str);
if (StringUtils.isValidString(str2)) {
a11.b(str2);
} else {
a11.a(R.drawable.applovin_ic_x_mark);
a11.c(com.applovin.impl.sdk.utils.g.a(R.color.applovin_sdk_xmarkColor, this.f30847c));
}
return a11.a();
}
@Override
public int a(int i11) {
if (i11 == EnumC0547b.APP_INFO.ordinal()) {
return this.f30760r.size();
}
if (i11 == EnumC0547b.MAX.ordinal()) {
return this.f30761s.size();
}
if (i11 == EnumC0547b.PRIVACY.ordinal()) {
return this.f30762t.size();
}
if (i11 == EnumC0547b.ADS.ordinal()) {
return this.f30763u.size();
}
if (i11 == EnumC0547b.INCOMPLETE_NETWORKS.ordinal()) {
return this.f30764v.size();
}
if (i11 == EnumC0547b.COMPLETED_NETWORKS.ordinal()) {
return this.f30765w.size();
}
return this.f30766x.size();
}
private c b(String str) {
c.a p11 = c.p();
if (this.f30744a.av().a()) {
p11.a(this.f30847c);
}
StringBuilder sb2 = new StringBuilder();
sb2.append(StringUtils.isValidString(str) ? "" : "Select ");
sb2.append("Test Mode Network");
c.a a11 = p11.a(sb2.toString());
if (!this.f30744a.av().a()) {
str = "Enable";
}
return a11.b(str).b(-16776961).d("Please re-launch the app to enable test mode. This will allow the selection of test mode networks.").a(true).a();
}
private c b(boolean z11) {
return c.p().a("Java 8").a(z11 ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).c(com.applovin.impl.sdk.utils.g.a(z11 ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.f30847c)).c("Upgrade to Java 8").d("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").a(!z11).a();
}
@Override
public void a(com.applovin.impl.mediation.debugger.b.b.a aVar, String str) {
String b11;
List<com.applovin.impl.mediation.debugger.b.b.b> list = aVar.a().get(this.f30750h.a());
boolean contains = list != null ? list.contains(this.f30750h) : false;
if (contains) {
b11 = "Correct AppLovin entry found at " + str + ".";
} else {
b11 = b(a.b.MISSING_REQUIRED_ENTRY, str);
}
this.f30761s.add(a(b11, contains));
m();
}
@Override
public void a(a.b bVar, @Nullable String str) {
if (bVar == a.b.DEVELOPER_URI_NOT_FOUND) {
this.f30744a.L();
if (y.a()) {
this.f30744a.L().b("MediationDebuggerListAdapter", "Developer URI was not found; app-ads.txt row will not show on the mediation debugger");
return;
}
return;
}
this.f30761s.add(a(b(bVar, str), false));
m();
}
private String b(a.b bVar, @Nullable String str) {
if (TextUtils.isEmpty(str)) {
str = "app-ads.txt URL";
}
int i11 = AnonymousClass2.f30768a[bVar.ordinal()];
if (i11 == 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 (i11 == 2) {
return "Unable to find app-ads.txt file or parse entries of the file at " + str + ".";
}
if (i11 != 3) {
return "";
}
return "Text file at " + str + " is missing required line:\n\n" + this.f30750h.e();
}
private void a(StringBuilder sb2, String str) {
String sb3 = sb2.toString();
if (sb3.length() + str.length() >= ((Integer) this.f30744a.a(com.applovin.impl.sdk.c.b.f31470ar)).intValue()) {
y.f("MediationDebuggerListAdapter", sb3);
this.f30751i.append(sb3);
sb2.setLength(1);
}
sb2.append(str);
}
private void a(List<com.applovin.impl.mediation.debugger.b.c.b> list) {
for (com.applovin.impl.mediation.debugger.b.c.b bVar : list) {
if (!bVar.g()) {
if (bVar.a() != b.a.INCOMPLETE_INTEGRATION && bVar.a() != b.a.INVALID_INTEGRATION) {
if (bVar.a() == b.a.COMPLETE) {
this.f30755m.add(bVar);
} else if (bVar.a() == b.a.MISSING) {
this.f30756n.add(bVar);
}
} else {
this.f30754l.add(bVar);
}
}
}
}
private List<c> a(@Nullable String str, @Nullable String str2) {
ArrayList arrayList = new ArrayList(3);
arrayList.add(c.p().a("View Ad Units (" + this.f30745b.size() + ")").a(this.f30847c).a(true).a());
arrayList.add(a(str));
arrayList.add(b(str2));
if (!this.f30746d.isEmpty()) {
arrayList.add(c.p().a("Selective Init Ad Units (" + this.f30746d.size() + ")").a(this.f30847c).a(true).a());
}
return arrayList;
}
private void a(c.a aVar, String str) {
aVar.c("MAX Ad Review").d(str).a(R.drawable.applovin_ic_x_mark).c(com.applovin.impl.sdk.utils.g.a(R.color.applovin_sdk_xmarkColor, this.f30847c)).a(true);
}
private c a(String str) {
c.a p11 = c.p();
if (!this.f30744a.av().a()) {
p11.a(this.f30847c);
}
StringBuilder sb2 = new StringBuilder();
sb2.append(StringUtils.isValidString(str) ? "" : "Select ");
sb2.append("Live Network");
c.a a11 = p11.a(sb2.toString());
if (this.f30744a.av().a()) {
str = "Enable";
}
return a11.b(str).b(-16776961).d("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.").a(true).a();
}
private c a(String str, boolean z11) {
return c.p().a("app-ads.txt").a(z11 ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).c(com.applovin.impl.sdk.utils.g.a(z11 ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.f30847c)).c("app-ads.txt").d(str).a(true).a();
}
}