TradPlusNative.smali
.class public Lcom/tradplus/ads/nativeads/TradPlusNative;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
}
.end annotation
# static fields
.field static final a:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
# instance fields
.field b:Lcom/tradplus/ads/nativeads/AdRendererRegistry;
.field private final c:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Landroid/content/Context;",
">;"
}
.end annotation
.end field
.field private final d:Ljava/lang/String;
.field private e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
.field private f:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private g:Lcom/tradplus/ads/mobileads/TradPlusWebViewAdUrlGenerator;
.field private final h:Lcom/tradplus/ads/network/FSAdRequest$Listener;
.field private i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
.field private j:Lcom/tradplus/ads/network/FSAdRequest;
.field private k:I
.field private l:Ljava/lang/Integer;
.field private m:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/tradplus/ads/network/response/ConfigResponse$WaterfallBean;",
">;"
}
.end annotation
.end field
.field private n:Lcom/tradplus/ads/network/response/ConfigResponse;
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Lcom/tradplus/ads/nativeads/TradPlusNative$1;
invoke-direct {v0}, Lcom/tradplus/ads/nativeads/TradPlusNative$1;-><init>()V
sput-object v0, Lcom/tradplus/ads/nativeads/TradPlusNative;->a:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Lcom/tradplus/ads/nativeads/AdRendererRegistry;Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;)V
.registers 6
.annotation build Lcom/tradplus/ads/common/VisibleForTesting;
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/TreeMap;
invoke-direct {v0}, Ljava/util/TreeMap;-><init>()V
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->f:Ljava/util/Map;
const-string v0, "context may not be null."
invoke-static {p1, v0}, Lcom/tradplus/ads/common/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "AdUnitId may not be null."
invoke-static {p2, v0}, Lcom/tradplus/ads/common/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "AdRendererRegistry may not be null."
invoke-static {p3, v0}, Lcom/tradplus/ads/common/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "MoPubNativeNetworkListener may not be null."
invoke-static {p4, v0}, Lcom/tradplus/ads/common/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
iput-object p2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->d:Ljava/lang/String;
new-instance p1, Lcom/tradplus/ads/nativeads/TradPlusNative$2;
invoke-direct {p1, p0}, Lcom/tradplus/ads/nativeads/TradPlusNative$2;-><init>(Lcom/tradplus/ads/nativeads/TradPlusNative;)V
iput-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->h:Lcom/tradplus/ads/network/FSAdRequest$Listener;
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
iput-object p4, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
iput-object p3, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->b:Lcom/tradplus/ads/nativeads/AdRendererRegistry;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;)V
.registers 5
new-instance v0, Lcom/tradplus/ads/nativeads/AdRendererRegistry;
invoke-direct {v0}, Lcom/tradplus/ads/nativeads/AdRendererRegistry;-><init>()V
invoke-direct {p0, p1, p2, v0, p3}, Lcom/tradplus/ads/nativeads/TradPlusNative;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/tradplus/ads/nativeads/AdRendererRegistry;Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;)V
return-void
.end method
.method static synthetic a(Lcom/tradplus/ads/nativeads/TradPlusNative;)Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
.registers 1
iget-object p0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
return-object p0
.end method
.method static synthetic a(Lcom/tradplus/ads/nativeads/TradPlusNative;Lcom/tradplus/ads/volley/VolleyError;)V
.registers 2
invoke-direct {p0, p1}, Lcom/tradplus/ads/nativeads/TradPlusNative;->b(Lcom/tradplus/ads/volley/VolleyError;)V
return-void
.end method
.method static synthetic a(Lcom/tradplus/ads/nativeads/TradPlusNative;ZLcom/tradplus/ads/network/response/ConfigResponse;)V
.registers 3
invoke-direct {p0, p1, p2}, Lcom/tradplus/ads/nativeads/TradPlusNative;->a(ZLcom/tradplus/ads/network/response/ConfigResponse;)V
return-void
.end method
.method private a(Ljava/lang/Integer;)V
.registers 2
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
if-nez p1, :cond_9
return-void
:cond_9
invoke-direct {p0}, Lcom/tradplus/ads/nativeads/TradPlusNative;->e()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tradplus/ads/nativeads/TradPlusNative;->a(Ljava/lang/String;)V
return-void
.end method
.method private a(ZLcom/tradplus/ads/network/response/ConfigResponse;)V
.registers 11
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->n:Lcom/tradplus/ads/network/response/ConfigResponse;
const-string v1, "2"
const-string v2, ""
const-string v3, "1"
if-eqz v0, :cond_ca
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/RequestUtils;
move-result-object v5
iget-object v6, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {v6}, Lcom/tradplus/ads/pushcenter/reqeust/BaseRequest;->getCreateTime()J
move-result-wide v6
invoke-virtual {v5, v6, v7}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->countRuntime(J)J
move-result-wide v5
invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setRt(Ljava/lang/String;)V
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {v0, v3}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setEc(Ljava/lang/String;)V
if-eqz p1, :cond_39
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {p1, v1}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setCf(Ljava/lang/String;)V
goto :goto_3e
:cond_39
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {p1, v3}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setCf(Ljava/lang/String;)V
:goto_3e
invoke-virtual {p2}, Lcom/tradplus/ads/network/response/ConfigResponse;->getCode()Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_62
invoke-virtual {p2}, Lcom/tradplus/ads/network/response/ConfigResponse;->getCode()Ljava/lang/String;
move-result-object p1
const-string v0, "0"
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_59
invoke-static {}, Lcom/tradplus/ads/common/util/CustomLogUtils;->getInstance()Lcom/tradplus/ads/common/util/CustomLogUtils;
move-result-object p1
sget-object v0, Lcom/tradplus/ads/common/util/CustomLogUtils$TradPlusLog;->APPID_MATCH_ADUNITAD:Lcom/tradplus/ads/common/util/CustomLogUtils$TradPlusLog;
invoke-virtual {p1, v0}, Lcom/tradplus/ads/common/util/CustomLogUtils;->log(Lcom/tradplus/ads/common/util/CustomLogUtils$TradPlusLog;)V
:cond_59
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {p2}, Lcom/tradplus/ads/network/response/ConfigResponse;->getCode()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setSc(Ljava/lang/String;)V
:cond_62
invoke-static {}, Lcom/tradplus/ads/pushcenter/PushCenter;->getInstance()Lcom/tradplus/ads/pushcenter/PushCenter;
move-result-object p1
iget-object p2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/content/Context;
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
sget-object v1, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->EV_TRADPLUS:Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;
invoke-virtual {v1}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->getValue()I
move-result v1
invoke-virtual {p1, p2, v0, v1}, Lcom/tradplus/ads/pushcenter/PushCenter;->sendMessageToCenter(Landroid/content/Context;Ljava/lang/Object;I)V
:try_start_79
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->n:Lcom/tradplus/ads/network/response/ConfigResponse;
if-eqz p1, :cond_120
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->n:Lcom/tradplus/ads/network/response/ConfigResponse;
invoke-virtual {p1}, Lcom/tradplus/ads/network/response/ConfigResponse;->getStatus()I
move-result p1
if-nez p1, :cond_120
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->n:Lcom/tradplus/ads/network/response/ConfigResponse;
invoke-virtual {p1}, Lcom/tradplus/ads/network/response/ConfigResponse;->getCacheNum()I
move-result p1
iput p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->k:I
invoke-static {}, Lcom/tradplus/ads/common/util/FrequencyUtils;->getInstance()Lcom/tradplus/ads/common/util/FrequencyUtils;
move-result-object p1
iget-object p2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/content/Context;
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->n:Lcom/tradplus/ads/network/response/ConfigResponse;
invoke-virtual {v0}, Lcom/tradplus/ads/network/response/ConfigResponse;->getFrequency()Lcom/tradplus/ads/network/response/ConfigResponse$FrequencyBean;
move-result-object v0
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->d:Ljava/lang/String;
sget-object v2, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->EV_TRADPLUS:Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;
invoke-virtual {v2}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->getValue()I
move-result v2
invoke-virtual {p1, p2, v0, v1, v2}, Lcom/tradplus/ads/common/util/FrequencyUtils;->saveFrequency(Landroid/content/Context;Lcom/tradplus/ads/network/response/ConfigResponse$FrequencyBean;Ljava/lang/String;I)V
invoke-static {}, Lcom/tradplus/ads/common/util/FrequencyUtils;->getInstance()Lcom/tradplus/ads/common/util/FrequencyUtils;
move-result-object p1
iget-object p2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/content/Context;
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->d:Ljava/lang/String;
sget-object v1, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->EV_TRADPLUS:Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;
invoke-virtual {v1}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->getValue()I
move-result v1
invoke-virtual {p1, p2, v0, v1}, Lcom/tradplus/ads/common/util/FrequencyUtils;->saveFrequencyLoadTime(Landroid/content/Context;Ljava/lang/String;I)V
invoke-virtual {p0}, Lcom/tradplus/ads/nativeads/TradPlusNative;->a()V
:try_end_c4
.catch Ljava/lang/Exception; {:try_start_79 .. :try_end_c4} :catch_c5
goto :goto_120
:catch_c5
move-exception p1
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_120
:cond_ca
iget-object p2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/RequestUtils;
move-result-object v4
iget-object v5, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {v5}, Lcom/tradplus/ads/pushcenter/reqeust/BaseRequest;->getCreateTime()J
move-result-wide v5
invoke-virtual {v4, v5, v6}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->countRuntime(J)J
move-result-wide v4
invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setRt(Ljava/lang/String;)V
if-eqz p1, :cond_f4
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {p1, v1}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setCf(Ljava/lang/String;)V
goto :goto_f9
:cond_f4
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {p1, v3}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setCf(Ljava/lang/String;)V
:goto_f9
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
const-string p2, "10"
invoke-virtual {p1, p2}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setEc(Ljava/lang/String;)V
invoke-static {}, Lcom/tradplus/ads/pushcenter/PushCenter;->getInstance()Lcom/tradplus/ads/pushcenter/PushCenter;
move-result-object p1
iget-object p2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/content/Context;
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
sget-object v1, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->EV_TRADPLUS:Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;
invoke-virtual {v1}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->getValue()I
move-result v1
invoke-virtual {p1, p2, v0, v1}, Lcom/tradplus/ads/pushcenter/PushCenter;->sendMessageToCenter(Landroid/content/Context;Ljava/lang/Object;I)V
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
if-eqz p1, :cond_120
sget-object p2, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->NO_CONFIG:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;
invoke-interface {p1, p2}, Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;->onNativeFail(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V
:cond_120
:goto_120
return-void
.end method
.method private a(Landroid/content/Context;)Z
.registers 4
invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;
move-result-object v0
const-string v1, "mounted"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_16
const-string v0, "android.permission.WRITE_EXTERNAL_STORAGE"
invoke-static {p1, v0}, Lcom/tradplus/ads/common/util/DeviceUtils;->isPermissionGranted(Landroid/content/Context;Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_16
const/4 p1, 0x1
goto :goto_17
:cond_16
const/4 p1, 0x0
:goto_17
return p1
.end method
.method private b(Lcom/tradplus/ads/volley/VolleyError;)V
.registers 7
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/RequestUtils;
move-result-object v2
iget-object v3, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {v3}, Lcom/tradplus/ads/pushcenter/reqeust/BaseRequest;->getCreateTime()J
move-result-wide v3
invoke-virtual {v2, v3, v4}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->countRuntime(J)J
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v2, ""
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setRt(Ljava/lang/String;)V
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
const-string v1, "1"
invoke-virtual {v0, v1}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setCf(Ljava/lang/String;)V
iget-object v0, p1, Lcom/tradplus/ads/volley/VolleyError;->networkResponse:Lcom/tradplus/ads/volley/NetworkResponse;
if-eqz v0, :cond_3e
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/RequestUtils;
move-result-object v1
iget-object v2, p1, Lcom/tradplus/ads/volley/VolleyError;->networkResponse:Lcom/tradplus/ads/volley/NetworkResponse;
iget v2, v2, Lcom/tradplus/ads/volley/NetworkResponse;->statusCode:I
invoke-virtual {v1, v2}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->getNetWorkStatus(I)Ljava/lang/String;
move-result-object v1
goto :goto_42
:cond_3e
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
const-string v1, "7"
:goto_42
invoke-virtual {v0, v1}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setEc(Ljava/lang/String;)V
invoke-static {}, Lcom/tradplus/ads/pushcenter/PushCenter;->getInstance()Lcom/tradplus/ads/pushcenter/PushCenter;
move-result-object v0
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/content/Context;
iget-object v2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
sget-object v3, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->EV_TRADPLUS:Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;
invoke-virtual {v3}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$Type;->getValue()I
move-result v3
invoke-virtual {v0, v1, v2, v3}, Lcom/tradplus/ads/pushcenter/PushCenter;->sendMessageToCenter(Landroid/content/Context;Ljava/lang/Object;I)V
:try_start_5c
invoke-virtual {p0, p1}, Lcom/tradplus/ads/nativeads/TradPlusNative;->a(Lcom/tradplus/ads/volley/VolleyError;)V
:try_end_5f
.catch Ljava/lang/Exception; {:try_start_5c .. :try_end_5f} :catch_60
goto :goto_63
:catch_60
invoke-virtual {p0, p1}, Lcom/tradplus/ads/nativeads/TradPlusNative;->a(Lcom/tradplus/ads/volley/VolleyError;)V
:goto_63
return-void
.end method
.method private d()V
.registers 5
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
const-string v2, "passScan"
const/4 v3, 0x1
if-le v1, v3, :cond_13
const-string v1, "pass"
goto :goto_15
:cond_13
const-string v1, "keep"
:goto_15
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method private e()Ljava/lang/String;
.registers 4
new-instance v0, Lcom/tradplus/ads/mobileads/TradPlusWebViewAdUrlGenerator;
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/content/Context;
iget-object v2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/content/Context;
invoke-direct {p0, v2}, Lcom/tradplus/ads/nativeads/TradPlusNative;->a(Landroid/content/Context;)Z
move-result v2
invoke-direct {v0, v1, v2}, Lcom/tradplus/ads/mobileads/TradPlusWebViewAdUrlGenerator;-><init>(Landroid/content/Context;Z)V
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->g:Lcom/tradplus/ads/mobileads/TradPlusWebViewAdUrlGenerator;
invoke-virtual {p0}, Lcom/tradplus/ads/nativeads/TradPlusNative;->c()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_35
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "TradPlus Native Loading ad from: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lcom/tradplus/ads/common/util/LogUtil;->ownShow(Ljava/lang/String;)V
:cond_35
return-object v0
.end method
# virtual methods
.method a()V
.registers 4
.annotation build Lcom/tradplus/ads/common/VisibleForTesting;
.end annotation
invoke-virtual {p0}, Lcom/tradplus/ads/nativeads/TradPlusNative;->b()V
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
const/4 v0, 0x0
:goto_9
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->n:Lcom/tradplus/ads/network/response/ConfigResponse;
invoke-virtual {v1}, Lcom/tradplus/ads/network/response/ConfigResponse;->getWaterfall()Ljava/util/ArrayList;
move-result-object v1
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_27
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
iget-object v2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->n:Lcom/tradplus/ads/network/response/ConfigResponse;
invoke-virtual {v2}, Lcom/tradplus/ads/network/response/ConfigResponse;->getWaterfall()Ljava/util/ArrayList;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v0, v0, 0x1
goto :goto_9
:cond_27
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
const/4 v1, 0x1
if-ge v0, v1, :cond_31
return-void
:cond_31
iget v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->k:I
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_3e
iget v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->k:I
goto :goto_44
:cond_3e
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
:goto_44
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->l:Ljava/lang/Integer;
invoke-direct {p0}, Lcom/tradplus/ads/nativeads/TradPlusNative;->d()V
return-void
.end method
.method a(Lcom/tradplus/ads/volley/VolleyError;)V
.registers 4
.annotation build Lcom/tradplus/ads/common/VisibleForTesting;
.end annotation
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Native ad request failed."
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/tradplus/ads/common/util/LogUtil;->show(Ljava/lang/String;)V
iget-object p1, p1, Lcom/tradplus/ads/volley/VolleyError;->networkResponse:Lcom/tradplus/ads/volley/NetworkResponse;
if-eqz p1, :cond_27
iget v0, p1, Lcom/tradplus/ads/volley/NetworkResponse;->statusCode:I
const/16 v1, 0x1f4
if-lt v0, v1, :cond_27
const/16 v1, 0x258
if-ge v0, v1, :cond_27
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
sget-object v0, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->SERVER_ERROR_RESPONSE_CODE:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;
goto :goto_40
:cond_27
if-nez p1, :cond_3c
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/content/Context;
invoke-static {p1}, Lcom/tradplus/ads/common/util/DeviceUtils;->isNetworkAvailable(Landroid/content/Context;)Z
move-result p1
if-nez p1, :cond_3c
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
sget-object v0, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->CONNECTION_ERROR:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;
goto :goto_40
:cond_3c
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
sget-object v0, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->UNSPECIFIED:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;
:goto_40
invoke-interface {p1, v0}, Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;->onNativeFail(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V
return-void
.end method
.method a(Ljava/lang/String;)V
.registers 6
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
if-nez p1, :cond_9
return-void
:cond_9
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/SendMessageUtil;->getInstance()Lcom/tradplus/ads/pushcenter/utils/SendMessageUtil;
move-result-object p1
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
iget-object v1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->d:Ljava/lang/String;
const/4 v2, 0x1
invoke-virtual {p1, v0, v1, v2}, Lcom/tradplus/ads/pushcenter/utils/SendMessageUtil;->sendLoadAdconfStart(Landroid/content/Context;Ljava/lang/String;Z)V
new-instance p1, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
sget-object v1, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$PushStatus;->EV_PRE_LOAD_ADCONF:Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$PushStatus;
invoke-virtual {v1}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils$PushStatus;->getValue()Ljava/lang/String;
move-result-object v1
invoke-direct {p1, v0, v1}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;-><init>(Landroid/content/Context;Ljava/lang/String;)V
iput-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/RequestUtils;
move-result-object v1
iget-object v2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
invoke-virtual {v2}, Lcom/tradplus/ads/pushcenter/reqeust/BaseRequest;->getCreateTime()J
move-result-wide v2
invoke-virtual {v1, v2, v3}, Lcom/tradplus/ads/pushcenter/utils/RequestUtils;->countRuntime(J)J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v1, ""
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;->setRt(Ljava/lang/String;)V
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->i:Lcom/tradplus/ads/pushcenter/reqeust/AdconfRequest;
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->d:Ljava/lang/String;
invoke-virtual {p1, v0}, Lcom/tradplus/ads/pushcenter/reqeust/BaseRequest;->setLuid(Ljava/lang/String;)V
return-void
.end method
.method b()V
.registers 2
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->j:Lcom/tradplus/ads/network/FSAdRequest;
if-eqz v0, :cond_12
invoke-virtual {v0}, Lcom/tradplus/ads/volley/Request;->isCanceled()Z
move-result v0
if-nez v0, :cond_f
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->j:Lcom/tradplus/ads/network/FSAdRequest;
invoke-virtual {v0}, Lcom/tradplus/ads/volley/Request;->cancel()V
:cond_f
const/4 v0, 0x0
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->j:Lcom/tradplus/ads/network/FSAdRequest;
:cond_12
return-void
.end method
.method c()Ljava/lang/String;
.registers 4
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->g:Lcom/tradplus/ads/mobileads/TradPlusWebViewAdUrlGenerator;
const/4 v1, 0x0
if-nez v0, :cond_6
goto :goto_1c
:cond_6
iget-object v2, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->d:Ljava/lang/String;
invoke-virtual {v0, v2}, Lcom/tradplus/ads/common/FSAdUrlGenerator;->withAdUnitId(Ljava/lang/String;)Lcom/tradplus/ads/common/FSAdUrlGenerator;
move-result-object v0
const-string v2, ""
invoke-virtual {v0, v2}, Lcom/tradplus/ads/common/FSAdUrlGenerator;->withKeywords(Ljava/lang/String;)Lcom/tradplus/ads/common/FSAdUrlGenerator;
move-result-object v0
invoke-virtual {v0, v1}, Lcom/tradplus/ads/common/FSAdUrlGenerator;->withLocation(Landroid/location/Location;)Lcom/tradplus/ads/common/FSAdUrlGenerator;
move-result-object v0
const-string v1, "api.tradplusad.com"
invoke-virtual {v0, v1}, Lcom/tradplus/ads/common/BaseUrlGenerator;->generateUrlString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
:goto_1c
return-object v1
.end method
.method public destroy()V
.registers 2
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->clear()V
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->j:Lcom/tradplus/ads/network/FSAdRequest;
if-eqz v0, :cond_f
invoke-virtual {v0}, Lcom/tradplus/ads/volley/Request;->cancel()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->j:Lcom/tradplus/ads/network/FSAdRequest;
:cond_f
sget-object v0, Lcom/tradplus/ads/nativeads/TradPlusNative;->a:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
return-void
.end method
.method public getCustomName()Ljava/lang/String;
.registers 3
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
if-eqz v0, :cond_18
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-lez v0, :cond_18
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tradplus/ads/network/response/ConfigResponse$WaterfallBean;
invoke-virtual {v0}, Lcom/tradplus/ads/network/response/ConfigResponse$WaterfallBean;->getName()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_18
const-string v0, ""
return-object v0
.end method
.method public getPlacementId()Ljava/lang/String;
.registers 2
const-string v0, ""
return-object v0
.end method
.method public getPlacementId(Z)Ljava/lang/String;
.registers 4
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result p1
const-string v0, ""
if-lez p1, :cond_1b
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->m:Ljava/util/ArrayList;
const/4 v1, 0x0
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/tradplus/ads/network/response/ConfigResponse$WaterfallBean;
invoke-virtual {p1}, Lcom/tradplus/ads/network/response/ConfigResponse$WaterfallBean;->getAdsource_placement_id()Ljava/lang/String;
move-result-object p1
if-nez p1, :cond_1a
move-object p1, v0
:cond_1a
return-object p1
:cond_1b
return-object v0
.end method
.method public makeRequest()V
.registers 2
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/tradplus/ads/nativeads/TradPlusNative;->makeRequest(Ljava/lang/Integer;)V
return-void
.end method
.method public makeRequest(Ljava/lang/Integer;)V
.registers 3
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_9
return-void
:cond_9
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->c:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
invoke-static {v0}, Lcom/tradplus/ads/common/util/DeviceUtils;->isNetworkAvailable(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_1f
iget-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->e:Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;
sget-object v0, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->CONNECTION_ERROR:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;
invoke-interface {p1, v0}, Lcom/tradplus/ads/nativeads/TradPlusNative$MoPubNativeNetworkListener;->onNativeFail(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V
return-void
:cond_1f
invoke-direct {p0, p1}, Lcom/tradplus/ads/nativeads/TradPlusNative;->a(Ljava/lang/Integer;)V
return-void
.end method
.method public registerAdRenderer(Lcom/tradplus/ads/nativeads/MoPubAdRenderer;)V
.registers 3
iget-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->b:Lcom/tradplus/ads/nativeads/AdRendererRegistry;
invoke-virtual {v0, p1}, Lcom/tradplus/ads/nativeads/AdRendererRegistry;->registerAdRenderer(Lcom/tradplus/ads/nativeads/MoPubAdRenderer;)V
return-void
.end method
.method public setLocalExtras(Ljava/util/Map;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
if-nez p1, :cond_a
new-instance p1, Ljava/util/TreeMap;
invoke-direct {p1}, Ljava/util/TreeMap;-><init>()V
iput-object p1, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->f:Ljava/util/Map;
goto :goto_11
:cond_a
new-instance v0, Ljava/util/TreeMap;
invoke-direct {v0, p1}, Ljava/util/TreeMap;-><init>(Ljava/util/Map;)V
iput-object v0, p0, Lcom/tradplus/ads/nativeads/TradPlusNative;->f:Ljava/util/Map;
:goto_11
return-void
.end method