AppsFluerModuleApp.smali

.class public Lcom/sandboxol/appsfluer/AppsFluerModuleApp;
.super Ljava/lang/Object;
.source "AppsFluerModuleApp.java"

# interfaces
.implements Lcom/sandboxol/center/router/moduleApplication/IModuleInit;


# static fields
.field private static final AF_DEV_KEY:Ljava/lang/String; = "RQz33k7wn3WSF7iAa5FzRh"

.field private static final TAG:Ljava/lang/String; = "com.sandboxol.appsfluer.AppsFluerModuleApp"


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

    return-void
.end method

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

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

    return-void
.end method

.method static synthetic access$000()Ljava/lang/String;
    .registers 1

    .line 1
    sget-object v0, Lcom/sandboxol/appsfluer/AppsFluerModuleApp;->TAG:Ljava/lang/String;

    return-object v0
.end method

.method private initAppsFlyer()V
    .registers 5

    .line 1
    new-instance v0, Lcom/sandboxol/appsfluer/AppsFluerModuleApp$1;

    invoke-direct {v0, p0}, Lcom/sandboxol/appsfluer/AppsFluerModuleApp$1;-><init>(Lcom/sandboxol/appsfluer/AppsFluerModuleApp;)V

    .line 2
    invoke-static {}, Lcom/appsflyer/AppsFlyerLib;->getInstance()Lcom/appsflyer/AppsFlyerLib;

    move-result-object v1

    invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "RQz33k7wn3WSF7iAa5FzRh"

    invoke-virtual {v1, v3, v0, v2}, Lcom/appsflyer/AppsFlyerLib;->init(Ljava/lang/String;Lcom/appsflyer/AppsFlyerConversionListener;Landroid/content/Context;)Lcom/appsflyer/AppsFlyerLib;

    return-void
.end method

.method public static setDebugLog(Z)V
    .registers 2

    .line 1
    invoke-static {}, Lcom/appsflyer/AppsFlyerLib;->getInstance()Lcom/appsflyer/AppsFlyerLib;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/appsflyer/AppsFlyerLib;->setDebugLog(Z)V

    return-void
.end method

.method public static startAppsFlyer(Landroid/content/Context;)V
    .registers 2

    .line 1
    invoke-static {}, Lcom/appsflyer/AppsFlyerLib;->getInstance()Lcom/appsflyer/AppsFlyerLib;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/appsflyer/AppsFlyerLib;->startTracking(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/app/Application;)V
    .registers 3

    .line 1
    invoke-static {}, Lcom/sandboxol/center/utils/AppUtils;->isMainProcess()Z

    move-result v0

    if-eqz v0, :cond_10

    .line 2
    invoke-direct {p0}, Lcom/sandboxol/appsfluer/AppsFluerModuleApp;->initAppsFlyer()V

    .line 3
    invoke-static {p1}, Lcom/sandboxol/appsfluer/AppsFluerModuleApp;->startAppsFlyer(Landroid/content/Context;)V

    const/4 p1, 0x1

    .line 4
    invoke-static {p1}, Lcom/sandboxol/appsfluer/AppsFluerModuleApp;->setDebugLog(Z)V

    :cond_10
    return-void
.end method

.method public onDestroy(Landroid/app/Application;)V
    .registers 2

    return-void
.end method