173 lines
4.1 KiB
Smali
173 lines
4.1 KiB
Smali
.class public Lcom/google/firebase/FirebaseApp$c;
|
|
.super Ljava/lang/Object;
|
|
.source "com.google.firebase:firebase-common@@19.2.0"
|
|
|
|
# interfaces
|
|
.implements Le/k/a/b/e/j/m/b$a;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0xe
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/firebase/FirebaseApp;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "c"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static a:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lcom/google/firebase/FirebaseApp$c;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/firebase/FirebaseApp$c;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/content/Context;)V
|
|
.locals 3
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroid/app/Application;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/app/Application;
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp$c;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
new-instance v0, Lcom/google/firebase/FirebaseApp$c;
|
|
|
|
invoke-direct {v0}, Lcom/google/firebase/FirebaseApp$c;-><init>()V
|
|
|
|
sget-object v1, Lcom/google/firebase/FirebaseApp$c;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v1, v2, v0}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {p0}, Le/k/a/b/e/j/m/b;->a(Landroid/app/Application;)V
|
|
|
|
sget-object p0, Le/k/a/b/e/j/m/b;->h:Le/k/a/b/e/j/m/b;
|
|
|
|
invoke-virtual {p0, v0}, Le/k/a/b/e/j/m/b;->a(Le/k/a/b/e/j/m/b$a;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Z)V
|
|
.locals 4
|
|
|
|
sget-object v0, Lcom/google/firebase/FirebaseApp;->i:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
sget-object v2, Lcom/google/firebase/FirebaseApp;->k:Ljava/util/Map;
|
|
|
|
invoke-interface {v2}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/firebase/FirebaseApp;
|
|
|
|
iget-object v3, v2, Lcom/google/firebase/FirebaseApp;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v2, p1}, Lcom/google/firebase/FirebaseApp;->a(Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|