granularity level: instruction
.class public Lcom/google/firebase/datatransport/TransportRegistrar;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Lcom/google/firebase/components/ComponentRegistrar;
.annotation build Landroidx/annotation/Keep;
.end annotation
.field private static final LIBRARY_NAME:Ljava/lang/String; = "fire-transport"
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic a(Lr0/t;)Li/d;
.locals 0
invoke-static {p0}, Lcom/google/firebase/datatransport/TransportRegistrar;->lambda$getComponents$0(Lr0/c;)Li/d;
move-result-object p0
return-object p0
.end method
.method private static lambda$getComponents$0(Lr0/c;)Li/d;
.locals 8
const-class v0, Landroid/content/Context;
invoke-interface {p0, v0}, Lr0/c;->a(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroid/content/Context;
invoke-static {p0}, Ll/u;->b(Landroid/content/Context;)V
invoke-static {}, Ll/u;->a()Ll/u;
move-result-object p0
sget-object v0, Lj/a;->e:Lj/a;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
new-instance v1, Ll/s;
instance-of v2, v0, Ll/n;
if-eqz v2, :cond_0
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
sget-object v2, Lj/a;->d:Ljava/util/Set;
invoke-static {v2}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v2
goto :goto_0
:cond_0
new-instance v2, Li/b;
const-string v3, "proto"
invoke-direct {v2, v3}, Li/b;-><init>(Ljava/lang/String;)V
invoke-static {v2}, Ljava/util/Collections;->singleton(Ljava/lang/Object;)Ljava/util/Set;
move-result-object v2
:goto_0
invoke-static {}, Ll/l;->a()Ll/k;
move-result-object v3
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
const-string v4, "cct"
invoke-virtual {v3, v4}, Ll/k;->g(Ljava/lang/String;)V
iget-object v4, v0, Lj/a;->b:Ljava/lang/String;
if-nez v4, :cond_1
iget-object v5, v0, Lj/a;->a:Ljava/lang/String;
if-nez v5, :cond_1
const/4 v0, 0x0
goto :goto_1
:cond_1
const/4 v5, 0x4
new-array v5, v5, [Ljava/lang/Object;
const/4 v6, 0x0
const-string v7, "1$"
aput-object v7, v5, v6
const/4 v6, 0x1
iget-object v0, v0, Lj/a;->a:Ljava/lang/String;
aput-object v0, v5, v6
const/4 v0, 0x2
const-string v6, "\\"
aput-object v6, v5, v0
const/4 v0, 0x3
if-nez v4, :cond_2
const-string v4, ""
:cond_2
aput-object v4, v5, v0
const-string v0, "%s%s%s%s"
invoke-static {v0, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v4, "UTF-8"
invoke-static {v4}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object v0
:goto_1
iput-object v0, v3, Ll/k;->b:Ljava/lang/Object;
invoke-virtual {v3}, Ll/k;->c()Ll/l;
move-result-object v0
invoke-direct {v1, v2, v0, p0}, Ll/s;-><init>(Ljava/util/Set;Ll/l;Ll/u;)V
return-object v1
.end method
.method public getComponents()Ljava/util/List;
.locals 15
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lr0/b;",
">;"
}
.end annotation
const/4 v0, 0x2
new-array v0, v0, [Lr0/b;
const-class v1, Li/d;
const/4 v2, 0x0
new-array v3, v2, [Ljava/lang/Class;
new-instance v4, Ljava/util/HashSet;
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
new-instance v5, Ljava/util/HashSet;
invoke-direct {v5}, Ljava/util/HashSet;-><init>()V
const/4 v11, 0x0
new-instance v13, Ljava/util/HashSet;
invoke-direct {v13}, Ljava/util/HashSet;-><init>()V
invoke-virtual {v4, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
array-length v1, v3
const/4 v6, 0x0
:goto_0
if-ge v6, v1, :cond_1
aget-object v7, v3, v6
if-eqz v7, :cond_0
add-int/lit8 v6, v6, 0x1
goto :goto_0
:cond_0
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "Null interface"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
invoke-static {v4, v3}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
const-string v1, "fire-transport"
const-class v3, Landroid/content/Context;
new-instance v6, Lr0/k;
const/4 v14, 0x1
invoke-direct {v6, v3, v14, v2}, Lr0/k;-><init>(Ljava/lang/Class;II)V
iget-object v3, v6, Lr0/k;->a:Ljava/lang/Class;
invoke-virtual {v4, v3}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
move-result v3
xor-int/2addr v3, v14
if-eqz v3, :cond_2
invoke-virtual {v5, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
new-instance v12, Lj/c;
invoke-direct {v12, v2}, Lj/c;-><init>(I)V
new-instance v3, Lr0/b;
new-instance v8, Ljava/util/HashSet;
invoke-direct {v8, v4}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
new-instance v9, Ljava/util/HashSet;
invoke-direct {v9, v5}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
move-object v6, v3
move-object v7, v1
move v10, v11
invoke-direct/range {v6 .. v13}, Lr0/b;-><init>(Ljava/lang/String;Ljava/util/Set;Ljava/util/Set;IILr0/e;Ljava/util/Set;)V
aput-object v3, v0, v2
const-string v2, "18.1.7"
invoke-static {v1, v2}, Lp0/a;->m(Ljava/lang/String;Ljava/lang/String;)Lr0/b;
move-result-object v1
aput-object v1, v0, v14
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
return-object v0
:cond_2
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Components are not allowed to depend on interfaces they themselves provide."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method