b.smali

.class public final Lmj/b;
.super Ljava/lang/Object;
.source "RnTracker.kt"


# static fields
.field public static a:Z

.field public static b:I

.field public static final c:Lmj/b;


# direct methods
.method public static constructor <clinit>()V
    .registers 2

    new-instance v0, Lmj/b;

    invoke-direct {v0}, Lmj/b;-><init>()V

    sput-object v0, Lmj/b;->c:Lmj/b;

    const/4 v0, 0x1

    sput-boolean v0, Lmj/b;->a:Z

    sget-object v0, Lef/c;->c:Lef/c;

    invoke-virtual {v0}, Lef/c;->a()Lcom/shopee/foody/driver/global/config/AppConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/shopee/foody/driver/global/config/AppConfigManager;->a()Lff/a;

    move-result-object v0

    invoke-virtual {v0}, Lff/a;->b()Lcom/shopee/foody/driver/global/config/data/BIConfig;

    move-result-object v0

    invoke-virtual {v0}, Lcom/shopee/foody/driver/global/config/data/BIConfig;->isEnable()Z

    move-result v1

    sput-boolean v1, Lmj/b;->a:Z

    invoke-virtual {v0}, Lcom/shopee/foody/driver/global/config/data/BIConfig;->getRnAppPerfSampleRate()J

    move-result-wide v0

    long-to-int v1, v0

    if-lez v1, :cond_26

    goto :goto_27

    :cond_26
    const/4 v1, 0x0

    :goto_27
    sput v1, Lmj/b;->b:I

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final a()I
    .registers 2

    sget v0, Lmj/b;->b:I

    return v0
.end method

.method public final a(Ljava/lang/String;)V
    .registers 3

    sget-boolean v0, Lmj/b;->a:Z

    if-nez v0, :cond_5

    return-void

    :cond_5
    if-eqz p1, :cond_10

    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v0

    if-nez v0, :cond_e

    goto :goto_10

    :cond_e
    const/4 v0, 0x0

    goto :goto_11

    :cond_10
    :goto_10
    const/4 v0, 0x1

    :goto_11
    if-eqz v0, :cond_14

    return-void

    :cond_14
    invoke-static {p1}, Lcom/shopee/shopeetracker/model/UserActionV3;->create(Ljava/lang/String;)Lcom/shopee/shopeetracker/model/UserActionV3;

    move-result-object p1

    invoke-virtual {p1}, Lcom/shopee/shopeetracker/model/UserAction;->log()V

    return-void
.end method

.method public final a(Lzl/b;)V
    .registers 3

    sget-boolean v0, Lmj/b;->a:Z

    if-nez v0, :cond_5

    return-void

    :cond_5
    if-nez p1, :cond_8

    return-void

    :cond_8
    invoke-static {}, Lcom/shopee/shopeetracker/TrackerFactory;->getPerformance()Lyl/c;

    move-result-object v0

    invoke-interface {v0, p1}, Lyl/c;->a(Lzl/b;)V

    return-void
.end method