Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e

以下内容为反编译后的 b.java 源代码,内容仅作参考


package com.applovin.impl.mediation.debugger.ui.b;

import android.content.Context;
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.sdk.e;
import com.applovin.impl.sdk.k;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.impl.sdk.utils.g;
import com.applovin.impl.sdk.v;
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.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
public class b extends d implements AppLovinCommunicatorSubscriber, a.InterfaceC0075a {
    private n a;
    private List<com.applovin.impl.mediation.debugger.b.a.a> b;
    private List<com.applovin.impl.mediation.debugger.b.a.a> d;
    private String e;
    private String f;
    private String g;
    private com.applovin.impl.mediation.debugger.b.b.b h;
    private final StringBuilder i;
    private final AtomicBoolean j;
    private boolean k;
    private List<com.applovin.impl.mediation.debugger.b.c.b> l;
    private List<com.applovin.impl.mediation.debugger.b.c.b> m;
    private List<com.applovin.impl.mediation.debugger.b.c.b> n;
    private List<com.applovin.impl.mediation.debugger.b.a.d> o;
    private List<com.applovin.impl.mediation.debugger.b.a.d> p;
    private List<com.applovin.impl.mediation.debugger.b.c.b> q;
    private List<c> r;
    private List<c> s;
    private List<c> t;
    private List<c> u;
    private List<c> v;
    private List<c> w;
    private List<c> x;

    public enum a {
        AD_UNITS,
        SELECT_LIVE_NETWORKS,
        SELECT_TEST_MODE_NETWORKS,
        INITIALIZATION_AD_UNITS,
        COUNT
    }

    public enum EnumC0082b {
        APP_INFO,
        MAX,
        PRIVACY,
        ADS,
        INCOMPLETE_NETWORKS,
        COMPLETED_NETWORKS,
        MISSING_NETWORKS,
        COUNT
    }

    public b(Context context) {
        super(context);
        this.i = new StringBuilder("");
        this.j = new AtomicBoolean();
        this.k = false;
        this.l = new ArrayList();
        this.m = new ArrayList();
        this.n = new ArrayList();
        this.o = new ArrayList();
        this.p = new ArrayList();
        this.q = new ArrayList();
        this.r = new ArrayList();
        this.s = new ArrayList();
        this.t = new ArrayList();
        this.u = new ArrayList();
        this.v = new ArrayList();
        this.w = new ArrayList();
        this.x = new ArrayList();
    }

    private c a(String str) {
        c.a p = c.p();
        if (!this.a.ap().a()) {
            p.a(this.c);
        }
        StringBuilder sb = new StringBuilder();
        sb.append(StringUtils.isValidString(str) ? "" : "Select ");
        sb.append("Live Network");
        c.a a2 = p.a(sb.toString());
        if (this.a.ap().a()) {
            str = "Enable";
        }
        return a2.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 List<c> a(String str, String str2) {
        ArrayList arrayList = new ArrayList(3);
        c.a p = c.p();
        arrayList.add(p.a("View Ad Units (" + this.b.size() + ")").a(this.c).a(true).a());
        arrayList.add(a(str));
        arrayList.add(b(str2));
        if (!this.d.isEmpty()) {
            c.a p2 = c.p();
            arrayList.add(p2.a("Selective Init Ad Units (" + this.d.size() + ")").a(this.c).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(g.a(R.color.applovin_sdk_xmarkColor, this.c)).a(true);
    }

    private void a(StringBuilder sb, String str) {
        String sb2 = sb.toString();
        if (sb2.length() + str.length() >= ((Integer) this.a.a(com.applovin.impl.sdk.c.b.at)).intValue()) {
            v.f("MediationDebuggerListAdapter", sb2);
            this.i.append(sb2);
            sb.setLength(1);
        }
        sb.append(str);
    }

    private void a(List<com.applovin.impl.mediation.debugger.b.c.b> list) {
        List<com.applovin.impl.mediation.debugger.b.c.b> list2;
        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) {
                    list2 = this.l;
                } else if (bVar.a() == b.a.COMPLETE) {
                    list2 = this.m;
                } else if (bVar.a() == b.a.MISSING) {
                    list2 = this.n;
                }
                list2.add(bVar);
            }
        }
    }

