h.smali

.class public final Lcom/google/firebase/components/h;
.super Ljava/lang/Object;
.source "SourceFile"


# instance fields
.field public final bbJ:Landroid/content/Context;

.field public final bbK:Lcom/google/firebase/components/j;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 4

    .prologue
    .line 45
    new-instance v0, Lcom/google/firebase/components/i;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/google/firebase/components/i;-><init>(B)V

    invoke-direct {p0, p1, v0}, Lcom/google/firebase/components/h;-><init>(Landroid/content/Context;Lcom/google/firebase/components/j;)V

    .line 46
    return-void
.end method

.method private constructor <init>(Landroid/content/Context;Lcom/google/firebase/components/j;)V
    .registers 3

    .prologue
    .line 49
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 50
    iput-object p1, p0, Lcom/google/firebase/components/h;->bbJ:Landroid/content/Context;

    .line 51
    iput-object p2, p0, Lcom/google/firebase/components/h;->bbK:Lcom/google/firebase/components/j;

    .line 52
    return-void
.end method

.method public static S(Ljava/util/List;)Ljava/util/List;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/util/List",
            "<",
            "Lcom/google/firebase/components/e;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 60
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 61
    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_b
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_5f

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 63
    :try_start_17
    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v1

    .line 64
    const-class v4, Lcom/google/firebase/components/e;

    invoke-virtual {v4, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v4

    if-nez v4, :cond_3f

    .line 65
    const-string v1, "Class %s is not an instance of %s"

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    const/4 v5, 0x1

    const-string v6, "com.google.firebase.components.ComponentRegistrar"

    aput-object v6, v4, v5

    .line 67
    invoke-static {v1, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    :try_end_33
    .catch Ljava/lang/ClassNotFoundException; {:try_start_17 .. :try_end_33} :catch_34
    .catch Ljava/lang/IllegalAccessException; {:try_start_17 .. :try_end_33} :catch_49
    .catch Ljava/lang/InstantiationException; {:try_start_17 .. :try_end_33} :catch_54

    goto :goto_b

    .line 72
    :catch_34
    move-exception v1

    const-string v1, "Class %s is not an found."

    new-array v4, v8, [Ljava/lang/Object;

    aput-object v0, v4, v7

    invoke-static {v1, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_b

    .line 70
    :cond_3f
    :try_start_3f
    invoke-virtual {v1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/google/firebase/components/e;

    invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_48
    .catch Ljava/lang/ClassNotFoundException; {:try_start_3f .. :try_end_48} :catch_34
    .catch Ljava/lang/IllegalAccessException; {:try_start_3f .. :try_end_48} :catch_49
    .catch Ljava/lang/InstantiationException; {:try_start_3f .. :try_end_48} :catch_54

    goto :goto_b

    .line 74
    :catch_49
    move-exception v1

    const-string v1, "Could not instantiate %s."

    new-array v4, v8, [Ljava/lang/Object;

    aput-object v0, v4, v7

    invoke-static {v1, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_b

    .line 76
    :catch_54
    move-exception v1

    const-string v1, "Could not instantiate %s."

    new-array v4, v8, [Ljava/lang/Object;

    aput-object v0, v4, v7

    invoke-static {v1, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_b

    .line 80
    :cond_5f
    return-object v2
.end method