483 lines
12 KiB
Smali
483 lines
12 KiB
Smali
.class public final Lcom/google/firebase/components/m;
|
|
.super Lcom/google/firebase/components/i;
|
|
.source "com.google.firebase:firebase-common@@16.0.2"
|
|
|
|
|
|
# instance fields
|
|
.field private final aMt:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Lcom/google/firebase/components/q<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final aMu:Lcom/google/firebase/components/o;
|
|
|
|
.field private final zza:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/google/firebase/components/a<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public varargs constructor <init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;[Lcom/google/firebase/components/a;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/concurrent/Executor;",
|
|
"Ljava/lang/Iterable<",
|
|
"Lcom/google/firebase/components/d;",
|
|
">;[",
|
|
"Lcom/google/firebase/components/a<",
|
|
"*>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/components/i;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/components/m;->aMt:Ljava/util/Map;
|
|
|
|
new-instance v0, Lcom/google/firebase/components/o;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/firebase/components/o;-><init>(Ljava/util/concurrent/Executor;)V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/components/m;->aMu:Lcom/google/firebase/components/o;
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/components/m;->aMu:Lcom/google/firebase/components/o;
|
|
|
|
const-class v1, Lcom/google/firebase/components/o;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
new-array v2, v2, [Ljava/lang/Class;
|
|
|
|
const-class v3, Lcom/google/firebase/a/d;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
const-class v3, Lcom/google/firebase/a/c;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/google/firebase/components/a;->a(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-interface {p2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_0
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/firebase/components/d;
|
|
|
|
invoke-interface {v0}, Lcom/google/firebase/components/d;->getComponents()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {p1, p3}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
|
|
|
|
invoke-static {p1}, Lcom/google/firebase/components/a$1;->S(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/components/m;->zza:Ljava/util/List;
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/components/m;->zza:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/google/firebase/components/a;
|
|
|
|
invoke-direct {p0, p2}, Lcom/google/firebase/components/m;->a(Lcom/google/firebase/components/a;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-direct {p0}, Lcom/google/firebase/components/m;->zza()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Lcom/google/firebase/components/a;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/google/firebase/components/a<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lcom/google/firebase/components/q;
|
|
|
|
iget-object v1, p1, Lcom/google/firebase/components/a;->aMo:Lcom/google/firebase/components/c;
|
|
|
|
new-instance v2, Lcom/google/firebase/components/s;
|
|
|
|
invoke-direct {v2, p1, p0}, Lcom/google/firebase/components/s;-><init>(Lcom/google/firebase/components/a;Lcom/google/firebase/components/b;)V
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/google/firebase/components/q;-><init>(Lcom/google/firebase/components/c;Lcom/google/firebase/components/b;)V
|
|
|
|
iget-object p1, p1, Lcom/google/firebase/components/a;->aMm:Ljava/util/Set;
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Class;
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/components/m;->aMt:Ljava/util/Map;
|
|
|
|
invoke-interface {v2, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private zza()V
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/components/m;->zza:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/components/a;
|
|
|
|
iget-object v2, v1, Lcom/google/firebase/components/a;->aMn:Ljava/util/Set;
|
|
|
|
invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/google/firebase/components/e;
|
|
|
|
iget v4, v3, Lcom/google/firebase/components/e;->aMs:I
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-ne v4, v6, :cond_2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v4, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v4, :cond_1
|
|
|
|
iget-object v4, p0, Lcom/google/firebase/components/m;->aMt:Ljava/util/Map;
|
|
|
|
iget-object v7, v3, Lcom/google/firebase/components/e;->aMr:Ljava/lang/Class;
|
|
|
|
invoke-interface {v4, v7}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
new-instance v0, Lcom/google/firebase/components/h;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
aput-object v1, v2, v5
|
|
|
|
iget-object v1, v3, Lcom/google/firebase/components/e;->aMr:Ljava/lang/Class;
|
|
|
|
aput-object v1, v2, v6
|
|
|
|
const-string v1, "Unsatisfied dependency for component %s: %s"
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/firebase/components/h;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bridge synthetic A(Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Lcom/google/firebase/components/i;->A(Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final C(Ljava/lang/Class;)Lcom/google/firebase/b/a;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)",
|
|
"Lcom/google/firebase/b/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "Null interface requested."
|
|
|
|
invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/components/m;->aMt:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/firebase/b/a;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final zza(Z)V
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/components/m;->zza:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/components/a;
|
|
|
|
iget v2, v1, Lcom/google/firebase/components/a;->ahF:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v2, v4, :cond_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-nez v2, :cond_3
|
|
|
|
iget v2, v1, Lcom/google/firebase/components/a;->ahF:I
|
|
|
|
const/4 v5, 0x2
|
|
|
|
if-ne v2, v5, :cond_2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:cond_2
|
|
if-eqz v3, :cond_0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
:cond_3
|
|
iget-object v1, v1, Lcom/google/firebase/components/a;->aMm:Ljava/util/Set;
|
|
|
|
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Class;
|
|
|
|
invoke-super {p0, v1}, Lcom/google/firebase/components/i;->A(Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget-object p1, p0, Lcom/google/firebase/components/m;->aMu:Lcom/google/firebase/components/o;
|
|
|
|
monitor-enter p1
|
|
|
|
:try_start_0
|
|
iget-object v0, p1, Lcom/google/firebase/components/o;->aMx:Ljava/util/Queue;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object v0, p1, Lcom/google/firebase/components/o;->aMx:Ljava/util/Queue;
|
|
|
|
iput-object v1, p1, Lcom/google/firebase/components/o;->aMx:Ljava/util/Queue;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
move-object v0, v1
|
|
|
|
:goto_2
|
|
monitor-exit p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
invoke-interface {v0}, Ljava/util/Queue;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/a/a;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/google/firebase/components/o;->c(Lcom/google/firebase/a/a;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
:try_start_1
|
|
monitor-exit p1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw v0
|
|
|
|
return-void
|
|
.end method
|