Idle Egg Factory v2.1.5版本的 MD5 值为:7d2ba6677008ca521af0101bb927d72a
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.ui.c;
import android.content.Context;
import android.text.SpannableString;
import android.text.SpannedString;
import android.text.TextUtils;
import android.text.style.AbsoluteSizeSpan;
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.n;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.g;
import com.applovin.mediation.adapter.MaxAdapter;
import com.applovin.sdk.AppLovinPrivacySettings;
import com.applovin.sdk.R;
import java.util.ArrayList;
import java.util.List;
public class b extends d {
private final com.applovin.impl.mediation.debugger.b.c.b f1514a;
private List<c> b;
private final List<c> d;
private final List<c> e;
private final List<c> f;
private final List<c> g;
private SpannedString h;
public enum a {
INTEGRATIONS,
PERMISSIONS,
CONFIGURATION,
DEPENDENCIES,
TEST_ADS,
COUNT
}
public b(com.applovin.impl.mediation.debugger.b.c.b bVar, Context context) {
super(context);
this.f1514a = bVar;
if (bVar.a() == b.a.INVALID_INTEGRATION) {
SpannableString spannableString = new SpannableString("Tap for more information");
spannableString.setSpan(new AbsoluteSizeSpan(12, true), 0, spannableString.length(), 33);
this.h = new SpannedString(spannableString);
} else {
this.h = new SpannedString("");
}
this.b = c();
this.d = a(bVar.r());
this.e = a(bVar.u());
this.f = b(bVar.s());
this.g = h();
notifyDataSetChanged();
}
private int a(boolean z) {
return z ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark;
}
private c a(b.EnumC0075b enumC0075b) {
c.a p = c.p();
if (enumC0075b == b.EnumC0075b.READY) {
p.a(this.c);
}
return p.a("Test Mode").b(enumC0075b.a()).b(enumC0075b.b()).c("Restart Required").d(enumC0075b.c()).a(true).a();
}
private c a(String str, String str2, boolean z, boolean z2) {
return c.a(z ? c.b.RIGHT_DETAIL : c.b.DETAIL).a(str).b(z ? null : this.h).c("Instructions").d(str2).a(z ? R.drawable.applovin_ic_check_mark_bordered : b(z2)).c(z ? g.a(R.color.applovin_sdk_checkmarkColor, this.c) : d(z2)).a(!z).a();
}
private List<c> a(com.applovin.impl.mediation.debugger.b.c.c cVar) {
ArrayList arrayList = new ArrayList(1);
if (cVar.a()) {
arrayList.add(a("Cleartext Traffic", cVar.c(), cVar.b(), false));
}
if (this.f1514a.t()) {
arrayList.add(a("Java 8", "For optimal performance, please enable Java 8 support. See: https://dash.applovin.com/documentation/mediation/android/getting-started/integration", n.B(), true));
}
return arrayList;
}
private List<c> a(List<com.applovin.impl.mediation.debugger.b.c.d> list) {
ArrayList arrayList = new ArrayList(list.size());
if (list.size() > 0) {
for (com.applovin.impl.mediation.debugger.b.c.d dVar : list) {
arrayList.add(a(dVar.a(), dVar.b(), dVar.c(), true));
}
}
return arrayList;
}
private int b(boolean z) {
return z ? R.drawable.applovin_ic_x_mark : R.drawable.applovin_ic_warning;
}
private List<c> b(List<com.applovin.impl.mediation.debugger.b.c.a> list) {
ArrayList arrayList = new ArrayList(list.size());
if (list.size() > 0) {
for (com.applovin.impl.mediation.debugger.b.c.a aVar : list) {
arrayList.add(a(aVar.a(), aVar.b(), aVar.c(), true));
}
}
return arrayList;
}
private int c(boolean z) {
return g.a(z ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.c);
}
private c c(List<String> list) {
return c.p().a("Region/VPN Required").b(CollectionUtils.implode(list, ", ", list.size())).a();
}
private List<c> c() {
ArrayList arrayList = new ArrayList(3);
arrayList.add(d());
arrayList.add(f());
arrayList.add(g());
return arrayList;
}
private int d(boolean z) {
return g.a(z ? R.color.applovin_sdk_xmarkColor : R.color.applovin_sdk_warningColor, this.c);
}
private c d() {
c.a b = c.p().a("SDK").b(this.f1514a.j());
if (TextUtils.isEmpty(this.f1514a.j())) {
b.a(a(this.f1514a.d())).c(c(this.f1514a.d()));
}
return b.a();
}
private String e(int i) {
return (MaxAdapter.InitializationStatus.INITIALIZED_SUCCESS.getCode() == i || MaxAdapter.InitializationStatus.INITIALIZED_UNKNOWN.getCode() == i || MaxAdapter.InitializationStatus.DOES_NOT_APPLY.getCode() == i) ? "Initialized" : MaxAdapter.InitializationStatus.INITIALIZED_FAILURE.getCode() == i ? "Failure" : MaxAdapter.InitializationStatus.INITIALIZING.getCode() == i ? "Initializing..." : "Not Initialized";
}
private c f() {
c.a b = c.p().a("Adapter").b(this.f1514a.k());
if (TextUtils.isEmpty(this.f1514a.k())) {
b.a(a(this.f1514a.e())).c(c(this.f1514a.e()));
}
return b.a();
}
private c g() {
return c.p().a("Initialization Status").b(e(this.f1514a.b())).a(false).a();
}
private List<c> h() {
ArrayList arrayList = new ArrayList(3);
if (StringUtils.isValidString(this.f1514a.w())) {
arrayList.add(c.a(c.b.DETAIL).a(this.f1514a.w()).a());
}
if (this.f1514a.c() == b.EnumC0075b.NOT_SUPPORTED) {
return arrayList;
}
if (this.f1514a.n() != null) {
arrayList.add(c(this.f1514a.n()));
}
if (this.f1514a.x()) {
arrayList.add(a("Not an Age Restricted User", "Test mode requires Age Restricted User (COPPA) to be set to false.", !AppLovinPrivacySettings.isAgeRestrictedUser(this.c) && AppLovinPrivacySettings.isAgeRestrictedUserSet(this.c), false));
}
arrayList.add(a(this.f1514a.c()));
return arrayList;
}
@Override
protected int a(int i) {
return (i == a.INTEGRATIONS.ordinal() ? this.b : i == a.PERMISSIONS.ordinal() ? this.d : i == a.CONFIGURATION.ordinal() ? this.e : i == a.DEPENDENCIES.ordinal() ? this.f : this.g).size();
}
public com.applovin.impl.mediation.debugger.b.c.b a() {
return this.f1514a;
}
public boolean a(com.applovin.impl.mediation.debugger.ui.d.a aVar) {
return aVar.a() == a.TEST_ADS.ordinal() && aVar.b() == this.g.size() - 1;
}
@Override
protected c b(int i) {
return i == a.INTEGRATIONS.ordinal() ? new e("INTEGRATIONS") : i == a.PERMISSIONS.ordinal() ? new e("PERMISSIONS") : i == a.CONFIGURATION.ordinal() ? new e("CONFIGURATION") : i == a.DEPENDENCIES.ordinal() ? new e("DEPENDENCIES") : new e("TEST ADS");
}
public void b() {
this.b = c();
}
@Override
protected List<c> c(int i) {
return i == a.INTEGRATIONS.ordinal() ? this.b : i == a.PERMISSIONS.ordinal() ? this.d : i == a.CONFIGURATION.ordinal() ? this.e : i == a.DEPENDENCIES.ordinal() ? this.f : this.g;
}
@Override
protected int e() {
return a.COUNT.ordinal();
}
public String toString() {
return "MediatedNetworkListAdapter{}";
}
}