granularity level: instruction
.class public Lcom/google/firebase/FirebaseCommonRegistrar;
.super Ljava/lang/Object;
.source "FirebaseCommonRegistrar.java"
.implements Lcom/google/firebase/components/ComponentRegistrar;
.field private static final ANDROID_INSTALLER:Ljava/lang/String; = "android-installer"
.field private static final ANDROID_PLATFORM:Ljava/lang/String; = "android-platform"
.field private static final DEVICE_BRAND:Ljava/lang/String; = "device-brand"
.field private static final DEVICE_MODEL:Ljava/lang/String; = "device-model"
.field private static final DEVICE_NAME:Ljava/lang/String; = "device-name"
.field private static final FIREBASE_ANDROID:Ljava/lang/String; = "fire-android"
.field private static final FIREBASE_COMMON:Ljava/lang/String; = "fire-core"
.field private static final KOTLIN:Ljava/lang/String; = "kotlin"
.field private static final MIN_SDK:Ljava/lang/String; = "android-min-sdk"
.field private static final TARGET_SDK:Ljava/lang/String; = "android-target-sdk"
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic lambda$getComponents$0(Landroid/content/Context;)Ljava/lang/String;
.locals 0
invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object p0
if-eqz p0, :cond_0
iget p0, p0, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_0
const-string p0, ""
return-object p0
.end method
.method static synthetic lambda$getComponents$1(Landroid/content/Context;)Ljava/lang/String;
.locals 2
invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object p0
if-eqz p0, :cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_0
iget p0, p0, Landroid/content/pm/ApplicationInfo;->minSdkVersion:I
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_0
const-string p0, ""
return-object p0
.end method
.method static synthetic lambda$getComponents$2(Landroid/content/Context;)Ljava/lang/String;
.locals 2
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x10
if-lt v0, v1, :cond_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const-string v1, "android.hardware.type.television"
invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
const-string p0, "tv"
return-object p0
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x14
if-lt v0, v1, :cond_1
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const-string v1, "android.hardware.type.watch"
invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1
const-string p0, "watch"
return-object p0
:cond_1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x17
if-lt v0, v1, :cond_2
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const-string v1, "android.hardware.type.automotive"
invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_2
const-string p0, "auto"
return-object p0
:cond_2
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1a
if-lt v0, v1, :cond_3
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p0
const-string v0, "android.hardware.type.embedded"
invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result p0
if-eqz p0, :cond_3
const-string p0, "embedded"
return-object p0
:cond_3
const-string p0, ""
return-object p0
.end method
.method static synthetic lambda$getComponents$3(Landroid/content/Context;)Ljava/lang/String;
.locals 1
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
invoke-virtual {v0, p0}, Landroid/content/pm/PackageManager;->getInstallerPackageName(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_0
invoke-static {p0}, Lcom/google/firebase/FirebaseCommonRegistrar;->safeValue(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
goto :goto_0
:cond_0
const-string p0, ""
:goto_0
return-object p0
.end method
.method private static safeValue(Ljava/lang/String;)Ljava/lang/String;
.locals 2
const/16 v0, 0x20
const/16 v1, 0x5f
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
move-result-object p0
const/16 v0, 0x2f
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public getComponents()Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
invoke-static {}, Lcom/google/firebase/platforminfo/DefaultUserAgentPublisher;->component()Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
invoke-static {}, Lcom/google/firebase/heartbeatinfo/DefaultHeartBeatController;->component()Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
const-string v2, "fire-android"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->create(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const-string v1, "fire-core"
const-string v2, "20.2.0"
invoke-static {v1, v2}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->create(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
sget-object v1, Landroid/os/Build;->PRODUCT:Ljava/lang/String;
invoke-static {v1}, Lcom/google/firebase/FirebaseCommonRegistrar;->safeValue(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "device-name"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->create(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
sget-object v1, Landroid/os/Build;->DEVICE:Ljava/lang/String;
invoke-static {v1}, Lcom/google/firebase/FirebaseCommonRegistrar;->safeValue(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "device-model"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->create(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
sget-object v1, Landroid/os/Build;->BRAND:Ljava/lang/String;
invoke-static {v1}, Lcom/google/firebase/FirebaseCommonRegistrar;->safeValue(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "device-brand"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->create(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v1, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda0;
invoke-direct {v1}, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda0;-><init>()V
const-string v2, "android-target-sdk"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->fromContext(Ljava/lang/String;Lcom/google/firebase/platforminfo/LibraryVersionComponent$VersionExtractor;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v1, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda1;
invoke-direct {v1}, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda1;-><init>()V
const-string v2, "android-min-sdk"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->fromContext(Ljava/lang/String;Lcom/google/firebase/platforminfo/LibraryVersionComponent$VersionExtractor;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v1, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda2;
invoke-direct {v1}, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda2;-><init>()V
const-string v2, "android-platform"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->fromContext(Ljava/lang/String;Lcom/google/firebase/platforminfo/LibraryVersionComponent$VersionExtractor;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v1, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda3;
invoke-direct {v1}, Lcom/google/firebase/FirebaseCommonRegistrar$$ExternalSyntheticLambda3;-><init>()V
const-string v2, "android-installer"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->fromContext(Ljava/lang/String;Lcom/google/firebase/platforminfo/LibraryVersionComponent$VersionExtractor;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
invoke-static {}, Lcom/google/firebase/platforminfo/KotlinDetector;->detectVersion()Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_0
const-string v2, "kotlin"
invoke-static {v2, v1}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->create(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/Component;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_0
return-object v0
.end method