This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,79 @@
.class abstract Lcom/google/firebase/components/AbstractComponentContainer;
.super Ljava/lang/Object;
.source "AbstractComponentContainer.java"
# interfaces
.implements Lcom/google/firebase/components/ComponentContainer;
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public get(Ljava/lang/Class;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.line 1
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
move-result-object p1
if-nez p1, :cond_0
const/4 p1, 0x0
return-object p1
.line 2
:cond_0
invoke-interface {p1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public setOf(Ljava/lang/Class;)Ljava/util/Set;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.line 1
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOfProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
move-result-object p1
invoke-interface {p1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Set;
return-object p1
.end method
@@ -0,0 +1,28 @@
.class public final Lcom/google/firebase/components/BuildConfig;
.super Ljava/lang/Object;
.source "BuildConfig.java"
# static fields
.field public static final APPLICATION_ID:Ljava/lang/String; = "com.google.firebase.components"
.field public static final BUILD_TYPE:Ljava/lang/String; = "release"
.field public static final DEBUG:Z = false
.field public static final FLAVOR:Ljava/lang/String; = ""
.field public static final VERSION_CODE:I = -0x1
.field public static final VERSION_NAME:Ljava/lang/String; = "17.0.0"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/firebase/components/Component$1;
.super Ljava/lang/Object;
.source "Component.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/Component;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,427 @@
.class public Lcom/google/firebase/components/Component$Builder;
.super Ljava/lang/Object;
.source "Component.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/Component;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private final dependencies:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/google/firebase/components/Dependency;",
">;"
}
.end annotation
.end field
.field private factory:Lcom/google/firebase/components/ComponentFactory;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/components/ComponentFactory<",
"TT;>;"
}
.end annotation
.end field
.field private instantiation:I
.field private final providedInterfaces:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"-TT;>;>;"
}
.end annotation
.end field
.field private publishedEvents:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private type:I
# direct methods
.method private varargs constructor <init>(Ljava/lang/Class;[Ljava/lang/Class;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"TT;>;[",
"Ljava/lang/Class<",
"-TT;>;)V"
}
.end annotation
.annotation runtime Ljava/lang/SafeVarargs;
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
iput-object v0, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
.line 4
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
iput-object v1, p0, Lcom/google/firebase/components/Component$Builder;->dependencies:Ljava/util/Set;
const/4 v1, 0x0
.line 5
iput v1, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
.line 6
iput v1, p0, Lcom/google/firebase/components/Component$Builder;->type:I
.line 7
new-instance v2, Ljava/util/HashSet;
invoke-direct {v2}, Ljava/util/HashSet;-><init>()V
iput-object v2, p0, Lcom/google/firebase/components/Component$Builder;->publishedEvents:Ljava/util/Set;
const-string v2, "Null interface"
.line 8
invoke-static {p1, v2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 9
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 10
array-length p1, p2
:goto_0
if-ge v1, p1, :cond_0
aget-object v0, p2, v1
.line 11
invoke-static {v0, v2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 12
:cond_0
iget-object p1, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
invoke-static {p1, p2}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/Class;[Ljava/lang/Class;Lcom/google/firebase/components/Component$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/firebase/components/Component$Builder;-><init>(Ljava/lang/Class;[Ljava/lang/Class;)V
return-void
.end method
.method public static synthetic access$100(Lcom/google/firebase/components/Component$Builder;)Lcom/google/firebase/components/Component$Builder;
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/firebase/components/Component$Builder;->intoSet()Lcom/google/firebase/components/Component$Builder;
move-result-object p0
return-object p0
.end method
.method private intoSet()Lcom/google/firebase/components/Component$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
const/4 v0, 0x1
.line 1
iput v0, p0, Lcom/google/firebase/components/Component$Builder;->type:I
return-object p0
.end method
.method private setInstantiation(I)Lcom/google/firebase/components/Component$Builder;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
.line 1
iget v0, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v1, "Instantiation type has already been set."
invoke-static {v0, v1}, Lcom/google/firebase/components/Preconditions;->checkState(ZLjava/lang/String;)V
.line 2
iput p1, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
return-object p0
.end method
.method private validateInterface(Ljava/lang/Class;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
.line 2
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result p1
xor-int/lit8 p1, p1, 0x1
const-string v0, "Components are not allowed to depend on interfaces they themselves provide."
.line 3
invoke-static {p1, v0}, Lcom/google/firebase/components/Preconditions;->checkArgument(ZLjava/lang/String;)V
return-void
.end method
# virtual methods
.method public add(Lcom/google/firebase/components/Dependency;)Lcom/google/firebase/components/Component$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/components/Dependency;",
")",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
const-string v0, "Null dependency"
.line 1
invoke-static {p1, v0}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
invoke-virtual {p1}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
move-result-object v0
invoke-direct {p0, v0}, Lcom/google/firebase/components/Component$Builder;->validateInterface(Ljava/lang/Class;)V
.line 3
iget-object v0, p0, Lcom/google/firebase/components/Component$Builder;->dependencies:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public alwaysEager()Lcom/google/firebase/components/Component$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
const/4 v0, 0x1
.line 1
invoke-direct {p0, v0}, Lcom/google/firebase/components/Component$Builder;->setInstantiation(I)Lcom/google/firebase/components/Component$Builder;
move-result-object v0
return-object v0
.end method
.method public build()Lcom/google/firebase/components/Component;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/components/Component<",
"TT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Component$Builder;->factory:Lcom/google/firebase/components/ComponentFactory;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v1, "Missing required property: factory."
invoke-static {v0, v1}, Lcom/google/firebase/components/Preconditions;->checkState(ZLjava/lang/String;)V
.line 2
new-instance v0, Lcom/google/firebase/components/Component;
new-instance v3, Ljava/util/HashSet;
iget-object v1, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
invoke-direct {v3, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
new-instance v4, Ljava/util/HashSet;
iget-object v1, p0, Lcom/google/firebase/components/Component$Builder;->dependencies:Ljava/util/Set;
invoke-direct {v4, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
iget v5, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
iget v6, p0, Lcom/google/firebase/components/Component$Builder;->type:I
iget-object v7, p0, Lcom/google/firebase/components/Component$Builder;->factory:Lcom/google/firebase/components/ComponentFactory;
iget-object v8, p0, Lcom/google/firebase/components/Component$Builder;->publishedEvents:Ljava/util/Set;
const/4 v9, 0x0
move-object v2, v0
invoke-direct/range {v2 .. v9}, Lcom/google/firebase/components/Component;-><init>(Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;Lcom/google/firebase/components/Component$1;)V
return-object v0
.end method
.method public eagerInDefaultApp()Lcom/google/firebase/components/Component$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
const/4 v0, 0x2
.line 1
invoke-direct {p0, v0}, Lcom/google/firebase/components/Component$Builder;->setInstantiation(I)Lcom/google/firebase/components/Component$Builder;
move-result-object v0
return-object v0
.end method
.method public factory(Lcom/google/firebase/components/ComponentFactory;)Lcom/google/firebase/components/Component$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/components/ComponentFactory<",
"TT;>;)",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
const-string v0, "Null factory"
.line 1
invoke-static {p1, v0}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/firebase/components/ComponentFactory;
iput-object p1, p0, Lcom/google/firebase/components/Component$Builder;->factory:Lcom/google/firebase/components/ComponentFactory;
return-object p0
.end method
.method public publishes(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Component$Builder;->publishedEvents:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
return-object p0
.end method
@@ -0,0 +1,593 @@
.class public final Lcom/google/firebase/components/Component;
.super Ljava/lang/Object;
.source "Component.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/Component$Builder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field private final dependencies:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/google/firebase/components/Dependency;",
">;"
}
.end annotation
.end field
.field private final factory:Lcom/google/firebase/components/ComponentFactory;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/components/ComponentFactory<",
"TT;>;"
}
.end annotation
.end field
.field private final instantiation:I
.field private final providedInterfaces:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"-TT;>;>;"
}
.end annotation
.end field
.field private final publishedEvents:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final type:I
# direct methods
.method private constructor <init>(Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Ljava/lang/Class<",
"-TT;>;>;",
"Ljava/util/Set<",
"Lcom/google/firebase/components/Dependency;",
">;II",
"Lcom/google/firebase/components/ComponentFactory<",
"TT;>;",
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;)V"
}
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-static {p1}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/components/Component;->providedInterfaces:Ljava/util/Set;
.line 4
invoke-static {p2}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/components/Component;->dependencies:Ljava/util/Set;
.line 5
iput p3, p0, Lcom/google/firebase/components/Component;->instantiation:I
.line 6
iput p4, p0, Lcom/google/firebase/components/Component;->type:I
.line 7
iput-object p5, p0, Lcom/google/firebase/components/Component;->factory:Lcom/google/firebase/components/ComponentFactory;
.line 8
invoke-static {p6}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/components/Component;->publishedEvents:Ljava/util/Set;
return-void
.end method
.method public synthetic constructor <init>(Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;Lcom/google/firebase/components/Component$1;)V
.locals 0
.line 1
invoke-direct/range {p0 .. p6}, Lcom/google/firebase/components/Component;-><init>(Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;)V
return-void
.end method
.method public static synthetic a(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/components/Component;->lambda$intoSet$2(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static synthetic b(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/components/Component;->lambda$of$0(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static builder(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Component$Builder;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Class;
const/4 v2, 0x0
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/components/Component$Builder;-><init>(Ljava/lang/Class;[Ljava/lang/Class;Lcom/google/firebase/components/Component$1;)V
return-object v0
.end method
.method public static varargs builder(Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;[",
"Ljava/lang/Class<",
"-TT;>;)",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
.annotation runtime Ljava/lang/SafeVarargs;
.end annotation
.line 2
new-instance v0, Lcom/google/firebase/components/Component$Builder;
const/4 v1, 0x0
invoke-direct {v0, p0, p1, v1}, Lcom/google/firebase/components/Component$Builder;-><init>(Ljava/lang/Class;[Ljava/lang/Class;Lcom/google/firebase/components/Component$1;)V
return-object v0
.end method
.method public static synthetic c(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/components/Component;->lambda$of$1(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static intoSet(Ljava/lang/Object;Ljava/lang/Class;)Lcom/google/firebase/components/Component;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/components/Component<",
"TT;>;"
}
.end annotation
.line 1
invoke-static {p1}, Lcom/google/firebase/components/Component;->intoSetBuilder(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
move-result-object p1
new-instance v0, Lcom/google/firebase/components/a;
invoke-direct {v0, p0}, Lcom/google/firebase/components/a;-><init>(Ljava/lang/Object;)V
invoke-virtual {p1, v0}, Lcom/google/firebase/components/Component$Builder;->factory(Lcom/google/firebase/components/ComponentFactory;)Lcom/google/firebase/components/Component$Builder;
move-result-object p0
invoke-virtual {p0}, Lcom/google/firebase/components/Component$Builder;->build()Lcom/google/firebase/components/Component;
move-result-object p0
return-object p0
.end method
.method public static intoSetBuilder(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/components/Component$Builder<",
"TT;>;"
}
.end annotation
.line 1
invoke-static {p0}, Lcom/google/firebase/components/Component;->builder(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
move-result-object p0
invoke-static {p0}, Lcom/google/firebase/components/Component$Builder;->access$100(Lcom/google/firebase/components/Component$Builder;)Lcom/google/firebase/components/Component$Builder;
move-result-object p0
return-object p0
.end method
.method private static synthetic lambda$intoSet$2(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
return-object p0
.end method
.method private static synthetic lambda$of$0(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
return-object p0
.end method
.method private static synthetic lambda$of$1(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
return-object p0
.end method
.method public static of(Ljava/lang/Class;Ljava/lang/Object;)Lcom/google/firebase/components/Component;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;TT;)",
"Lcom/google/firebase/components/Component<",
"TT;>;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-static {p0}, Lcom/google/firebase/components/Component;->builder(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
move-result-object p0
new-instance v0, Lcom/google/firebase/components/b;
invoke-direct {v0, p1}, Lcom/google/firebase/components/b;-><init>(Ljava/lang/Object;)V
invoke-virtual {p0, v0}, Lcom/google/firebase/components/Component$Builder;->factory(Lcom/google/firebase/components/ComponentFactory;)Lcom/google/firebase/components/Component$Builder;
move-result-object p0
invoke-virtual {p0}, Lcom/google/firebase/components/Component$Builder;->build()Lcom/google/firebase/components/Component;
move-result-object p0
return-object p0
.end method
.method public static varargs of(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Ljava/lang/Class<",
"TT;>;[",
"Ljava/lang/Class<",
"-TT;>;)",
"Lcom/google/firebase/components/Component<",
"TT;>;"
}
.end annotation
.annotation runtime Ljava/lang/SafeVarargs;
.end annotation
.line 2
invoke-static {p1, p2}, Lcom/google/firebase/components/Component;->builder(Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
move-result-object p1
new-instance p2, Lcom/google/firebase/components/c;
invoke-direct {p2, p0}, Lcom/google/firebase/components/c;-><init>(Ljava/lang/Object;)V
invoke-virtual {p1, p2}, Lcom/google/firebase/components/Component$Builder;->factory(Lcom/google/firebase/components/ComponentFactory;)Lcom/google/firebase/components/Component$Builder;
move-result-object p0
invoke-virtual {p0}, Lcom/google/firebase/components/Component$Builder;->build()Lcom/google/firebase/components/Component;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public getDependencies()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Lcom/google/firebase/components/Dependency;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Component;->dependencies:Ljava/util/Set;
return-object v0
.end method
.method public getFactory()Lcom/google/firebase/components/ComponentFactory;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/components/ComponentFactory<",
"TT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Component;->factory:Lcom/google/firebase/components/ComponentFactory;
return-object v0
.end method
.method public getProvidedInterfaces()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Ljava/lang/Class<",
"-TT;>;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Component;->providedInterfaces:Ljava/util/Set;
return-object v0
.end method
.method public getPublishedEvents()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Component;->publishedEvents:Ljava/util/Set;
return-object v0
.end method
.method public isAlwaysEager()Z
.locals 2
.line 1
iget v0, p0, Lcom/google/firebase/components/Component;->instantiation:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
return v1
.end method
.method public isEagerInDefaultApp()Z
.locals 2
.line 1
iget v0, p0, Lcom/google/firebase/components/Component;->instantiation:I
const/4 v1, 0x2
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isLazy()Z
.locals 1
.line 1
iget v0, p0, Lcom/google/firebase/components/Component;->instantiation:I
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isValue()Z
.locals 1
.line 1
iget v0, p0, Lcom/google/firebase/components/Component;->type:I
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 1
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Component<"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lcom/google/firebase/components/Component;->providedInterfaces:Ljava/util/Set;
.line 2
invoke-interface {v1}, Ljava/util/Set;->toArray()[Ljava/lang/Object;
move-result-object v1
invoke-static {v1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ">{"
.line 3
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/google/firebase/components/Component;->instantiation:I
.line 4
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", type="
.line 5
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/google/firebase/components/Component;->type:I
.line 6
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", deps="
.line 7
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/firebase/components/Component;->dependencies:Ljava/util/Set;
.line 8
invoke-interface {v1}, Ljava/util/Set;->toArray()[Ljava/lang/Object;
move-result-object v1
invoke-static {v1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "}"
.line 9
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 10
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,74 @@
.class public interface abstract Lcom/google/firebase/components/ComponentContainer;
.super Ljava/lang/Object;
.source "ComponentContainer.java"
# virtual methods
.method public abstract get(Ljava/lang/Class;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.end method
.method public abstract getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/inject/Deferred<",
"TT;>;"
}
.end annotation
.end method
.method public abstract getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
.end method
.method public abstract setOf(Ljava/lang/Class;)Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.end method
.method public abstract setOfProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/inject/Provider<",
"Ljava/util/Set<",
"TT;>;>;"
}
.end annotation
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/firebase/components/ComponentDiscovery$1;
.super Ljava/lang/Object;
.source "ComponentDiscovery.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/ComponentDiscovery;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,263 @@
.class Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;
.super Ljava/lang/Object;
.source "ComponentDiscovery.java"
# interfaces
.implements Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/ComponentDiscovery;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "MetadataRegistrarNameRetriever"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever<",
"Landroid/content/Context;",
">;"
}
.end annotation
# instance fields
.field private final discoveryService:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"+",
"Landroid/app/Service;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Ljava/lang/Class;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"+",
"Landroid/app/Service;",
">;)V"
}
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;->discoveryService:Ljava/lang/Class;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/Class;Lcom/google/firebase/components/ComponentDiscovery$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;-><init>(Ljava/lang/Class;)V
return-void
.end method
.method private getMetadata(Landroid/content/Context;)Landroid/os/Bundle;
.locals 5
const-string v0, "ComponentDiscovery"
const/4 v1, 0x0
.line 1
:try_start_0
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
if-nez v2, :cond_0
const-string p1, "Context has no PackageManager."
.line 2
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-object v1
.line 3
:cond_0
new-instance v3, Landroid/content/ComponentName;
iget-object v4, p0, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;->discoveryService:Ljava/lang/Class;
invoke-direct {v3, p1, v4}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
const/16 p1, 0x80
.line 4
invoke-virtual {v2, v3, p1}, Landroid/content/pm/PackageManager;->getServiceInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ServiceInfo;
move-result-object p1
if-nez p1, :cond_1
.line 5
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
iget-object v2, p0, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;->discoveryService:Ljava/lang/Class;
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, " has no service info."
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-object v1
.line 6
:cond_1
iget-object p1, p1, Landroid/content/pm/ServiceInfo;->metaData:Landroid/os/Bundle;
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
const-string p1, "Application info not found."
.line 7
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-object v1
.end method
# virtual methods
.method public retrieve(Landroid/content/Context;)Ljava/util/List;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 2
invoke-direct {p0, p1}, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;->getMetadata(Landroid/content/Context;)Landroid/os/Bundle;
move-result-object p1
if-nez p1, :cond_0
const-string p1, "ComponentDiscovery"
const-string v0, "Could not retrieve metadata, returning empty list of registrars."
.line 3
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 4
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object p1
return-object p1
.line 5
:cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 6
invoke-virtual {p1}, Landroid/os/Bundle;->keySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
.line 7
invoke-virtual {p1, v2}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v3
const-string v4, "com.google.firebase.components.ComponentRegistrar"
.line 8
invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1
const-string v3, "com.google.firebase.components:"
invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_1
const/16 v3, 0x1f
.line 9
invoke-virtual {v2, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_2
return-object v0
.end method
.method public bridge synthetic retrieve(Ljava/lang/Object;)Ljava/util/List;
.locals 0
.line 1
check-cast p1, Landroid/content/Context;
invoke-virtual {p0, p1}, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;->retrieve(Landroid/content/Context;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,39 @@
.class interface abstract Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
.super Ljava/lang/Object;
.source "ComponentDiscovery.java"
# annotations
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/ComponentDiscovery;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "RegistrarNameRetriever"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract retrieve(Ljava/lang/Object;)Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end method
@@ -0,0 +1,434 @@
.class public final Lcom/google/firebase/components/ComponentDiscovery;
.super Ljava/lang/Object;
.source "ComponentDiscovery.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;,
Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
.field private static final COMPONENT_KEY_PREFIX:Ljava/lang/String; = "com.google.firebase.components:"
.field private static final COMPONENT_SENTINEL_VALUE:Ljava/lang/String; = "com.google.firebase.components.ComponentRegistrar"
.field public static final TAG:Ljava/lang/String; = "ComponentDiscovery"
# instance fields
.field private final context:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field private final retriever:Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Object;Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;)V
.locals 0
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/components/ComponentDiscovery;->context:Ljava/lang/Object;
.line 3
iput-object p2, p0, Lcom/google/firebase/components/ComponentDiscovery;->retriever:Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
return-void
.end method
.method public static synthetic a(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 0
invoke-static {p0}, Lcom/google/firebase/components/ComponentDiscovery;->lambda$discoverLazy$0(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object p0
return-object p0
.end method
.method public static forContext(Landroid/content/Context;Ljava/lang/Class;)Lcom/google/firebase/components/ComponentDiscovery;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/Class<",
"+",
"Landroid/app/Service;",
">;)",
"Lcom/google/firebase/components/ComponentDiscovery<",
"Landroid/content/Context;",
">;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/ComponentDiscovery;
new-instance v1, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;-><init>(Ljava/lang/Class;Lcom/google/firebase/components/ComponentDiscovery$1;)V
invoke-direct {v0, p0, v1}, Lcom/google/firebase/components/ComponentDiscovery;-><init>(Ljava/lang/Object;Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;)V
return-object v0
.end method
.method private static instantiate(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 8
.annotation build Landroidx/annotation/Nullable;
.end annotation
const-string v0, "Could not instantiate %s"
const-string v1, "Could not instantiate %s."
const/4 v2, 0x1
const/4 v3, 0x0
.line 1
:try_start_0
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v4
.line 2
const-class v5, Lcom/google/firebase/components/ComponentRegistrar;
invoke-virtual {v5, v4}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result v5
if-eqz v5, :cond_0
new-array v5, v3, [Ljava/lang/Class;
.line 3
invoke-virtual {v4, v5}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v4
new-array v5, v3, [Ljava/lang/Object;
invoke-virtual {v4, v5}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/google/firebase/components/ComponentRegistrar;
return-object v4
.line 4
:cond_0
new-instance v4, Lcom/google/firebase/components/InvalidRegistrarException;
const-string v5, "Class %s is not an instance of %s"
const/4 v6, 0x2
new-array v6, v6, [Ljava/lang/Object;
aput-object p0, v6, v3
const-string v7, "com.google.firebase.components.ComponentRegistrar"
aput-object v7, v6, v2
.line 5
invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v5
invoke-direct {v4, v5}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;)V
throw v4
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_4
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_3
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
move-exception v1
.line 6
new-instance v4, Lcom/google/firebase/components/InvalidRegistrarException;
new-array v2, v2, [Ljava/lang/Object;
aput-object p0, v2, v3
.line 7
invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v4, p0, v1}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v4
:catch_1
move-exception v1
.line 8
new-instance v4, Lcom/google/firebase/components/InvalidRegistrarException;
new-array v2, v2, [Ljava/lang/Object;
aput-object p0, v2, v3
.line 9
invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v4, p0, v1}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v4
:catch_2
move-exception v0
.line 10
new-instance v4, Lcom/google/firebase/components/InvalidRegistrarException;
new-array v2, v2, [Ljava/lang/Object;
aput-object p0, v2, v3
.line 11
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v4, p0, v0}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v4
:catch_3
move-exception v0
.line 12
new-instance v4, Lcom/google/firebase/components/InvalidRegistrarException;
new-array v2, v2, [Ljava/lang/Object;
aput-object p0, v2, v3
.line 13
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v4, p0, v0}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v4
:catch_4
new-array v0, v2, [Ljava/lang/Object;
aput-object p0, v0, v3
const-string p0, "Class %s is not an found."
.line 14
invoke-static {p0, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
const-string v0, "ComponentDiscovery"
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
const/4 p0, 0x0
return-object p0
.end method
.method private static synthetic lambda$discoverLazy$0(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 0
.line 1
invoke-static {p0}, Lcom/google/firebase/components/ComponentDiscovery;->instantiate(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public discover()Ljava/util/List;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/google/firebase/components/ComponentRegistrar;",
">;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 2
iget-object v1, p0, Lcom/google/firebase/components/ComponentDiscovery;->retriever:Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
iget-object v2, p0, Lcom/google/firebase/components/ComponentDiscovery;->context:Ljava/lang/Object;
invoke-interface {v1, v2}, Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;->retrieve(Ljava/lang/Object;)Ljava/util/List;
move-result-object v1
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_0
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
.line 3
:try_start_0
invoke-static {v2}, Lcom/google/firebase/components/ComponentDiscovery;->instantiate(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object v2
if-eqz v2, :cond_0
.line 4
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_0
.catch Lcom/google/firebase/components/InvalidRegistrarException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v2
const-string v3, "ComponentDiscovery"
const-string v4, "Invalid component registrar."
.line 5
invoke-static {v3, v4, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_0
:cond_1
return-object v0
.end method
.method public discoverLazy()Ljava/util/List;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/google/firebase/inject/Provider<",
"Lcom/google/firebase/components/ComponentRegistrar;",
">;>;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 2
iget-object v1, p0, Lcom/google/firebase/components/ComponentDiscovery;->retriever:Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
iget-object v2, p0, Lcom/google/firebase/components/ComponentDiscovery;->context:Ljava/lang/Object;
invoke-interface {v1, v2}, Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;->retrieve(Ljava/lang/Object;)Ljava/util/List;
move-result-object v1
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
.line 3
new-instance v3, Lcom/google/firebase/components/d;
invoke-direct {v3, v2}, Lcom/google/firebase/components/d;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
return-object v0
.end method
@@ -0,0 +1,26 @@
.class public Lcom/google/firebase/components/ComponentDiscoveryService;
.super Landroid/app/Service;
.source "ComponentDiscoveryService.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Landroid/app/Service;-><init>()V
return-void
.end method
# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.locals 0
.annotation build Landroidx/annotation/Nullable;
.end annotation
const/4 p1, 0x0
return-object p1
.end method
@@ -0,0 +1,26 @@
.class public interface abstract Lcom/google/firebase/components/ComponentFactory;
.super Ljava/lang/Object;
.source "ComponentFactory.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/components/ComponentContainer;",
")TT;"
}
.end annotation
.end method
@@ -0,0 +1,16 @@
.class public interface abstract Lcom/google/firebase/components/ComponentRegistrar;
.super Ljava/lang/Object;
.source "ComponentRegistrar.java"
# virtual methods
.method public abstract getComponents()Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;"
}
.end annotation
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/firebase/components/ComponentRuntime$1;
.super Ljava/lang/Object;
.source "ComponentRuntime.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/ComponentRuntime;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,159 @@
.class public final Lcom/google/firebase/components/ComponentRuntime$Builder;
.super Ljava/lang/Object;
.source "ComponentRuntime.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/ComponentRuntime;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private final additionalComponents:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;"
}
.end annotation
.end field
.field private final defaultExecutor:Ljava/util/concurrent/Executor;
.field private final lazyRegistrars:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/firebase/inject/Provider<",
"Lcom/google/firebase/components/ComponentRegistrar;",
">;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/concurrent/Executor;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->lazyRegistrars:Ljava/util/List;
.line 3
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->additionalComponents:Ljava/util/List;
.line 4
iput-object p1, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->defaultExecutor:Ljava/util/concurrent/Executor;
return-void
.end method
.method public static synthetic a(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 0
invoke-static {p0}, Lcom/google/firebase/components/ComponentRuntime$Builder;->lambda$addComponentRegistrar$0(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object p0
return-object p0
.end method
.method private static synthetic lambda$addComponentRegistrar$0(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 0
return-object p0
.end method
# virtual methods
.method public addComponent(Lcom/google/firebase/components/Component;)Lcom/google/firebase/components/ComponentRuntime$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/components/Component<",
"*>;)",
"Lcom/google/firebase/components/ComponentRuntime$Builder;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->additionalComponents:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public addComponentRegistrar(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRuntime$Builder;
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->lazyRegistrars:Ljava/util/List;
new-instance v1, Lcom/google/firebase/components/j;
invoke-direct {v1, p1}, Lcom/google/firebase/components/j;-><init>(Lcom/google/firebase/components/ComponentRegistrar;)V
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public addLazyComponentRegistrars(Ljava/util/Collection;)Lcom/google/firebase/components/ComponentRuntime$Builder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"Lcom/google/firebase/inject/Provider<",
"Lcom/google/firebase/components/ComponentRegistrar;",
">;>;)",
"Lcom/google/firebase/components/ComponentRuntime$Builder;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->lazyRegistrars:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
return-object p0
.end method
.method public build()Lcom/google/firebase/components/ComponentRuntime;
.locals 5
.line 1
new-instance v0, Lcom/google/firebase/components/ComponentRuntime;
iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->defaultExecutor:Ljava/util/concurrent/Executor;
iget-object v2, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->lazyRegistrars:Ljava/util/List;
iget-object v3, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->additionalComponents:Ljava/util/List;
const/4 v4, 0x0
invoke-direct {v0, v1, v2, v3, v4}, Lcom/google/firebase/components/ComponentRuntime;-><init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;Ljava/util/Collection;Lcom/google/firebase/components/ComponentRuntime$1;)V
return-object v0
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/firebase/components/CycleDetector$1;
.super Ljava/lang/Object;
.source "CycleDetector.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/CycleDetector;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,174 @@
.class Lcom/google/firebase/components/CycleDetector$ComponentNode;
.super Ljava/lang/Object;
.source "CycleDetector.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/CycleDetector;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ComponentNode"
.end annotation
# instance fields
.field private final component:Lcom/google/firebase/components/Component;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/components/Component<",
"*>;"
}
.end annotation
.end field
.field private final dependencies:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;"
}
.end annotation
.end field
.field private final dependents:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/firebase/components/Component;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/components/Component<",
"*>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
iput-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
.line 3
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
iput-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
.line 4
iput-object p1, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->component:Lcom/google/firebase/components/Component;
return-void
.end method
# virtual methods
.method public addDependency(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public addDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public getComponent()Lcom/google/firebase/components/Component;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/components/Component<",
"*>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->component:Lcom/google/firebase/components/Component;
return-object v0
.end method
.method public getDependencies()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
return-object v0
.end method
.method public isLeaf()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
move-result v0
return v0
.end method
.method public isRoot()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
move-result v0
return v0
.end method
.method public removeDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
return-void
.end method
@@ -0,0 +1,139 @@
.class Lcom/google/firebase/components/CycleDetector$Dep;
.super Ljava/lang/Object;
.source "CycleDetector.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/CycleDetector;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Dep"
.end annotation
# instance fields
.field private final anInterface:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field private final set:Z
# direct methods
.method private constructor <init>(Ljava/lang/Class;Z)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;Z)V"
}
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Ljava/lang/Class;
.line 4
iput-boolean p2, p0, Lcom/google/firebase/components/CycleDetector$Dep;->set:Z
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/Class;ZLcom/google/firebase/components/CycleDetector$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/firebase/components/CycleDetector$Dep;-><init>(Ljava/lang/Class;Z)V
return-void
.end method
.method public static synthetic access$100(Lcom/google/firebase/components/CycleDetector$Dep;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/google/firebase/components/CycleDetector$Dep;->set:Z
return p0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
.line 1
instance-of v0, p1, Lcom/google/firebase/components/CycleDetector$Dep;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/firebase/components/CycleDetector$Dep;
.line 3
iget-object v0, p1, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Ljava/lang/Class;
iget-object v2, p0, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Ljava/lang/Class;
invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-boolean p1, p1, Lcom/google/firebase/components/CycleDetector$Dep;->set:Z
iget-boolean v0, p0, Lcom/google/firebase/components/CycleDetector$Dep;->set:Z
if-ne p1, v0, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public hashCode()I
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Ljava/lang/Class;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
const v1, 0xf4243
xor-int/2addr v0, v1
mul-int/2addr v0, v1
.line 2
iget-boolean v1, p0, Lcom/google/firebase/components/CycleDetector$Dep;->set:Z
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Boolean;->hashCode()I
move-result v1
xor-int/2addr v0, v1
return v0
.end method
@@ -0,0 +1,542 @@
.class Lcom/google/firebase/components/CycleDetector;
.super Ljava/lang/Object;
.source "CycleDetector.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/CycleDetector$ComponentNode;,
Lcom/google/firebase/components/CycleDetector$Dep;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static detect(Ljava/util/List;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;)V"
}
.end annotation
.line 1
invoke-static {p0}, Lcom/google/firebase/components/CycleDetector;->toGraph(Ljava/util/List;)Ljava/util/Set;
move-result-object v0
.line 2
invoke-static {v0}, Lcom/google/firebase/components/CycleDetector;->getRoots(Ljava/util/Set;)Ljava/util/Set;
move-result-object v1
const/4 v2, 0x0
.line 3
:cond_0
invoke-interface {v1}, Ljava/util/Set;->isEmpty()Z
move-result v3
if-nez v3, :cond_2
.line 4
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v3
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/components/CycleDetector$ComponentNode;
.line 5
invoke-interface {v1, v3}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
add-int/lit8 v2, v2, 0x1
.line 6
invoke-virtual {v3}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->getDependencies()Ljava/util/Set;
move-result-object v4
invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_1
:goto_0
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_0
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/google/firebase/components/CycleDetector$ComponentNode;
.line 7
invoke-virtual {v5, v3}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->removeDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
.line 8
invoke-virtual {v5}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->isRoot()Z
move-result v6
if-eqz v6, :cond_1
.line 9
invoke-interface {v1, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 10
:cond_2
invoke-interface {p0}, Ljava/util/List;->size()I
move-result p0
if-ne v2, p0, :cond_3
return-void
.line 11
:cond_3
new-instance p0, Ljava/util/ArrayList;
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
.line 12
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_4
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_5
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/firebase/components/CycleDetector$ComponentNode;
.line 13
invoke-virtual {v1}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->isRoot()Z
move-result v2
if-nez v2, :cond_4
invoke-virtual {v1}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->isLeaf()Z
move-result v2
if-nez v2, :cond_4
.line 14
invoke-virtual {v1}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->getComponent()Lcom/google/firebase/components/Component;
move-result-object v1
invoke-virtual {p0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_1
.line 15
:cond_5
new-instance v0, Lcom/google/firebase/components/DependencyCycleException;
invoke-direct {v0, p0}, Lcom/google/firebase/components/DependencyCycleException;-><init>(Ljava/util/List;)V
throw v0
.end method
.method private static getRoots(Ljava/util/Set;)Ljava/util/Set;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;)",
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
.line 2
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/CycleDetector$ComponentNode;
.line 3
invoke-virtual {v1}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->isRoot()Z
move-result v2
if-eqz v2, :cond_0
.line 4
invoke-virtual {v0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_1
return-object v0
.end method
.method private static toGraph(Ljava/util/List;)Ljava/util/Set;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;)",
"Ljava/util/Set<",
"Lcom/google/firebase/components/CycleDetector$ComponentNode;",
">;"
}
.end annotation
.line 1
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
.line 2
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_4
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/firebase/components/Component;
.line 3
new-instance v3, Lcom/google/firebase/components/CycleDetector$ComponentNode;
invoke-direct {v3, v1}, Lcom/google/firebase/components/CycleDetector$ComponentNode;-><init>(Lcom/google/firebase/components/Component;)V
.line 4
invoke-virtual {v1}, Lcom/google/firebase/components/Component;->getProvidedInterfaces()Ljava/util/Set;
move-result-object v4
invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v4
:goto_0
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_0
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/Class;
.line 5
new-instance v6, Lcom/google/firebase/components/CycleDetector$Dep;
invoke-virtual {v1}, Lcom/google/firebase/components/Component;->isValue()Z
move-result v7
const/4 v8, 0x1
xor-int/2addr v7, v8
invoke-direct {v6, v5, v7, v2}, Lcom/google/firebase/components/CycleDetector$Dep;-><init>(Ljava/lang/Class;ZLcom/google/firebase/components/CycleDetector$1;)V
.line 6
invoke-virtual {v0, v6}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v7
if-nez v7, :cond_1
.line 7
new-instance v7, Ljava/util/HashSet;
invoke-direct {v7}, Ljava/util/HashSet;-><init>()V
invoke-virtual {v0, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 8
:cond_1
invoke-virtual {v0, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/util/Set;
.line 9
invoke-interface {v7}, Ljava/util/Set;->isEmpty()Z
move-result v9
if-nez v9, :cond_3
invoke-static {v6}, Lcom/google/firebase/components/CycleDetector$Dep;->access$100(Lcom/google/firebase/components/CycleDetector$Dep;)Z
move-result v6
if-eqz v6, :cond_2
goto :goto_1
.line 10
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
new-array v0, v8, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object v5, v0, v1
const-string v1, "Multiple components provide %s."
.line 11
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
.line 12
:cond_3
:goto_1
invoke-interface {v7, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 13
:cond_4
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_5
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_a
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/Set;
.line 14
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_6
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_5
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/components/CycleDetector$ComponentNode;
.line 15
invoke-virtual {v3}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->getComponent()Lcom/google/firebase/components/Component;
move-result-object v4
invoke-virtual {v4}, Lcom/google/firebase/components/Component;->getDependencies()Ljava/util/Set;
move-result-object v4
invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_7
:goto_2
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_6
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/google/firebase/components/Dependency;
.line 16
invoke-virtual {v5}, Lcom/google/firebase/components/Dependency;->isDirectInjection()Z
move-result v6
if-nez v6, :cond_8
goto :goto_2
.line 17
:cond_8
new-instance v6, Lcom/google/firebase/components/CycleDetector$Dep;
.line 18
invoke-virtual {v5}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
move-result-object v7
invoke-virtual {v5}, Lcom/google/firebase/components/Dependency;->isSet()Z
move-result v5
invoke-direct {v6, v7, v5, v2}, Lcom/google/firebase/components/CycleDetector$Dep;-><init>(Ljava/lang/Class;ZLcom/google/firebase/components/CycleDetector$1;)V
invoke-virtual {v0, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/util/Set;
if-nez v5, :cond_9
goto :goto_2
.line 19
:cond_9
invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v5
:goto_3
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v6
if-eqz v6, :cond_7
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/google/firebase/components/CycleDetector$ComponentNode;
.line 20
invoke-virtual {v3, v6}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->addDependency(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
.line 21
invoke-virtual {v6, v3}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->addDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
goto :goto_3
.line 22
:cond_a
new-instance p0, Ljava/util/HashSet;
invoke-direct {p0}, Ljava/util/HashSet;-><init>()V
.line 23
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_4
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_b
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/Set;
.line 24
invoke-virtual {p0, v1}, Ljava/util/HashSet;->addAll(Ljava/util/Collection;)Z
goto :goto_4
:cond_b
return-object p0
.end method
@@ -0,0 +1,487 @@
.class public final Lcom/google/firebase/components/Dependency;
.super Ljava/lang/Object;
.source "Dependency.java"
# instance fields
.field private final anInterface:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field private final injection:I
.field private final type:I
# direct methods
.method private constructor <init>(Ljava/lang/Class;II)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;II)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Null dependency anInterface."
.line 2
invoke-static {p1, v0}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Class;
iput-object p1, p0, Lcom/google/firebase/components/Dependency;->anInterface:Ljava/lang/Class;
.line 3
iput p2, p0, Lcom/google/firebase/components/Dependency;->type:I
.line 4
iput p3, p0, Lcom/google/firebase/components/Dependency;->injection:I
return-void
.end method
.method public static deferred(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Dependency;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x0
const/4 v2, 0x2
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/components/Dependency;-><init>(Ljava/lang/Class;II)V
return-object v0
.end method
.method private static describeInjection(I)Ljava/lang/String;
.locals 2
if-eqz p0, :cond_2
const/4 v0, 0x1
if-eq p0, v0, :cond_1
const/4 v0, 0x2
if-ne p0, v0, :cond_0
const-string p0, "deferred"
return-object p0
.line 1
:cond_0
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "Unsupported injection: "
invoke-static {v1, p0}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
:cond_1
const-string p0, "provider"
return-object p0
:cond_2
const-string p0, "direct"
return-object p0
.end method
.method public static optional(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Dependency;"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x0
invoke-direct {v0, p0, v1, v1}, Lcom/google/firebase/components/Dependency;-><init>(Ljava/lang/Class;II)V
return-object v0
.end method
.method public static optionalProvider(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Dependency;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x0
const/4 v2, 0x1
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/components/Dependency;-><init>(Ljava/lang/Class;II)V
return-object v0
.end method
.method public static required(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Dependency;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x1
const/4 v2, 0x0
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/components/Dependency;-><init>(Ljava/lang/Class;II)V
return-object v0
.end method
.method public static requiredProvider(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Dependency;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x1
invoke-direct {v0, p0, v1, v1}, Lcom/google/firebase/components/Dependency;-><init>(Ljava/lang/Class;II)V
return-object v0
.end method
.method public static setOf(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Dependency;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x2
const/4 v2, 0x0
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/components/Dependency;-><init>(Ljava/lang/Class;II)V
return-object v0
.end method
.method public static setOfProvider(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/google/firebase/components/Dependency;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x2
const/4 v2, 0x1
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/components/Dependency;-><init>(Ljava/lang/Class;II)V
return-object v0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
.line 1
instance-of v0, p1, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/google/firebase/components/Dependency;
.line 3
iget-object v0, p0, Lcom/google/firebase/components/Dependency;->anInterface:Ljava/lang/Class;
iget-object v2, p1, Lcom/google/firebase/components/Dependency;->anInterface:Ljava/lang/Class;
if-ne v0, v2, :cond_0
iget v0, p0, Lcom/google/firebase/components/Dependency;->type:I
iget v2, p1, Lcom/google/firebase/components/Dependency;->type:I
if-ne v0, v2, :cond_0
iget v0, p0, Lcom/google/firebase/components/Dependency;->injection:I
iget p1, p1, Lcom/google/firebase/components/Dependency;->injection:I
if-ne v0, p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public getInterface()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Dependency;->anInterface:Ljava/lang/Class;
return-object v0
.end method
.method public hashCode()I
.locals 3
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Dependency;->anInterface:Ljava/lang/Class;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
const v1, 0xf4243
xor-int/2addr v0, v1
mul-int/2addr v0, v1
.line 2
iget v2, p0, Lcom/google/firebase/components/Dependency;->type:I
xor-int/2addr v0, v2
mul-int/2addr v0, v1
.line 3
iget v1, p0, Lcom/google/firebase/components/Dependency;->injection:I
xor-int/2addr v0, v1
return v0
.end method
.method public isDeferred()Z
.locals 2
.line 1
iget v0, p0, Lcom/google/firebase/components/Dependency;->injection:I
const/4 v1, 0x2
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isDirectInjection()Z
.locals 1
.line 1
iget v0, p0, Lcom/google/firebase/components/Dependency;->injection:I
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isRequired()Z
.locals 2
.line 1
iget v0, p0, Lcom/google/firebase/components/Dependency;->type:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
return v1
.end method
.method public isSet()Z
.locals 2
.line 1
iget v0, p0, Lcom/google/firebase/components/Dependency;->type:I
const/4 v1, 0x2
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 1
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Dependency{anInterface="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lcom/google/firebase/components/Dependency;->anInterface:Ljava/lang/Class;
.line 2
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", type="
.line 3
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 4
iget v1, p0, Lcom/google/firebase/components/Dependency;->type:I
const/4 v2, 0x1
if-ne v1, v2, :cond_0
const-string v1, "required"
goto :goto_0
:cond_0
if-nez v1, :cond_1
const-string v1, "optional"
goto :goto_0
:cond_1
const-string v1, "set"
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", injection="
.line 5
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/google/firebase/components/Dependency;->injection:I
.line 6
invoke-static {v1}, Lcom/google/firebase/components/Dependency;->describeInjection(I)Ljava/lang/String;
move-result-object v1
const-string v2, "}"
invoke-static {v0, v1, v2}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,76 @@
.class public Lcom/google/firebase/components/DependencyCycleException;
.super Lcom/google/firebase/components/DependencyException;
.source "DependencyCycleException.java"
# instance fields
.field private final componentsInCycle:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/List;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;)V"
}
.end annotation
const-string v0, "Dependency cycle detected: "
.line 1
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-interface {p1}, Ljava/util/List;->toArray()[Ljava/lang/Object;
move-result-object v1
invoke-static {v1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
.line 2
iput-object p1, p0, Lcom/google/firebase/components/DependencyCycleException;->componentsInCycle:Ljava/util/List;
return-void
.end method
# virtual methods
.method public getComponentsInCycle()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/DependencyCycleException;->componentsInCycle:Ljava/util/List;
return-object v0
.end method
@@ -0,0 +1,14 @@
.class public Lcom/google/firebase/components/DependencyException;
.super Ljava/lang/RuntimeException;
.source "DependencyException.java"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method
@@ -0,0 +1,491 @@
.class Lcom/google/firebase/components/EventBus;
.super Ljava/lang/Object;
.source "EventBus.java"
# interfaces
.implements Lcom/google/firebase/events/Subscriber;
.implements Lcom/google/firebase/events/Publisher;
# instance fields
.field private final defaultExecutor:Ljava/util/concurrent/Executor;
.field private final handlerMap:Ljava/util/Map;
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Ljava/util/concurrent/ConcurrentHashMap<",
"Lcom/google/firebase/events/EventHandler<",
"Ljava/lang/Object;",
">;",
"Ljava/util/concurrent/Executor;",
">;>;"
}
.end annotation
.end field
.field private pendingEvents:Ljava/util/Queue;
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Queue<",
"Lcom/google/firebase/events/Event<",
"*>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/concurrent/Executor;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
.line 3
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
iput-object v0, p0, Lcom/google/firebase/components/EventBus;->pendingEvents:Ljava/util/Queue;
.line 4
iput-object p1, p0, Lcom/google/firebase/components/EventBus;->defaultExecutor:Ljava/util/concurrent/Executor;
return-void
.end method
.method public static synthetic a(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/components/EventBus;->lambda$publish$0(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
return-void
.end method
.method private declared-synchronized getHandlers(Lcom/google/firebase/events/Event;)Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/events/Event<",
"*>;)",
"Ljava/util/Set<",
"Ljava/util/Map$Entry<",
"Lcom/google/firebase/events/EventHandler<",
"Ljava/lang/Object;",
">;",
"Ljava/util/concurrent/Executor;",
">;>;"
}
.end annotation
monitor-enter p0
.line 1
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
invoke-virtual {p1}, Lcom/google/firebase/events/Event;->getType()Ljava/lang/Class;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Map;
if-nez p1, :cond_0
.line 2
invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;
move-result-object p1
goto :goto_0
:cond_0
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_0
monitor-exit p0
return-object p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method private static synthetic lambda$publish$0(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
.locals 0
.line 1
invoke-interface {p0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/google/firebase/events/EventHandler;
invoke-interface {p0, p1}, Lcom/google/firebase/events/EventHandler;->handle(Lcom/google/firebase/events/Event;)V
return-void
.end method
# virtual methods
.method public enablePublishingAndFlushPending()V
.locals 2
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->pendingEvents:Ljava/util/Queue;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 3
iput-object v1, p0, Lcom/google/firebase/components/EventBus;->pendingEvents:Ljava/util/Queue;
goto :goto_0
:cond_0
move-object v0, v1
.line 4
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_1
.line 5
invoke-interface {v0}, Ljava/util/Queue;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/firebase/events/Event;
.line 6
invoke-virtual {p0, v1}, Lcom/google/firebase/components/EventBus;->publish(Lcom/google/firebase/events/Event;)V
goto :goto_1
:cond_1
return-void
:catchall_0
move-exception v0
.line 7
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public publish(Lcom/google/firebase/events/Event;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/events/Event<",
"*>;)V"
}
.end annotation
.line 1
invoke-static {p1}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 2
monitor-enter p0
.line 3
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->pendingEvents:Ljava/util/Queue;
if-eqz v0, :cond_0
.line 4
invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
.line 5
monitor-exit p0
return-void
.line 6
:cond_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 7
invoke-direct {p0, p1}, Lcom/google/firebase/components/EventBus;->getHandlers(Lcom/google/firebase/events/Event;)Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/Map$Entry;
.line 8
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/concurrent/Executor;
new-instance v3, Lcom/google/firebase/components/k;
invoke-direct {v3, v1, p1}, Lcom/google/firebase/components/k;-><init>(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
invoke-interface {v2, v3}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
goto :goto_0
:cond_1
return-void
:catchall_0
move-exception p1
.line 9
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public subscribe(Ljava/lang/Class;Lcom/google/firebase/events/EventHandler;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;",
"Lcom/google/firebase/events/EventHandler<",
"-TT;>;)V"
}
.end annotation
.line 8
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->defaultExecutor:Ljava/util/concurrent/Executor;
invoke-virtual {p0, p1, v0, p2}, Lcom/google/firebase/components/EventBus;->subscribe(Ljava/lang/Class;Ljava/util/concurrent/Executor;Lcom/google/firebase/events/EventHandler;)V
return-void
.end method
.method public declared-synchronized subscribe(Ljava/lang/Class;Ljava/util/concurrent/Executor;Lcom/google/firebase/events/EventHandler;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;",
"Ljava/util/concurrent/Executor;",
"Lcom/google/firebase/events/EventHandler<",
"-TT;>;)V"
}
.end annotation
monitor-enter p0
.line 1
:try_start_0
invoke-static {p1}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 2
invoke-static {p3}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 3
invoke-static {p2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 4
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
.line 5
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
new-instance v1, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v1}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 6
:cond_0
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/concurrent/ConcurrentHashMap;
invoke-virtual {p1, p3, p2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 7
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized unsubscribe(Ljava/lang/Class;Lcom/google/firebase/events/EventHandler;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;",
"Lcom/google/firebase/events/EventHandler<",
"-TT;>;)V"
}
.end annotation
monitor-enter p0
.line 1
:try_start_0
invoke-static {p1}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 2
invoke-static {p2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 3
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_0
.line 4
monitor-exit p0
return-void
.line 5
:cond_0
:try_start_1
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/concurrent/ConcurrentHashMap;
.line 6
invoke-virtual {v0, p2}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 7
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->isEmpty()Z
move-result p2
if-eqz p2, :cond_1
.line 8
iget-object p2, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
invoke-interface {p2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 9
:cond_1
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
@@ -0,0 +1,23 @@
.class public Lcom/google/firebase/components/InvalidRegistrarException;
.super Ljava/lang/RuntimeException;
.source "InvalidRegistrarException.java"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
@@ -0,0 +1,182 @@
.class public Lcom/google/firebase/components/Lazy;
.super Ljava/lang/Object;
.source "Lazy.java"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
# static fields
.field private static final UNINITIALIZED:Ljava/lang/Object;
# instance fields
.field private volatile instance:Ljava/lang/Object;
.field private volatile provider:Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
return-void
.end method
.method public constructor <init>(Lcom/google/firebase/inject/Provider;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Provider<",
"TT;>;)V"
}
.end annotation
.line 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 5
sget-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
.line 6
iput-object p1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
return-void
.end method
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
sget-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
.line 3
iput-object p1, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public get()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
.line 2
sget-object v1, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
if-ne v0, v1, :cond_1
.line 3
monitor-enter p0
.line 4
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
if-ne v0, v1, :cond_0
.line 5
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
.line 6
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
const/4 v1, 0x0
.line 7
iput-object v1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
.line 8
:cond_0
monitor-exit p0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:cond_1
:goto_0
return-object v0
.end method
.method public isInitialized()Z
.locals 2
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
sget-object v1, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
if-eq v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
@@ -0,0 +1,292 @@
.class Lcom/google/firebase/components/LazySet;
.super Ljava/lang/Object;
.source "LazySet.java"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/firebase/inject/Provider<",
"Ljava/util/Set<",
"TT;>;>;"
}
.end annotation
# instance fields
.field private volatile actualSet:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.end field
.field private volatile providers:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/google/firebase/inject/Provider<",
"TT;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/Collection;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"Lcom/google/firebase/inject/Provider<",
"TT;>;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
.line 3
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
.line 4
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
return-void
.end method
.method public static fromCollection(Ljava/util/Collection;)Lcom/google/firebase/components/LazySet;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"Lcom/google/firebase/inject/Provider<",
"*>;>;)",
"Lcom/google/firebase/components/LazySet<",
"*>;"
}
.end annotation
.line 1
check-cast p0, Ljava/util/Set;
.line 2
new-instance v0, Lcom/google/firebase/components/LazySet;
invoke-direct {v0, p0}, Lcom/google/firebase/components/LazySet;-><init>(Ljava/util/Collection;)V
return-object v0
.end method
.method private declared-synchronized updateSet()V
.locals 3
monitor-enter p0
.line 1
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/firebase/inject/Provider;
.line 2
iget-object v2, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
invoke-interface {v1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object v1
invoke-interface {v2, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const/4 v0, 0x0
.line 3
iput-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 4
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
# virtual methods
.method public declared-synchronized add(Lcom/google/firebase/inject/Provider;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Provider<",
"TT;>;)V"
}
.end annotation
monitor-enter p0
.line 1
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 3
:cond_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
invoke-interface {p1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 4
:goto_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/firebase/components/LazySet;->get()Ljava/util/Set;
move-result-object v0
return-object v0
.end method
.method public get()Ljava/util/Set;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.line 2
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
if-nez v0, :cond_1
.line 3
monitor-enter p0
.line 4
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
if-nez v0, :cond_0
.line 5
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
.line 6
invoke-direct {p0}, Lcom/google/firebase/components/LazySet;->updateSet()V
.line 7
:cond_0
monitor-exit p0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.line 8
:cond_1
:goto_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,14 @@
.class public Lcom/google/firebase/components/MissingDependencyException;
.super Lcom/google/firebase/components/DependencyException;
.source "MissingDependencyException.java"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
return-void
.end method
@@ -0,0 +1,374 @@
.class Lcom/google/firebase/components/OptionalProvider;
.super Ljava/lang/Object;
.source "OptionalProvider.java"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
.implements Lcom/google/firebase/inject/Deferred;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/firebase/inject/Provider<",
"TT;>;",
"Lcom/google/firebase/inject/Deferred<",
"TT;>;"
}
.end annotation
# static fields
.field private static final EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Provider<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private static final NOOP_HANDLER:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Deferred$DeferredHandler<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# instance fields
.field private volatile delegate:Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
.end field
.field private handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Deferred$DeferredHandler<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/components/m;->a:Lcom/google/firebase/components/m;
sput-object v0, Lcom/google/firebase/components/OptionalProvider;->NOOP_HANDLER:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.line 2
sget-object v0, Lcom/google/firebase/components/n;->a:Lcom/google/firebase/components/n;
sput-object v0, Lcom/google/firebase/components/OptionalProvider;->EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
return-void
.end method
.method private constructor <init>(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Deferred$DeferredHandler<",
"TT;>;",
"Lcom/google/firebase/inject/Provider<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.line 3
iput-object p2, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
return-void
.end method
.method public static synthetic a()Ljava/lang/Object;
.locals 1
invoke-static {}, Lcom/google/firebase/components/OptionalProvider;->lambda$static$1()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public static synthetic b(Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-static {p0}, Lcom/google/firebase/components/OptionalProvider;->lambda$static$0(Lcom/google/firebase/inject/Provider;)V
return-void
.end method
.method public static synthetic c(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-static {p0, p1, p2}, Lcom/google/firebase/components/OptionalProvider;->lambda$whenAvailable$2(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
.method public static empty()Lcom/google/firebase/components/OptionalProvider;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lcom/google/firebase/components/OptionalProvider<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/OptionalProvider;
sget-object v1, Lcom/google/firebase/components/OptionalProvider;->NOOP_HANDLER:Lcom/google/firebase/inject/Deferred$DeferredHandler;
sget-object v2, Lcom/google/firebase/components/OptionalProvider;->EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
invoke-direct {v0, v1, v2}, Lcom/google/firebase/components/OptionalProvider;-><init>(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
return-object v0
.end method
.method private static synthetic lambda$static$0(Lcom/google/firebase/inject/Provider;)V
.locals 0
return-void
.end method
.method private static synthetic lambda$static$1()Ljava/lang/Object;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method private static synthetic lambda$whenAvailable$2(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
.locals 0
.line 1
invoke-interface {p0, p2}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
.line 2
invoke-interface {p1, p2}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
return-void
.end method
.method public static of(Lcom/google/firebase/inject/Provider;)Lcom/google/firebase/components/OptionalProvider;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/firebase/inject/Provider<",
"TT;>;)",
"Lcom/google/firebase/components/OptionalProvider<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/components/OptionalProvider;
const/4 v1, 0x0
invoke-direct {v0, v1, p0}, Lcom/google/firebase/components/OptionalProvider;-><init>(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
return-object v0
.end method
# virtual methods
.method public get()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public set(Lcom/google/firebase/inject/Provider;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Provider<",
"TT;>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
sget-object v1, Lcom/google/firebase/components/OptionalProvider;->EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
if-ne v0, v1, :cond_0
.line 2
monitor-enter p0
.line 3
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
const/4 v1, 0x0
.line 4
iput-object v1, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.line 5
iput-object p1, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
.line 6
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 7
invoke-interface {v0, p1}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
return-void
:catchall_0
move-exception p1
.line 8
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.line 9
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "provide() can be called only once."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public whenAvailable(Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
.locals 4
.param p1 # Lcom/google/firebase/inject/Deferred$DeferredHandler;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Deferred$DeferredHandler<",
"TT;>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
.line 2
sget-object v1, Lcom/google/firebase/components/OptionalProvider;->EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
if-eq v0, v1, :cond_0
.line 3
invoke-interface {p1, v0}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
return-void
:cond_0
const/4 v0, 0x0
.line 4
monitor-enter p0
.line 5
:try_start_0
iget-object v2, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
if-eq v2, v1, :cond_1
move-object v0, v2
goto :goto_0
.line 6
:cond_1
iget-object v1, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.line 7
new-instance v3, Lcom/google/firebase/components/l;
invoke-direct {v3, v1, p1}, Lcom/google/firebase/components/l;-><init>(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
iput-object v3, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.line 8
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_2
.line 9
invoke-interface {p1, v2}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
:cond_2
return-void
:catchall_0
move-exception p1
.line 10
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
@@ -0,0 +1,80 @@
.class public final Lcom/google/firebase/components/Preconditions;
.super Ljava/lang/Object;
.source "Preconditions.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkArgument(ZLjava/lang/String;)V
.locals 0
if-eqz p0, :cond_0
return-void
.line 1
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)TT;"
}
.end annotation
.line 1
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
return-object p0
.end method
.method public static checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Ljava/lang/String;",
")TT;"
}
.end annotation
.line 2
invoke-static {p0, p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
return-object p0
.end method
.method public static checkState(ZLjava/lang/String;)V
.locals 0
if-eqz p0, :cond_0
return-void
.line 1
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
@@ -0,0 +1,12 @@
.class public final Lcom/google/firebase/components/R;
.super Ljava/lang/Object;
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,114 @@
.class Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;
.super Ljava/lang/Object;
.source "RestrictedComponentContainer.java"
# interfaces
.implements Lcom/google/firebase/events/Publisher;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/RestrictedComponentContainer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "RestrictedPublisher"
.end annotation
# instance fields
.field private final allowedPublishedEvents:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final delegate:Lcom/google/firebase/events/Publisher;
# direct methods
.method public constructor <init>(Ljava/util/Set;Lcom/google/firebase/events/Publisher;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;",
"Lcom/google/firebase/events/Publisher;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;->allowedPublishedEvents:Ljava/util/Set;
.line 3
iput-object p2, p0, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;->delegate:Lcom/google/firebase/events/Publisher;
return-void
.end method
# virtual methods
.method public publish(Lcom/google/firebase/events/Event;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/events/Event<",
"*>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;->allowedPublishedEvents:Ljava/util/Set;
invoke-virtual {p1}, Lcom/google/firebase/events/Event;->getType()Ljava/lang/Class;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;->delegate:Lcom/google/firebase/events/Publisher;
invoke-interface {v0, p1}, Lcom/google/firebase/events/Publisher;->publish(Lcom/google/firebase/events/Event;)V
return-void
.line 3
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const-string p1, "Attempting to publish an undeclared event %s."
.line 4
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,584 @@
.class final Lcom/google/firebase/components/RestrictedComponentContainer;
.super Lcom/google/firebase/components/AbstractComponentContainer;
.source "RestrictedComponentContainer.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;
}
.end annotation
# instance fields
.field private final allowedDeferredInterfaces:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final allowedDirectInterfaces:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final allowedProviderInterfaces:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final allowedPublishedEvents:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final allowedSetDirectInterfaces:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final allowedSetProviderInterfaces:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
.field private final delegateContainer:Lcom/google/firebase/components/ComponentContainer;
# direct methods
.method public constructor <init>(Lcom/google/firebase/components/Component;Lcom/google/firebase/components/ComponentContainer;)V
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/components/Component<",
"*>;",
"Lcom/google/firebase/components/ComponentContainer;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/components/AbstractComponentContainer;-><init>()V
.line 2
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
.line 3
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
.line 4
new-instance v2, Ljava/util/HashSet;
invoke-direct {v2}, Ljava/util/HashSet;-><init>()V
.line 5
new-instance v3, Ljava/util/HashSet;
invoke-direct {v3}, Ljava/util/HashSet;-><init>()V
.line 6
new-instance v4, Ljava/util/HashSet;
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
.line 7
invoke-virtual {p1}, Lcom/google/firebase/components/Component;->getDependencies()Ljava/util/Set;
move-result-object v5
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_4
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/google/firebase/components/Dependency;
.line 8
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isDirectInjection()Z
move-result v7
if-eqz v7, :cond_1
.line 9
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isSet()Z
move-result v7
if-eqz v7, :cond_0
.line 10
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v3, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 11
:cond_0
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v0, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 12
:cond_1
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isDeferred()Z
move-result v7
if-eqz v7, :cond_2
.line 13
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v2, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 14
:cond_2
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isSet()Z
move-result v7
if-eqz v7, :cond_3
.line 15
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v4, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 16
:cond_3
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v1, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 17
:cond_4
invoke-virtual {p1}, Lcom/google/firebase/components/Component;->getPublishedEvents()Ljava/util/Set;
move-result-object v5
invoke-interface {v5}, Ljava/util/Set;->isEmpty()Z
move-result v5
if-nez v5, :cond_5
.line 18
const-class v5, Lcom/google/firebase/events/Publisher;
invoke-virtual {v0, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 19
:cond_5
invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDirectInterfaces:Ljava/util/Set;
.line 20
invoke-static {v1}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedProviderInterfaces:Ljava/util/Set;
.line 21
invoke-static {v2}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDeferredInterfaces:Ljava/util/Set;
.line 22
invoke-static {v3}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetDirectInterfaces:Ljava/util/Set;
.line 23
invoke-static {v4}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetProviderInterfaces:Ljava/util/Set;
.line 24
invoke-virtual {p1}, Lcom/google/firebase/components/Component;->getPublishedEvents()Ljava/util/Set;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedPublishedEvents:Ljava/util/Set;
.line 25
iput-object p2, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
return-void
.end method
# virtual methods
.method public get(Ljava/lang/Class;)Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDirectInterfaces:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
.line 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
.line 3
const-class v1, Lcom/google/firebase/events/Publisher;
invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_0
return-object v0
.line 4
:cond_0
new-instance p1, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;
iget-object v1, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedPublishedEvents:Ljava/util/Set;
check-cast v0, Lcom/google/firebase/events/Publisher;
invoke-direct {p1, v1, v0}, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;-><init>(Ljava/util/Set;Lcom/google/firebase/events/Publisher;)V
return-object p1
.line 5
:cond_1
new-instance v0, Lcom/google/firebase/components/DependencyException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const-string p1, "Attempting to request an undeclared dependency %s."
.line 6
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/inject/Deferred<",
"TT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDeferredInterfaces:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
move-result-object p1
return-object p1
.line 3
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const-string p1, "Attempting to request an undeclared dependency Deferred<%s>."
.line 4
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedProviderInterfaces:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.line 3
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const-string p1, "Attempting to request an undeclared dependency Provider<%s>."
.line 4
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public setOf(Ljava/lang/Class;)Ljava/util/Set;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Ljava/util/Set<",
"TT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetDirectInterfaces:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOf(Ljava/lang/Class;)Ljava/util/Set;
move-result-object p1
return-object p1
.line 3
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const-string p1, "Attempting to request an undeclared dependency Set<%s>."
.line 4
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public setOfProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/google/firebase/inject/Provider<",
"Ljava/util/Set<",
"TT;>;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetProviderInterfaces:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOfProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.line 3
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const-string p1, "Attempting to request an undeclared dependency Provider<Set<%s>>."
.line 4
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/components/a;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/components/ComponentFactory;
# instance fields
.field public final synthetic a:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/a;->a:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/a;->a:Ljava/lang/Object;
invoke-static {v0, p1}, Lcom/google/firebase/components/Component;->a(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/components/b;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/components/ComponentFactory;
# instance fields
.field public final synthetic a:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/b;->a:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/b;->a:Ljava/lang/Object;
invoke-static {v0, p1}, Lcom/google/firebase/components/Component;->b(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/components/c;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/components/ComponentFactory;
# instance fields
.field public final synthetic a:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/c;->a:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/c;->a:Ljava/lang/Object;
invoke-static {v0, p1}, Lcom/google/firebase/components/Component;->c(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/components/d;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public final synthetic a:Ljava/lang/String;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/String;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/d;->a:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/d;->a:Ljava/lang/String;
invoke-static {v0}, Lcom/google/firebase/components/ComponentDiscovery;->a(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/components/e;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public final synthetic a:Lcom/google/firebase/components/ComponentRegistrar;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/components/ComponentRegistrar;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/e;->a:Lcom/google/firebase/components/ComponentRegistrar;
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/e;->a:Lcom/google/firebase/components/ComponentRegistrar;
invoke-static {v0}, Lcom/google/firebase/components/ComponentRuntime;->b(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,42 @@
.class public final synthetic Lcom/google/firebase/components/f;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public final synthetic a:Lcom/google/firebase/components/ComponentRuntime;
.field public final synthetic b:Lcom/google/firebase/components/Component;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/components/ComponentRuntime;Lcom/google/firebase/components/Component;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/f;->a:Lcom/google/firebase/components/ComponentRuntime;
iput-object p2, p0, Lcom/google/firebase/components/f;->b:Lcom/google/firebase/components/Component;
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/f;->a:Lcom/google/firebase/components/ComponentRuntime;
iget-object v1, p0, Lcom/google/firebase/components/f;->b:Lcom/google/firebase/components/Component;
invoke-static {v0, v1}, Lcom/google/firebase/components/ComponentRuntime;->a(Lcom/google/firebase/components/ComponentRuntime;Lcom/google/firebase/components/Component;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,44 @@
.class public final synthetic Lcom/google/firebase/components/g;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# static fields
.field public static final synthetic a:Lcom/google/firebase/components/g;
# direct methods
.method public static synthetic constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/firebase/components/g;
invoke-direct {v0}, Lcom/google/firebase/components/g;-><init>()V
sput-object v0, Lcom/google/firebase/components/g;->a:Lcom/google/firebase/components/g;
return-void
.end method
.method public synthetic constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 1
invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/components/h;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:Lcom/google/firebase/components/LazySet;
.field public final synthetic b:Lcom/google/firebase/inject/Provider;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/components/LazySet;Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/h;->a:Lcom/google/firebase/components/LazySet;
iput-object p2, p0, Lcom/google/firebase/components/h;->b:Lcom/google/firebase/inject/Provider;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/h;->a:Lcom/google/firebase/components/LazySet;
iget-object v1, p0, Lcom/google/firebase/components/h;->b:Lcom/google/firebase/inject/Provider;
invoke-static {v0, v1}, Lcom/google/firebase/components/ComponentRuntime;->c(Lcom/google/firebase/components/LazySet;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/components/i;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:Lcom/google/firebase/components/OptionalProvider;
.field public final synthetic b:Lcom/google/firebase/inject/Provider;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/components/OptionalProvider;Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/i;->a:Lcom/google/firebase/components/OptionalProvider;
iput-object p2, p0, Lcom/google/firebase/components/i;->b:Lcom/google/firebase/inject/Provider;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/i;->a:Lcom/google/firebase/components/OptionalProvider;
iget-object v1, p0, Lcom/google/firebase/components/i;->b:Lcom/google/firebase/inject/Provider;
invoke-static {v0, v1}, Lcom/google/firebase/components/ComponentRuntime;->d(Lcom/google/firebase/components/OptionalProvider;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/components/j;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public final synthetic a:Lcom/google/firebase/components/ComponentRegistrar;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/components/ComponentRegistrar;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/j;->a:Lcom/google/firebase/components/ComponentRegistrar;
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/j;->a:Lcom/google/firebase/components/ComponentRegistrar;
invoke-static {v0}, Lcom/google/firebase/components/ComponentRuntime$Builder;->a(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/components/k;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:Ljava/util/Map$Entry;
.field public final synthetic b:Lcom/google/firebase/events/Event;
# direct methods
.method public synthetic constructor <init>(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/k;->a:Ljava/util/Map$Entry;
iput-object p2, p0, Lcom/google/firebase/components/k;->b:Lcom/google/firebase/events/Event;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/k;->a:Ljava/util/Map$Entry;
iget-object v1, p0, Lcom/google/firebase/components/k;->b:Lcom/google/firebase/events/Event;
invoke-static {v0, v1}, Lcom/google/firebase/components/EventBus;->a(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/components/l;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# instance fields
.field public final synthetic a:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.field public final synthetic b:Lcom/google/firebase/inject/Deferred$DeferredHandler;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/l;->a:Lcom/google/firebase/inject/Deferred$DeferredHandler;
iput-object p2, p0, Lcom/google/firebase/components/l;->b:Lcom/google/firebase/inject/Deferred$DeferredHandler;
return-void
.end method
# virtual methods
.method public final handle(Lcom/google/firebase/inject/Provider;)V
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/l;->a:Lcom/google/firebase/inject/Deferred$DeferredHandler;
iget-object v1, p0, Lcom/google/firebase/components/l;->b:Lcom/google/firebase/inject/Deferred$DeferredHandler;
invoke-static {v0, v1, p1}, Lcom/google/firebase/components/OptionalProvider;->c(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,42 @@
.class public final synthetic Lcom/google/firebase/components/m;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# static fields
.field public static final synthetic a:Lcom/google/firebase/components/m;
# direct methods
.method public static synthetic constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/firebase/components/m;
invoke-direct {v0}, Lcom/google/firebase/components/m;-><init>()V
sput-object v0, Lcom/google/firebase/components/m;->a:Lcom/google/firebase/components/m;
return-void
.end method
.method public synthetic constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final handle(Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-static {p1}, Lcom/google/firebase/components/OptionalProvider;->b(Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,44 @@
.class public final synthetic Lcom/google/firebase/components/n;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# static fields
.field public static final synthetic a:Lcom/google/firebase/components/n;
# direct methods
.method public static synthetic constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/firebase/components/n;
invoke-direct {v0}, Lcom/google/firebase/components/n;-><init>()V
sput-object v0, Lcom/google/firebase/components/n;->a:Lcom/google/firebase/components/n;
return-void
.end method
.method public synthetic constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 1
invoke-static {}, Lcom/google/firebase/components/OptionalProvider;->a()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method