ImportSDKUtil$1.smali

.class final Lcom/tradplus/ads/mobileads/util/ImportSDKUtil$1;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->integrationChecking(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/content/Context;


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .registers 2

    iput-object p1, p0, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil$1;->a:Landroid/content/Context;

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 9

    :try_start_0
    new-instance v0, Ldalvik/system/DexFile;

    iget-object v1, p0, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil$1;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageCodePath()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ldalvik/system/DexFile;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ldalvik/system/DexFile;->entries()Ljava/util/Enumeration;

    move-result-object v0

    sput-object v0, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->enumeration:Ljava/util/Enumeration;

    :cond_11
    :goto_11
    sget-object v0, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->enumeration:Ljava/util/Enumeration;

    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_c7

    sget-object v0, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->enumeration:Ljava/util/Enumeration;

    invoke-interface {v0}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_23
    invoke-static {}, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->a()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-ge v2, v3, :cond_11

    invoke-static {}, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->a()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;

    invoke-virtual {v3}, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;->a()Lcom/tradplus/ads/mobileads/util/IntegrateUtils$b;

    move-result-object v3

    invoke-virtual {v3}, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$b;->a()Ljava/lang/String;

    move-result-object v3

    const-string v4, "@"

    invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    aget-object v4, v3, v1

    invoke-virtual {v0, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v4
    :try_end_4b
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_4b} :catch_c7

    const-string v5, ",className :"

    const-string v6, "ImportSDK :"

    const/4 v7, 0x1

    if-eqz v4, :cond_8a

    :try_start_52
    invoke-static {}, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->a()Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;

    invoke-virtual {v4}, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;->b()Z

    move-result v4

    if-nez v4, :cond_8a

    invoke-static {}, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->a()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;

    invoke-virtual {v1, v7}, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;->a(Z)V

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v3, "setHasTP i : "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :goto_82
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v6, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_11

    :cond_8a
    aget-object v3, v3, v7

    invoke-virtual {v0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_c3

    invoke-static {}, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->a()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;

    invoke-virtual {v3}, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;->c()Z

    move-result v3

    if-nez v3, :cond_c3

    invoke-static {}, Lcom/tradplus/ads/mobileads/util/ImportSDKUtil;->a()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;

    invoke-virtual {v1, v7}, Lcom/tradplus/ads/mobileads/util/IntegrateUtils$a;->b(Z)V

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v3, "setHasNW i : "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_c2
    .catch Ljava/lang/Exception; {:try_start_52 .. :try_end_c2} :catch_c7

    goto :goto_82

    :cond_c3
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_23

    :catch_c7
    :cond_c7
    return-void
.end method