FirebaseRemoteConfig.smali
.class public Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.super Ljava/lang/Object;
.source "com.google.firebase:firebase-config@@19.1.0"
# static fields
.field public static final DEFAULT_VALUE_FOR_BOOLEAN:Z = false
.field public static final DEFAULT_VALUE_FOR_BYTE_ARRAY:[B
.field public static final DEFAULT_VALUE_FOR_DOUBLE:D = 0.0
.field public static final DEFAULT_VALUE_FOR_LONG:J = 0x0L
.field public static final DEFAULT_VALUE_FOR_STRING:Ljava/lang/String; = ""
.field public static final LAST_FETCH_STATUS_FAILURE:I = 0x1
.field public static final LAST_FETCH_STATUS_NO_FETCH_YET:I = 0x0
.field public static final LAST_FETCH_STATUS_SUCCESS:I = -0x1
.field public static final LAST_FETCH_STATUS_THROTTLED:I = 0x2
.field public static final TAG:Ljava/lang/String; = "FirebaseRemoteConfig"
.field public static final VALUE_SOURCE_DEFAULT:I = 0x1
.field public static final VALUE_SOURCE_REMOTE:I = 0x2
.field public static final VALUE_SOURCE_STATIC:I
# instance fields
.field private final activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.field private final context:Landroid/content/Context;
.field private final defaultConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.field private final executor:Ljava/util/concurrent/Executor;
.field private final fetchHandler:Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;
.field private final fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.field private final firebaseAbt:Lcom/google/firebase/abt/FirebaseABTesting;
.field private final firebaseApp:Lcom/google/firebase/FirebaseApp;
.field private final frcMetadata:Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;
.field private final getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 98
const/4 v0, 0x0
new-array v0, v0, [B
sput-object v0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->DEFAULT_VALUE_FOR_BYTE_ARRAY:[B
return-void
.end method
.method constructor <init>(Landroid/content/Context;Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/abt/FirebaseABTesting;Ljava/util/concurrent/Executor;Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;)V
.registers 11
.param p1, "context" # Landroid/content/Context;
.param p2, "firebaseApp" # Lcom/google/firebase/FirebaseApp;
.param p3, "firebaseAbt" # Lcom/google/firebase/abt/FirebaseABTesting;
.param p4, "executor" # Ljava/util/concurrent/Executor;
.param p5, "fetchedConfigsCache" # Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.param p6, "activatedConfigsCache" # Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.param p7, "defaultConfigsCache" # Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.param p8, "fetchHandler" # Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;
.param p9, "getHandler" # Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
.param p10, "frcMetadata" # Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;
.line 166
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 167
iput-object p1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->context:Landroid/content/Context;
.line 168
iput-object p2, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->firebaseApp:Lcom/google/firebase/FirebaseApp;
.line 169
iput-object p3, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->firebaseAbt:Lcom/google/firebase/abt/FirebaseABTesting;
.line 170
iput-object p4, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
.line 171
iput-object p5, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.line 172
iput-object p6, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.line 173
iput-object p7, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->defaultConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.line 174
iput-object p8, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchHandler:Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;
.line 175
iput-object p9, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
.line 176
iput-object p10, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->frcMetadata:Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;
.line 177
return-void
.end method
.method static synthetic access$lambda$0(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Lcom/google/android/gms/tasks/Task;)Z
.registers 2
invoke-direct {p0, p1}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->processActivatePutTask(Lcom/google/android/gms/tasks/Task;)Z
move-result p0
return p0
.end method
.method public static getInstance()Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.registers 1
.line 77
invoke-static {}, Lcom/google/firebase/FirebaseApp;->getInstance()Lcom/google/firebase/FirebaseApp;
move-result-object v0
invoke-static {v0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getInstance(Lcom/google/firebase/FirebaseApp;)Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
move-result-object v0
return-object v0
.end method
.method public static getInstance(Lcom/google/firebase/FirebaseApp;)Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.registers 2
.param p0, "app" # Lcom/google/firebase/FirebaseApp;
.line 83
const-class v0, Lcom/google/firebase/remoteconfig/RemoteConfigComponent;
invoke-virtual {p0, v0}, Lcom/google/firebase/FirebaseApp;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/remoteconfig/RemoteConfigComponent;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/RemoteConfigComponent;->getDefault()Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
move-result-object v0
return-object v0
.end method
.method private static isFetchedFresh(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Z
.registers 4
.param p0, "fetched" # Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
.param p1, "activated" # Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
.line 768
if-eqz p1, :cond_13
invoke-virtual {p0}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->getFetchTime()Ljava/util/Date;
move-result-object v0
invoke-virtual {p1}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->getFetchTime()Ljava/util/Date;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/Date;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_11
goto :goto_13
:cond_11
const/4 v0, 0x0
goto :goto_14
:cond_13
:goto_13
const/4 v0, 0x1
:goto_14
return v0
.end method
.method static synthetic lambda$activate$3(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Lcom/google/android/gms/tasks/Task;Lcom/google/android/gms/tasks/Task;Lcom/google/android/gms/tasks/Task;)Lcom/google/android/gms/tasks/Task;
.registers 8
.param p0, "this" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.param p1, "fetchedConfigsTask" # Lcom/google/android/gms/tasks/Task;
.param p2, "activatedConfigsTask" # Lcom/google/android/gms/tasks/Task;
.param p3, "unusedListOfCompletedTasks" # Lcom/google/android/gms/tasks/Task;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 264
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->isSuccessful()Z
move-result v0
const/4 v1, 0x0
.line 265
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
.line 264
if-eqz v0, :cond_40
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_12
goto :goto_40
.line 267
:cond_12
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
.line 270
.local v0, "fetchedContainer":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
invoke-virtual {p2}, Lcom/google/android/gms/tasks/Task;->isSuccessful()Z
move-result v2
if-eqz v2, :cond_2f
.line 271
invoke-virtual {p2}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
.line 272
.local v2, "activatedContainer":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
invoke-static {v0, v2}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->isFetchedFresh(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Z
move-result v3
if-nez v3, :cond_2f
.line 273
invoke-static {v1}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
return-object v1
.line 277
.end local v2 # "activatedContainer":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
:cond_2f
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.line 278
invoke-virtual {v1, v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->put(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
iget-object v2, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {p0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$11;->lambdaFactory$(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;)Lcom/google/android/gms/tasks/Continuation;
move-result-object v3
.line 279
invoke-virtual {v1, v2, v3}, Lcom/google/android/gms/tasks/Task;->continueWith(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/Continuation;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
.line 277
return-object v1
.line 265
.end local v0 # "fetchedContainer":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
:cond_40
:goto_40
invoke-static {v1}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method static synthetic lambda$activateFetched$2(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)V
.registers 3
.param p0, "this" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.param p1, "newlyActivatedContainer" # Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
.line 241
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->clear()V
.line 242
invoke-virtual {p1}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->getAbtExperiments()Lorg/json/JSONArray;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->updateAbtWithActivatedExperiments(Lorg/json/JSONArray;)V
.line 243
return-void
.end method
.method static synthetic lambda$ensureInitialized$0(Lcom/google/android/gms/tasks/Task;Lcom/google/android/gms/tasks/Task;)Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigInfo;
.registers 3
.param p0, "metadataTask" # Lcom/google/android/gms/tasks/Task;
.param p1, "unusedListOfCompletedTasks" # Lcom/google/android/gms/tasks/Task;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 192
invoke-virtual {p0}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigInfo;
return-object v0
.end method
.method static synthetic lambda$fetch$4(Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler$FetchResponse;)Lcom/google/android/gms/tasks/Task;
.registers 2
.param p0, "unusedFetchResponse" # Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler$FetchResponse;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 306
const/4 v0, 0x0
invoke-static {v0}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method static synthetic lambda$fetch$5(Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler$FetchResponse;)Lcom/google/android/gms/tasks/Task;
.registers 2
.param p0, "unusedFetchResponse" # Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler$FetchResponse;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 331
const/4 v0, 0x0
invoke-static {v0}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method static synthetic lambda$fetchAndActivate$1(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Ljava/lang/Void;)Lcom/google/android/gms/tasks/Task;
.registers 3
.param p0, "this" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.param p1, "unusedVoid" # Ljava/lang/Void;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 210
invoke-virtual {p0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activate()Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method static synthetic lambda$reset$7(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;)Ljava/lang/Void;
.registers 2
.param p0, "this" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 628
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->clear()V
.line 629
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->clear()V
.line 630
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->defaultConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->clear()V
.line 631
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->frcMetadata:Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;->clear()V
.line 632
const/4 v0, 0x0
return-object v0
.end method
.method static synthetic lambda$setConfigSettingsAsync$6(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;)Ljava/lang/Void;
.registers 3
.param p0, "this" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;
.param p1, "settings" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 518
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->frcMetadata:Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;->setConfigSettings(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;)V
.line 521
const/4 v0, 0x0
return-object v0
.end method
.method static synthetic lambda$setDefaultsWithStringsMapAsync$8(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Lcom/google/android/gms/tasks/Task;
.registers 2
.param p0, "unusedContainer" # Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 704
const/4 v0, 0x0
invoke-static {v0}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method private processActivatePutTask(Lcom/google/android/gms/tasks/Task;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/gms/tasks/Task<",
"Lcom/google/firebase/remoteconfig/internal/ConfigContainer;",
">;)Z"
}
.end annotation
.line 656
.local p1, "putTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->isSuccessful()Z
move-result v0
if-eqz v0, :cond_28
.line 657
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->clear()V
.line 662
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_1f
.line 663
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->getAbtExperiments()Lorg/json/JSONArray;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->updateAbtWithActivatedExperiments(Lorg/json/JSONArray;)V
goto :goto_26
.line 666
:cond_1f
const-string v0, "FirebaseRemoteConfig"
const-string v1, "Activated configs written to disk are null."
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 668
:goto_26
const/4 v0, 0x1
return v0
.line 670
:cond_28
const/4 v0, 0x0
return v0
.end method
.method private setDefaultsWithStringsMap(Ljava/util/Map;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 680
.local p1, "defaultsStringMap":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
:try_start_0
invoke-static {}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->newBuilder()Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->replaceConfigsWith(Ljava/util/Map;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->build()Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
move-result-object v0
.line 681
.local v0, "defaultConfigs":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->defaultConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v1, v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->putWithoutWaitingForDiskWrite(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Lcom/google/android/gms/tasks/Task;
:try_end_11
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_11} :catch_13
.line 684
nop
.end local v0 # "defaultConfigs":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
goto :goto_1b
.line 682
:catch_13
move-exception v0
.line 683
.local v0, "e":Lorg/json/JSONException;
const-string v1, "FirebaseRemoteConfig"
const-string v2, "The provided defaults map could not be processed."
invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 685
.end local v0 # "e":Lorg/json/JSONException;
:goto_1b
return-void
.end method
.method private setDefaultsWithStringsMapAsync(Ljava/util/Map;)Lcom/google/android/gms/tasks/Task;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 694
.local p1, "defaultsStringMap":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
const/4 v0, 0x0
.line 696
.local v0, "defaultConfigs":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
:try_start_1
invoke-static {}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->newBuilder()Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;
move-result-object v1
invoke-virtual {v1, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->replaceConfigsWith(Ljava/util/Map;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;
move-result-object v1
invoke-virtual {v1}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->build()Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
move-result-object v1
:try_end_d
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_d} :catch_1e
move-object v0, v1
.line 700
nop
.line 702
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->defaultConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v1, v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->put(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
.line 704
.local v1, "putTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
invoke-static {}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$10;->lambdaFactory$()Lcom/google/android/gms/tasks/SuccessContinuation;
move-result-object v2
invoke-virtual {v1, v2}, Lcom/google/android/gms/tasks/Task;->onSuccessTask(Lcom/google/android/gms/tasks/SuccessContinuation;)Lcom/google/android/gms/tasks/Task;
move-result-object v2
return-object v2
.line 697
.end local v1 # "putTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
:catch_1e
move-exception v1
.line 698
.local v1, "e":Lorg/json/JSONException;
const-string v2, "FirebaseRemoteConfig"
const-string v3, "The provided defaults map could not be processed."
invoke-static {v2, v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 699
const/4 v2, 0x0
invoke-static {v2}, Lcom/google/android/gms/tasks/Tasks;->forResult(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
move-result-object v2
return-object v2
.end method
.method static toExperimentInfoMaps(Lorg/json/JSONArray;)Ljava/util/List;
.registers 8
.param p0, "abtExperimentsJson" # Lorg/json/JSONArray;
.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 749
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 750
.local v0, "experimentInfoMaps":Ljava/util/List;, "Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;"
const/4 v1, 0x0
.local v1, "index":I
:goto_6
invoke-virtual {p0}, Lorg/json/JSONArray;->length()I
move-result v2
if-ge v1, v2, :cond_33
.line 751
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
.line 753
.local v2, "experimentInfo":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
invoke-virtual {p0, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object v3
.line 754
.local v3, "abtExperimentJson":Lorg/json/JSONObject;
invoke-virtual {v3}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;
move-result-object v4
.line 755
.local v4, "experimentJsonKeyIterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
:goto_19
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_2d
.line 756
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/String;
.line 757
.local v5, "key":Ljava/lang/String;
invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
invoke-interface {v2, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 758
.end local v5 # "key":Ljava/lang/String;
goto :goto_19
.line 760
:cond_2d
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 750
.end local v2 # "experimentInfo":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
.end local v3 # "abtExperimentJson":Lorg/json/JSONObject;
.end local v4 # "experimentJsonKeyIterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
add-int/lit8 v1, v1, 0x1
goto :goto_6
.line 762
.end local v1 # "index":I
:cond_33
return-object v0
.end method
# virtual methods
.method public activate()Lcom/google/android/gms/tasks/Task;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.line 257
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
move-result-object v0
.line 258
.local v0, "fetchedConfigsTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v1}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
move-result-object v1
.line 260
.local v1, "activatedConfigsTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
const/4 v2, 0x2
new-array v2, v2, [Lcom/google/android/gms/tasks/Task;
const/4 v3, 0x0
aput-object v0, v2, v3
const/4 v3, 0x1
aput-object v1, v2, v3
invoke-static {v2}, Lcom/google/android/gms/tasks/Tasks;->whenAllComplete([Lcom/google/android/gms/tasks/Task;)Lcom/google/android/gms/tasks/Task;
move-result-object v2
iget-object v3, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {p0, v0, v1}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$5;->lambdaFactory$(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Lcom/google/android/gms/tasks/Task;Lcom/google/android/gms/tasks/Task;)Lcom/google/android/gms/tasks/Continuation;
move-result-object v4
.line 261
invoke-virtual {v2, v3, v4}, Lcom/google/android/gms/tasks/Task;->continueWithTask(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/Continuation;)Lcom/google/android/gms/tasks/Task;
move-result-object v2
.line 260
return-object v2
.end method
.method public activateFetched()Z
.registers 6
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 223
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->getBlocking()Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
move-result-object v0
.line 224
.local v0, "fetchedContainer":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
const/4 v1, 0x0
if-nez v0, :cond_a
.line 225
return v1
.line 229
:cond_a
iget-object v2, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v2}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->getBlocking()Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
move-result-object v2
.line 230
.local v2, "activatedContainer":Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
invoke-static {v0, v2}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->isFetchedFresh(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Z
move-result v3
if-nez v3, :cond_17
.line 231
return v1
.line 236
:cond_17
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
.line 237
invoke-virtual {v1, v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->putWithoutWaitingForDiskWrite(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
iget-object v3, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {p0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$4;->lambdaFactory$(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;)Lcom/google/android/gms/tasks/OnSuccessListener;
move-result-object v4
.line 238
invoke-virtual {v1, v3, v4}, Lcom/google/android/gms/tasks/Task;->addOnSuccessListener(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/OnSuccessListener;)Lcom/google/android/gms/tasks/Task;
.line 244
const/4 v1, 0x1
return v1
.end method
.method public ensureInitialized()Lcom/google/android/gms/tasks/Task;
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigInfo;",
">;"
}
.end annotation
.line 185
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
move-result-object v0
.line 186
.local v0, "activatedConfigsTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->defaultConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v1}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
move-result-object v1
.line 187
.local v1, "defaultsConfigsTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
iget-object v2, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v2}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
move-result-object v2
.line 188
.local v2, "fetchedConfigsTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigContainer;>;"
iget-object v3, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {p0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$1;->lambdaFactory$(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;)Ljava/util/concurrent/Callable;
move-result-object v4
invoke-static {v3, v4}, Lcom/google/android/gms/tasks/Tasks;->call(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)Lcom/google/android/gms/tasks/Task;
move-result-object v3
.line 190
.local v3, "metadataTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigInfo;>;"
const/4 v4, 0x4
new-array v4, v4, [Lcom/google/android/gms/tasks/Task;
const/4 v5, 0x0
aput-object v0, v4, v5
const/4 v5, 0x1
aput-object v1, v4, v5
const/4 v5, 0x2
aput-object v2, v4, v5
const/4 v5, 0x3
aput-object v3, v4, v5
invoke-static {v4}, Lcom/google/android/gms/tasks/Tasks;->whenAllComplete([Lcom/google/android/gms/tasks/Task;)Lcom/google/android/gms/tasks/Task;
move-result-object v4
iget-object v5, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {v3}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$2;->lambdaFactory$(Lcom/google/android/gms/tasks/Task;)Lcom/google/android/gms/tasks/Continuation;
move-result-object v6
.line 192
invoke-virtual {v4, v5, v6}, Lcom/google/android/gms/tasks/Task;->continueWith(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/Continuation;)Lcom/google/android/gms/tasks/Task;
move-result-object v4
.line 190
return-object v4
.end method
.method public fetch()Lcom/google/android/gms/tasks/Task;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 303
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchHandler:Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;->fetch()Lcom/google/android/gms/tasks/Task;
move-result-object v0
.line 306
.local v0, "fetchTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler$FetchResponse;>;"
invoke-static {}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$6;->lambdaFactory$()Lcom/google/android/gms/tasks/SuccessContinuation;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/Task;->onSuccessTask(Lcom/google/android/gms/tasks/SuccessContinuation;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
return-object v1
.end method
.method public fetch(J)Lcom/google/android/gms/tasks/Task;
.registers 5
.param p1, "minimumFetchIntervalInSeconds" # J
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 328
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchHandler:Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;
invoke-virtual {v0, p1, p2}, Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;->fetch(J)Lcom/google/android/gms/tasks/Task;
move-result-object v0
.line 331
.local v0, "fetchTask":Lcom/google/android/gms/tasks/Task;, "Lcom/google/android/gms/tasks/Task<Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler$FetchResponse;>;"
invoke-static {}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$7;->lambdaFactory$()Lcom/google/android/gms/tasks/SuccessContinuation;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/Task;->onSuccessTask(Lcom/google/android/gms/tasks/SuccessContinuation;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
return-object v1
.end method
.method public fetchAndActivate()Lcom/google/android/gms/tasks/Task;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.line 210
invoke-virtual {p0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetch()Lcom/google/android/gms/tasks/Task;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {p0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$3;->lambdaFactory$(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;)Lcom/google/android/gms/tasks/SuccessContinuation;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/tasks/Task;->onSuccessTask(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/SuccessContinuation;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method public getAll()Ljava/util/Map;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigValue;",
">;"
}
.end annotation
.line 485
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getAll()Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public getBoolean(Ljava/lang/String;)Z
.registers 3
.param p1, "key" # Ljava/lang/String;
.line 376
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getBoolean(Ljava/lang/String;)Z
move-result v0
return v0
.end method
.method public getByteArray(Ljava/lang/String;)[B
.registers 3
.param p1, "key" # Ljava/lang/String;
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 397
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getByteArray(Ljava/lang/String;)[B
move-result-object v0
return-object v0
.end method
.method public getDouble(Ljava/lang/String;)D
.registers 4
.param p1, "key" # Ljava/lang/String;
.line 418
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getDouble(Ljava/lang/String;)D
move-result-wide v0
return-wide v0
.end method
.method public getInfo()Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigInfo;
.registers 2
.line 494
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->frcMetadata:Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;->getInfo()Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigInfo;
move-result-object v0
return-object v0
.end method
.method public getKeysByPrefix(Ljava/lang/String;)Ljava/util/Set;
.registers 3
.param p1, "prefix" # Ljava/lang/String;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 470
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getKeysByPrefix(Ljava/lang/String;)Ljava/util/Set;
move-result-object v0
return-object v0
.end method
.method public getLong(Ljava/lang/String;)J
.registers 4
.param p1, "key" # Ljava/lang/String;
.line 439
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getLong(Ljava/lang/String;)J
move-result-wide v0
return-wide v0
.end method
.method public getString(Ljava/lang/String;)Ljava/lang/String;
.registers 3
.param p1, "key" # Ljava/lang/String;
.line 351
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getValue(Ljava/lang/String;)Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigValue;
.registers 3
.param p1, "key" # Ljava/lang/String;
.line 459
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->getHandler:Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigGetParameterHandler;->getValue(Ljava/lang/String;)Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigValue;
move-result-object v0
return-object v0
.end method
.method public reset()Lcom/google/android/gms/tasks/Task;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 625
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {p0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$9;->lambdaFactory$(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;)Ljava/util/concurrent/Callable;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/android/gms/tasks/Tasks;->call(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method public setConfigSettings(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;)V
.registers 3
.param p1, "settings" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 505
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->frcMetadata:Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;
invoke-virtual {v0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigMetadataClient;->setConfigSettingsWithoutWaitingOnDiskWrite(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;)V
.line 506
return-void
.end method
.method public setConfigSettingsAsync(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;)Lcom/google/android/gms/tasks/Task;
.registers 4
.param p1, "settings" # Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;",
")",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 515
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->executor:Ljava/util/concurrent/Executor;
invoke-static {p0, p1}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig$$Lambda$8;->lambdaFactory$(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;)Ljava/util/concurrent/Callable;
move-result-object v1
invoke-static {v0, v1}, Lcom/google/android/gms/tasks/Tasks;->call(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method public setDefaults(I)V
.registers 3
.param p1, "resourceId" # I
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 599
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->context:Landroid/content/Context;
invoke-static {v0, p1}, Lcom/google/firebase/remoteconfig/internal/DefaultsXmlParser;->getDefaultsFromXml(Landroid/content/Context;I)Ljava/util/Map;
move-result-object v0
.line 600
.local v0, "xmlDefaults":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
invoke-direct {p0, v0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->setDefaultsWithStringsMap(Ljava/util/Map;)V
.line 601
return-void
.end method
.method public setDefaults(Ljava/util/Map;)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 545
.local p1, "defaults":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 546
.local v0, "defaultsStringMap":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_d
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_41
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
.line 547
.local v2, "defaultsEntry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;"
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v3
.line 548
.local v3, "value":Ljava/lang/Object;
instance-of v4, v3, [B
if-eqz v4, :cond_33
.line 549
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
new-instance v5, Ljava/lang/String;
move-object v6, v3
check-cast v6, [B
invoke-direct {v5, v6}, Ljava/lang/String;-><init>([B)V
invoke-interface {v0, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_40
.line 551
:cond_33
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v5
invoke-interface {v0, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 553
.end local v2 # "defaultsEntry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;"
.end local v3 # "value":Ljava/lang/Object;
:goto_40
goto :goto_d
.line 555
:cond_41
invoke-direct {p0, v0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->setDefaultsWithStringsMap(Ljava/util/Map;)V
.line 556
return-void
.end method
.method public setDefaultsAsync(I)Lcom/google/android/gms/tasks/Task;
.registers 4
.param p1, "resourceId" # I
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 611
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->context:Landroid/content/Context;
invoke-static {v0, p1}, Lcom/google/firebase/remoteconfig/internal/DefaultsXmlParser;->getDefaultsFromXml(Landroid/content/Context;I)Ljava/util/Map;
move-result-object v0
.line 612
.local v0, "xmlDefaults":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
invoke-direct {p0, v0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->setDefaultsWithStringsMapAsync(Ljava/util/Map;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
return-object v1
.end method
.method public setDefaultsAsync(Ljava/util/Map;)Lcom/google/android/gms/tasks/Task;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 577
.local p1, "defaults":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 578
.local v0, "defaultsStringMap":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_d
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_41
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
.line 579
.local v2, "defaultsEntry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;"
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v3
.line 580
.local v3, "value":Ljava/lang/Object;
instance-of v4, v3, [B
if-eqz v4, :cond_33
.line 581
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
new-instance v5, Ljava/lang/String;
move-object v6, v3
check-cast v6, [B
invoke-direct {v5, v6}, Ljava/lang/String;-><init>([B)V
invoke-interface {v0, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_40
.line 583
:cond_33
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v5
invoke-interface {v0, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 585
.end local v2 # "defaultsEntry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;"
.end local v3 # "value":Ljava/lang/Object;
:goto_40
goto :goto_d
.line 587
:cond_41
invoke-direct {p0, v0}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->setDefaultsWithStringsMapAsync(Ljava/util/Map;)Lcom/google/android/gms/tasks/Task;
move-result-object v1
return-object v1
.end method
.method startLoadingConfigsFromDisk()V
.registers 2
.line 642
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activatedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
.line 643
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->defaultConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
.line 644
iget-object v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->fetchedConfigsCache:Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;
invoke-virtual {v0}, Lcom/google/firebase/remoteconfig/internal/ConfigCacheClient;->get()Lcom/google/android/gms/tasks/Task;
.line 645
return-void
.end method
.method updateAbtWithActivatedExperiments(Lorg/json/JSONArray;)V
.registers 5
.param p1, "abtExperiments" # Lorg/json/JSONArray;
.line 716
const-string v0, "FirebaseRemoteConfig"
iget-object v1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->firebaseAbt:Lcom/google/firebase/abt/FirebaseABTesting;
if-nez v1, :cond_7
.line 720
return-void
.line 724
:cond_7
:try_start_7
invoke-static {p1}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->toExperimentInfoMaps(Lorg/json/JSONArray;)Ljava/util/List;
move-result-object v1
.line 725
.local v1, "experimentInfoMaps":Ljava/util/List;, "Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;"
iget-object v2, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->firebaseAbt:Lcom/google/firebase/abt/FirebaseABTesting;
invoke-virtual {v2, v1}, Lcom/google/firebase/abt/FirebaseABTesting;->replaceAllExperiments(Ljava/util/List;)V
:try_end_10
.catch Lorg/json/JSONException; {:try_start_7 .. :try_end_10} :catch_18
.catch Lcom/google/firebase/abt/AbtException; {:try_start_7 .. :try_end_10} :catch_11
.end local v1 # "experimentInfoMaps":Ljava/util/List;, "Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;"
goto :goto_1e
.line 728
:catch_11
move-exception v1
.line 731
.local v1, "e":Lcom/google/firebase/abt/AbtException;
const-string v2, "Could not update ABT experiments."
invoke-static {v0, v2, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_1f
.line 726
.end local v1 # "e":Lcom/google/firebase/abt/AbtException;
:catch_18
move-exception v1
.line 727
.local v1, "e":Lorg/json/JSONException;
const-string v2, "Could not parse ABT experiments from the JSON response."
invoke-static {v0, v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 732
.end local v1 # "e":Lorg/json/JSONException;
:goto_1e
nop
.line 733
:goto_1f
return-void
.end method