granularity level: instruction
.class public Lcom/google/firebase/FirebaseApp;
.super Ljava/lang/Object;
.source "FirebaseApp.java"
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/FirebaseApp$UiExecutor;,
Lcom/google/firebase/FirebaseApp$GlobalBackgroundStateListener;,
Lcom/google/firebase/FirebaseApp$UserUnlockReceiver;,
Lcom/google/firebase/FirebaseApp$BackgroundStateChangeListener;
}
.end annotation
.field public static final DEFAULT_APP_NAME:Ljava/lang/String; = "[DEFAULT]"
.field private static final FIREBASE_ANDROID:Ljava/lang/String; = "fire-android"
.field private static final FIREBASE_COMMON:Ljava/lang/String; = "fire-core"
.field static final INSTANCES:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lcom/google/firebase/FirebaseApp;",
">;"
}
.end annotation
.end field
.field private static final KOTLIN:Ljava/lang/String; = "kotlin"
.field private static final LOCK:Ljava/lang/Object;
.field private static final LOG_TAG:Ljava/lang/String; = "FirebaseApp"
.field private static final UI_EXECUTOR:Ljava/util/concurrent/Executor;
.field private final applicationContext:Landroid/content/Context;
.field private final automaticResourceManagementEnabled:Ljava/util/concurrent/atomic/AtomicBoolean;
.field private final backgroundStateChangeListeners:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/firebase/FirebaseApp$BackgroundStateChangeListener;",
">;"
}
.end annotation
.end field
.field private final componentRuntime:Lcom/google/firebase/components/ComponentRuntime;
.field private final dataCollectionConfigStorage:Lcom/google/firebase/components/Lazy;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/components/Lazy<",
"Lcom/google/firebase/internal/DataCollectionConfigStorage;",
">;"
}
.end annotation
.end field
.field private final defaultHeartBeatController:Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Provider<",
"Lcom/google/firebase/heartbeatinfo/DefaultHeartBeatController;",
">;"
}
.end annotation
.end field
.field private final deleted:Ljava/util/concurrent/atomic/AtomicBoolean;
.field private final lifecycleListeners:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/firebase/FirebaseAppLifecycleListener;",
">;"
}
.end annotation
.end field
.field private final name:Ljava/lang/String;
.field private final options:Lcom/google/firebase/FirebaseOptions;
.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;->LOCK:Ljava/lang/Object;
new-instance v0, Lcom/google/firebase/FirebaseApp$UiExecutor;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/google/firebase/FirebaseApp$UiExecutor;-><init>(Lcom/google/firebase/FirebaseApp$1;)V
sput-object v0, Lcom/google/firebase/FirebaseApp;->UI_EXECUTOR: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;->INSTANCES:Ljava/util/Map;
return-void
.end method
.method protected constructor <init>(Landroid/content/Context;Ljava/lang/String;Lcom/google/firebase/FirebaseOptions;)V
.locals 3
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;->automaticResourceManagementEnabled: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;->deleted: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;->backgroundStateChangeListeners: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;->lifecycleListeners:Ljava/util/List;
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->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/Preconditions;->checkNotEmpty(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/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/google/firebase/FirebaseOptions;
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->options:Lcom/google/firebase/FirebaseOptions;
const-string p2, "Firebase"
invoke-static {p2}, Lcom/google/firebase/tracing/FirebaseTrace;->pushTrace(Ljava/lang/String;)V
const-string p2, "ComponentDiscovery"
invoke-static {p2}, Lcom/google/firebase/tracing/FirebaseTrace;->pushTrace(Ljava/lang/String;)V
const-class p2, Lcom/google/firebase/components/ComponentDiscoveryService;
invoke-static {p1, p2}, Lcom/google/firebase/components/ComponentDiscovery;->forContext(Landroid/content/Context;Ljava/lang/Class;)Lcom/google/firebase/components/ComponentDiscovery;
move-result-object p2
invoke-virtual {p2}, Lcom/google/firebase/components/ComponentDiscovery;->discoverLazy()Ljava/util/List;
move-result-object p2
invoke-static {}, Lcom/google/firebase/tracing/FirebaseTrace;->popTrace()V
const-string v0, "Runtime"
invoke-static {v0}, Lcom/google/firebase/tracing/FirebaseTrace;->pushTrace(Ljava/lang/String;)V
sget-object v0, Lcom/google/firebase/FirebaseApp;->UI_EXECUTOR:Ljava/util/concurrent/Executor;
invoke-static {v0}, Lcom/google/firebase/components/ComponentRuntime;->builder(Ljava/util/concurrent/Executor;)Lcom/google/firebase/components/ComponentRuntime$Builder;
move-result-object v0
invoke-virtual {v0, p2}, Lcom/google/firebase/components/ComponentRuntime$Builder;->addLazyComponentRegistrars(Ljava/util/Collection;)Lcom/google/firebase/components/ComponentRuntime$Builder;
move-result-object p2
new-instance v0, Lcom/google/firebase/FirebaseCommonRegistrar;
invoke-direct {v0}, Lcom/google/firebase/FirebaseCommonRegistrar;-><init>()V
invoke-virtual {p2, v0}, Lcom/google/firebase/components/ComponentRuntime$Builder;->addComponentRegistrar(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRuntime$Builder;
move-result-object p2
const-class v0, Landroid/content/Context;
new-array v2, v1, [Ljava/lang/Class;
invoke-static {p1, v0, v2}, Lcom/google/firebase/components/Component;->of(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component;
move-result-object v0
invoke-virtual {p2, v0}, Lcom/google/firebase/components/ComponentRuntime$Builder;->addComponent(Lcom/google/firebase/components/Component;)Lcom/google/firebase/components/ComponentRuntime$Builder;
move-result-object p2
const-class v0, Lcom/google/firebase/FirebaseApp;
new-array v2, v1, [Ljava/lang/Class;
invoke-static {p0, v0, v2}, Lcom/google/firebase/components/Component;->of(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component;
move-result-object v0
invoke-virtual {p2, v0}, Lcom/google/firebase/components/ComponentRuntime$Builder;->addComponent(Lcom/google/firebase/components/Component;)Lcom/google/firebase/components/ComponentRuntime$Builder;
move-result-object p2
const-class v0, Lcom/google/firebase/FirebaseOptions;
new-array v1, v1, [Ljava/lang/Class;
invoke-static {p3, v0, v1}, Lcom/google/firebase/components/Component;->of(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component;
move-result-object p3
invoke-virtual {p2, p3}, Lcom/google/firebase/components/ComponentRuntime$Builder;->addComponent(Lcom/google/firebase/components/Component;)Lcom/google/firebase/components/ComponentRuntime$Builder;
move-result-object p2
new-instance p3, Lcom/google/firebase/tracing/ComponentMonitor;
invoke-direct {p3}, Lcom/google/firebase/tracing/ComponentMonitor;-><init>()V
invoke-virtual {p2, p3}, Lcom/google/firebase/components/ComponentRuntime$Builder;->setProcessor(Lcom/google/firebase/components/ComponentRegistrarProcessor;)Lcom/google/firebase/components/ComponentRuntime$Builder;
move-result-object p2
invoke-virtual {p2}, Lcom/google/firebase/components/ComponentRuntime$Builder;->build()Lcom/google/firebase/components/ComponentRuntime;
move-result-object p2
iput-object p2, p0, Lcom/google/firebase/FirebaseApp;->componentRuntime:Lcom/google/firebase/components/ComponentRuntime;
invoke-static {}, Lcom/google/firebase/tracing/FirebaseTrace;->popTrace()V
new-instance p3, Lcom/google/firebase/components/Lazy;
new-instance v0, Lcom/google/firebase/FirebaseApp$$ExternalSyntheticLambda0;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/FirebaseApp$$ExternalSyntheticLambda0;-><init>(Lcom/google/firebase/FirebaseApp;Landroid/content/Context;)V
invoke-direct {p3, v0}, Lcom/google/firebase/components/Lazy;-><init>(Lcom/google/firebase/inject/Provider;)V
iput-object p3, p0, Lcom/google/firebase/FirebaseApp;->dataCollectionConfigStorage:Lcom/google/firebase/components/Lazy;
const-class p1, Lcom/google/firebase/heartbeatinfo/DefaultHeartBeatController;
invoke-virtual {p2, p1}, Lcom/google/firebase/components/ComponentRuntime;->getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/FirebaseApp;->defaultHeartBeatController:Lcom/google/firebase/inject/Provider;
new-instance p1, Lcom/google/firebase/FirebaseApp$$ExternalSyntheticLambda1;
invoke-direct {p1, p0}, Lcom/google/firebase/FirebaseApp$$ExternalSyntheticLambda1;-><init>(Lcom/google/firebase/FirebaseApp;)V
invoke-virtual {p0, p1}, Lcom/google/firebase/FirebaseApp;->addBackgroundStateChangeListener(Lcom/google/firebase/FirebaseApp$BackgroundStateChangeListener;)V
invoke-static {}, Lcom/google/firebase/tracing/FirebaseTrace;->popTrace()V
return-void
.end method
.method static synthetic access$300()Ljava/lang/Object;
.locals 1
sget-object v0, Lcom/google/firebase/FirebaseApp;->LOCK:Ljava/lang/Object;
return-object v0
.end method
.method static synthetic access$400(Lcom/google/firebase/FirebaseApp;)V
.locals 0
return-void
.end method
.method static synthetic access$500(Lcom/google/firebase/FirebaseApp;)Ljava/util/concurrent/atomic/AtomicBoolean;
.locals 0
iget-object p0, p0, Lcom/google/firebase/FirebaseApp;->automaticResourceManagementEnabled:Ljava/util/concurrent/atomic/AtomicBoolean;
return-object p0
.end method
.method static synthetic access$600(Lcom/google/firebase/FirebaseApp;Z)V
.locals 0
return-void
.end method
.method private checkNotDeleted()V
.locals 2
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->deleted: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/Preconditions;->checkState(ZLjava/lang/Object;)V
return-void
.end method
.method public static clearInstancesForTest()V
.locals 2
return-void
.end method
.method private static getAllAppNames()Ljava/util/List;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method public static getApps(Landroid/content/Context;)Ljava/util/List;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/List<",
"Lcom/google/firebase/FirebaseApp;",
">;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method public static getInstance()Lcom/google/firebase/FirebaseApp;
.locals 4
sget-object v0, Lcom/google/firebase/FirebaseApp;->LOCK:Ljava/lang/Object;
monitor-enter v0
sget-object v1, Lcom/google/firebase/FirebaseApp;->INSTANCES: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;
monitor-exit v0
return-object v1
:catchall_0
move-exception v1
monitor-exit v0
:throw0
throw v1
.end method
.method public static getInstance(Ljava/lang/String;)Lcom/google/firebase/FirebaseApp;
.locals 5
const/4 v0, 0x0
return-object v0
.end method
.method public static getPersistenceKey(Ljava/lang/String;Lcom/google/firebase/FirebaseOptions;)Ljava/lang/String;
.locals 2
const/4 v0, 0x0
return-object v0
.end method
.method private initializeAllApis()V
.locals 3
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
const-string v1, "FirebaseApp"
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Device unlocked: initializing all Firebase APIs for app "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, 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-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->componentRuntime:Lcom/google/firebase/components/ComponentRuntime;
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->isDefaultApp()Z
move-result v1
invoke-virtual {v0, v1}, Lcom/google/firebase/components/ComponentRuntime;->initializeEagerComponents(Z)V
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->defaultHeartBeatController:Lcom/google/firebase/inject/Provider;
invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/heartbeatinfo/DefaultHeartBeatController;
invoke-virtual {v0}, Lcom/google/firebase/heartbeatinfo/DefaultHeartBeatController;->registerHeartBeat()Lcom/google/android/gms/tasks/Task;
:goto_0
return-void
.end method
.method public static initializeApp(Landroid/content/Context;)Lcom/google/firebase/FirebaseApp;
.locals 3
sget-object v0, Lcom/google/firebase/FirebaseApp;->LOCK:Ljava/lang/Object;
monitor-enter v0
sget-object v1, Lcom/google/firebase/FirebaseApp;->INSTANCES:Ljava/util/Map;
const-string v2, "[DEFAULT]"
invoke-interface {v1, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v1
invoke-static {p0}, Lcom/google/firebase/FirebaseOptions;->fromResource(Landroid/content/Context;)Lcom/google/firebase/FirebaseOptions;
move-result-object v1
invoke-static {p0, v1}, Lcom/google/firebase/FirebaseApp;->initializeApp(Landroid/content/Context;Lcom/google/firebase/FirebaseOptions;)Lcom/google/firebase/FirebaseApp;
move-result-object p0
monitor-exit v0
return-object p0
:catchall_0
move-exception p0
monitor-exit v0
:throw0
throw p0
.end method
.method public static initializeApp(Landroid/content/Context;Lcom/google/firebase/FirebaseOptions;)Lcom/google/firebase/FirebaseApp;
.locals 1
const-string v0, "[DEFAULT]"
invoke-static {p0, p1, v0}, Lcom/google/firebase/FirebaseApp;->initializeApp(Landroid/content/Context;Lcom/google/firebase/FirebaseOptions;Ljava/lang/String;)Lcom/google/firebase/FirebaseApp;
move-result-object p0
return-object p0
.end method
.method public static initializeApp(Landroid/content/Context;Lcom/google/firebase/FirebaseOptions;Ljava/lang/String;)Lcom/google/firebase/FirebaseApp;
.locals 5
invoke-static {p0}, Lcom/google/firebase/FirebaseApp$GlobalBackgroundStateListener;->access$100(Landroid/content/Context;)V
invoke-static {p2}, Lcom/google/firebase/FirebaseApp;->normalize(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
:goto_0
sget-object v0, Lcom/google/firebase/FirebaseApp;->LOCK:Ljava/lang/Object;
monitor-enter v0
:try_start_0
sget-object v1, Lcom/google/firebase/FirebaseApp;->INSTANCES:Ljava/util/Map;
invoke-interface {v1, p2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v2
const/4 v2, 0x1
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "FirebaseApp name "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v4, " already exists!"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
const-string v2, "Application context cannot be null."
invoke-static {p0, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
new-instance v2, Lcom/google/firebase/FirebaseApp;
invoke-direct {v2, p0, p2, p1}, Lcom/google/firebase/FirebaseApp;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/google/firebase/FirebaseOptions;)V
invoke-interface {v1, p2, v2}, 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 {v2}, Lcom/google/firebase/FirebaseApp;->initializeAllApis()V
return-object v2
:catchall_0
move-exception p0
monitor-exit v0
throw p0
.end method
.method private static normalize(Ljava/lang/String;)Ljava/lang/String;
.locals 0
invoke-virtual {p0}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private notifyBackgroundStateChangeListeners(Z)V
.locals 2
return-void
.end method
.method private notifyOnAppDeleted()V
.locals 4
return-void
.end method
.method public addBackgroundStateChangeListener(Lcom/google/firebase/FirebaseApp$BackgroundStateChangeListener;)V
.locals 1
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->checkNotDeleted()V
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->automaticResourceManagementEnabled:Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->backgroundStateChangeListeners:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public addLifecycleEventListener(Lcom/google/firebase/FirebaseAppLifecycleListener;)V
.locals 1
return-void
.end method
.method public delete()V
.locals 3
return-void
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public get(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;->checkNotDeleted()V
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->componentRuntime:Lcom/google/firebase/components/ComponentRuntime;
invoke-virtual {v0, p1}, Lcom/google/firebase/components/ComponentRuntime;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public getApplicationContext()Landroid/content/Context;
.locals 1
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->checkNotDeleted()V
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->applicationContext:Landroid/content/Context;
return-object v0
.end method
.method public getName()Ljava/lang/String;
.locals 1
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->checkNotDeleted()V
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->name:Ljava/lang/String;
return-object v0
.end method
.method public getOptions()Lcom/google/firebase/FirebaseOptions;
.locals 1
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->checkNotDeleted()V
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->options:Lcom/google/firebase/FirebaseOptions;
return-object v0
.end method
.method public getPersistenceKey()Ljava/lang/String;
.locals 3
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
move-result-object v1
invoke-static {}, Ljava/nio/charset/Charset;->defaultCharset()Ljava/nio/charset/Charset;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object v1
invoke-static {v1}, Lcom/google/android/gms/common/util/Base64Utils;->encodeUrlSafeNoPadding([B)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;
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getOptions()Lcom/google/firebase/FirebaseOptions;
move-result-object v1
invoke-virtual {v1}, Lcom/google/firebase/FirebaseOptions;->getApplicationId()Ljava/lang/String;
move-result-object v1
invoke-static {}, Ljava/nio/charset/Charset;->defaultCharset()Ljava/nio/charset/Charset;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object v1
invoke-static {v1}, Lcom/google/android/gms/common/util/Base64Utils;->encodeUrlSafeNoPadding([B)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
.method public hashCode()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method initializeAllComponents()V
.locals 1
return-void
.end method
.method public isDataCollectionDefaultEnabled()Z
.locals 1
invoke-direct {p0}, Lcom/google/firebase/FirebaseApp;->checkNotDeleted()V
iget-object v0, p0, Lcom/google/firebase/FirebaseApp;->dataCollectionConfigStorage:Lcom/google/firebase/components/Lazy;
invoke-virtual {v0}, Lcom/google/firebase/components/Lazy;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/internal/DataCollectionConfigStorage;
invoke-virtual {v0}, Lcom/google/firebase/internal/DataCollectionConfigStorage;->isEnabled()Z
move-result v0
return v0
.end method
.method public isDefaultApp()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 synthetic lambda$new$0$com-google-firebase-FirebaseApp(Landroid/content/Context;)Lcom/google/firebase/internal/DataCollectionConfigStorage;
.locals 4
new-instance v0, Lcom/google/firebase/internal/DataCollectionConfigStorage;
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getPersistenceKey()Ljava/lang/String;
move-result-object v1
iget-object v2, p0, Lcom/google/firebase/FirebaseApp;->componentRuntime:Lcom/google/firebase/components/ComponentRuntime;
const-class v3, Lcom/google/firebase/events/Publisher;
invoke-virtual {v2, v3}, Lcom/google/firebase/components/ComponentRuntime;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/firebase/events/Publisher;
invoke-direct {v0, p1, v1, v2}, Lcom/google/firebase/internal/DataCollectionConfigStorage;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/google/firebase/events/Publisher;)V
return-object v0
.end method
.method synthetic lambda$new$1$com-google-firebase-FirebaseApp(Z)V
.locals 0
return-void
.end method
.method public removeBackgroundStateChangeListener(Lcom/google/firebase/FirebaseApp$BackgroundStateChangeListener;)V
.locals 1
return-void
.end method
.method public removeLifecycleEventListener(Lcom/google/firebase/FirebaseAppLifecycleListener;)V
.locals 1
return-void
.end method
.method public setAutomaticResourceManagementEnabled(Z)V
.locals 2
return-void
.end method
.method public setDataCollectionDefaultEnabled(Ljava/lang/Boolean;)V
.locals 1
return-void
.end method
.method public setDataCollectionDefaultEnabled(Z)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 3
const/4 v0, 0x0
return-object v0
.end method