APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Consulta Recibo Luz Guia
版本号:8.0
包名称:com.satruk.consultareciboluzcfe

MD5 校验值:d53ec1a251294bef920c76a08ee856d9

反编译源代码说明

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.MaxReward;
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 arS;
    private List<c> arZ;
    private final List<c> asa;
    private final List<c> asb;
    private final List<c> asc;
    private final List<c> asd;
    private SpannedString ase;

    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.arS = bVar;
        if (bVar.vl() == b.a.INVALID_INTEGRATION) {
            SpannableString spannableString = new SpannableString("Tap for more information");
            spannableString.setSpan(new AbsoluteSizeSpan(12, true), 0, spannableString.length(), 33);
            this.ase = new SpannedString(spannableString);
        } else {
            this.ase = new SpannedString(MaxReward.DEFAULT_LABEL);
        }
        this.arZ = wI();
        this.asa = x(bVar.vB());
        this.asb = wM();
        this.asc = y(bVar.vC());
        this.asd = wN();
        notifyDataSetChanged();
    }

    private int aB(boolean z) {
        if (z) {
            return R.drawable.applovin_ic_check_mark_bordered;
        }
        return R.drawable.applovin_ic_x_mark;
    }

    private int aC(boolean z) {
        if (z) {
            return R.drawable.applovin_ic_x_mark;
        }
        return R.drawable.applovin_ic_warning;
    }

    private int aD(boolean z) {
        int i;
        if (z) {
            i = R.color.applovin_sdk_checkmarkColor;
        } else {
            i = R.color.applovin_sdk_xmarkColor;
        }
        return g.a(i, this.E);
    }

    private int aE(boolean z) {
        int i;
        if (z) {
            i = R.color.applovin_sdk_xmarkColor;
        } else {
            i = R.color.applovin_sdk_warningColor;
        }
        return g.a(i, this.E);
    }

    private String gj(int i) {
        if (MaxAdapter.InitializationStatus.INITIALIZED_SUCCESS.getCode() != i && MaxAdapter.InitializationStatus.INITIALIZED_UNKNOWN.getCode() != i && MaxAdapter.InitializationStatus.DOES_NOT_APPLY.getCode() != i) {
            if (MaxAdapter.InitializationStatus.INITIALIZED_FAILURE.getCode() == i) {
                return "Failure";
            }
            if (MaxAdapter.InitializationStatus.INITIALIZING.getCode() == i) {
                return "Initializing...";
            }
            return "Not Initialized";
        }
        return "Initialized";
    }

    private List<c> wI() {
        ArrayList arrayList = new ArrayList(3);
        CollectionUtils.addObjectIfExists(wJ(), arrayList);
        CollectionUtils.addObjectIfExists(wK(), arrayList);
        CollectionUtils.addObjectIfExists(wL(), arrayList);
        return arrayList;
    }

    private c wJ() {
        c.a bP = c.wV().bO("SDK").bP(this.arS.getSdkVersion());
        if (TextUtils.isEmpty(this.arS.getSdkVersion())) {
            bP.gk(aB(this.arS.vo())).gn(aD(this.arS.vo()));
        }
        return bP.wW();
    }

    private c wK() {
        c.a bP = c.wV().bO("Adapter").bP(this.arS.getAdapterVersion());
        if (TextUtils.isEmpty(this.arS.getAdapterVersion())) {
            bP.gk(aB(this.arS.vp())).gn(aD(this.arS.vp()));
        }
        return bP.wW();
    }

    private c wL() {
        if (this.arS.vE()) {
            return null;
        }
        return c.wV().bO("Initialization Status").bP(gj(this.arS.vm())).aF(false).wW();
    }

    private List<c> wM() {
        ArrayList arrayList = new ArrayList(1);
        if (this.arS.vD()) {
            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.CF(), true));
        }
        return arrayList;
    }

    private List<c> wN() {
        boolean z;
        ArrayList arrayList = new ArrayList(3);
        if (StringUtils.isValidString(this.arS.vG())) {
            arrayList.add(c.a(c.b.DETAIL).bO(this.arS.vG()).wW());
        }
        if (this.arS.vn() == b.EnumC0051b.NOT_SUPPORTED) {
            return arrayList;
        }
        if (this.arS.vw() != null) {
            arrayList.add(z(this.arS.vw()));
        }
        if (this.arS.vH()) {
            if (!AppLovinPrivacySettings.isAgeRestrictedUser(this.E) && AppLovinPrivacySettings.isAgeRestrictedUserSet(this.E)) {
                z = true;
            } else {
                z = false;
            }
            arrayList.add(a("Not an Age Restricted User", "Test mode requires Age Restricted User (COPPA) to be set to false.", z, false));
        }
        arrayList.add(a(this.arS.vn()));
        return arrayList;
    }

    private List<c> x(List<com.applovin.impl.mediation.debugger.b.c.c> list) {
        ArrayList arrayList = new ArrayList(list.size());
        if (list.size() > 0) {
            for (com.applovin.impl.mediation.debugger.b.c.c cVar : list) {
                arrayList.add(a(cVar.getName(), cVar.vj(), cVar.vk(), true));
            }
        }
        return arrayList;
    }

    private List<c> y(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.getName(), aVar.vj(), aVar.vk(), true));
            }
        }
        return arrayList;
    }

    private c z(List<String> list) {
        return c.wV().bO("Region/VPN Required").bP(CollectionUtils.implode(list, ", ", list.size())).wW();
    }

    public boolean a(com.applovin.impl.mediation.debugger.ui.d.a aVar) {
        return aVar.wO() == a.TEST_ADS.ordinal() && aVar.wP() == this.asd.size() - 1;
    }

    @Override
    public int gg(int i) {
        if (i == a.INTEGRATIONS.ordinal()) {
            return this.arZ.size();
        }
        if (i == a.PERMISSIONS.ordinal()) {
            return this.asa.size();
        }
        if (i == a.CONFIGURATION.ordinal()) {
            return this.asb.size();
        }
        if (i == a.DEPENDENCIES.ordinal()) {
            return this.asc.size();
        }
        return this.asd.size();
    }

    @Override
    public c gh(int i) {
        if (i == a.INTEGRATIONS.ordinal()) {
            return new e("INTEGRATIONS");
        }
        if (i == a.PERMISSIONS.ordinal()) {
            return new e("PERMISSIONS");
        }
        if (i == a.CONFIGURATION.ordinal()) {
            return new e("CONFIGURATION");
        }
        if (i == a.DEPENDENCIES.ordinal()) {
            return new e("DEPENDENCIES");
        }
        return new e("TEST ADS");
    }

    @Override
    public List<c> gi(int i) {
        if (i == a.INTEGRATIONS.ordinal()) {
            return this.arZ;
        }
        if (i == a.PERMISSIONS.ordinal()) {
            return this.asa;
        }
        if (i == a.CONFIGURATION.ordinal()) {
            return this.asb;
        }
        if (i == a.DEPENDENCIES.ordinal()) {
            return this.asc;
        }
        return this.asd;
    }

    @Override
    public int tM() {
        return a.COUNT.ordinal();
    }

    public String toString() {
        return "MediatedNetworkListAdapter{}";
    }

    public void wH() {
        this.arZ = wI();
    }

    public com.applovin.impl.mediation.debugger.b.c.b wz() {
        return this.arS;
    }

    private c a(b.EnumC0051b enumC0051b) {
        c.a wV = c.wV();
        if (enumC0051b == b.EnumC0051b.READY) {
            wV.y(this.E);
        }
        return wV.bO("Test Mode").bP(enumC0051b.vN()).gm(enumC0051b.vO()).bQ("Restart Required").bR(enumC0051b.vP()).aF(true).wW();
    }

    private c a(String str, String str2, boolean z, boolean z2) {
        return c.a(z ? c.b.RIGHT_DETAIL : c.b.DETAIL).bO(str).b(z ? null : this.ase).bQ("Instructions").bR(str2).gk(z ? R.drawable.applovin_ic_check_mark_bordered : aC(z2)).gn(z ? g.a(R.color.applovin_sdk_checkmarkColor, this.E) : aE(z2)).aF(!z).wW();
    }
}