b.smali
.class public final Lcom/google/firebase/remoteconfig/b;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final a:Lcom/google/firebase/abt/c;
.field public final b:Ljava/util/concurrent/Executor;
.field public final c:Lcom/google/firebase/remoteconfig/internal/e;
.field public final d:Lcom/google/firebase/remoteconfig/internal/e;
.field public final e:Lcom/google/firebase/remoteconfig/internal/i;
.field public final f:Lcom/google/firebase/remoteconfig/internal/j;
.field public final g:Lcom/google/firebase/remoteconfig/internal/k;
.field public final h:Lcom/google/firebase/installations/g;
# direct methods
.method public constructor <init>(Lcom/google/firebase/installations/g;Lcom/google/firebase/abt/c;Ljava/util/concurrent/Executor;Lcom/google/firebase/remoteconfig/internal/e;Lcom/google/firebase/remoteconfig/internal/e;Lcom/google/firebase/remoteconfig/internal/e;Lcom/google/firebase/remoteconfig/internal/i;Lcom/google/firebase/remoteconfig/internal/j;Lcom/google/firebase/remoteconfig/internal/k;)V
.registers 10
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/remoteconfig/b;->h:Lcom/google/firebase/installations/g;
.line 3
iput-object p2, p0, Lcom/google/firebase/remoteconfig/b;->a:Lcom/google/firebase/abt/c;
.line 4
iput-object p3, p0, Lcom/google/firebase/remoteconfig/b;->b:Ljava/util/concurrent/Executor;
.line 5
iput-object p4, p0, Lcom/google/firebase/remoteconfig/b;->c:Lcom/google/firebase/remoteconfig/internal/e;
.line 6
iput-object p5, p0, Lcom/google/firebase/remoteconfig/b;->d:Lcom/google/firebase/remoteconfig/internal/e;
.line 7
iput-object p7, p0, Lcom/google/firebase/remoteconfig/b;->e:Lcom/google/firebase/remoteconfig/internal/i;
.line 8
iput-object p8, p0, Lcom/google/firebase/remoteconfig/b;->f:Lcom/google/firebase/remoteconfig/internal/j;
.line 9
iput-object p9, p0, Lcom/google/firebase/remoteconfig/b;->g:Lcom/google/firebase/remoteconfig/internal/k;
return-void
.end method
.method public static b(Lorg/json/JSONArray;)Ljava/util/List;
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/json/JSONArray;",
")",
"Ljava/util/List<",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/json/JSONException;
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
const/4 v1, 0x0
.line 2
:goto_6
invoke-virtual {p0}, Lorg/json/JSONArray;->length()I
move-result v2
if-ge v1, v2, :cond_33
.line 3
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
.line 4
invoke-virtual {p0, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object v3
.line 5
invoke-virtual {v3}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;
move-result-object v4
.line 6
:goto_19
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_2d
.line 7
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/String;
.line 8
invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
invoke-virtual {v2, v5, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_19
.line 9
:cond_2d
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_6
:cond_33
return-object v0
.end method
# virtual methods
.method public final a()Ljava/util/Map;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lcom/google/firebase/remoteconfig/g;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/remoteconfig/b;->f:Lcom/google/firebase/remoteconfig/internal/j;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 2
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
.line 3
iget-object v2, v0, Lcom/google/firebase/remoteconfig/internal/j;->a:Lcom/google/firebase/remoteconfig/internal/e;
invoke-static {v2}, Lcom/google/firebase/remoteconfig/internal/j;->b(Lcom/google/firebase/remoteconfig/internal/e;)Ljava/util/Set;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
.line 4
iget-object v2, v0, Lcom/google/firebase/remoteconfig/internal/j;->b:Lcom/google/firebase/remoteconfig/internal/e;
invoke-static {v2}, Lcom/google/firebase/remoteconfig/internal/j;->b(Lcom/google/firebase/remoteconfig/internal/e;)Ljava/util/Set;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
.line 5
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
.line 6
invoke-virtual {v1}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_25
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_80
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
.line 7
iget-object v4, v0, Lcom/google/firebase/remoteconfig/internal/j;->a:Lcom/google/firebase/remoteconfig/internal/e;
.line 8
invoke-static {v4}, Lcom/google/firebase/remoteconfig/internal/j;->a(Lcom/google/firebase/remoteconfig/internal/e;)Lcom/google/firebase/remoteconfig/internal/f;
move-result-object v4
const/4 v5, 0x0
if-nez v4, :cond_3b
goto :goto_42
.line 9
:cond_3b
:try_start_3b
iget-object v4, v4, Lcom/google/firebase/remoteconfig/internal/f;->b:Lorg/json/JSONObject;
.line 10
invoke-virtual {v4, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
:try_end_41
.catch Lorg/json/JSONException; {:try_start_3b .. :try_end_41} :catch_42
goto :goto_43
:catch_42
:goto_42
move-object v4, v5
:goto_43
const/4 v6, 0x2
if-eqz v4, :cond_4c
.line 11
new-instance v5, Lcom/google/firebase/remoteconfig/internal/m;
invoke-direct {v5, v4, v6}, Lcom/google/firebase/remoteconfig/internal/m;-><init>(Ljava/lang/String;I)V
goto :goto_7c
.line 12
:cond_4c
iget-object v4, v0, Lcom/google/firebase/remoteconfig/internal/j;->b:Lcom/google/firebase/remoteconfig/internal/e;
.line 13
invoke-static {v4}, Lcom/google/firebase/remoteconfig/internal/j;->a(Lcom/google/firebase/remoteconfig/internal/e;)Lcom/google/firebase/remoteconfig/internal/f;
move-result-object v4
if-nez v4, :cond_55
goto :goto_5d
.line 14
:cond_55
:try_start_55
iget-object v4, v4, Lcom/google/firebase/remoteconfig/internal/f;->b:Lorg/json/JSONObject;
.line 15
invoke-virtual {v4, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
:try_end_5b
.catch Lorg/json/JSONException; {:try_start_55 .. :try_end_5b} :catch_5c
goto :goto_5d
:catch_5c
nop
:goto_5d
const/4 v4, 0x1
if-eqz v5, :cond_67
.line 16
new-instance v6, Lcom/google/firebase/remoteconfig/internal/m;
invoke-direct {v6, v5, v4}, Lcom/google/firebase/remoteconfig/internal/m;-><init>(Ljava/lang/String;I)V
move-object v5, v6
goto :goto_7c
:cond_67
new-array v5, v6, [Ljava/lang/Object;
const/4 v6, 0x0
const-string v7, "FirebaseRemoteConfigValue"
aput-object v7, v5, v6
aput-object v3, v5, v4
const-string v4, "No value of type \'%s\' exists for parameter key \'%s\'."
.line 17
invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
.line 18
new-instance v5, Lcom/google/firebase/remoteconfig/internal/m;
const-string v4, ""
invoke-direct {v5, v4, v6}, Lcom/google/firebase/remoteconfig/internal/m;-><init>(Ljava/lang/String;I)V
.line 19
:goto_7c
invoke-virtual {v2, v3, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_25
:cond_80
return-object v2
.end method