package com.google.firebase;

import android.content.Context;
import android.os.Build;
import com.google.firebase.components.ComponentRegistrar;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executor;
import o.AbstractC2539te;
import o.C0076Cy;
import o.C0224Iq;
import o.C0397Pi;
import o.C0572Wb;
import o.C0754aq;
import o.C0945cq;
import o.C2454sj;
import o.C2549tj;
import o.C2660ur;
import o.InterfaceC0080Dc;
import o.JZ;
import o.ME;
import o.NE;
import o.OE;
import o.YJ;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public class FirebaseCommonRegistrar implements ComponentRegistrar {
    public static String a(String str) {
        return str.replace(' ', '_').replace('/', '_');
    }

    @Override // com.google.firebase.components.ComponentRegistrar
    public final List getComponents() {
        String str;
        ArrayList arrayList = new ArrayList();
        C2454sj c2454sjA = C2549tj.a(C0224Iq.class);
        c2454sjA.a(new C2660ur(2, 0, C0572Wb.class));
        c2454sjA.f = new C0397Pi(13);
        arrayList.add(c2454sjA.b());
        JZ jz = new JZ(InterfaceC0080Dc.class, Executor.class);
        C2454sj c2454sj = new C2454sj(C0945cq.class, new Class[]{NE.class, OE.class});
        c2454sj.a(C2660ur.a(Context.class));
        c2454sj.a(C2660ur.a(C0076Cy.class));
        c2454sj.a(new C2660ur(2, 0, ME.class));
        c2454sj.a(new C2660ur(1, 1, C0224Iq.class));
        c2454sj.a(new C2660ur(jz, 1, 0));
        c2454sj.f = new C0754aq(jz, 0);
        arrayList.add(c2454sj.b());
        arrayList.add(AbstractC2539te.t("fire-android", String.valueOf(Build.VERSION.SDK_INT)));
        arrayList.add(AbstractC2539te.t("fire-core", "22.0.1"));
        arrayList.add(AbstractC2539te.t("device-name", a(Build.PRODUCT)));
        arrayList.add(AbstractC2539te.t("device-model", a(Build.DEVICE)));
        arrayList.add(AbstractC2539te.t("device-brand", a(Build.BRAND)));
        arrayList.add(AbstractC2539te.C("android-target-sdk", new C0397Pi(24)));
        arrayList.add(AbstractC2539te.C("android-min-sdk", new C0397Pi(25)));
        arrayList.add(AbstractC2539te.C("android-platform", new C0397Pi(26)));
        arrayList.add(AbstractC2539te.C("android-installer", new C0397Pi(27)));
        try {
            YJ.m.getClass();
            str = "2.0.21";
        } catch (NoClassDefFoundError unused) {
            str = null;
        }
        if (str != null) {
            arrayList.add(AbstractC2539te.t("kotlin", str));
        }
        return arrayList;
    }
}
