Add Discord APKTool decompilation (Smali source for modding)

- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
.class public final synthetic Lcom/google/firebase/components/Component$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/components/ComponentFactory;
# instance fields
.field public final synthetic f$0:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/Component$$ExternalSyntheticLambda0;->f$0:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 1
.line 0
iget-object v0, p0, Lcom/google/firebase/components/Component$$ExternalSyntheticLambda0;->f$0:Ljava/lang/Object;
invoke-static {v0, p1}, Lcom/google/firebase/components/Component;->$r8$lambda$Ffrth-d9Peo_i_HGmbM5iJb0gQQ(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,38 @@
.class public final synthetic Lcom/google/firebase/components/Component$$ExternalSyntheticLambda1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/components/ComponentFactory;
# instance fields
.field public final synthetic f$0:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/Component$$ExternalSyntheticLambda1;->f$0:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 1
.line 0
iget-object v0, p0, Lcom/google/firebase/components/Component$$ExternalSyntheticLambda1;->f$0:Ljava/lang/Object;
invoke-static {v0, p1}, Lcom/google/firebase/components/Component;->$r8$lambda$KryL7UebsJ6sFV-CDK2Yw3_BWQc(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Lcom/google/firebase/components/Component$1;
.super Ljava/lang/Object;
.source "SourceFile"
# 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

View File

@@ -0,0 +1,392 @@
.class public Lcom/google/firebase/components/Component$Builder;
.super Ljava/lang/Object;
.source "SourceFile"
# 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
# instance fields
.field public final dependencies:Ljava/util/Set;
.field public factory:Lcom/google/firebase/components/ComponentFactory;
.field public instantiation:I
.field public name:Ljava/lang/String;
.field public final providedInterfaces:Ljava/util/Set;
.field public final publishedEvents:Ljava/util/Set;
.field public type:I
# direct methods
.method public varargs constructor <init>(Lcom/google/firebase/components/Qualified;[Lcom/google/firebase/components/Qualified;)V
.locals 3
.line 302
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/firebase/components/Component$Builder;->name:Ljava/lang/String;
.line 284
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 285
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
iput v1, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
iput v1, p0, Lcom/google/firebase/components/Component$Builder;->type:I
.line 289
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 303
invoke-static {p1, v2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 304
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 305
array-length p1, p2
:goto_0
if-ge v1, p1, :cond_0
aget-object v0, p2, v1
.line 306
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
:cond_0
iget-object p1, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
.line 308
invoke-static {p1, p2}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/firebase/components/Qualified;[Lcom/google/firebase/components/Qualified;Lcom/google/firebase/components/Component$1;)V
.locals 0
.line 282
invoke-direct {p0, p1, p2}, Lcom/google/firebase/components/Component$Builder;-><init>(Lcom/google/firebase/components/Qualified;[Lcom/google/firebase/components/Qualified;)V
return-void
.end method
.method public varargs constructor <init>(Ljava/lang/Class;[Ljava/lang/Class;)V
.locals 4
.line 292
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/firebase/components/Component$Builder;->name:Ljava/lang/String;
.line 284
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 285
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
iput v1, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
iput v1, p0, Lcom/google/firebase/components/Component$Builder;->type:I
.line 289
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 293
invoke-static {p1, v2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 294
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 295
array-length p1, p2
:goto_0
if-ge v1, p1, :cond_0
aget-object v0, p2, v1
.line 296
invoke-static {v0, v2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
iget-object v3, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
.line 297
invoke-static {v0}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object v0
invoke-interface {v3, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
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 282
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$200(Lcom/google/firebase/components/Component$Builder;)Lcom/google/firebase/components/Component$Builder;
.locals 0
.line 282
invoke-virtual {p0}, Lcom/google/firebase/components/Component$Builder;->intoSet()Lcom/google/firebase/components/Component$Builder;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public add(Lcom/google/firebase/components/Dependency;)Lcom/google/firebase/components/Component$Builder;
.locals 1
const-string v0, "Null dependency"
.line 320
invoke-static {p1, v0}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 321
invoke-virtual {p1}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/google/firebase/components/Component$Builder;->validateInterface(Lcom/google/firebase/components/Qualified;)V
iget-object v0, p0, Lcom/google/firebase/components/Component$Builder;->dependencies:Ljava/util/Set;
.line 322
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
const/4 v0, 0x1
.line 329
invoke-virtual {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 11
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."
.line 374
invoke-static {v0, v1}, Lcom/google/firebase/components/Preconditions;->checkState(ZLjava/lang/String;)V
.line 375
new-instance v0, Lcom/google/firebase/components/Component;
iget-object v3, p0, Lcom/google/firebase/components/Component$Builder;->name:Ljava/lang/String;
new-instance v4, Ljava/util/HashSet;
iget-object v1, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
invoke-direct {v4, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
new-instance v5, Ljava/util/HashSet;
iget-object v1, p0, Lcom/google/firebase/components/Component$Builder;->dependencies:Ljava/util/Set;
invoke-direct {v5, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
iget v6, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
iget v7, p0, Lcom/google/firebase/components/Component$Builder;->type:I
iget-object v8, p0, Lcom/google/firebase/components/Component$Builder;->factory:Lcom/google/firebase/components/ComponentFactory;
iget-object v9, p0, Lcom/google/firebase/components/Component$Builder;->publishedEvents:Ljava/util/Set;
const/4 v10, 0x0
move-object v2, v0
invoke-direct/range {v2 .. v10}, Lcom/google/firebase/components/Component;-><init>(Ljava/lang/String;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
const/4 v0, 0x2
.line 335
invoke-virtual {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
const-string v0, "Null factory"
.line 362
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 final intoSet()Lcom/google/firebase/components/Component$Builder;
.locals 1
const/4 v0, 0x1
iput v0, p0, Lcom/google/firebase/components/Component$Builder;->type:I
return-object p0
.end method
.method public name(Ljava/lang/String;)Lcom/google/firebase/components/Component$Builder;
.locals 0
iput-object p1, p0, Lcom/google/firebase/components/Component$Builder;->name:Ljava/lang/String;
return-object p0
.end method
.method public final setInstantiation(I)Lcom/google/firebase/components/Component$Builder;
.locals 2
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."
.line 347
invoke-static {v0, v1}, Lcom/google/firebase/components/Preconditions;->checkState(ZLjava/lang/String;)V
iput p1, p0, Lcom/google/firebase/components/Component$Builder;->instantiation:I
return-object p0
.end method
.method public final validateInterface(Lcom/google/firebase/components/Qualified;)V
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/Component$Builder;->providedInterfaces:Ljava/util/Set;
.line 355
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 354
invoke-static {p1, v0}, Lcom/google/firebase/components/Preconditions;->checkArgument(ZLjava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,430 @@
.class public final Lcom/google/firebase/components/Component;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/Component$Builder;
}
.end annotation
# instance fields
.field public final dependencies:Ljava/util/Set;
.field public final factory:Lcom/google/firebase/components/ComponentFactory;
.field public final instantiation:I
.field public final name:Ljava/lang/String;
.field public final providedInterfaces:Ljava/util/Set;
.field public final publishedEvents:Ljava/util/Set;
.field public final type:I
# direct methods
.method public static synthetic $r8$lambda$Ffrth-d9Peo_i_HGmbM5iJb0gQQ(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
.line 0
invoke-static {p0, p1}, Lcom/google/firebase/components/Component;->lambda$intoSet$3(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static synthetic $r8$lambda$KryL7UebsJ6sFV-CDK2Yw3_BWQc(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
.line 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 constructor <init>(Ljava/lang/String;Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;)V
.locals 0
.line 97
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/Component;->name:Ljava/lang/String;
.line 99
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;->providedInterfaces:Ljava/util/Set;
.line 100
invoke-static {p3}, 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;
iput p4, p0, Lcom/google/firebase/components/Component;->instantiation:I
iput p5, p0, Lcom/google/firebase/components/Component;->type:I
iput-object p6, p0, Lcom/google/firebase/components/Component;->factory:Lcom/google/firebase/components/ComponentFactory;
.line 104
invoke-static {p7}, 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/lang/String;Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;Lcom/google/firebase/components/Component$1;)V
.locals 0
.line 37
invoke-direct/range {p0 .. p7}, Lcom/google/firebase/components/Component;-><init>(Ljava/lang/String;Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;)V
return-void
.end method
.method public static builder(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/components/Component$Builder;
.locals 3
.line 207
new-instance v0, Lcom/google/firebase/components/Component$Builder;
const/4 v1, 0x0
new-array v1, v1, [Lcom/google/firebase/components/Qualified;
const/4 v2, 0x0
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/components/Component$Builder;-><init>(Lcom/google/firebase/components/Qualified;[Lcom/google/firebase/components/Qualified;Lcom/google/firebase/components/Component$1;)V
return-object v0
.end method
.method public static varargs builder(Lcom/google/firebase/components/Qualified;[Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/components/Component$Builder;
.locals 2
.line 214
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>(Lcom/google/firebase/components/Qualified;[Lcom/google/firebase/components/Qualified;Lcom/google/firebase/components/Component$1;)V
return-object v0
.end method
.method public static builder(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
.locals 3
.line 195
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
.line 202
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 intoSet(Ljava/lang/Object;Ljava/lang/Class;)Lcom/google/firebase/components/Component;
.locals 1
.line 268
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/Component$$ExternalSyntheticLambda0;
invoke-direct {v0, p0}, Lcom/google/firebase/components/Component$$ExternalSyntheticLambda0;-><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
.line 248
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$200(Lcom/google/firebase/components/Component$Builder;)Lcom/google/firebase/components/Component$Builder;
move-result-object p0
return-object p0
.end method
.method public static synthetic lambda$intoSet$3(Ljava/lang/Object;Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
return-object p0
.end method
.method public 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 varargs of(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component;
.locals 0
.line 231
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/Component$$ExternalSyntheticLambda1;
invoke-direct {p2, p0}, Lcom/google/firebase/components/Component$$ExternalSyntheticLambda1;-><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
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
iget-object v0, p0, Lcom/google/firebase/components/Component;->factory:Lcom/google/firebase/components/ComponentFactory;
return-object v0
.end method
.method public getName()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/Component;->name:Ljava/lang/String;
return-object v0
.end method
.method public getProvidedInterfaces()Ljava/util/Set;
.locals 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
iget-object v0, p0, Lcom/google/firebase/components/Component;->publishedEvents:Ljava/util/Set;
return-object v0
.end method
.method public isAlwaysEager()Z
.locals 2
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
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 isValue()Z
.locals 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 180
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 182
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 183
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 184
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", type="
.line 185
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 186
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", deps="
.line 187
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 188
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 189
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 190
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public withFactory(Lcom/google/firebase/components/ComponentFactory;)Lcom/google/firebase/components/Component;
.locals 9
.line 174
new-instance v8, Lcom/google/firebase/components/Component;
iget-object v1, p0, Lcom/google/firebase/components/Component;->name:Ljava/lang/String;
iget-object v2, p0, Lcom/google/firebase/components/Component;->providedInterfaces:Ljava/util/Set;
iget-object v3, p0, Lcom/google/firebase/components/Component;->dependencies:Ljava/util/Set;
iget v4, p0, Lcom/google/firebase/components/Component;->instantiation:I
iget v5, p0, Lcom/google/firebase/components/Component;->type:I
iget-object v7, p0, Lcom/google/firebase/components/Component;->publishedEvents:Ljava/util/Set;
move-object v0, v8
move-object v6, p1
invoke-direct/range {v0 .. v7}, Lcom/google/firebase/components/Component;-><init>(Ljava/lang/String;Ljava/util/Set;Ljava/util/Set;IILcom/google/firebase/components/ComponentFactory;Ljava/util/Set;)V
return-object v8
.end method

View File

@@ -0,0 +1,114 @@
.class public interface abstract Lcom/google/firebase/components/ComponentContainer;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public get(Lcom/google/firebase/components/Qualified;)Ljava/lang/Object;
.locals 0
.line 44
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
if-nez p1, :cond_0
const/4 p1, 0x0
return-object p1
.line 48
: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 get(Ljava/lang/Class;)Ljava/lang/Object;
.locals 0
.line 24
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->get(Lcom/google/firebase/components/Qualified;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public abstract getDeferred(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
.end method
.method public getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
.locals 0
.line 32
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->getDeferred(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
move-result-object p1
return-object p1
.end method
.method public abstract getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
.end method
.method public getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
.locals 0
.line 28
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.end method
.method public setOf(Lcom/google/firebase/components/Qualified;)Ljava/util/Set;
.locals 0
.line 56
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOfProvider(Lcom/google/firebase/components/Qualified;)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
.method public setOf(Ljava/lang/Class;)Ljava/util/Set;
.locals 0
.line 36
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOf(Lcom/google/firebase/components/Qualified;)Ljava/util/Set;
move-result-object p1
return-object p1
.end method
.method public abstract setOfProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
.end method

View File

@@ -0,0 +1,38 @@
.class public final synthetic Lcom/google/firebase/components/ComponentDiscovery$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public final synthetic f$0:Ljava/lang/String;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/String;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/ComponentDiscovery$$ExternalSyntheticLambda0;->f$0:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 1
.line 0
iget-object v0, p0, Lcom/google/firebase/components/ComponentDiscovery$$ExternalSyntheticLambda0;->f$0:Ljava/lang/String;
invoke-static {v0}, Lcom/google/firebase/components/ComponentDiscovery;->$r8$lambda$g7eF8YtNQOk49-ub0JV5u7HvrjE(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Lcom/google/firebase/components/ComponentDiscovery$1;
.super Ljava/lang/Object;
.source "SourceFile"
# 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

View File

@@ -0,0 +1,225 @@
.class public Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;
.super Ljava/lang/Object;
.source "SourceFile"
# 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
# instance fields
.field public final discoveryService:Ljava/lang/Class;
# direct methods
.method public constructor <init>(Ljava/lang/Class;)V
.locals 0
.line 150
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
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 146
invoke-direct {p0, p1}, Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;-><init>(Ljava/lang/Class;)V
return-void
.end method
# virtual methods
.method public final getMetadata(Landroid/content/Context;)Landroid/os/Bundle;
.locals 5
const-string v0, "ComponentDiscovery"
const/4 v1, 0x0
.line 175
: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 177
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-object v1
.line 180
: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 181
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 184
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 187
: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 189
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-object v1
.end method
.method public retrieve(Landroid/content/Context;)Ljava/util/List;
.locals 5
.line 156
invoke-virtual {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 159
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 160
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object p1
return-object p1
.line 163
:cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 164
invoke-virtual {p1}, Landroid/os/BaseBundle;->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 165
invoke-virtual {p1, v2}, Landroid/os/BaseBundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v3
const-string v4, "com.google.firebase.components.ComponentRegistrar"
.line 166
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 167
invoke-virtual {v2, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v2
invoke-interface {v0, v2}, Ljava/util/List;->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 146
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

View File

@@ -0,0 +1,19 @@
.class public interface abstract Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/ComponentDiscovery;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "RegistrarNameRetriever"
.end annotation
# virtual methods
.method public abstract retrieve(Ljava/lang/Object;)Ljava/util/List;
.end method

View File

@@ -0,0 +1,304 @@
.class public final Lcom/google/firebase/components/ComponentDiscovery;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/ComponentDiscovery$MetadataRegistrarNameRetriever;,
Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
}
.end annotation
# instance fields
.field public final context:Ljava/lang/Object;
.field public final retriever:Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
# direct methods
.method public static synthetic $r8$lambda$g7eF8YtNQOk49-ub0JV5u7HvrjE(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 0
.line 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 constructor <init>(Ljava/lang/Object;Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;)V
.locals 0
.line 68
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/ComponentDiscovery;->context:Ljava/lang/Object;
iput-object p2, p0, Lcom/google/firebase/components/ComponentDiscovery;->retriever:Lcom/google/firebase/components/ComponentDiscovery$RegistrarNameRetriever;
return-void
.end method
.method public static forContext(Landroid/content/Context;Ljava/lang/Class;)Lcom/google/firebase/components/ComponentDiscovery;
.locals 3
.line 64
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 public static instantiate(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 7
const-string v0, "Could not instantiate %s."
const-string v1, "Could not instantiate %s"
.line 120
:try_start_0
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v2
const-class v3, Lcom/google/firebase/components/ComponentRegistrar;
.line 121
invoke-virtual {v3, v2}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result v3
const/4 v4, 0x0
if-eqz v3, :cond_0
new-array v3, v4, [Ljava/lang/Class;
.line 126
invoke-virtual {v2, v3}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v2
new-array v3, v4, [Ljava/lang/Object;
invoke-virtual {v2, v3}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/firebase/components/ComponentRegistrar;
return-object v2
:catch_0
move-exception v0
goto :goto_0
:catch_1
move-exception v0
goto :goto_1
:catch_2
move-exception v1
goto :goto_2
:catch_3
move-exception v1
goto :goto_3
.line 122
:cond_0
new-instance v2, Lcom/google/firebase/components/InvalidRegistrarException;
const-string v3, "Class %s is not an instance of %s"
const/4 v5, 0x2
new-array v5, v5, [Ljava/lang/Object;
aput-object p0, v5, v4
const-string v4, "com.google.firebase.components.ComponentRegistrar"
const/4 v6, 0x1
aput-object v4, v5, v6
.line 123
invoke-static {v3, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-direct {v2, v3}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;)V
throw v2
: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
.line 141
:goto_0
new-instance v2, Lcom/google/firebase/components/InvalidRegistrarException;
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 142
invoke-static {v1, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0, v0}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
.line 138
:goto_1
new-instance v2, Lcom/google/firebase/components/InvalidRegistrarException;
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 139
invoke-static {v1, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0, v0}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
.line 135
:goto_2
new-instance v2, Lcom/google/firebase/components/InvalidRegistrarException;
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 136
invoke-static {v0, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0, v1}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
.line 131
:goto_3
new-instance v2, Lcom/google/firebase/components/InvalidRegistrarException;
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 132
invoke-static {v0, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0, v1}, Lcom/google/firebase/components/InvalidRegistrarException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
:catch_4
const-string v0, "Class %s is not an found."
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 128
invoke-static {v0, p0}, 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 public static synthetic lambda$discoverLazy$0(Ljava/lang/String;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 0
.line 112
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 discoverLazy()Ljava/util/List;
.locals 4
.line 110
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
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;
.line 111
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 112
new-instance v3, Lcom/google/firebase/components/ComponentDiscovery$$ExternalSyntheticLambda0;
invoke-direct {v3, v2}, Lcom/google/firebase/components/ComponentDiscovery$$ExternalSyntheticLambda0;-><init>(Ljava/lang/String;)V
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
return-object v0
.end method

View File

@@ -0,0 +1,24 @@
.class public Lcom/google/firebase/components/ComponentDiscoveryService;
.super Landroid/app/Service;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 23
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
const/4 p1, 0x0
return-object p1
.end method

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/google/firebase/components/ComponentFactory;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.end method

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/google/firebase/components/ComponentRegistrar;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getComponents()Ljava/util/List;
.end method

View File

@@ -0,0 +1,29 @@
.class public final synthetic Lcom/google/firebase/components/ComponentRegistrarProcessor$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/components/ComponentRegistrarProcessor;
# direct methods
.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 processRegistrar(Lcom/google/firebase/components/ComponentRegistrar;)Ljava/util/List;
.locals 0
.line 0
invoke-interface {p1}, Lcom/google/firebase/components/ComponentRegistrar;->getComponents()Ljava/util/List;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract Lcom/google/firebase/components/ComponentRegistrarProcessor;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final NOOP:Lcom/google/firebase/components/ComponentRegistrarProcessor;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 29
new-instance v0, Lcom/google/firebase/components/ComponentRegistrarProcessor$$ExternalSyntheticLambda0;
invoke-direct {v0}, Lcom/google/firebase/components/ComponentRegistrarProcessor$$ExternalSyntheticLambda0;-><init>()V
sput-object v0, Lcom/google/firebase/components/ComponentRegistrarProcessor;->NOOP:Lcom/google/firebase/components/ComponentRegistrarProcessor;
return-void
.end method
# virtual methods
.method public abstract processRegistrar(Lcom/google/firebase/components/ComponentRegistrar;)Ljava/util/List;
.end method

View File

@@ -0,0 +1,44 @@
.class public final synthetic Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public final synthetic f$0:Lcom/google/firebase/components/ComponentRuntime;
.field public final synthetic f$1: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
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda0;->f$0:Lcom/google/firebase/components/ComponentRuntime;
iput-object p2, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda0;->f$1:Lcom/google/firebase/components/Component;
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 2
.line 0
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda0;->f$0:Lcom/google/firebase/components/ComponentRuntime;
iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda0;->f$1:Lcom/google/firebase/components/Component;
invoke-static {v0, v1}, Lcom/google/firebase/components/ComponentRuntime;->$r8$lambda$4FqOW9eOQsvFYo-HpMfxCOnPQr0(Lcom/google/firebase/components/ComponentRuntime;Lcom/google/firebase/components/Component;)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,29 @@
.class public final synthetic Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# direct methods
.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
.line 0
invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,42 @@
.class public final synthetic Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Lcom/google/firebase/components/OptionalProvider;
.field public final synthetic f$1: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
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda2;->f$0:Lcom/google/firebase/components/OptionalProvider;
iput-object p2, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda2;->f$1:Lcom/google/firebase/inject/Provider;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
.line 0
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda2;->f$0:Lcom/google/firebase/components/OptionalProvider;
iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda2;->f$1:Lcom/google/firebase/inject/Provider;
invoke-static {v0, v1}, Lcom/google/firebase/components/ComponentRuntime;->$r8$lambda$rYmcV5pGrXiNpLs8c89q9g50iDU(Lcom/google/firebase/components/OptionalProvider;Lcom/google/firebase/inject/Provider;)V
return-void
.end method

View File

@@ -0,0 +1,42 @@
.class public final synthetic Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Lcom/google/firebase/components/LazySet;
.field public final synthetic f$1: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
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda3;->f$0:Lcom/google/firebase/components/LazySet;
iput-object p2, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda3;->f$1:Lcom/google/firebase/inject/Provider;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
.line 0
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda3;->f$0:Lcom/google/firebase/components/LazySet;
iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda3;->f$1:Lcom/google/firebase/inject/Provider;
invoke-static {v0, v1}, Lcom/google/firebase/components/ComponentRuntime;->$r8$lambda$Y75lFCmLX6L7I9D2ho_1zXa-Rkw(Lcom/google/firebase/components/LazySet;Lcom/google/firebase/inject/Provider;)V
return-void
.end method

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Lcom/google/firebase/components/ComponentRuntime$1;
.super Ljava/lang/Object;
.source "SourceFile"
# 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

View File

@@ -0,0 +1,38 @@
.class public final synthetic Lcom/google/firebase/components/ComponentRuntime$Builder$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public final synthetic f$0:Lcom/google/firebase/components/ComponentRegistrar;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/components/ComponentRegistrar;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/ComponentRuntime$Builder$$ExternalSyntheticLambda0;->f$0:Lcom/google/firebase/components/ComponentRegistrar;
return-void
.end method
# virtual methods
.method public final get()Ljava/lang/Object;
.locals 1
.line 0
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder$$ExternalSyntheticLambda0;->f$0:Lcom/google/firebase/components/ComponentRegistrar;
invoke-static {v0}, Lcom/google/firebase/components/ComponentRuntime$Builder;->$r8$lambda$zALdpHRUq1MLquOd6LSJTHoIM3w(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,143 @@
.class public final Lcom/google/firebase/components/ComponentRuntime$Builder;
.super Ljava/lang/Object;
.source "SourceFile"
# 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 public final additionalComponents:Ljava/util/List;
.field public componentRegistrarProcessor:Lcom/google/firebase/components/ComponentRegistrarProcessor;
.field public final defaultExecutor:Ljava/util/concurrent/Executor;
.field public final lazyRegistrars:Ljava/util/List;
# direct methods
.method public static synthetic $r8$lambda$zALdpHRUq1MLquOd6LSJTHoIM3w(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
.locals 0
.line 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 public constructor <init>(Ljava/util/concurrent/Executor;)V
.locals 1
.line 378
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 373
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 374
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 375
sget-object v0, Lcom/google/firebase/components/ComponentRegistrarProcessor;->NOOP:Lcom/google/firebase/components/ComponentRegistrarProcessor;
iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->componentRegistrarProcessor:Lcom/google/firebase/components/ComponentRegistrarProcessor;
iput-object p1, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->defaultExecutor:Ljava/util/concurrent/Executor;
return-void
.end method
.method public 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
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->additionalComponents:Ljava/util/List;
.line 396
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
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->lazyRegistrars:Ljava/util/List;
.line 390
new-instance v1, Lcom/google/firebase/components/ComponentRuntime$Builder$$ExternalSyntheticLambda0;
invoke-direct {v1, p1}, Lcom/google/firebase/components/ComponentRuntime$Builder$$ExternalSyntheticLambda0;-><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
iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->lazyRegistrars:Ljava/util/List;
.line 384
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 7
.line 407
new-instance v6, 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;
iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->componentRegistrarProcessor:Lcom/google/firebase/components/ComponentRegistrarProcessor;
const/4 v5, 0x0
move-object v0, v6
invoke-direct/range {v0 .. v5}, Lcom/google/firebase/components/ComponentRuntime;-><init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;Ljava/util/Collection;Lcom/google/firebase/components/ComponentRegistrarProcessor;Lcom/google/firebase/components/ComponentRuntime$1;)V
return-object v6
.end method
.method public setProcessor(Lcom/google/firebase/components/ComponentRegistrarProcessor;)Lcom/google/firebase/components/ComponentRuntime$Builder;
.locals 0
iput-object p1, p0, Lcom/google/firebase/components/ComponentRuntime$Builder;->componentRegistrarProcessor:Lcom/google/firebase/components/ComponentRegistrarProcessor;
return-object p0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Lcom/google/firebase/components/CycleDetector$1;
.super Ljava/lang/Object;
.source "SourceFile"
# 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

View File

@@ -0,0 +1,126 @@
.class public Lcom/google/firebase/components/CycleDetector$ComponentNode;
.super Ljava/lang/Object;
.source "SourceFile"
# 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 public final component:Lcom/google/firebase/components/Component;
.field public final dependencies:Ljava/util/Set;
.field public final dependents:Ljava/util/Set;
# direct methods
.method public constructor <init>(Lcom/google/firebase/components/Component;)V
.locals 1
.line 59
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 56
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 57
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;
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
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
.line 64
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
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
.line 68
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
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
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
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependencies:Ljava/util/Set;
.line 88
invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
move-result v0
return v0
.end method
.method public isRoot()Z
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
.line 84
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
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$ComponentNode;->dependents:Ljava/util/Set;
.line 76
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
return-void
.end method

View File

@@ -0,0 +1,123 @@
.class public Lcom/google/firebase/components/CycleDetector$Dep;
.super Ljava/lang/Object;
.source "SourceFile"
# 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 public final anInterface:Lcom/google/firebase/components/Qualified;
.field public final set:Z
# direct methods
.method public constructor <init>(Lcom/google/firebase/components/Qualified;Z)V
.locals 0
.line 30
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Lcom/google/firebase/components/Qualified;
iput-boolean p2, p0, Lcom/google/firebase/components/CycleDetector$Dep;->set:Z
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/firebase/components/Qualified;ZLcom/google/firebase/components/CycleDetector$1;)V
.locals 0
.line 26
invoke-direct {p0, p1, p2}, Lcom/google/firebase/components/CycleDetector$Dep;-><init>(Lcom/google/firebase/components/Qualified;Z)V
return-void
.end method
.method public static synthetic access$100(Lcom/google/firebase/components/CycleDetector$Dep;)Z
.locals 0
.line 26
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 37
instance-of v0, p1, Lcom/google/firebase/components/CycleDetector$Dep;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 38
check-cast p1, Lcom/google/firebase/components/CycleDetector$Dep;
.line 39
iget-object v0, p1, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Lcom/google/firebase/components/Qualified;
iget-object v2, p0, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Lcom/google/firebase/components/Qualified;
invoke-virtual {v0, v2}, Lcom/google/firebase/components/Qualified;->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
iget-object v0, p0, Lcom/google/firebase/components/CycleDetector$Dep;->anInterface:Lcom/google/firebase/components/Qualified;
.line 47
invoke-virtual {v0}, Lcom/google/firebase/components/Qualified;->hashCode()I
move-result v0
const v1, 0xf4243
xor-int/2addr v0, v1
mul-int/2addr v0, v1
iget-boolean v1, p0, Lcom/google/firebase/components/CycleDetector$Dep;->set:Z
.line 49
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

View File

@@ -0,0 +1,499 @@
.class public abstract Lcom/google/firebase/components/CycleDetector;
.super Ljava/lang/Object;
.source "SourceFile"
# 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 static detect(Ljava/util/List;)V
.locals 7
.line 100
invoke-static {p0}, Lcom/google/firebase/components/CycleDetector;->toGraph(Ljava/util/List;)Ljava/util/Set;
move-result-object v0
.line 101
invoke-static {v0}, Lcom/google/firebase/components/CycleDetector;->getRoots(Ljava/util/Set;)Ljava/util/Set;
move-result-object v1
const/4 v2, 0x0
.line 104
:cond_0
invoke-interface {v1}, Ljava/util/Set;->isEmpty()Z
move-result v3
if-nez v3, :cond_2
.line 105
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 106
invoke-interface {v1, v3}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
add-int/lit8 v2, v2, 0x1
.line 109
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 110
invoke-virtual {v5, v3}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->removeDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
.line 111
invoke-virtual {v5}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->isRoot()Z
move-result v6
if-eqz v6, :cond_1
.line 112
invoke-interface {v1, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 119
:cond_2
invoke-interface {p0}, Ljava/util/List;->size()I
move-result p0
if-ne v2, p0, :cond_3
return-void
.line 124
:cond_3
new-instance p0, Ljava/util/ArrayList;
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
.line 125
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 126
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 127
invoke-virtual {v1}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->getComponent()Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {p0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
.line 131
: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 public static getRoots(Ljava/util/Set;)Ljava/util/Set;
.locals 3
.line 182
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
.line 183
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 184
invoke-virtual {v1}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->isRoot()Z
move-result v2
if-eqz v2, :cond_0
.line 185
invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_1
return-object v0
.end method
.method public static toGraph(Ljava/util/List;)Ljava/util/Set;
.locals 9
.line 135
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 136
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 137
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 138
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, Lcom/google/firebase/components/Qualified;
.line 139
new-instance v6, Lcom/google/firebase/components/CycleDetector$Dep;
invoke-virtual {v1}, Lcom/google/firebase/components/Component;->isValue()Z
move-result v7
xor-int/lit8 v7, v7, 0x1
invoke-direct {v6, v5, v7, v2}, Lcom/google/firebase/components/CycleDetector$Dep;-><init>(Lcom/google/firebase/components/Qualified;ZLcom/google/firebase/components/CycleDetector$1;)V
.line 140
invoke-interface {v0, v6}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v7
if-nez v7, :cond_1
.line 141
new-instance v7, Ljava/util/HashSet;
invoke-direct {v7}, Ljava/util/HashSet;-><init>()V
invoke-interface {v0, v6, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 143
:cond_1
invoke-interface {v0, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/util/Set;
.line 144
invoke-interface {v7}, Ljava/util/Set;->isEmpty()Z
move-result v8
if-nez v8, :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 145
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Multiple components provide %s."
filled-new-array {v5}, [Ljava/lang/Object;
move-result-object v1
.line 146
invoke-static {v0, v1}, 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 148
:cond_3
:goto_1
invoke-interface {v7, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 152
:cond_4
invoke-interface {v0}, Ljava/util/Map;->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 153
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 154
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 155
invoke-virtual {v5}, Lcom/google/firebase/components/Dependency;->isDirectInjection()Z
move-result v6
if-nez v6, :cond_8
goto :goto_2
.line 159
:cond_8
new-instance v6, Lcom/google/firebase/components/CycleDetector$Dep;
.line 160
invoke-virtual {v5}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
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>(Lcom/google/firebase/components/Qualified;ZLcom/google/firebase/components/CycleDetector$1;)V
invoke-interface {v0, v6}, Ljava/util/Map;->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 164
: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 165
invoke-virtual {v3, v6}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->addDependency(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
.line 166
invoke-virtual {v6, v3}, Lcom/google/firebase/components/CycleDetector$ComponentNode;->addDependent(Lcom/google/firebase/components/CycleDetector$ComponentNode;)V
goto :goto_3
.line 172
:cond_a
new-instance p0, Ljava/util/HashSet;
invoke-direct {p0}, Ljava/util/HashSet;-><init>()V
.line 173
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_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 174
invoke-virtual {p0, v1}, Ljava/util/AbstractCollection;->addAll(Ljava/util/Collection;)Z
goto :goto_4
:cond_b
return-object p0
.end method

View File

@@ -0,0 +1,457 @@
.class public final Lcom/google/firebase/components/Dependency;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final anInterface:Lcom/google/firebase/components/Qualified;
.field public final injection:I
.field public final type:I
# direct methods
.method public constructor <init>(Lcom/google/firebase/components/Qualified;II)V
.locals 1
.line 48
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Null dependency anInterface."
.line 49
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/Qualified;
iput-object p1, p0, Lcom/google/firebase/components/Dependency;->anInterface:Lcom/google/firebase/components/Qualified;
iput p2, p0, Lcom/google/firebase/components/Dependency;->type:I
iput p3, p0, Lcom/google/firebase/components/Dependency;->injection:I
return-void
.end method
.method public constructor <init>(Ljava/lang/Class;II)V
.locals 0
.line 45
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-direct {p0, p1, p2, p3}, Lcom/google/firebase/components/Dependency;-><init>(Lcom/google/firebase/components/Qualified;II)V
return-void
.end method
.method public static deferred(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.line 75
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 public static describeInjection(I)Ljava/lang/String;
.locals 3
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 264
:cond_0
new-instance v0, Ljava/lang/AssertionError;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unsupported injection: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()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
.line 65
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(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/components/Dependency;
.locals 3
.line 151
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>(Lcom/google/firebase/components/Qualified;II)V
return-object v0
.end method
.method public static optionalProvider(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.line 141
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(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/components/Dependency;
.locals 3
.line 109
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>(Lcom/google/firebase/components/Qualified;II)V
return-object v0
.end method
.method public static required(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 3
.line 97
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(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/components/Dependency;
.locals 2
.line 175
new-instance v0, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x1
invoke-direct {v0, p0, v1, v1}, Lcom/google/firebase/components/Dependency;-><init>(Lcom/google/firebase/components/Qualified;II)V
return-object v0
.end method
.method public static requiredProvider(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
.locals 2
.line 163
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
.line 120
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
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
.line 222
instance-of v0, p1, Lcom/google/firebase/components/Dependency;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 223
check-cast p1, Lcom/google/firebase/components/Dependency;
iget-object v0, p0, Lcom/google/firebase/components/Dependency;->anInterface:Lcom/google/firebase/components/Qualified;
.line 224
iget-object v2, p1, Lcom/google/firebase/components/Dependency;->anInterface:Lcom/google/firebase/components/Qualified;
invoke-virtual {v0, v2}, Lcom/google/firebase/components/Qualified;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :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()Lcom/google/firebase/components/Qualified;
.locals 1
iget-object v0, p0, Lcom/google/firebase/components/Dependency;->anInterface:Lcom/google/firebase/components/Qualified;
return-object v0
.end method
.method public hashCode()I
.locals 3
iget-object v0, p0, Lcom/google/firebase/components/Dependency;->anInterface:Lcom/google/firebase/components/Qualified;
.line 234
invoke-virtual {v0}, Lcom/google/firebase/components/Qualified;->hashCode()I
move-result v0
const v1, 0xf4243
xor-int/2addr v0, v1
mul-int/2addr v0, v1
iget v2, p0, Lcom/google/firebase/components/Dependency;->type:I
xor-int/2addr v0, v2
mul-int/2addr v0, v1
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
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
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
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
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 244
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:Lcom/google/firebase/components/Qualified;
.line 246
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", type="
.line 247
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
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"
.line 248
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", injection="
.line 249
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 250
invoke-static {v1}, Lcom/google/firebase/components/Dependency;->describeInjection(I)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 251
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 252
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,42 @@
.class public Lcom/google/firebase/components/DependencyCycleException;
.super Lcom/google/firebase/components/DependencyException;
.source "SourceFile"
# instance fields
.field public final componentsInCycle:Ljava/util/List;
# direct methods
.method public constructor <init>(Ljava/util/List;)V
.locals 2
.line 25
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Dependency cycle detected: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
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
iput-object p1, p0, Lcom/google/firebase/components/DependencyCycleException;->componentsInCycle:Ljava/util/List;
return-void
.end method

View File

@@ -0,0 +1,14 @@
.class public Lcom/google/firebase/components/DependencyException;
.super Ljava/lang/RuntimeException;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 20
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,38 @@
.class public final synthetic Lcom/google/firebase/components/EventBus$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Ljava/util/Map$Entry;
# direct methods
.method public synthetic constructor <init>(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/EventBus$$ExternalSyntheticLambda0;->f$0:Ljava/util/Map$Entry;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
.line 0
iget-object v0, p0, Lcom/google/firebase/components/EventBus$$ExternalSyntheticLambda0;->f$0:Ljava/util/Map$Entry;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/google/firebase/components/EventBus;->$r8$lambda$_CMgUGVhhqkeRvGUrALJVsHZDM4(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
return-void
.end method

View File

@@ -0,0 +1,319 @@
.class public Lcom/google/firebase/components/EventBus;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/events/Subscriber;
.implements Lcom/google/firebase/events/Publisher;
# instance fields
.field public final defaultExecutor:Ljava/util/concurrent/Executor;
.field public final handlerMap:Ljava/util/Map;
.field public pendingEvents:Ljava/util/Queue;
# direct methods
.method public static synthetic $r8$lambda$_CMgUGVhhqkeRvGUrALJVsHZDM4(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
.locals 0
.line 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 public constructor <init>(Ljava/util/concurrent/Executor;)V
.locals 1
.line 51
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 41
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 52
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;
iput-object p1, p0, Lcom/google/firebase/components/EventBus;->defaultExecutor:Ljava/util/concurrent/Executor;
return-void
.end method
.method public static synthetic lambda$publish$0(Ljava/util/Map$Entry;Lcom/google/firebase/events/Event;)V
.locals 0
.line 71
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 3
.line 122
monitor-enter p0
: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
iput-object v1, p0, Lcom/google/firebase/components/EventBus;->pendingEvents:Ljava/util/Queue;
goto :goto_0
:catchall_0
move-exception v0
goto :goto_2
:cond_0
move-object v0, v1
.line 127
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_1
.line 129
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
invoke-static {v2}, Lcom/amazonaws/handlers/HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;->m(Ljava/lang/Object;)V
.line 130
invoke-virtual {p0, v1}, Lcom/google/firebase/components/EventBus;->publish(Lcom/google/firebase/events/Event;)V
goto :goto_1
:cond_1
return-void
.line 127
:goto_2
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public final declared-synchronized getHandlers(Lcom/google/firebase/events/Event;)Ljava/util/Set;
.locals 0
monitor-enter p0
const/4 p1, 0x0
.line 76
:try_start_0
throw p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:catchall_0
move-exception p1
.line 77
monitor-exit p0
throw p1
.end method
.method public publish(Lcom/google/firebase/events/Event;)V
.locals 4
.line 58
invoke-static {p1}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 60
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->pendingEvents:Ljava/util/Queue;
if-eqz v0, :cond_0
.line 62
invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
.line 63
monitor-exit p0
return-void
:catchall_0
move-exception p1
goto :goto_1
.line 65
:cond_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 67
invoke-virtual {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 71
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/EventBus$$ExternalSyntheticLambda0;
invoke-direct {v3, v1, p1}, Lcom/google/firebase/components/EventBus$$ExternalSyntheticLambda0;-><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
.line 65
:goto_1
: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
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->defaultExecutor:Ljava/util/concurrent/Executor;
.line 97
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
monitor-enter p0
.line 83
:try_start_0
invoke-static {p1}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 84
invoke-static {p3}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 85
invoke-static {p2}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
.line 86
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
.line 87
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;
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
:cond_0
:goto_0
iget-object v0, p0, Lcom/google/firebase/components/EventBus;->handlerMap:Ljava/util/Map;
.line 92
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 93
monitor-exit p0
return-void
:goto_1
monitor-exit p0
throw p1
.end method

View File

@@ -0,0 +1,23 @@
.class public Lcom/google/firebase/components/InvalidRegistrarException;
.super Ljava/lang/RuntimeException;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 29
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 33
invoke-direct {p0, p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method

View File

@@ -0,0 +1,104 @@
.class public Lcom/google/firebase/components/Lazy;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# static fields
.field public static final UNINITIALIZED:Ljava/lang/Object;
# instance fields
.field public volatile instance:Ljava/lang/Object;
.field public volatile provider:Lcom/google/firebase/inject/Provider;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 31
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
.line 41
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
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;
iput-object p1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
return-void
.end method
# virtual methods
.method public get()Ljava/lang/Object;
.locals 2
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-ne v0, v1, :cond_1
.line 50
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
.line 53
invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
const/4 v1, 0x0
iput-object v1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
goto :goto_0
:catchall_0
move-exception v0
goto :goto_1
.line 59
:cond_0
:goto_0
monitor-exit p0
goto :goto_2
:goto_1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:cond_1
:goto_2
return-object v0
.end method

View File

@@ -0,0 +1,238 @@
.class public Lcom/google/firebase/components/LazySet;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# instance fields
.field public volatile actualSet:Ljava/util/Set;
.field public volatile providers:Ljava/util/Set;
# direct methods
.method public constructor <init>(Ljava/util/Collection;)V
.locals 1
.line 36
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
.line 37
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;
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
.line 38
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
.line 43
check-cast p0, Ljava/util/Set;
.line 44
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
# virtual methods
.method public declared-synchronized add(Lcom/google/firebase/inject/Provider;)V
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
.line 62
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
:cond_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
.line 64
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 66
:goto_0
monitor-exit p0
return-void
:goto_1
monitor-exit p0
throw p1
.end method
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 31
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
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
if-nez v0, :cond_1
.line 50
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
if-nez v0, :cond_0
.line 52
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 53
invoke-virtual {p0}, Lcom/google/firebase/components/LazySet;->updateSet()V
goto :goto_0
:catchall_0
move-exception v0
goto :goto_1
.line 55
:cond_0
:goto_0
monitor-exit p0
goto :goto_2
:goto_1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:cond_1
:goto_2
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
.line 57
invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
return-object v0
.end method
.method public final declared-synchronized updateSet()V
.locals 3
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/LazySet;->providers:Ljava/util/Set;
.line 69
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;
iget-object v2, p0, Lcom/google/firebase/components/LazySet;->actualSet:Ljava/util/Set;
.line 70
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
:catchall_0
move-exception v0
goto :goto_1
:cond_0
const/4 v0, 0x0
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 73
monitor-exit p0
return-void
:goto_1
monitor-exit p0
throw v0
.end method

View File

@@ -0,0 +1,14 @@
.class public Lcom/google/firebase/components/MissingDependencyException;
.super Lcom/google/firebase/components/DependencyException;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 20
invoke-direct {p0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,27 @@
.class public final synthetic Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# direct methods
.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
.line 0
invoke-static {p1}, Lcom/google/firebase/components/OptionalProvider;->$r8$lambda$fPOTfPXm7DpPlmwdyImHVqtycpI(Lcom/google/firebase/inject/Provider;)V
return-void
.end method

View File

@@ -0,0 +1,29 @@
.class public final synthetic Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# direct methods
.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
.line 0
invoke-static {}, Lcom/google/firebase/components/OptionalProvider;->$r8$lambda$ILPY1nlr_ULZNpsKMbNjkBMT0Ec()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,42 @@
.class public final synthetic Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# instance fields
.field public final synthetic f$0:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.field public final synthetic f$1: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
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda2;->f$0:Lcom/google/firebase/inject/Deferred$DeferredHandler;
iput-object p2, p0, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda2;->f$1:Lcom/google/firebase/inject/Deferred$DeferredHandler;
return-void
.end method
# virtual methods
.method public final handle(Lcom/google/firebase/inject/Provider;)V
.locals 2
.line 0
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda2;->f$0:Lcom/google/firebase/inject/Deferred$DeferredHandler;
iget-object v1, p0, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda2;->f$1:Lcom/google/firebase/inject/Deferred$DeferredHandler;
invoke-static {v0, v1, p1}, Lcom/google/firebase/components/OptionalProvider;->$r8$lambda$zFC_X48ke2E5YYoYo8vfNgc3N8Y(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
return-void
.end method

View File

@@ -0,0 +1,270 @@
.class public Lcom/google/firebase/components/OptionalProvider;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
.implements Lcom/google/firebase/inject/Deferred;
# static fields
.field public static final EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
.field public static final NOOP_HANDLER:Lcom/google/firebase/inject/Deferred$DeferredHandler;
# instance fields
.field public volatile delegate:Lcom/google/firebase/inject/Provider;
.field public handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
# direct methods
.method public static synthetic $r8$lambda$ILPY1nlr_ULZNpsKMbNjkBMT0Ec()Ljava/lang/Object;
.locals 1
.line 0
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 $r8$lambda$fPOTfPXm7DpPlmwdyImHVqtycpI(Lcom/google/firebase/inject/Provider;)V
.locals 0
.line 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 $r8$lambda$zFC_X48ke2E5YYoYo8vfNgc3N8Y(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
.locals 0
.line 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 static constructor <clinit>()V
.locals 1
.line 31
new-instance v0, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda0;
invoke-direct {v0}, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda0;-><init>()V
sput-object v0, Lcom/google/firebase/components/OptionalProvider;->NOOP_HANDLER:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.line 32
new-instance v0, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda1;
invoke-direct {v0}, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda1;-><init>()V
sput-object v0, Lcom/google/firebase/components/OptionalProvider;->EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
return-void
.end method
.method public constructor <init>(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Provider;)V
.locals 0
.line 39
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
iput-object p2, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
return-void
.end method
.method public static empty()Lcom/google/firebase/components/OptionalProvider;
.locals 3
.line 46
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 public static synthetic lambda$static$0(Lcom/google/firebase/inject/Provider;)V
.locals 0
return-void
.end method
.method public static synthetic lambda$static$1()Ljava/lang/Object;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public 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 89
invoke-interface {p0, p2}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
.line 90
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
.line 50
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
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
.line 55
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
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 64
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
const/4 v1, 0x0
iput-object v1, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
iput-object p1, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
.line 68
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 69
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 68
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.line 61
: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 3
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-eq v0, v1, :cond_0
.line 77
invoke-interface {p1, v0}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
return-void
.line 81
:cond_0
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/OptionalProvider;->delegate:Lcom/google/firebase/inject/Provider;
if-eq v0, v1, :cond_1
move-object v1, v0
goto :goto_0
:cond_1
iget-object v1, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
.line 87
new-instance v2, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda2;
invoke-direct {v2, v1, p1}, Lcom/google/firebase/components/OptionalProvider$$ExternalSyntheticLambda2;-><init>(Lcom/google/firebase/inject/Deferred$DeferredHandler;Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
iput-object v2, p0, Lcom/google/firebase/components/OptionalProvider;->handler:Lcom/google/firebase/inject/Deferred$DeferredHandler;
const/4 v1, 0x0
.line 93
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v1, :cond_2
.line 95
invoke-interface {p1, v0}, Lcom/google/firebase/inject/Deferred$DeferredHandler;->handle(Lcom/google/firebase/inject/Provider;)V
:cond_2
return-void
:catchall_0
move-exception p1
.line 93
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method

View File

@@ -0,0 +1,62 @@
.class public abstract Lcom/google/firebase/components/Preconditions;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static checkArgument(ZLjava/lang/String;)V
.locals 0
if-eqz p0, :cond_0
return-void
.line 23
: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
.line 30
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
return-object p0
.end method
.method public static checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.locals 0
if-eqz p0, :cond_0
return-object p0
.line 38
:cond_0
new-instance p0, Ljava/lang/NullPointerException;
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static checkState(ZLjava/lang/String;)V
.locals 0
if-eqz p0, :cond_0
return-void
.line 45
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method

View File

@@ -0,0 +1,17 @@
.class public interface abstract annotation Lcom/google/firebase/components/Qualified$Unqualified;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/components/Qualified;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "Unqualified"
.end annotation

View File

@@ -0,0 +1,196 @@
.class public final Lcom/google/firebase/components/Qualified;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/Qualified$Unqualified;
}
.end annotation
# instance fields
.field public final qualifier:Ljava/lang/Class;
.field public final type:Ljava/lang/Class;
# direct methods
.method public constructor <init>(Ljava/lang/Class;Ljava/lang/Class;)V
.locals 0
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/Qualified;->qualifier:Ljava/lang/Class;
iput-object p2, p0, Lcom/google/firebase/components/Qualified;->type:Ljava/lang/Class;
return-void
.end method
.method public static qualified(Ljava/lang/Class;Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
.locals 1
.line 39
new-instance v0, Lcom/google/firebase/components/Qualified;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/components/Qualified;-><init>(Ljava/lang/Class;Ljava/lang/Class;)V
return-object v0
.end method
.method public static unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
.locals 2
.line 34
new-instance v0, Lcom/google/firebase/components/Qualified;
const-class v1, Lcom/google/firebase/components/Qualified$Unqualified;
invoke-direct {v0, v1, p0}, Lcom/google/firebase/components/Qualified;-><init>(Ljava/lang/Class;Ljava/lang/Class;)V
return-object v0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
if-ne p0, p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const/4 v0, 0x0
if-eqz p1, :cond_3
.line 45
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
const-class v2, Lcom/google/firebase/components/Qualified;
if-eq v2, v1, :cond_1
goto :goto_0
.line 47
:cond_1
check-cast p1, Lcom/google/firebase/components/Qualified;
iget-object v1, p0, Lcom/google/firebase/components/Qualified;->type:Ljava/lang/Class;
.line 49
iget-object v2, p1, Lcom/google/firebase/components/Qualified;->type:Ljava/lang/Class;
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_2
return v0
:cond_2
iget-object v0, p0, Lcom/google/firebase/components/Qualified;->qualifier:Ljava/lang/Class;
.line 50
iget-object p1, p1, Lcom/google/firebase/components/Qualified;->qualifier:Ljava/lang/Class;
invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_3
:goto_0
return v0
.end method
.method public hashCode()I
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/Qualified;->type:Ljava/lang/Class;
.line 55
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lcom/google/firebase/components/Qualified;->qualifier:Ljava/lang/Class;
.line 56
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/Qualified;->qualifier:Ljava/lang/Class;
const-class v1, Lcom/google/firebase/components/Qualified$Unqualified;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/Qualified;->type:Ljava/lang/Class;
.line 63
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
return-object v0
.line 65
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "@"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/firebase/components/Qualified;->qualifier:Ljava/lang/Class;
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/firebase/components/Qualified;->type:Ljava/lang/Class;
invoke-virtual {v1}, Ljava/lang/Class;->getName()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
return-object v0
.end method

View File

@@ -0,0 +1,38 @@
.class public Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;
.super Ljava/lang/Object;
.source "SourceFile"
# 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 public final allowedPublishedEvents:Ljava/util/Set;
.field public final delegate:Lcom/google/firebase/events/Publisher;
# direct methods
.method public constructor <init>(Ljava/util/Set;Lcom/google/firebase/events/Publisher;)V
.locals 0
.line 185
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;->allowedPublishedEvents:Ljava/util/Set;
iput-object p2, p0, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;->delegate:Lcom/google/firebase/events/Publisher;
return-void
.end method

View File

@@ -0,0 +1,534 @@
.class public final Lcom/google/firebase/components/RestrictedComponentContainer;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/components/ComponentContainer;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;
}
.end annotation
# instance fields
.field public final allowedDeferredInterfaces:Ljava/util/Set;
.field public final allowedDirectInterfaces:Ljava/util/Set;
.field public final allowedProviderInterfaces:Ljava/util/Set;
.field public final allowedPublishedEvents:Ljava/util/Set;
.field public final allowedSetDirectInterfaces:Ljava/util/Set;
.field public final allowedSetProviderInterfaces:Ljava/util/Set;
.field public 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
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 39
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
.line 40
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
.line 41
new-instance v2, Ljava/util/HashSet;
invoke-direct {v2}, Ljava/util/HashSet;-><init>()V
.line 42
new-instance v3, Ljava/util/HashSet;
invoke-direct {v3}, Ljava/util/HashSet;-><init>()V
.line 43
new-instance v4, Ljava/util/HashSet;
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
.line 44
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 45
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isDirectInjection()Z
move-result v7
if-eqz v7, :cond_1
.line 46
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isSet()Z
move-result v7
if-eqz v7, :cond_0
.line 47
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v3, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 49
:cond_0
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v0, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 51
:cond_1
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isDeferred()Z
move-result v7
if-eqz v7, :cond_2
.line 52
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v2, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 54
:cond_2
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isSet()Z
move-result v7
if-eqz v7, :cond_3
.line 55
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v4, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 57
:cond_3
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v1, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 61
: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
const-class v5, Lcom/google/firebase/events/Publisher;
.line 62
invoke-static {v5}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object v5
invoke-interface {v0, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 64
: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 65
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 66
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 67
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 68
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 69
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;
iput-object p2, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
return-void
.end method
# virtual methods
.method public get(Lcom/google/firebase/components/Qualified;)Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDirectInterfaces:Ljava/util/Set;
.line 101
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 105
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->get(Lcom/google/firebase/components/Qualified;)Ljava/lang/Object;
move-result-object p1
return-object p1
.line 102
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency %s."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 103
invoke-static {v1, p1}, 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 get(Ljava/lang/Class;)Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDirectInterfaces:Ljava/util/Set;
.line 80
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 89
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
const-class v1, Lcom/google/firebase/events/Publisher;
.line 90
invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_0
return-object v0
.line 95
: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 81
:cond_1
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency %s."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 82
invoke-static {v1, p1}, 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(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDeferredInterfaces:Ljava/util/Set;
.line 145
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 150
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->getDeferred(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
move-result-object p1
return-object p1
.line 146
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Deferred<%s>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 147
invoke-static {v1, p1}, 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 0
.line 120
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/firebase/components/RestrictedComponentContainer;->getDeferred(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
move-result-object p1
return-object p1
.end method
.method public getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedProviderInterfaces:Ljava/util/Set;
.line 135
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 140
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.line 136
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Provider<%s>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 137
invoke-static {v1, p1}, 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 0
.line 115
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/firebase/components/RestrictedComponentContainer;->getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.end method
.method public setOf(Lcom/google/firebase/components/Qualified;)Ljava/util/Set;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetDirectInterfaces:Ljava/util/Set;
.line 170
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 174
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOf(Lcom/google/firebase/components/Qualified;)Ljava/util/Set;
move-result-object p1
return-object p1
.line 171
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Set<%s>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 172
invoke-static {v1, p1}, 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(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetProviderInterfaces:Ljava/util/Set;
.line 155
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 160
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOfProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.line 156
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Provider<Set<%s>>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 157
invoke-static {v1, p1}, 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