- 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
393 lines
12 KiB
Smali
393 lines
12 KiB
Smali
.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
|