163 lines
5.3 KiB
Smali
163 lines
5.3 KiB
Smali
.class public final Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;
|
|
.super Lj0/n/c/i;
|
|
.source "StoreExperiments.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/StoreExperiments;->setExperimentOverride(Ljava/lang/String;Ljava/lang/Integer;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lj0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $name:Ljava/lang/String;
|
|
|
|
.field public final synthetic $overrideBucket:Ljava/lang/Integer;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreExperiments;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Ljava/lang/Integer;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->this$0:Lcom/discord/stores/StoreExperiments;
|
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->$name:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->$overrideBucket:Ljava/lang/Integer;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->invoke()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke()V
|
|
.locals 9
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->$name:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lcom/discord/models/domain/ModelExperiment;->createExperimentHash(Ljava/lang/CharSequence;)J
|
|
|
|
move-result-wide v0
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->this$0:Lcom/discord/stores/StoreExperiments;
|
|
|
|
invoke-static {v2}, Lcom/discord/stores/StoreExperiments;->access$getExperimentsEligible$p(Lcom/discord/stores/StoreExperiments;)Ljava/util/HashMap;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Lcom/discord/stores/StoreExperiments$Experiment;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const-string v2, "experimentsEligible[nameHash] ?: return@schedule"
|
|
|
|
invoke-static {v3, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreExperiments$Experiment;->getOverrideBucket()Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v4, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->$overrideBucket:Ljava/lang/Integer;
|
|
|
|
invoke-static {v2, v4}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->this$0:Lcom/discord/stores/StoreExperiments;
|
|
|
|
invoke-static {v2}, Lcom/discord/stores/StoreExperiments;->access$getExperimentOverrides$p(Lcom/discord/stores/StoreExperiments;)Ljava/util/HashMap;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v5, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->$overrideBucket:Ljava/lang/Integer;
|
|
|
|
invoke-interface {v2, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->this$0:Lcom/discord/stores/StoreExperiments;
|
|
|
|
invoke-static {v2}, Lcom/discord/stores/StoreExperiments;->access$getExperimentsEligible$p(Lcom/discord/stores/StoreExperiments;)Ljava/util/HashMap;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
iget-object v6, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->$overrideBucket:Ljava/lang/Integer;
|
|
|
|
const/4 v7, 0x3
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static/range {v3 .. v8}, Lcom/discord/stores/StoreExperiments$Experiment;->copy$default(Lcom/discord/stores/StoreExperiments$Experiment;Ljava/lang/String;Lcom/discord/models/domain/ModelExperiment;Ljava/lang/Integer;ILjava/lang/Object;)Lcom/discord/stores/StoreExperiments$Experiment;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v2, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreExperiments$setExperimentOverride$1;->this$0:Lcom/discord/stores/StoreExperiments;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/stores/StoreExperiments;->access$setDirty$p(Lcom/discord/stores/StoreExperiments;Z)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|