1176 lines
32 KiB
Smali
1176 lines
32 KiB
Smali
.class public Lcom/google/firebase/FirebaseApp;
|
|
.super Ljava/lang/Object;
|
|
.source "com.google.firebase:firebase-common@@16.0.2"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/firebase/FirebaseApp$c;,
|
|
Lcom/google/firebase/FirebaseApp$b;,
|
|
Lcom/google/firebase/FirebaseApp$d;,
|
|
Lcom/google/firebase/FirebaseApp$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final aLL:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final aLM:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final aLN:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final aLO:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final aLP:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final aLQ:Ljava/lang/Object;
|
|
|
|
.field private static final aLR:Ljava/util/concurrent/Executor;
|
|
|
|
.field static final aLS:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/google/firebase/FirebaseApp;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
value = "LOCK"
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final ZD:Ljava/lang/String;
|
|
|
|
.field private final aLT:Landroid/content/Context;
|
|
|
|
.field private final aLU:Lcom/google/firebase/b;
|
|
|
|
.field private final aLV:Lcom/google/firebase/components/m;
|
|
|
|
.field private final aLW:Landroid/content/SharedPreferences;
|
|
|
|
.field private final aLX:Lcom/google/firebase/a/c;
|
|
|
|
.field private final aLY:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field private final aLZ:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field private final aMa:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field private final aMb:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final aMc:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final aMd:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private aMe:Lcom/google/firebase/FirebaseApp$a;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const-string v1, "com.google.firebase.auth.FirebaseAuth"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const-string v1, "com.google.firebase.iid.FirebaseInstanceId"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aLL:Ljava/util/List;
|
|
|
|
const-string v0, "com.google.firebase.crash.FirebaseCrash"
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aLM:Ljava/util/List;
|
|
|
|
new-array v0, v3, [Ljava/lang/String;
|
|
|
|
const-string v1, "com.google.android.gms.measurement.AppMeasurement"
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aLN:Ljava/util/List;
|
|
|
|
new-array v0, v2, [Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aLO:Ljava/util/List;
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aLP:Ljava/util/Set;
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aLQ:Ljava/lang/Object;
|
|
|
|
new-instance v0, Lcom/google/firebase/FirebaseApp$c;
|
|
|
|
invoke-direct {v0, v2}, Lcom/google/firebase/FirebaseApp$c;-><init>(B)V
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp;->aLR: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;->aLS:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/content/Context;Ljava/lang/String;Lcom/google/firebase/b;)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;->aLY: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;->aLZ: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;->aMb: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;->aMc: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;->aMd:Ljava/util/List;
|
|
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/p;->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;->aLT:Landroid/content/Context;
|
|
|
|
invoke-static {p2}, Lcom/google/android/gms/common/internal/p;->aQ(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->ZD:Ljava/lang/String;
|
|
|
|
invoke-static {p3}, Lcom/google/android/gms/common/internal/p;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lcom/google/firebase/b;
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->aLU:Lcom/google/firebase/b;
|
|
|
|
new-instance p2, Lcom/google/firebase/c/a;
|
|
|
|
invoke-direct {p2}, Lcom/google/firebase/c/a;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->aMe:Lcom/google/firebase/FirebaseApp$a;
|
|
|
|
const-string p2, "com.google.firebase.common.prefs"
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->aLW:Landroid/content/SharedPreferences;
|
|
|
|
new-instance p2, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->zzb()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p2, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->aMa:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
new-instance p2, Lcom/google/firebase/components/a$1;
|
|
|
|
new-instance v0, Lcom/google/firebase/components/k;
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/firebase/components/k;-><init>(B)V
|
|
|
|
invoke-direct {p2, p1, v0}, Lcom/google/firebase/components/a$1;-><init>(Ljava/lang/Object;Lcom/google/firebase/components/l;)V
|
|
|
|
iget-object v0, p2, Lcom/google/firebase/components/a$1;->aME:Lcom/google/firebase/components/l;
|
|
|
|
iget-object p2, p2, Lcom/google/firebase/components/a$1;->aHN:Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, p2}, Lcom/google/firebase/components/l;->aF(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lcom/google/firebase/components/a$1;->p(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
new-instance v0, Lcom/google/firebase/components/m;
|
|
|
|
sget-object v2, Lcom/google/firebase/FirebaseApp;->aLR:Ljava/util/concurrent/Executor;
|
|
|
|
const/4 v3, 0x3
|
|
|
|
new-array v3, v3, [Lcom/google/firebase/components/a;
|
|
|
|
const-class v4, Landroid/content/Context;
|
|
|
|
new-array v5, v1, [Ljava/lang/Class;
|
|
|
|
invoke-static {p1, v4, v5}, Lcom/google/firebase/components/a;->a(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/a;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v3, v1
|
|
|
|
const-class p1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
new-array v4, v1, [Ljava/lang/Class;
|
|
|
|
invoke-static {p0, p1, v4}, Lcom/google/firebase/components/a;->a(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/a;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object p1, v3, v4
|
|
|
|
const-class p1, Lcom/google/firebase/b;
|
|
|
|
new-array v1, v1, [Ljava/lang/Class;
|
|
|
|
invoke-static {p3, p1, v1}, Lcom/google/firebase/components/a;->a(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/a;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p3, 0x2
|
|
|
|
aput-object p1, v3, p3
|
|
|
|
invoke-direct {v0, v2, p2, v3}, Lcom/google/firebase/components/m;-><init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;[Lcom/google/firebase/components/a;)V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLV:Lcom/google/firebase/components/m;
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/FirebaseApp;->aLV:Lcom/google/firebase/components/m;
|
|
|
|
const-class p2, Lcom/google/firebase/a/c;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/google/firebase/components/m;->A(Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/firebase/a/c;
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/FirebaseApp;->aLX:Lcom/google/firebase/a/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Landroid/content/Context;Lcom/google/firebase/b;Ljava/lang/String;)Lcom/google/firebase/FirebaseApp;
|
|
.locals 4
|
|
|
|
invoke-static {p0}, Lcom/google/firebase/FirebaseApp$b;->X(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-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aLQ:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aLS: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_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
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/p;->a(ZLjava/lang/Object;)V
|
|
|
|
const-string v1, "Application context cannot be null."
|
|
|
|
invoke-static {p0, v1}, Lcom/google/android/gms/common/internal/p;->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/b;)V
|
|
|
|
sget-object p0, Lcom/google/firebase/FirebaseApp;->aLS: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;->uh()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;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->uh()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;->aMc: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 private static a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Iterable;Z)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;TT;",
|
|
"Ljava/lang/Iterable<",
|
|
"Ljava/lang/String;",
|
|
">;Z)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aLO:Ljava/util/List;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
:cond_1
|
|
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "getInstance"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v4, v3, [Ljava/lang/Class;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object p0, v4, v5
|
|
|
|
invoke-virtual {v1, v2, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Method;->getModifiers()I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v2}, Ljava/lang/reflect/Modifier;->isPublic(I)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
invoke-static {v2}, Ljava/lang/reflect/Modifier;->isStatic(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, v3, v5
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
const-string v2, "FirebaseApp"
|
|
|
|
const-string v3, "Failed to initialize "
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v2, v0, v1}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
const-string v1, "FirebaseApp"
|
|
|
|
const-string v2, "Firebase API initialization failure."
|
|
|
|
invoke-static {v1, v2, v0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, "#getInstance has been removed by Proguard. Add keep rule to prevent it."
|
|
|
|
invoke-virtual {p1, p2}, 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-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:catch_3
|
|
nop
|
|
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aLP:Ljava/util/Set;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v1, "FirebaseApp"
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " is not linked. Skipping initialization."
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, " is missing, but is required. Check if it has been removed by Proguard."
|
|
|
|
invoke-virtual {p1, p2}, 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-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public static ap(Landroid/content/Context;)Lcom/google/firebase/FirebaseApp;
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aLQ:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aLS: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/b;->aq(Landroid/content/Context;)Lcom/google/firebase/b;
|
|
|
|
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;->d(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/b;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;->aLY:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getInstance()Lcom/google/firebase/FirebaseApp;
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aLQ:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp;->aLS: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/l;->ma()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 getName()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->uf()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->ZD:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static synthetic uP()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->aLQ:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private uf()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLZ: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/p;->a(ZLjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private uh()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLT:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Landroidx/core/content/ContextCompat;->isDeviceProtectedStorage(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/FirebaseApp;->aLT:Landroid/content/Context;
|
|
|
|
invoke-static {v1}, Lcom/google/firebase/FirebaseApp$d;->X(Landroid/content/Context;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/google/firebase/FirebaseApp;->aLV:Lcom/google/firebase/components/m;
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->uO()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/google/firebase/components/m;->zza(Z)V
|
|
|
|
:goto_0
|
|
const-class v1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
sget-object v2, Lcom/google/firebase/FirebaseApp;->aLL:Ljava/util/List;
|
|
|
|
invoke-static {v1, p0, v2, v0}, Lcom/google/firebase/FirebaseApp;->a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Iterable;Z)V
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->uO()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-class v1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
sget-object v2, Lcom/google/firebase/FirebaseApp;->aLM:Ljava/util/List;
|
|
|
|
invoke-static {v1, p0, v2, v0}, Lcom/google/firebase/FirebaseApp;->a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Iterable;Z)V
|
|
|
|
const-class v1, Landroid/content/Context;
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/FirebaseApp;->aLT:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/google/firebase/FirebaseApp;->aLN:Ljava/util/List;
|
|
|
|
invoke-static {v1, v2, v3, v0}, Lcom/google/firebase/FirebaseApp;->a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Iterable;Z)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private zzb()Z
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLW:Landroid/content/SharedPreferences;
|
|
|
|
const-string v1, "firebase_data_collection_default_enabled"
|
|
|
|
invoke-interface {v0, v1}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLW:Landroid/content/SharedPreferences;
|
|
|
|
const-string v2, "firebase_data_collection_default_enabled"
|
|
|
|
invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLT:Landroid/content/Context;
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/FirebaseApp;->aLT:Landroid/content/Context;
|
|
|
|
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const/16 v3, 0x80
|
|
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v2, v0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v2, v0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
const-string v3, "firebase_data_collection_default_enabled"
|
|
|
|
invoke-virtual {v2, v3}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
const-string v2, "firebase_data_collection_default_enabled"
|
|
|
|
invoke-virtual {v0, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final A(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;->uf()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLV:Lcom/google/firebase/components/m;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/firebase/components/m;->A(Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.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;->ZD:Ljava/lang/String;
|
|
|
|
check-cast p1, Lcom/google/firebase/FirebaseApp;
|
|
|
|
invoke-direct {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
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->uf()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLT:Landroid/content/Context;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->ZD: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;->uf()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aMa: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/n;->X(Ljava/lang/Object;)Lcom/google/android/gms/common/internal/n$a;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "name"
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/FirebaseApp;->ZD:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/common/internal/n$a;->h(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/android/gms/common/internal/n$a;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "options"
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/FirebaseApp;->aLU:Lcom/google/firebase/b;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/common/internal/n$a;->h(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/android/gms/common/internal/n$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/common/internal/n$a;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final uN()Lcom/google/firebase/b;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->uf()V
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->aLU:Lcom/google/firebase/b;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final uO()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
const-string v0, "[DEFAULT]"
|
|
|
|
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|