821 lines
22 KiB
Smali
821 lines
22 KiB
Smali
.class public Lcom/google/firebase/FirebaseApp;
|
|
.super Ljava/lang/Object;
|
|
.source "com.google.firebase:firebase-common@@19.0.0"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/firebase/FirebaseApp$b;,
|
|
Lcom/google/firebase/FirebaseApp$a;,
|
|
Lcom/google/firebase/FirebaseApp$c;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final aOW:Ljava/lang/Object;
|
|
|
|
.field private static final aOX:Ljava/util/concurrent/Executor;
|
|
|
|
.field static final aOY:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/google/firebase/FirebaseApp;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final aOZ:Lcom/google/firebase/c;
|
|
|
|
.field private final aPa:Lcom/google/firebase/components/i;
|
|
|
|
.field private final aPb:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field private final aPc:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field private final aPd:Lcom/google/firebase/components/s;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/firebase/components/s<",
|
|
"Lcom/google/firebase/c/a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final aPe:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final aPf:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final applicationContext:Landroid/content/Context;
|
|
|
|
.field private final name:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aOW:Ljava/lang/Object;
|
|
|
|
new-instance v0, Lcom/google/firebase/FirebaseApp$b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/firebase/FirebaseApp$b;-><init>(B)V
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aOX:Ljava/util/concurrent/Executor;
|
|
|
|
new-instance v0, Landroidx/collection/ArrayMap;
|
|
|
|
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aOY:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/content/Context;Ljava/lang/String;Lcom/google/firebase/c;)V
|
|
.locals 6
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPb:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPc:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPe:Ljava/util/List;
|
|
|
|
new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPf:Ljava/util/List;
|
|
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/r;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/content/Context;
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/FirebaseApp;->applicationContext:Landroid/content/Context;
|
|
|
|
invoke-static {p2}, Lcom/google/android/gms/common/internal/r;->aP(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->name:Ljava/lang/String;
|
|
|
|
invoke-static {p3}, Lcom/google/android/gms/common/internal/r;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/google/firebase/c;
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->aOZ:Lcom/google/firebase/c;
|
|
|
|
new-instance p2, Lcom/google/firebase/components/f;
|
|
|
|
new-instance v0, Lcom/google/firebase/components/f$a;
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/firebase/components/f$a;-><init>(B)V
|
|
|
|
invoke-direct {p2, p1, v0}, Lcom/google/firebase/components/f;-><init>(Ljava/lang/Object;Lcom/google/firebase/components/f$b;)V
|
|
|
|
iget-object v0, p2, Lcom/google/firebase/components/f;->aPH:Lcom/google/firebase/components/f$b;
|
|
|
|
iget-object p2, p2, Lcom/google/firebase/components/f;->aPG:Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, p2}, Lcom/google/firebase/components/f$b;->az(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lcom/google/firebase/components/f;->Q(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v0, Lcom/google/firebase/components/i;
|
|
|
|
sget-object v2, Lcom/google/firebase/FirebaseApp;->aOX:Ljava/util/concurrent/Executor;
|
|
|
|
const/4 v3, 0x6
|
|
|
|
new-array v3, v3, [Lcom/google/firebase/components/b;
|
|
|
|
const-class v4, Landroid/content/Context;
|
|
|
|
new-array v5, v1, [Ljava/lang/Class;
|
|
|
|
invoke-static {p1, v4, v5}, Lcom/google/firebase/components/b;->a(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/b;
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v3, v1
|
|
|
|
const-class v4, Lcom/google/firebase/FirebaseApp;
|
|
|
|
new-array v5, v1, [Ljava/lang/Class;
|
|
|
|
invoke-static {p0, v4, v5}, Lcom/google/firebase/components/b;->a(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/b;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
aput-object v4, v3, v5
|
|
|
|
const-class v4, Lcom/google/firebase/c;
|
|
|
|
new-array v1, v1, [Ljava/lang/Class;
|
|
|
|
invoke-static {p3, v4, v1}, Lcom/google/firebase/components/b;->a(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/b;
|
|
|
|
move-result-object p3
|
|
|
|
const/4 v1, 0x2
|
|
|
|
aput-object p3, v3, v1
|
|
|
|
const-string p3, "fire-android"
|
|
|
|
const-string v1, ""
|
|
|
|
invoke-static {p3, v1}, Lcom/google/firebase/d/f;->U(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/b;
|
|
|
|
move-result-object p3
|
|
|
|
const/4 v1, 0x3
|
|
|
|
aput-object p3, v3, v1
|
|
|
|
const-string p3, "fire-core"
|
|
|
|
const-string v1, "19.0.0"
|
|
|
|
invoke-static {p3, v1}, Lcom/google/firebase/d/f;->U(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/b;
|
|
|
|
move-result-object p3
|
|
|
|
const/4 v1, 0x4
|
|
|
|
aput-object p3, v3, v1
|
|
|
|
invoke-static {}, Lcom/google/firebase/d/b;->zj()Lcom/google/firebase/components/b;
|
|
|
|
move-result-object p3
|
|
|
|
const/4 v1, 0x5
|
|
|
|
aput-object p3, v3, v1
|
|
|
|
invoke-direct {v0, v2, p2, v3}, Lcom/google/firebase/components/i;-><init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;[Lcom/google/firebase/components/b;)V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPa:Lcom/google/firebase/components/i;
|
|
|
|
new-instance p2, Lcom/google/firebase/components/s;
|
|
|
|
new-instance p3, Lcom/google/firebase/b;
|
|
|
|
invoke-direct {p3, p0, p1}, Lcom/google/firebase/b;-><init>(Lcom/google/firebase/FirebaseApp;Landroid/content/Context;)V
|
|
|
|
invoke-direct {p2, p3}, Lcom/google/firebase/components/s;-><init>(Lcom/google/firebase/b/a;)V
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->aPd:Lcom/google/firebase/components/s;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Landroid/content/Context;Lcom/google/firebase/c;Ljava/lang/String;)Lcom/google/firebase/FirebaseApp;
|
|
.locals 4
|
|
|
|
invoke-static {p0}, Lcom/google/firebase/FirebaseApp$a;->ax(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aOW:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aOY:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "FirebaseApp name "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, " already exists!"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1, v2}, Lcom/google/android/gms/common/internal/r;->a(ZLjava/lang/Object;)V
|
|
|
|
const-string v1, "Application context cannot be null."
|
|
|
|
invoke-static {p0, v1}, Lcom/google/android/gms/common/internal/r;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
invoke-direct {v1, p0, p2, p1}, Lcom/google/firebase/FirebaseApp;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/google/firebase/c;)V
|
|
|
|
sget-object p0, Lcom/google/firebase/FirebaseApp;->aOY:Ljava/util/Map;
|
|
|
|
invoke-interface {p0, p2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-direct {v1}, Lcom/google/firebase/FirebaseApp;->yG()V
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/google/firebase/FirebaseApp;Landroid/content/Context;)Lcom/google/firebase/c/a;
|
|
.locals 4
|
|
|
|
new-instance v0, Lcom/google/firebase/c/a;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {}, Ljava/nio/charset/Charset;->defaultCharset()Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lcom/google/android/gms/common/util/c;->j([B)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "+"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->yD()Lcom/google/firebase/c;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v2, v2, Lcom/google/firebase/c;->aPk:Ljava/lang/String;
|
|
|
|
invoke-static {}, Ljava/nio/charset/Charset;->defaultCharset()Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lcom/google/android/gms/common/util/c;->j([B)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object p0, p0, Lcom/google/firebase/FirebaseApp;->aPa:Lcom/google/firebase/components/i;
|
|
|
|
const-class v2, Lcom/google/firebase/a/c;
|
|
|
|
invoke-virtual {p0, v2}, Lcom/google/firebase/components/i;->z(Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/firebase/a/c;
|
|
|
|
invoke-direct {v0, p1, v1, p0}, Lcom/google/firebase/c/a;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/google/firebase/a/c;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/google/firebase/FirebaseApp;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->yG()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/google/firebase/FirebaseApp;Z)V
|
|
.locals 1
|
|
|
|
const-string p1, "FirebaseApp"
|
|
|
|
const-string v0, "Notifying background state change listeners."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
iget-object p0, p0, Lcom/google/firebase/FirebaseApp;->aPe:Ljava/util/List;
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static aw(Landroid/content/Context;)Lcom/google/firebase/FirebaseApp;
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aOW:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aOY:Ljava/util/Map;
|
|
|
|
const-string v2, "[DEFAULT]"
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {}, Lcom/google/firebase/FirebaseApp;->getInstance()Lcom/google/firebase/FirebaseApp;
|
|
|
|
move-result-object p0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/google/firebase/c;->az(Landroid/content/Context;)Lcom/google/firebase/c;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const-string p0, "FirebaseApp"
|
|
|
|
const-string v1, "Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project."
|
|
|
|
invoke-static {p0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
const/4 p0, 0x0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const-string v2, "[DEFAULT]"
|
|
|
|
invoke-static {p0, v1, v2}, Lcom/google/firebase/FirebaseApp;->a(Landroid/content/Context;Lcom/google/firebase/c;Ljava/lang/String;)Lcom/google/firebase/FirebaseApp;
|
|
|
|
move-result-object p0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/google/firebase/FirebaseApp;)Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/firebase/FirebaseApp;->aPb:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getInstance()Lcom/google/firebase/FirebaseApp;
|
|
.locals 4
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aOW:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aOY:Ljava/util/Map;
|
|
|
|
const-string v2, "[DEFAULT]"
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Default FirebaseApp is not initialized in this process "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Lcom/google/android/gms/common/util/m;->mu()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, ". Make sure to call FirebaseApp.initializeApp(Context) first."
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method private yE()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPc:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
const-string v1, "FirebaseApp was deleted"
|
|
|
|
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/r;->a(ZLjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private yG()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->applicationContext:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Landroidx/core/os/UserManagerCompat;->isUserUnlocked(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->applicationContext:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Lcom/google/firebase/FirebaseApp$c;->ay(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPa:Lcom/google/firebase/components/i;
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->yF()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/firebase/components/i;->O(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic yH()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aOW:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
instance-of v0, p1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->name:Ljava/lang/String;
|
|
|
|
check-cast p1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
invoke-virtual {p1}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getApplicationContext()Landroid/content/Context;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->yE()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->applicationContext:Landroid/content/Context;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getName()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->yE()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->name:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isDataCollectionDefaultEnabled()Z
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->yE()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPd:Lcom/google/firebase/components/s;
|
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/components/s;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/firebase/c/a;
|
|
|
|
iget-object v0, v0, Lcom/google/firebase/c/a;->aRF:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/common/internal/p;->S(Ljava/lang/Object;)Lcom/google/android/gms/common/internal/p$a;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/FirebaseApp;->name:Ljava/lang/String;
|
|
|
|
const-string v2, "name"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/android/gms/common/internal/p$a;->h(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/android/gms/common/internal/p$a;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/FirebaseApp;->aOZ:Lcom/google/firebase/c;
|
|
|
|
const-string v2, "options"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/google/android/gms/common/internal/p$a;->h(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/android/gms/common/internal/p$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/common/internal/p$a;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final yD()Lcom/google/firebase/c;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->yE()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aOZ:Lcom/google/firebase/c;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final yF()Z
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "[DEFAULT]"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final z(Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->yE()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aPa:Lcom/google/firebase/components/i;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/firebase/components/i;->z(Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|