113 lines
2.7 KiB
Smali
113 lines
2.7 KiB
Smali
.class public Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static volatile INSTANCE:Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
|
|
|
|
# instance fields
|
|
.field public final infos:Ljava/util/Set;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 32
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 29
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;->infos:Ljava/util/Set;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getInstance()Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
.locals 2
|
|
|
|
sget-object v0, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;->INSTANCE:Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-class v1, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
|
|
.line 56
|
|
monitor-enter v1
|
|
|
|
:try_start_0
|
|
sget-object v0, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;->INSTANCE:Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 59
|
|
new-instance v0, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
|
|
invoke-direct {v0}, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;->INSTANCE:Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_1
|
|
|
|
.line 61
|
|
:cond_0
|
|
:goto_0
|
|
monitor-exit v1
|
|
|
|
goto :goto_2
|
|
|
|
:goto_1
|
|
monitor-exit v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
:goto_2
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getRegisteredVersions()Ljava/util/Set;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;->infos:Ljava/util/Set;
|
|
|
|
.line 47
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/google/firebase/platforminfo/GlobalLibraryVersionRegistrar;->infos:Ljava/util/Set;
|
|
|
|
.line 48
|
|
invoke-static {v1}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
|
|
|
|
move-result-object v1
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 49
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|