458 lines
10 KiB
Smali
458 lines
10 KiB
Smali
.class final Lcom/google/firebase/components/m;
|
|
.super Ljava/lang/Object;
|
|
.source "com.google.firebase:firebase-common@@17.1.0"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/firebase/components/m$a;,
|
|
Lcom/google/firebase/components/m$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method static V(Ljava/util/List;)V
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/google/firebase/components/b<",
|
|
"*>;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/firebase/components/b;
|
|
|
|
new-instance v4, Lcom/google/firebase/components/m$a;
|
|
|
|
invoke-direct {v4, v2}, Lcom/google/firebase/components/m$a;-><init>(Lcom/google/firebase/components/b;)V
|
|
|
|
iget-object v5, v2, Lcom/google/firebase/components/b;->aVW:Ljava/util/Set;
|
|
|
|
invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v5
|
|
|
|
:goto_0
|
|
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/lang/Class;
|
|
|
|
new-instance v7, Lcom/google/firebase/components/m$b;
|
|
|
|
invoke-virtual {v2}, Lcom/google/firebase/components/b;->AW()Z
|
|
|
|
move-result v8
|
|
|
|
const/4 v9, 0x1
|
|
|
|
xor-int/2addr v8, v9
|
|
|
|
invoke-direct {v7, v6, v8, v3}, Lcom/google/firebase/components/m$b;-><init>(Ljava/lang/Class;ZB)V
|
|
|
|
invoke-interface {v0, v7}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_1
|
|
|
|
new-instance v8, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v8}, Ljava/util/HashSet;-><init>()V
|
|
|
|
invoke-interface {v0, v7, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
invoke-interface {v0, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Ljava/util/Set;
|
|
|
|
invoke-interface {v8}, Ljava/util/Set;->isEmpty()Z
|
|
|
|
move-result v10
|
|
|
|
if-nez v10, :cond_3
|
|
|
|
iget-boolean v7, v7, Lcom/google/firebase/components/m$b;->aWq:Z
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-array v0, v9, [Ljava/lang/Object;
|
|
|
|
aput-object v6, v0, v3
|
|
|
|
const-string v1, "Multiple components provide %s."
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
invoke-interface {v8, v4}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_5
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/util/Set;
|
|
|
|
invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_6
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/google/firebase/components/m$a;
|
|
|
|
iget-object v5, v4, Lcom/google/firebase/components/m$a;->aWn:Lcom/google/firebase/components/b;
|
|
|
|
iget-object v5, v5, Lcom/google/firebase/components/b;->aVX:Ljava/util/Set;
|
|
|
|
invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v5
|
|
|
|
:cond_7
|
|
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_6
|
|
|
|
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/google/firebase/components/n;
|
|
|
|
invoke-virtual {v6}, Lcom/google/firebase/components/n;->Bb()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_7
|
|
|
|
new-instance v7, Lcom/google/firebase/components/m$b;
|
|
|
|
iget-object v8, v6, Lcom/google/firebase/components/n;->aWp:Ljava/lang/Class;
|
|
|
|
invoke-virtual {v6}, Lcom/google/firebase/components/n;->isSet()Z
|
|
|
|
move-result v6
|
|
|
|
invoke-direct {v7, v8, v6, v3}, Lcom/google/firebase/components/m$b;-><init>(Ljava/lang/Class;ZB)V
|
|
|
|
invoke-interface {v0, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/util/Set;
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
invoke-interface {v6}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v6
|
|
|
|
:goto_2
|
|
invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_7
|
|
|
|
invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Lcom/google/firebase/components/m$a;
|
|
|
|
iget-object v8, v4, Lcom/google/firebase/components/m$a;->aVX:Ljava/util/Set;
|
|
|
|
invoke-interface {v8, v7}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-object v7, v7, Lcom/google/firebase/components/m$a;->aWo:Ljava/util/Set;
|
|
|
|
invoke-interface {v7, v4}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
new-instance v1, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/util/Set;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/HashSet;->addAll(Ljava/util/Collection;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_9
|
|
invoke-static {v1}, Lcom/google/firebase/components/m;->c(Ljava/util/Set;)Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_a
|
|
invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_c
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/firebase/components/m$a;
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
iget-object v4, v2, Lcom/google/firebase/components/m$a;->aVX:Ljava/util/Set;
|
|
|
|
invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
:cond_b
|
|
:goto_4
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_a
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/google/firebase/components/m$a;
|
|
|
|
iget-object v6, v5, Lcom/google/firebase/components/m$a;->aWo:Ljava/util/Set;
|
|
|
|
invoke-interface {v6, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
invoke-virtual {v5}, Lcom/google/firebase/components/m$a;->isRoot()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_b
|
|
|
|
invoke-interface {v0, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_4
|
|
|
|
:cond_c
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result p0
|
|
|
|
if-ne v3, p0, :cond_d
|
|
|
|
return-void
|
|
|
|
:cond_d
|
|
new-instance p0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_e
|
|
:goto_5
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/components/m$a;
|
|
|
|
invoke-virtual {v1}, Lcom/google/firebase/components/m$a;->isRoot()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_e
|
|
|
|
iget-object v2, v1, Lcom/google/firebase/components/m$a;->aVX:Ljava/util/Set;
|
|
|
|
invoke-interface {v2}, Ljava/util/Set;->isEmpty()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_e
|
|
|
|
iget-object v1, v1, Lcom/google/firebase/components/m$a;->aWn:Lcom/google/firebase/components/b;
|
|
|
|
invoke-interface {p0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_5
|
|
|
|
:cond_f
|
|
new-instance v0, Lcom/google/firebase/components/o;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/firebase/components/o;-><init>(Ljava/util/List;)V
|
|
|
|
goto :goto_7
|
|
|
|
:goto_6
|
|
throw v0
|
|
|
|
:goto_7
|
|
goto :goto_6
|
|
.end method
|
|
|
|
.method private static c(Ljava/util/Set;)Ljava/util/Set;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Set<",
|
|
"Lcom/google/firebase/components/m$a;",
|
|
">;)",
|
|
"Ljava/util/Set<",
|
|
"Lcom/google/firebase/components/m$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/components/m$a;
|
|
|
|
invoke-virtual {v1}, Lcom/google/firebase/components/m$a;->isRoot()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|