BiddingKit.smali

.class public Lcom/facebook/biddingkit/bridge/BiddingKit;
.super Ljava/lang/Object;


# static fields
.field private static volatile a:Landroid/content/Context;

.field private static volatile b:Ljava/lang/String;

.field private static c:Z


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

    return-void
.end method

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

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

    return-void
.end method

.method public static getAppContext()Landroid/content/Context;
    .registers 1

    sget-object v0, Lcom/facebook/biddingkit/bridge/BiddingKit;->a:Landroid/content/Context;

    return-object v0
.end method

.method public static getConfiguration()Ljava/lang/String;
    .registers 1

    sget-object v0, Lcom/facebook/biddingkit/bridge/BiddingKit;->b:Ljava/lang/String;

    return-object v0
.end method

.method public static declared-synchronized init(Landroid/content/Context;)V
    .registers 3

    const-class v0, Lcom/facebook/biddingkit/bridge/BiddingKit;

    monitor-enter v0

    :try_start_3
    const-string v1, ""

    invoke-static {p0, v1}, Lcom/facebook/biddingkit/bridge/BiddingKit;->init(Landroid/content/Context;Ljava/lang/String;)V
    :try_end_8
    .catchall {:try_start_3 .. :try_end_8} :catchall_a

    monitor-exit v0

    return-void

    :catchall_a
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static declared-synchronized init(Landroid/content/Context;Ljava/lang/String;)V
    .registers 5

    const-class v0, Lcom/facebook/biddingkit/bridge/BiddingKit;

    monitor-enter v0

    :try_start_3
    sget-boolean v1, Lcom/facebook/biddingkit/bridge/BiddingKit;->c:Z

    if-nez v1, :cond_27

    if-eqz p0, :cond_1f

    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    sput-object v1, Lcom/facebook/biddingkit/bridge/BiddingKit;->a:Landroid/content/Context;

    const/4 v1, 0x1

    sput-boolean v1, Lcom/facebook/biddingkit/bridge/BiddingKit;->c:Z

    sput-object p1, Lcom/facebook/biddingkit/bridge/BiddingKit;->b:Ljava/lang/String;

    sget-object v1, Lcom/facebook/biddingkit/utils/MultiAsyncTaskExecutor;->GENERAL_EXECUTOR:Ljava/util/concurrent/Executor;

    new-instance v2, Lcom/facebook/biddingkit/bridge/BiddingKit$1;

    invoke-direct {v2, p0, p1}, Lcom/facebook/biddingkit/bridge/BiddingKit$1;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    goto :goto_27

    :cond_1f
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string p1, "Missing Context"

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

    throw p0
    :try_end_27
    .catchall {:try_start_3 .. :try_end_27} :catchall_29

    :cond_27
    :goto_27
    monitor-exit v0

    return-void

    :catchall_29
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static declared-synchronized isDebugBuild()Z
    .registers 2

    const-class v0, Lcom/facebook/biddingkit/bridge/BiddingKit;

    monitor-enter v0

    :try_start_3
    invoke-static {}, Lcom/facebook/biddingkit/logging/Logging;->isDebugBuild()Z

    move-result v1
    :try_end_7
    .catchall {:try_start_3 .. :try_end_7} :catchall_9

    monitor-exit v0

    return v1

    :catchall_9
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static declared-synchronized setDebugBuild(Z)V
    .registers 2

    const-class v0, Lcom/facebook/biddingkit/bridge/BiddingKit;

    monitor-enter v0

    :try_start_3
    invoke-static {p0}, Lcom/facebook/biddingkit/logging/Logging;->setDebugBuild(Z)V
    :try_end_6
    .catchall {:try_start_3 .. :try_end_6} :catchall_8

    monitor-exit v0

    return-void

    :catchall_8
    move-exception p0

    monitor-exit v0

    throw p0
.end method