    private c b(String str) {
        c.a p = c.p();
        if (this.a.ap().a()) {
            p.a(this.c);
        }
        StringBuilder sb = new StringBuilder();
        sb.append(StringUtils.isValidString(str) ? "" : "Select ");
        sb.append("Test Mode Network");
        c.a a2 = p.a(sb.toString());
        if (!this.a.ap().a()) {
            str = "Enable";
        }
        return a2.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(String str, String str2) {
        c.a a2 = c.p().a(str);
        if (StringUtils.isValidString(str2)) {
            a2.b(str2);
        } else {
            a2.a(R.drawable.applovin_ic_x_mark);
            a2.c(g.a(R.color.applovin_sdk_xmarkColor, this.c));
        }
        return a2.a();
    }

    private c b(boolean z) {
        return c.p().a("app-ads.txt").a(z ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).c(g.a(z ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this.c)).a(false).a();
    }

    private void b(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.c e = aVar.e();
            for (com.applovin.impl.mediation.debugger.b.a.b bVar : e.a()) {
                hashSet.add(bVar.a());
            }
            for (com.applovin.impl.mediation.debugger.b.a.b bVar2 : e.b()) {
                hashSet2.add(bVar2.a());
            }
        }
        this.o = new ArrayList(hashSet);
        this.p = new ArrayList(hashSet2);
        Collections.sort(this.o);
        Collections.sort(this.p);
    }

    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.EnumC0077b.READY) {
                this.q.add(bVar);
            }
        }
    }

    private List<c> d(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.c));
        }
        return arrayList;
    }

    private void o() {
        Map<String, String> metaData;
        StringBuilder sb = new StringBuilder("\n========== MEDIATION DEBUGGER ==========");
        sb.append("\n========== APP INFO ==========");
        sb.append("\nDev Build - " + Utils.isPubInDebugMode(this.c, this.a));
        StringBuilder sb2 = new StringBuilder();
        sb2.append("\nTest Mode - ");
        sb2.append(this.a.ap().a() ? "enabled" : "disabled");
        sb.append(sb2.toString());
        sb.append("\nTarget SDK - " + this.a.O().h().get("target_sdk"));
        sb.append("\n========== MAX ==========");
        String str = AppLovinSdk.VERSION;
        String str2 = (String) this.a.a(com.applovin.impl.sdk.c.b.dR);
        String a2 = e.a();
        sb.append("\nSDK Version - " + str);
        StringBuilder sb3 = new StringBuilder();
        sb3.append("\nPlugin Version - ");
        if (!StringUtils.isValidString(str2)) {
            str2 = "None";
        }
        sb3.append(str2);
        sb.append(sb3.toString());
        StringBuilder sb4 = new StringBuilder();
        sb4.append("\nAd Review Version - ");
        if (!StringUtils.isValidString(a2)) {
            a2 = "Disabled";
        }
        sb4.append(a2);
        sb.append(sb4.toString());
        if (this.a.g() && (metaData = Utils.getMetaData(this.a.B())) != null) {
            String str3 = metaData.get("UnityVersion");
            StringBuilder sb5 = new StringBuilder();
            sb5.append("\nUnity Version - ");
            sb5.append(StringUtils.isValidString(str3) ? str3 : "None");
            sb.append(sb5.toString());
        }
        sb.append("\n========== PRIVACY ==========");
        sb.append(k.a(this.c));
        sb.append("\n========== NETWORKS ==========");
        for (com.applovin.impl.mediation.debugger.b.c.b bVar : this.m) {
            a(sb, bVar.z());
        }
        for (com.applovin.impl.mediation.debugger.b.c.b bVar2 : this.l) {
            a(sb, bVar2.z());
        }
        sb.append("\n========== AD UNITS ==========");
        for (com.applovin.impl.mediation.debugger.b.a.a aVar : this.b) {
            a(sb, aVar.f());
        }
        sb.append("\n========== END ==========");
        v.f("MediationDebuggerListAdapter", sb.toString());
        this.i.append(sb.toString());
    }

    private List<c> p() {
        String str;
        ArrayList arrayList = new ArrayList(5);
        try {
            str = this.c.getPackageManager().getPackageInfo(this.c.getPackageName(), 0).versionName;
        } catch (Throwable unused) {
            str = null;
        }
        arrayList.add(c.p().a("Package Name").b(this.c.getPackageName()).a());
        c.a a2 = c.p().a("App Version");
        if (!StringUtils.isValidString(str)) {
            str = "None";
        }
        arrayList.add(a2.b(str).a());
        arrayList.add(c.p().a("OS").b(Utils.getAndroidOSInfo()).a());
        arrayList.add(c.p().a("Account").b(StringUtils.isValidString(this.g) ? this.g : "None").a());
        arrayList.add(c.p().a("Mediation Provider").b(StringUtils.isValidString(this.a.r()) ? this.a.r() : "None").a());
        arrayList.add(c.p().a("OM SDK Version").b(this.a.ab().c()).a());
        if (!n.z()) {
            arrayList.add(t());
        }
        return arrayList;
    }

    private List<c> q() {
        String str;
        Map<String, String> metaData;
        ArrayList arrayList = new ArrayList(4);
        arrayList.add(c.p().a("SDK Version").b(AppLovinSdk.VERSION).a());
        String str2 = (String) this.a.a(com.applovin.impl.sdk.c.b.dR);
        c.a a2 = c.p().a("Plugin Version");
        if (!StringUtils.isValidString(str2)) {
            str2 = "None";
        }
        arrayList.add(a2.b(str2).a());
        c.a a3 = c.p().a("Ad Review Version");
        String a4 = e.a();
        if (StringUtils.isValidString(a4)) {
            String b = e.b();
            if (!StringUtils.isValidString(b) || b.equals(this.a.A())) {
                a3.b(a4);
                arrayList.add(a3.a());
                if (this.a.g() && (metaData = Utils.getMetaData(this.a.B())) != null) {
                    String str3 = metaData.get("UnityVersion");
                    arrayList.add(b("Unity Version", StringUtils.isValidString(str3) ? str3 : "None"));
                }
                return arrayList;
            }
            StringBuilder sb = new StringBuilder("MAX Ad Review integrated with wrong SDK key. Please check that your ");
            sb.append(this.a.g() ? "SDK key is downloaded" : "Gradle plugin snippet is integrated");
            sb.append(" from the correct account.");
            str = sb.toString();
        } else {
            str = "Integrating MAX Ad review is OPTIONAL. This feature gives developers unprecedented transparency into the creatives the users see in their apps.";
        }
        a(a3, str);
        arrayList.add(a3.a());
        if (this.a.g()) {
            String str32 = metaData.get("UnityVersion");
            arrayList.add(b("Unity Version", StringUtils.isValidString(str32) ? str32 : "None"));
        }
        return arrayList;
    }

    private List<c> r() {
        ArrayList arrayList = new ArrayList(3);
        arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(k.a(), true, this.c));
        arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(k.b(), false, this.c));
        arrayList.add(new com.applovin.impl.mediation.debugger.ui.b.a.b(k.c(), true, this.c));
        return arrayList;
    }

    private List<c> s() {
        return a((String) null, (String) null);
    }

    private c t() {
        return c.p().a("Java 8").a(R.drawable.applovin_ic_x_mark).c(g.a(R.color.applovin_sdk_xmarkColor, this.c)).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(true).a();
    }

    @Override
    protected int a(int i) {
        return (i == EnumC0082b.APP_INFO.ordinal() ? this.r : i == EnumC0082b.MAX.ordinal() ? this.s : i == EnumC0082b.PRIVACY.ordinal() ? this.t : i == EnumC0082b.ADS.ordinal() ? this.u : i == EnumC0082b.INCOMPLETE_NETWORKS.ordinal() ? this.v : i == EnumC0082b.COMPLETED_NETWORKS.ordinal() ? this.w : this.x).size();
    }

    @Override
    public void a(a.b bVar) {
        if (bVar != a.b.DEVELOPER_URI_NOT_FOUND) {
            this.s.add(b(false));
            m();
            return;
        }
        this.a.J();
        if (v.a()) {
            this.a.J().b("MediationDebuggerListAdapter", "Developer URI was not found; app-ads.txt row will not show on the mediation debugger");
        }
    }

    @Override
    public void a(com.applovin.impl.mediation.debugger.b.b.a aVar) {
        List<com.applovin.impl.mediation.debugger.b.b.b> list = aVar.a().get(this.h.a());
        this.s.add(b(list != null ? list.contains(this.h) : false));
        m();
    }

    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, n nVar) {
        this.a = nVar;
        this.b = list2;
        this.d = list3;
        this.h = bVar;
        this.e = str;
        this.f = str2;
        this.g = str3;
        if (list != null && this.j.compareAndSet(false, true)) {
            nVar.J();
            if (v.a()) {
                nVar.J().b("MediationDebuggerListAdapter", "Populating networks...");
            }
            a(list);
            b(list2);
            c(this.m);
            this.r.addAll(p());
            this.s.addAll(q());
            this.t.addAll(r());
            this.u.addAll(s());
            this.v = d(this.l);
            this.w = d(this.m);
            this.x = d(this.n);
            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.c).subscribe(this, arrayList);
            o();
        }
        AppLovinSdkUtils.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                b.this.notifyDataSetChanged();
            }
        });
    }

    public void a(boolean z) {
        this.k = z;
    }

    public boolean a() {
        return this.j.get();
    }

    @Override
    protected c b(int i) {
        return i == EnumC0082b.APP_INFO.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("APP INFO") : i == EnumC0082b.MAX.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("MAX") : i == EnumC0082b.PRIVACY.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("PRIVACY") : i == EnumC0082b.ADS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("ADS") : i == EnumC0082b.INCOMPLETE_NETWORKS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("INCOMPLETE INTEGRATIONS") : i == EnumC0082b.COMPLETED_NETWORKS.ordinal() ? new com.applovin.impl.mediation.debugger.ui.d.e("COMPLETED INTEGRATIONS") : new com.applovin.impl.mediation.debugger.ui.d.e("MISSING INTEGRATIONS");
    }

    public boolean b() {
        return this.k;
    }

    public n c() {
        return this.a;
    }

    @Override
    protected List<c> c(int i) {
        return i == EnumC0082b.APP_INFO.ordinal() ? this.r : i == EnumC0082b.MAX.ordinal() ? this.s : i == EnumC0082b.PRIVACY.ordinal() ? this.t : i == EnumC0082b.ADS.ordinal() ? this.u : i == EnumC0082b.INCOMPLETE_NETWORKS.ordinal() ? this.v : i == EnumC0082b.COMPLETED_NETWORKS.ordinal() ? this.w : this.x;
    }

    public List<com.applovin.impl.mediation.debugger.b.a.a> d() {
        return this.b;
    }

    @Override
    protected int e() {
        return EnumC0082b.COUNT.ordinal();
    }

    public List<com.applovin.impl.mediation.debugger.b.a.a> f() {
        return this.d;
    }

    public String g() {
        return this.e;
    }

    @Override
    public String getCommunicatorId() {
        return "MediationDebuggerListAdapter";
    }

    public String h() {
        return this.f;
    }

    public List<com.applovin.impl.mediation.debugger.b.a.d> i() {
        return this.o;
    }

    public List<com.applovin.impl.mediation.debugger.b.a.d> j() {
        return this.p;
    }

    public List<com.applovin.impl.mediation.debugger.b.c.b> k() {
        return this.q;
    }

    public String l() {
        return this.i.toString();
    }

    @Override
    public void onMessageReceived(AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
        List<c> a2;
        if ("privacy_setting_updated".equals(appLovinCommunicatorMessage.getTopic())) {
            this.t = r();
        } else if ("network_sdk_version_updated".equals(appLovinCommunicatorMessage.getTopic())) {
            this.v = d(this.l);
            this.w = d(this.m);
        } else {
            if ("live_network_updated".equals(appLovinCommunicatorMessage.getTopic())) {
                a2 = a(appLovinCommunicatorMessage.getMessageData().getString("live_network", null), (String) null);
            } else if (!"test_mode_network_updated".equals(appLovinCommunicatorMessage.getTopic())) {
                return;
            } else {
                a2 = a((String) null, appLovinCommunicatorMessage.getMessageData().getString("test_mode_network", null));
            }
            this.u = a2;
        }
        m();
    }

    public String toString() {
        return "MediationDebuggerListAdapter{isInitialized=" + this.j.get() + "}";
    }
}