.class public final Lcom/vungle/ads/internal/network/VungleApiClient; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/vungle/ads/internal/network/VungleApiClient$Companion;, Lcom/vungle/ads/internal/network/VungleApiClient$GzipRequestInterceptor;, Lcom/vungle/ads/internal/network/VungleApiClient$ConnectionTypeDetail; } .end annotation # static fields .field private static final BASE_URL:Ljava/lang/String; .field public static final Companion:Lcom/vungle/ads/internal/network/VungleApiClient$Companion; .field private static final MANUFACTURER_AMAZON:Ljava/lang/String; = "Amazon" .field private static final TAG:Ljava/lang/String; = "VungleApiClient" .field private static WRAPPER_FRAMEWORK_SELECTED:Lcom/vungle/ads/VungleAds$WrapperFramework; .field private static headerUa:Ljava/lang/String; .field private static final json:Lkotlinx/serialization/json/Json; .field private static final logInterceptors:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set<", "Lokhttp3/Interceptor;", ">;" } .end annotation .end field .field private static final networkInterceptors:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set<", "Lokhttp3/Interceptor;", ">;" } .end annotation .end field # instance fields .field private advertisingInfo:Lcom/vungle/ads/internal/model/AdvertisingInfo; .field private api:Lcom/vungle/ads/internal/network/VungleApi; .field private appBody:Lcom/vungle/ads/internal/model/AppNode; .field private final applicationContext:Landroid/content/Context; .field private baseDeviceInfo:Lcom/vungle/ads/internal/model/DeviceNode; .field private final filePreferences:Lcom/vungle/ads/internal/persistence/FilePreferences; .field private gzipApi:Lcom/vungle/ads/internal/network/VungleApi; .field private isGooglePlayServicesAvailable:Ljava/lang/Boolean; .field private final platform:Lcom/vungle/ads/internal/platform/Platform; .field private responseInterceptor:Lokhttp3/Interceptor; .field private retryAfterDataMap:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Long;", ">;" } .end annotation .end field .field private final signalManager$delegate:Lkotlin/Lazy; .field private uaString:Ljava/lang/String; # direct methods .method public static synthetic $r8$lambda$BNNo0-lI0GApUmxNK-jelRUWMNI(Lcom/vungle/ads/internal/network/VungleApiClient;Lokhttp3/Interceptor$Chain;)Lokhttp3/Response; .locals 0 .line 0 invoke-static {p0, p1}, Lcom/vungle/ads/internal/network/VungleApiClient;->responseInterceptor$lambda-0(Lcom/vungle/ads/internal/network/VungleApiClient;Lokhttp3/Interceptor$Chain;)Lokhttp3/Response; move-result-object p0 return-object p0 .end method .method static constructor ()V .locals 3 new-instance v0, Lcom/vungle/ads/internal/network/VungleApiClient$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lcom/vungle/ads/internal/network/VungleApiClient$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->Companion:Lcom/vungle/ads/internal/network/VungleApiClient$Companion; const-string v2, "https://config.ads.vungle.com/" sput-object v2, Lcom/vungle/ads/internal/network/VungleApiClient;->BASE_URL:Ljava/lang/String; .line 74 invoke-static {v0}, Lcom/vungle/ads/internal/network/VungleApiClient$Companion;->access$defaultHeader(Lcom/vungle/ads/internal/network/VungleApiClient$Companion;)Ljava/lang/String; move-result-object v0 sput-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; .line 76 new-instance v0, Ljava/util/HashSet; invoke-direct {v0}, Ljava/util/HashSet;->()V sput-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->networkInterceptors:Ljava/util/Set; .line 77 new-instance v0, Ljava/util/HashSet; invoke-direct {v0}, Ljava/util/HashSet;->()V sput-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->logInterceptors:Ljava/util/Set; sget-object v0, Lcom/vungle/ads/internal/network/VungleApiClient$Companion$json$1;->INSTANCE:Lcom/vungle/ads/internal/network/VungleApiClient$Companion$json$1; const/4 v2, 0x1 .line 88 invoke-static {v1, v0, v2, v1}, Lkotlinx/serialization/json/JsonKt;->Json$default(Lkotlinx/serialization/json/Json;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/serialization/json/Json; move-result-object v0 sput-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->json:Lkotlinx/serialization/json/Json; return-void .end method .method public constructor (Landroid/content/Context;Lcom/vungle/ads/internal/platform/Platform;Lcom/vungle/ads/internal/persistence/FilePreferences;)V .locals 1 const-string v0, "applicationContext" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "platform" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "filePreferences" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 61 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; iput-object p2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; iput-object p3, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->filePreferences:Lcom/vungle/ads/internal/persistence/FilePreferences; const-string p2, "http.agent" .line 106 invoke-static {p2}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String; move-result-object p2 iput-object p2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->uaString:Ljava/lang/String; .line 110 sget-object p2, Lcom/vungle/ads/ServiceLocator;->Companion:Lcom/vungle/ads/ServiceLocator$Companion; .line 182 sget-object p2, Lkotlin/LazyThreadSafetyMode;->SYNCHRONIZED:Lkotlin/LazyThreadSafetyMode; new-instance p3, Lcom/vungle/ads/internal/network/VungleApiClient$special$$inlined$inject$1; invoke-direct {p3, p1}, Lcom/vungle/ads/internal/network/VungleApiClient$special$$inlined$inject$1;->(Landroid/content/Context;)V invoke-static {p2, p3}, Lkotlin/LazyKt;->lazy(Lkotlin/LazyThreadSafetyMode;Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy; move-result-object p1 iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->signalManager$delegate:Lkotlin/Lazy; .line 113 new-instance p1, Ljava/util/concurrent/ConcurrentHashMap; invoke-direct {p1}, Ljava/util/concurrent/ConcurrentHashMap;->()V iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->retryAfterDataMap:Ljava/util/Map; .line 117 new-instance p1, Lcom/vungle/ads/internal/network/VungleApiClient$$ExternalSyntheticLambda0; invoke-direct {p1, p0}, Lcom/vungle/ads/internal/network/VungleApiClient$$ExternalSyntheticLambda0;->(Lcom/vungle/ads/internal/network/VungleApiClient;)V iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->responseInterceptor:Lokhttp3/Interceptor; .line 242 new-instance p1, Lokhttp3/OkHttpClient$Builder; invoke-direct {p1}, Lokhttp3/OkHttpClient$Builder;->()V iget-object p2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->responseInterceptor:Lokhttp3/Interceptor; .line 243 invoke-virtual {p1, p2}, Lokhttp3/OkHttpClient$Builder;->addInterceptor(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder; move-result-object p1 .line 244 new-instance p2, Lcom/vungle/ads/internal/network/VungleApiClient$builder$1; invoke-direct {p2}, Lcom/vungle/ads/internal/network/VungleApiClient$builder$1;->()V invoke-virtual {p1, p2}, Lokhttp3/OkHttpClient$Builder;->proxySelector(Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder; move-result-object p1 .line 268 invoke-virtual {p1}, Lokhttp3/OkHttpClient$Builder;->build()Lokhttp3/OkHttpClient; move-result-object p2 .line 269 new-instance p3, Lcom/vungle/ads/internal/network/VungleApiClient$GzipRequestInterceptor; invoke-direct {p3}, Lcom/vungle/ads/internal/network/VungleApiClient$GzipRequestInterceptor;->()V invoke-virtual {p1, p3}, Lokhttp3/OkHttpClient$Builder;->addInterceptor(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder; move-result-object p1 invoke-virtual {p1}, Lokhttp3/OkHttpClient$Builder;->build()Lokhttp3/OkHttpClient; move-result-object p1 .line 271 new-instance p3, Lcom/vungle/ads/internal/network/VungleApiImpl; invoke-direct {p3, p2}, Lcom/vungle/ads/internal/network/VungleApiImpl;->(Lokhttp3/Call$Factory;)V iput-object p3, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; .line 272 new-instance p2, Lcom/vungle/ads/internal/network/VungleApiImpl; invoke-direct {p2, p1}, Lcom/vungle/ads/internal/network/VungleApiImpl;->(Lokhttp3/Call$Factory;)V iput-object p2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->gzipApi:Lcom/vungle/ads/internal/network/VungleApi; return-void .end method .method public static final synthetic access$getBASE_URL$cp()Ljava/lang/String; .locals 1 sget-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->BASE_URL:Ljava/lang/String; return-object v0 .end method .method public static final synthetic access$getHeaderUa$cp()Ljava/lang/String; .locals 1 sget-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; return-object v0 .end method .method public static final synthetic access$getWRAPPER_FRAMEWORK_SELECTED$cp()Lcom/vungle/ads/VungleAds$WrapperFramework; .locals 1 sget-object v0, Lcom/vungle/ads/internal/network/VungleApiClient;->WRAPPER_FRAMEWORK_SELECTED:Lcom/vungle/ads/VungleAds$WrapperFramework; return-object v0 .end method .method public static final synthetic access$setHeaderUa$cp(Ljava/lang/String;)V .locals 0 sput-object p0, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; return-void .end method .method public static final synthetic access$setUaString$p(Lcom/vungle/ads/internal/network/VungleApiClient;Ljava/lang/String;)V .locals 0 .line 61 iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->uaString:Ljava/lang/String; return-void .end method .method public static final synthetic access$setWRAPPER_FRAMEWORK_SELECTED$cp(Lcom/vungle/ads/VungleAds$WrapperFramework;)V .locals 0 sput-object p0, Lcom/vungle/ads/internal/network/VungleApiClient;->WRAPPER_FRAMEWORK_SELECTED:Lcom/vungle/ads/VungleAds$WrapperFramework; return-void .end method .method private final bodyToString(Lokhttp3/RequestBody;)Ljava/lang/String; .locals 2 const-string v0, "" .line 172 :try_start_0 new-instance v1, Lokio/Buffer; invoke-direct {v1}, Lokio/Buffer;->()V if-eqz p1, :cond_0 .line 174 invoke-virtual {p1, v1}, Lokhttp3/RequestBody;->writeTo(Lokio/BufferedSink;)V .line 176 invoke-virtual {v1}, Lokio/Buffer;->readUtf8()Ljava/lang/String; move-result-object v0 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 nop :catch_0 :cond_0 return-object v0 .end method .method private final defaultErrorResponse(Lokhttp3/Request;)Lokhttp3/Response; .locals 3 .line 152 new-instance v0, Lokhttp3/Response$Builder; invoke-direct {v0}, Lokhttp3/Response$Builder;->()V .line 153 invoke-virtual {v0, p1}, Lokhttp3/Response$Builder;->request(Lokhttp3/Request;)Lokhttp3/Response$Builder; move-result-object p1 const/16 v0, 0x1f4 .line 154 invoke-virtual {p1, v0}, Lokhttp3/Response$Builder;->code(I)Lokhttp3/Response$Builder; move-result-object p1 .line 155 sget-object v0, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol; invoke-virtual {p1, v0}, Lokhttp3/Response$Builder;->protocol(Lokhttp3/Protocol;)Lokhttp3/Response$Builder; move-result-object p1 const-string v0, "Server is busy" .line 156 invoke-virtual {p1, v0}, Lokhttp3/Response$Builder;->message(Ljava/lang/String;)Lokhttp3/Response$Builder; move-result-object p1 .line 157 sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion; sget-object v1, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion; const-string v2, "application/json; charset=utf-8" invoke-virtual {v1, v2}, Lokhttp3/MediaType$Companion;->parse(Ljava/lang/String;)Lokhttp3/MediaType; move-result-object v1 const-string v2, "{\"Error\":\"Server is busy\"}" invoke-virtual {v0, v2, v1}, Lokhttp3/ResponseBody$Companion;->create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody; move-result-object v0 invoke-virtual {p1, v0}, Lokhttp3/Response$Builder;->body(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder; move-result-object p1 .line 158 invoke-virtual {p1}, Lokhttp3/Response$Builder;->build()Lokhttp3/Response; move-result-object p1 return-object p1 .end method .method public static synthetic getAppBody$vungle_ads_release$annotations()V .locals 0 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation return-void .end method .method private final getBasicDeviceBody(Landroid/content/Context;)Lcom/vungle/ads/internal/model/DeviceNode; .locals 18 move-object/from16 v1, p0 move-object/from16 v0, p1 .line 595 new-instance v2, Landroid/util/DisplayMetrics; invoke-direct {v2}, Landroid/util/DisplayMetrics;->()V const-string v3, "window" .line 596 invoke-virtual {v0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v3 const-string v4, "null cannot be cast to non-null type android.view.WindowManager" invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast v3, Landroid/view/WindowManager; .line 597 invoke-interface {v3}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display; move-result-object v3 if-eqz v3, :cond_0 invoke-virtual {v3, v2}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V .line 598 :cond_0 new-instance v3, Lcom/vungle/ads/internal/model/DeviceNode; .line 599 sget-object v5, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String; const-string v4, "MANUFACTURER" invoke-static {v5, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V sget-object v6, Landroid/os/Build;->MODEL:Ljava/lang/String; const-string v4, "MODEL" invoke-static {v6, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V sget-object v7, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String; const-string v4, "RELEASE" invoke-static {v7, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V .line 600 sget-object v4, Lcom/vungle/ads/internal/platform/AndroidPlatform;->Companion:Lcom/vungle/ads/internal/platform/AndroidPlatform$Companion; invoke-virtual {v4, v0}, Lcom/vungle/ads/internal/platform/AndroidPlatform$Companion;->getCarrierName$vungle_ads_release(Landroid/content/Context;)Ljava/lang/String; move-result-object v8 const-string v0, "Amazon" .line 601 invoke-static {v0, v5}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 const-string v0, "amazon" :goto_0 move-object v9, v0 goto :goto_1 :cond_1 const-string v0, "android" goto :goto_0 :goto_1 iget v10, v2, Landroid/util/DisplayMetrics;->widthPixels:I iget v11, v2, Landroid/util/DisplayMetrics;->heightPixels:I iget-object v12, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->uaString:Ljava/lang/String; const/4 v13, 0x0 const/4 v14, 0x0 const/4 v15, 0x0 const/16 v16, 0x700 const/16 v17, 0x0 move-object v4, v3 .line 598 invoke-direct/range {v4 .. v17}, Lcom/vungle/ads/internal/model/DeviceNode;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;ILkotlin/jvm/internal/DefaultConstructorMarker;)V :try_start_0 iget-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 607 invoke-interface {v0}, Lcom/vungle/ads/internal/platform/Platform;->getUserAgent()Ljava/lang/String; move-result-object v0 iput-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->uaString:Ljava/lang/String; .line 608 invoke-virtual {v3, v0}, Lcom/vungle/ads/internal/model/DeviceNode;->setUa(Ljava/lang/String;)V .line 611 invoke-direct/range {p0 .. p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->initUserAgentLazy()V iget-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->advertisingInfo:Lcom/vungle/ads/internal/model/AdvertisingInfo; if-nez v0, :cond_2 iget-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 612 invoke-interface {v0}, Lcom/vungle/ads/internal/platform/Platform;->getAdvertisingInfo()Lcom/vungle/ads/internal/model/AdvertisingInfo; move-result-object v0 goto :goto_2 :catch_0 move-exception v0 goto :goto_3 :cond_2 :goto_2 iput-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->advertisingInfo:Lcom/vungle/ads/internal/model/AdvertisingInfo; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_4 .line 615 :goto_3 sget-object v2, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; .line 617 new-instance v4, Ljava/lang/StringBuilder; invoke-direct {v4}, Ljava/lang/StringBuilder;->()V const-string v5, "Cannot Get UserAgent. Setting Default Device UserAgent." invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String; move-result-object v0 invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 const-string v4, "VungleApiClient" .line 615 invoke-virtual {v2, v4, v0}, Lcom/vungle/ads/internal/util/Logger$Companion;->e(Ljava/lang/String;Ljava/lang/String;)I :goto_4 return-object v3 .end method .method private final getConnectionType()Ljava/lang/String; .locals 2 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; const-string v1, "android.permission.ACCESS_NETWORK_STATE" .line 896 invoke-static {v0, v1}, Landroidx/core/content/PermissionChecker;->checkCallingOrSelfPermission(Landroid/content/Context;Ljava/lang/String;)I move-result v0 if-nez v0, :cond_5 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; const-string v1, "connectivity" .line 902 invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 const-string v1, "null cannot be cast to non-null type android.net.ConnectivityManager" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast v0, Landroid/net/ConnectivityManager; .line 903 invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo; move-result-object v0 if-eqz v0, :cond_4 .line 905 invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I move-result v0 if-eqz v0, :cond_3 const/4 v1, 0x1 if-eq v0, v1, :cond_2 const/4 v1, 0x6 if-eq v0, v1, :cond_2 const/4 v1, 0x7 if-eq v0, v1, :cond_1 const/16 v1, 0x9 if-eq v0, v1, :cond_0 const-string v0, "UNKNOWN" goto :goto_0 :cond_0 const-string v0, "ETHERNET" goto :goto_0 :cond_1 const-string v0, "BLUETOOTH" goto :goto_0 :cond_2 const-string v0, "WIFI" goto :goto_0 :cond_3 const-string v0, "MOBILE" goto :goto_0 :cond_4 const-string v0, "NONE" :goto_0 return-object v0 :cond_5 const/4 v0, 0x0 return-object v0 .end method .method private final getDeviceBody()Lcom/vungle/ads/internal/model/DeviceNode; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/IllegalStateException; } .end annotation const/4 v0, 0x0 .line 636 invoke-virtual {p0, v0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getDeviceBody$vungle_ads_release(Z)Lcom/vungle/ads/internal/model/DeviceNode; move-result-object v0 return-object v0 .end method .method private final getExtBody(Z)Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt; .locals 5 .line 819 sget-object v0, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager; invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->getConfigExtension()Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_0 .line 820 invoke-interface {v0}, Ljava/lang/CharSequence;->length()I move-result v1 if-nez v1, :cond_0 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->filePreferences:Lcom/vungle/ads/internal/persistence/FilePreferences; const-string v1, "config_extension" .line 821 invoke-virtual {v0, v1}, Lcom/vungle/ads/internal/persistence/FilePreferences;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 :cond_0 const/4 v1, 0x0 if-nez p1, :cond_1 :goto_0 move-object p1, v1 goto :goto_1 .line 825 :cond_1 :try_start_0 invoke-direct {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getSignalManager()Lcom/vungle/ads/internal/signals/SignalManager; move-result-object p1 invoke-virtual {p1}, Lcom/vungle/ads/internal/signals/SignalManager;->generateSignals()Ljava/lang/String; move-result-object p1 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_1 :catch_0 move-exception p1 .line 827 sget-object v2, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3}, Ljava/lang/StringBuilder;->()V const-string v4, "Couldn\'t convert signals for sending. Error: " invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object p1 invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 const-string v3, "VungleApiClient" invoke-virtual {v2, v3, p1}, Lcom/vungle/ads/internal/util/Logger$Companion;->e(Ljava/lang/String;Ljava/lang/String;)I goto :goto_0 :goto_1 if-eqz v0, :cond_2 .line 831 invoke-interface {v0}, Ljava/lang/CharSequence;->length()I move-result v2 if-nez v2, :cond_3 :cond_2 if-eqz p1, :cond_4 invoke-interface {p1}, Ljava/lang/CharSequence;->length()I move-result v2 if-nez v2, :cond_3 goto :goto_2 .line 835 :cond_3 new-instance v1, Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt; sget-object v2, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager; invoke-virtual {v2}, Lcom/vungle/ads/internal/ConfigManager;->configLastValidatedTimestamp()J move-result-wide v2 invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; move-result-object v2 invoke-direct {v1, v0, p1, v2}, Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;)V :cond_4 :goto_2 return-object v1 .end method .method public static synthetic getExtBody$default(Lcom/vungle/ads/internal/network/VungleApiClient;ZILjava/lang/Object;)Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 const/4 p1, 0x0 .line 818 :cond_0 invoke-direct {p0, p1}, Lcom/vungle/ads/internal/network/VungleApiClient;->getExtBody(Z)Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt; move-result-object p0 return-object p0 .end method .method public static synthetic getGzipApi$vungle_ads_release$annotations()V .locals 0 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation return-void .end method .method private final getPlacementID(Lokhttp3/RequestBody;)Ljava/lang/String; .locals 4 const-string v0, "" :try_start_0 sget-object v1, Lcom/vungle/ads/internal/network/VungleApiClient;->json:Lkotlinx/serialization/json/Json; .line 163 check-cast v1, Lkotlinx/serialization/StringFormat; invoke-direct {p0, p1}, Lcom/vungle/ads/internal/network/VungleApiClient;->bodyToString(Lokhttp3/RequestBody;)Ljava/lang/String; move-result-object p1 .line 943 invoke-interface {v1}, Lkotlinx/serialization/StringFormat;->getSerializersModule()Lkotlinx/serialization/modules/SerializersModule; move-result-object v2 const-class v3, Lcom/vungle/ads/internal/model/CommonRequestBody; .line 944 invoke-static {v3}, Lkotlin/jvm/internal/Reflection;->typeOf(Ljava/lang/Class;)Lkotlin/reflect/KType; move-result-object v3 invoke-static {v2, v3}, Lkotlinx/serialization/SerializersKt;->serializer(Lkotlinx/serialization/modules/SerializersModule;Lkotlin/reflect/KType;)Lkotlinx/serialization/KSerializer; move-result-object v2 const-string v3, "null cannot be cast to non-null type kotlinx.serialization.KSerializer" .line 945 invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 944 check-cast v2, Lkotlinx/serialization/DeserializationStrategy; .line 943 invoke-interface {v1, v2, p1}, Lkotlinx/serialization/StringFormat;->decodeFromString(Lkotlinx/serialization/DeserializationStrategy;Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 .line 163 check-cast p1, Lcom/vungle/ads/internal/model/CommonRequestBody; .line 164 invoke-virtual {p1}, Lcom/vungle/ads/internal/model/CommonRequestBody;->getRequest()Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam; move-result-object p1 if-eqz p1, :cond_1 invoke-virtual {p1}, Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;->getPlacements()Ljava/util/List; move-result-object p1 if-eqz p1, :cond_1 const/4 v1, 0x0 invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/String; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 if-nez p1, :cond_0 goto :goto_0 :cond_0 move-object v0, p1 :catch_0 :cond_1 :goto_0 return-object v0 .end method .method public static synthetic getResponseInterceptor$vungle_ads_release$annotations()V .locals 0 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation return-void .end method .method public static synthetic getRetryAfterDataMap$vungle_ads_release$annotations()V .locals 0 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation return-void .end method .method private final getSignalManager()Lcom/vungle/ads/internal/signals/SignalManager; .locals 1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->signalManager$delegate:Lkotlin/Lazy; .line 110 invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/vungle/ads/internal/signals/SignalManager; return-object v0 .end method .method private final getUserBody(Z)Lcom/vungle/ads/internal/model/CommonRequestBody$User; .locals 9 .line 786 new-instance v8, Lcom/vungle/ads/internal/model/CommonRequestBody$User; const/4 v1, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 const/16 v6, 0x1f const/4 v7, 0x0 move-object v0, v8 invoke-direct/range {v0 .. v7}, Lcom/vungle/ads/internal/model/CommonRequestBody$User;->(Lcom/vungle/ads/internal/model/CommonRequestBody$GDPR;Lcom/vungle/ads/internal/model/CommonRequestBody$CCPA;Lcom/vungle/ads/internal/model/CommonRequestBody$COPPA;Lcom/vungle/ads/fpd/FirstPartyData;Lcom/vungle/ads/internal/model/CommonRequestBody$IAB;ILkotlin/jvm/internal/DefaultConstructorMarker;)V .line 789 sget-object v0, Lcom/vungle/ads/internal/privacy/PrivacyManager;->INSTANCE:Lcom/vungle/ads/internal/privacy/PrivacyManager; invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getConsentStatus()Ljava/lang/String; move-result-object v2 .line 790 invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getConsentSource()Ljava/lang/String; move-result-object v3 .line 791 invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getConsentMessageVersion()Ljava/lang/String; move-result-object v6 .line 792 invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getConsentTimestamp()J move-result-wide v4 .line 793 new-instance v7, Lcom/vungle/ads/internal/model/CommonRequestBody$GDPR; move-object v1, v7 invoke-direct/range {v1 .. v6}, Lcom/vungle/ads/internal/model/CommonRequestBody$GDPR;->(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;)V .line 794 invoke-virtual {v8, v7}, Lcom/vungle/ads/internal/model/CommonRequestBody$User;->setGdpr(Lcom/vungle/ads/internal/model/CommonRequestBody$GDPR;)V .line 797 invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getCcpaStatus()Ljava/lang/String; move-result-object v1 .line 798 new-instance v2, Lcom/vungle/ads/internal/model/CommonRequestBody$CCPA; invoke-direct {v2, v1}, Lcom/vungle/ads/internal/model/CommonRequestBody$CCPA;->(Ljava/lang/String;)V .line 799 invoke-virtual {v8, v2}, Lcom/vungle/ads/internal/model/CommonRequestBody$User;->setCcpa(Lcom/vungle/ads/internal/model/CommonRequestBody$CCPA;)V .line 801 invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getCoppaStatus()Lcom/vungle/ads/internal/privacy/COPPA; move-result-object v1 sget-object v2, Lcom/vungle/ads/internal/privacy/COPPA;->COPPA_NOTSET:Lcom/vungle/ads/internal/privacy/COPPA; if-eq v1, v2, :cond_0 .line 803 new-instance v1, Lcom/vungle/ads/internal/model/CommonRequestBody$COPPA; invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getCoppaStatus()Lcom/vungle/ads/internal/privacy/COPPA; move-result-object v2 invoke-virtual {v2}, Lcom/vungle/ads/internal/privacy/COPPA;->getValue()Ljava/lang/Boolean; move-result-object v2 invoke-direct {v1, v2}, Lcom/vungle/ads/internal/model/CommonRequestBody$COPPA;->(Ljava/lang/Boolean;)V .line 804 invoke-virtual {v8, v1}, Lcom/vungle/ads/internal/model/CommonRequestBody$User;->setCoppa(Lcom/vungle/ads/internal/model/CommonRequestBody$COPPA;)V .line 807 :cond_0 invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->shouldSendTCFString()Z move-result v1 if-eqz v1, :cond_1 .line 808 new-instance v1, Lcom/vungle/ads/internal/model/CommonRequestBody$IAB; invoke-virtual {v0}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->getIABTCFString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Lcom/vungle/ads/internal/model/CommonRequestBody$IAB;->(Ljava/lang/String;)V .line 809 invoke-virtual {v8, v1}, Lcom/vungle/ads/internal/model/CommonRequestBody$User;->setIab(Lcom/vungle/ads/internal/model/CommonRequestBody$IAB;)V :cond_1 if-eqz p1, :cond_2 .line 813 sget-object p1, Lcom/vungle/ads/VungleAds;->firstPartyData:Lcom/vungle/ads/fpd/FirstPartyData; invoke-virtual {v8, p1}, Lcom/vungle/ads/internal/model/CommonRequestBody$User;->setFpd(Lcom/vungle/ads/fpd/FirstPartyData;)V :cond_2 return-object v8 .end method .method public static synthetic getUserBody$default(Lcom/vungle/ads/internal/network/VungleApiClient;ZILjava/lang/Object;)Lcom/vungle/ads/internal/model/CommonRequestBody$User; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 const/4 p1, 0x0 .line 785 :cond_0 invoke-direct {p0, p1}, Lcom/vungle/ads/internal/network/VungleApiClient;->getUserBody(Z)Lcom/vungle/ads/internal/model/CommonRequestBody$User; move-result-object p0 return-object p0 .end method .method private final initUserAgentLazy()V .locals 3 .line 538 new-instance v0, Lcom/vungle/ads/TimeIntervalMetric; sget-object v1, Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$SDKMetricType;->USER_AGENT_LOAD_DURATION_MS:Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$SDKMetricType; invoke-direct {v0, v1}, Lcom/vungle/ads/TimeIntervalMetric;->(Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$SDKMetricType;)V .line 539 invoke-virtual {v0}, Lcom/vungle/ads/TimeIntervalMetric;->markStart()V iget-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 540 new-instance v2, Lcom/vungle/ads/internal/network/VungleApiClient$initUserAgentLazy$1; invoke-direct {v2, v0, p0}, Lcom/vungle/ads/internal/network/VungleApiClient$initUserAgentLazy$1;->(Lcom/vungle/ads/TimeIntervalMetric;Lcom/vungle/ads/internal/network/VungleApiClient;)V invoke-interface {v1, v2}, Lcom/vungle/ads/internal/platform/Platform;->getUserAgentLazy(Landroidx/core/util/Consumer;)V return-void .end method .method public static synthetic requestBody$default(Lcom/vungle/ads/internal/network/VungleApiClient;ZZILjava/lang/Object;)Lcom/vungle/ads/internal/model/CommonRequestBody; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/IllegalStateException; } .end annotation and-int/lit8 p4, p3, 0x1 const/4 v0, 0x0 if-eqz p4, :cond_0 move p1, v0 :cond_0 and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_1 move p2, v0 .line 625 :cond_1 invoke-virtual {p0, p1, p2}, Lcom/vungle/ads/internal/network/VungleApiClient;->requestBody(ZZ)Lcom/vungle/ads/internal/model/CommonRequestBody; move-result-object p0 return-object p0 .end method .method private static final responseInterceptor$lambda-0(Lcom/vungle/ads/internal/network/VungleApiClient;Lokhttp3/Interceptor$Chain;)Lokhttp3/Response; .locals 9 const-string v0, "VungleApiClient" const-string v1, "this$0" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v1, "chain" invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 118 invoke-interface {p1}, Lokhttp3/Interceptor$Chain;->request()Lokhttp3/Request; move-result-object v1 .line 121 :try_start_0 invoke-interface {p1, v1}, Lokhttp3/Interceptor$Chain;->proceed(Lokhttp3/Request;)Lokhttp3/Response; move-result-object p1 .line 122 invoke-virtual {p1}, Lokhttp3/Response;->headers()Lokhttp3/Headers; move-result-object v2 const-string v3, "Retry-After" invoke-virtual {v2, v3}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_1 .line 123 invoke-interface {v2}, Ljava/lang/CharSequence;->length()I move-result v3 :try_end_0 .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_2 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1 if-nez v3, :cond_0 goto/16 :goto_0 .line 125 :cond_0 :try_start_1 invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J move-result-wide v2 const-wide/16 v4, 0x0 cmp-long v4, v2, v4 if-lez v4, :cond_1 .line 127 invoke-virtual {v1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object v4 invoke-virtual {v4}, Lokhttp3/HttpUrl;->encodedPath()Ljava/lang/String; move-result-object v4 const/16 v5, 0x3e8 int-to-long v5, v5 mul-long/2addr v2, v5 .line 128 invoke-static {}, Ljava/lang/System;->currentTimeMillis()J move-result-wide v5 add-long/2addr v2, v5 const-string v5, "ads" const/4 v6, 0x2 const/4 v7, 0x0 const/4 v8, 0x0 .line 129 invoke-static {v4, v5, v8, v6, v7}, Lkotlin/text/StringsKt;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result v4 if-eqz v4, :cond_1 .line 130 invoke-virtual {v1}, Lokhttp3/Request;->body()Lokhttp3/RequestBody; move-result-object v4 invoke-direct {p0, v4}, Lcom/vungle/ads/internal/network/VungleApiClient;->getPlacementID(Lokhttp3/RequestBody;)Ljava/lang/String; move-result-object v4 .line 131 invoke-interface {v4}, Ljava/lang/CharSequence;->length()I move-result v5 if-lez v5, :cond_1 invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; move-result-object v2 .line 132 iget-object v3, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->retryAfterDataMap:Ljava/util/Map; invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 .catch Ljava/lang/OutOfMemoryError; {:try_start_1 .. :try_end_1} :catch_2 goto :goto_0 .line 137 :catch_0 :try_start_2 sget-object v2, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; const-string v3, "Retry-After value is not an valid value" invoke-virtual {v2, v0, v3}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I :try_end_2 .catch Ljava/lang/OutOfMemoryError; {:try_start_2 .. :try_end_2} :catch_2 .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1 goto :goto_0 :catch_1 move-exception p1 .line 144 sget-object v2, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3}, Ljava/lang/StringBuilder;->()V const-string v4, "Exception: " invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object p1 invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p1, " for " invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object p1 invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-virtual {v2, v0, p1}, Lcom/vungle/ads/internal/util/Logger$Companion;->e(Ljava/lang/String;Ljava/lang/String;)I .line 145 invoke-direct {p0, v1}, Lcom/vungle/ads/internal/network/VungleApiClient;->defaultErrorResponse(Lokhttp3/Request;)Lokhttp3/Response; move-result-object p1 goto :goto_0 .line 141 :catch_2 sget-object p1, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "OOM for " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object v3 invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 invoke-virtual {p1, v0, v2}, Lcom/vungle/ads/internal/util/Logger$Companion;->e(Ljava/lang/String;Ljava/lang/String;)I .line 142 invoke-direct {p0, v1}, Lcom/vungle/ads/internal/network/VungleApiClient;->defaultErrorResponse(Lokhttp3/Request;)Lokhttp3/Response; move-result-object p1 :cond_1 :goto_0 return-object p1 .end method # virtual methods .method public final addPlaySvcAvailabilityInCookie(Z)V .locals 2 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->filePreferences:Lcom/vungle/ads/internal/persistence/FilePreferences; const-string v1, "isPlaySvcAvailable" .line 562 invoke-virtual {v0, v1, p1}, Lcom/vungle/ads/internal/persistence/FilePreferences;->put(Ljava/lang/String;Z)Lcom/vungle/ads/internal/persistence/FilePreferences; move-result-object p1 invoke-virtual {p1}, Lcom/vungle/ads/internal/persistence/FilePreferences;->apply()V return-void .end method .method public final checkIsRetryAfterActive(Ljava/lang/String;)Z .locals 4 const-string v0, "placementID" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->retryAfterDataMap:Ljava/util/Map; .line 183 invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/Long; if-eqz v0, :cond_0 invoke-virtual {v0}, Ljava/lang/Long;->longValue()J move-result-wide v0 goto :goto_0 :cond_0 const-wide/16 v0, 0x0 .line 184 :goto_0 invoke-static {}, Ljava/lang/System;->currentTimeMillis()J move-result-wide v2 cmp-long v0, v0, v2 if-lez v0, :cond_1 const/4 p1, 0x1 goto :goto_1 :cond_1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->retryAfterDataMap:Ljava/util/Map; .line 188 invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object; const/4 p1, 0x0 :goto_1 return p1 .end method .method public final config()Lcom/vungle/ads/internal/network/Call; .locals 12 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/vungle/ads/internal/network/Call<", "Lcom/vungle/ads/internal/model/ConfigPayload;", ">;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object v2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->appBody:Lcom/vungle/ads/internal/model/AppNode; const/4 v8, 0x0 if-nez v2, :cond_0 return-object v8 .line 316 :cond_0 new-instance v9, Lcom/vungle/ads/internal/model/CommonRequestBody; const/4 v10, 0x1 invoke-virtual {p0, v10}, Lcom/vungle/ads/internal/network/VungleApiClient;->getDeviceBody$vungle_ads_release(Z)Lcom/vungle/ads/internal/model/DeviceNode; move-result-object v1 const/4 v11, 0x0 invoke-static {p0, v11, v10, v8}, Lcom/vungle/ads/internal/network/VungleApiClient;->getUserBody$default(Lcom/vungle/ads/internal/network/VungleApiClient;ZILjava/lang/Object;)Lcom/vungle/ads/internal/model/CommonRequestBody$User; move-result-object v3 const/4 v4, 0x0 const/4 v5, 0x0 const/16 v6, 0x18 const/4 v7, 0x0 move-object v0, v9 invoke-direct/range {v0 .. v7}, Lcom/vungle/ads/internal/model/CommonRequestBody;->(Lcom/vungle/ads/internal/model/DeviceNode;Lcom/vungle/ads/internal/model/AppNode;Lcom/vungle/ads/internal/model/CommonRequestBody$User;Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt;Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;ILkotlin/jvm/internal/DefaultConstructorMarker;)V .line 317 invoke-static {p0, v11, v10, v8}, Lcom/vungle/ads/internal/network/VungleApiClient;->getExtBody$default(Lcom/vungle/ads/internal/network/VungleApiClient;ZILjava/lang/Object;)Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt; move-result-object v0 if-eqz v0, :cond_1 .line 318 invoke-virtual {v9, v0}, Lcom/vungle/ads/internal/model/CommonRequestBody;->setExt(Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt;)V .line 321 :cond_1 sget-object v0, Lcom/vungle/ads/internal/util/FileUtility;->INSTANCE:Lcom/vungle/ads/internal/util/FileUtility; sget-object v1, Lcom/vungle/ads/internal/network/VungleApiClient;->BASE_URL:Ljava/lang/String; invoke-virtual {v0, v1}, Lcom/vungle/ads/internal/util/FileUtility;->isValidUrl(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_2 goto :goto_0 :cond_2 const-string v1, "https://config.ads.vungle.com/" :goto_0 const-string v0, "/" const/4 v2, 0x2 .line 322 invoke-static {v1, v0, v11, v2, v8}, Lkotlin/text/StringsKt;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result v0 if-nez v0, :cond_3 .line 323 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const/16 v1, 0x2f invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 :cond_3 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; sget-object v2, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; .line 326 new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3}, Ljava/lang/StringBuilder;->()V invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, "config" invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-interface {v0, v2, v1, v9}, Lcom/vungle/ads/internal/network/VungleApi;->config(Ljava/lang/String;Ljava/lang/String;Lcom/vungle/ads/internal/model/CommonRequestBody;)Lcom/vungle/ads/internal/network/Call; move-result-object v0 return-object v0 .end method .method public final getAppBody$vungle_ads_release()Lcom/vungle/ads/internal/model/AppNode; .locals 1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->appBody:Lcom/vungle/ads/internal/model/AppNode; return-object v0 .end method .method public final getConnectionTypeDetail()Ljava/lang/String; .locals 2 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; const-string v1, "android.permission.ACCESS_NETWORK_STATE" .line 924 invoke-static {v0, v1}, Landroidx/core/content/PermissionChecker;->checkCallingOrSelfPermission(Landroid/content/Context;Ljava/lang/String;)I move-result v0 if-nez v0, :cond_1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; const-string v1, "connectivity" .line 930 invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 const-string v1, "null cannot be cast to non-null type android.net.ConnectivityManager" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast v0, Landroid/net/ConnectivityManager; .line 931 invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo; move-result-object v0 if-eqz v0, :cond_0 .line 933 invoke-virtual {v0}, Landroid/net/NetworkInfo;->getSubtype()I move-result v0 invoke-virtual {p0, v0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getConnectionTypeDetail(I)Ljava/lang/String; move-result-object v0 return-object v0 :cond_0 const-string v0, "unknown" return-object v0 :cond_1 const/4 v0, 0x0 return-object v0 .end method .method public final getConnectionTypeDetail(I)Ljava/lang/String; .locals 1 .line 0 const/4 v0, 0x1 if-eq p1, v0, :cond_2 const/4 v0, 0x2 if-eq p1, v0, :cond_1 const/16 v0, 0x14 if-eq p1, v0, :cond_0 packed-switch p1, :pswitch_data_0 packed-switch p1, :pswitch_data_1 const-string p1, "unknown" goto :goto_0 :pswitch_0 const-string p1, "hrpd" goto :goto_0 :pswitch_1 const-string p1, "lte" goto :goto_0 :pswitch_2 const-string p1, "cdma_evdo_b" goto :goto_0 :pswitch_3 const-string p1, "hsupa" goto :goto_0 :pswitch_4 const-string p1, "hsdpa" goto :goto_0 :pswitch_5 const-string p1, "cdma_1xrtt" goto :goto_0 :pswitch_6 const-string p1, "cdma_evdo_a" goto :goto_0 :pswitch_7 const-string p1, "cdma_evdo_0" goto :goto_0 :pswitch_8 const-string p1, "wcdma" goto :goto_0 :cond_0 const-string p1, "5g" goto :goto_0 :cond_1 const-string p1, "edge" goto :goto_0 :cond_2 const-string p1, "gprs" :goto_0 return-object p1 nop :pswitch_data_0 .packed-switch 0x4 :pswitch_8 :pswitch_7 :pswitch_6 :pswitch_5 :pswitch_4 :pswitch_3 .end packed-switch :pswitch_data_1 .packed-switch 0xc :pswitch_2 :pswitch_1 :pswitch_0 .end packed-switch .end method .method public final declared-synchronized getDeviceBody$vungle_ads_release(Z)Lcom/vungle/ads/internal/model/DeviceNode; .locals 24 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/IllegalStateException; } .end annotation move-object/from16 v1, p0 monitor-enter p0 :try_start_0 iget-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->baseDeviceInfo:Lcom/vungle/ads/internal/model/DeviceNode; if-nez v0, :cond_0 iget-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 645 invoke-direct {v1, v0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getBasicDeviceBody(Landroid/content/Context;)Lcom/vungle/ads/internal/model/DeviceNode; move-result-object v0 iput-object v0, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->baseDeviceInfo:Lcom/vungle/ads/internal/model/DeviceNode; :cond_0 move-object v2, v0 goto :goto_0 :catchall_0 move-exception v0 goto/16 :goto_8 :goto_0 const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/4 v11, 0x0 const/4 v12, 0x0 const/4 v13, 0x0 const/16 v14, 0x7ff const/4 v15, 0x0 .line 648 invoke-static/range {v2 .. v15}, Lcom/vungle/ads/internal/model/DeviceNode;->copy$default(Lcom/vungle/ads/internal/model/DeviceNode;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;ILjava/lang/Object;)Lcom/vungle/ads/internal/model/DeviceNode; move-result-object v0 .line 649 new-instance v2, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt; const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 const/4 v11, 0x0 const/4 v12, 0x0 const/4 v13, 0x0 const/4 v14, 0x0 const/4 v15, 0x0 const/16 v16, 0x0 const/16 v17, 0x0 const/16 v18, 0x0 const/16 v19, 0x0 const/16 v20, 0x0 const v21, 0x3ffff const/16 v22, 0x0 move-object/from16 v23, v2 invoke-direct/range {v2 .. v22}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->(ZLjava/lang/String;Ljava/lang/Integer;FLjava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;FIZIZLjava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->advertisingInfo:Lcom/vungle/ads/internal/model/AdvertisingInfo; if-nez v2, :cond_1 iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 652 invoke-interface {v2}, Lcom/vungle/ads/internal/platform/Platform;->getAdvertisingInfo()Lcom/vungle/ads/internal/model/AdvertisingInfo; move-result-object v2 :cond_1 iput-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->advertisingInfo:Lcom/vungle/ads/internal/model/AdvertisingInfo; const/4 v3, 0x0 if-eqz v2, :cond_2 .line 654 invoke-virtual {v2}, Lcom/vungle/ads/internal/model/AdvertisingInfo;->getAdvertisingId()Ljava/lang/String; move-result-object v2 goto :goto_1 :cond_2 move-object v2, v3 :goto_1 iget-object v4, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->advertisingInfo:Lcom/vungle/ads/internal/model/AdvertisingInfo; if-eqz v4, :cond_3 .line 655 invoke-virtual {v4}, Lcom/vungle/ads/internal/model/AdvertisingInfo;->getLimitAdTracking()Z move-result v4 invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object v4 goto :goto_2 :cond_3 move-object v4, v3 .line 657 :goto_2 sget-object v5, Lcom/vungle/ads/internal/privacy/PrivacyManager;->INSTANCE:Lcom/vungle/ads/internal/privacy/PrivacyManager; invoke-virtual {v5}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->shouldSendAdIds()Z move-result v6 if-eqz v6, :cond_6 if-eqz v2, :cond_5 const-string v6, "Amazon" .line 659 sget-object v7, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String; invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_4 move-object/from16 v6, v23 .line 660 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setAmazonAdvertisingId(Ljava/lang/String;)V goto :goto_3 :cond_4 move-object/from16 v6, v23 .line 662 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setGaid(Ljava/lang/String;)V .line 664 :goto_3 invoke-virtual {v0, v2}, Lcom/vungle/ads/internal/model/DeviceNode;->setIfa(Ljava/lang/String;)V goto :goto_4 :cond_5 move-object/from16 v6, v23 const-string v2, "" .line 666 invoke-virtual {v0, v2}, Lcom/vungle/ads/internal/model/DeviceNode;->setIfa(Ljava/lang/String;)V goto :goto_4 :cond_6 move-object/from16 v6, v23 :goto_4 if-nez p1, :cond_7 .line 672 invoke-virtual {v5}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->shouldSendAdIds()Z move-result v2 if-nez v2, :cond_8 .line 673 :cond_7 invoke-virtual {v0, v3}, Lcom/vungle/ads/internal/model/DeviceNode;->setIfa(Ljava/lang/String;)V .line 674 invoke-virtual {v6, v3}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setGaid(Ljava/lang/String;)V .line 675 invoke-virtual {v6, v3}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setAmazonAdvertisingId(Ljava/lang/String;)V :cond_8 sget-object v2, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean; .line 679 invoke-static {v4, v2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v4 const/4 v7, 0x0 const/4 v8, 0x1 if-eqz v4, :cond_9 invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 goto :goto_5 :cond_9 invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 :goto_5 invoke-virtual {v0, v4}, Lcom/vungle/ads/internal/model/DeviceNode;->setLmt(Ljava/lang/Integer;)V .line 680 invoke-virtual/range {p0 .. p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->isGooglePlayServicesAvailable()Ljava/lang/Boolean; move-result-object v4 invoke-static {v2, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v2 .line 681 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setGooglePlayServicesAvailable(Z)V .line 683 invoke-virtual {v5}, Lcom/vungle/ads/internal/privacy/PrivacyManager;->allowDeviceIDFromTCF()Lcom/vungle/ads/internal/privacy/PrivacyManager$DeviceIdAllowed; move-result-object v2 .line 684 sget-object v4, Lcom/vungle/ads/internal/privacy/PrivacyManager$DeviceIdAllowed;->DISABLE_ID:Lcom/vungle/ads/internal/privacy/PrivacyManager$DeviceIdAllowed; if-eq v2, v4, :cond_b iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 685 invoke-interface {v2}, Lcom/vungle/ads/internal/platform/Platform;->getAppSetId()Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_a .line 686 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setAppSetId(Ljava/lang/String;)V :cond_a iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 688 invoke-interface {v2}, Lcom/vungle/ads/internal/platform/Platform;->getAppSetIdScope()Ljava/lang/Integer; move-result-object v2 if-eqz v2, :cond_b .line 689 invoke-virtual {v2}, Ljava/lang/Number;->intValue()I move-result v2 invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setAppSetIdScope(Ljava/lang/Integer;)V :cond_b iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 695 new-instance v4, Landroid/content/IntentFilter; const-string v5, "android.intent.action.BATTERY_CHANGED" invoke-direct {v4, v5}, Landroid/content/IntentFilter;->(Ljava/lang/String;)V .line 693 invoke-virtual {v2, v3, v4}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent; move-result-object v2 const/4 v3, 0x4 if-eqz v2, :cond_12 const-string v4, "level" const/4 v5, -0x1 .line 699 invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I move-result v4 const-string v9, "scale" .line 700 invoke-virtual {v2, v9, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I move-result v9 if-lez v4, :cond_c if-lez v9, :cond_c int-to-float v4, v4 int-to-float v9, v9 div-float/2addr v4, v9 .line 702 invoke-virtual {v6, v4}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setBatteryLevel(F)V :cond_c const-string v4, "status" .line 704 invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I move-result v4 if-eq v4, v5, :cond_11 const/4 v9, 0x2 if-eq v4, v9, :cond_d const/4 v10, 0x5 if-eq v4, v10, :cond_d const-string v2, "NOT_CHARGING" goto :goto_6 :cond_d const-string v4, "plugged" .line 711 invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I move-result v2 if-eq v2, v8, :cond_10 if-eq v2, v9, :cond_f if-eq v2, v3, :cond_e const-string v2, "BATTERY_PLUGGED_OTHERS" goto :goto_6 :cond_e const-string v2, "BATTERY_PLUGGED_WIRELESS" goto :goto_6 :cond_f const-string v2, "BATTERY_PLUGGED_USB" goto :goto_6 :cond_10 const-string v2, "BATTERY_PLUGGED_AC" goto :goto_6 :cond_11 const-string v2, "UNKNOWN" goto :goto_6 :cond_12 const-string v2, "UNKNOWN" .line 726 :goto_6 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setBatteryState(Ljava/lang/String;)V iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; const-string v4, "power" .line 730 invoke-virtual {v2, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v2 const-string v4, "null cannot be cast to non-null type android.os.PowerManager" invoke-static {v2, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast v2, Landroid/os/PowerManager; .line 733 invoke-virtual {v2}, Landroid/os/PowerManager;->isPowerSaveMode()Z move-result v2 .line 731 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setBatterySaverEnabled(I)V .line 739 invoke-direct/range {p0 .. p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getConnectionType()Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_13 .line 740 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setConnectionType(Ljava/lang/String;)V .line 742 :cond_13 invoke-virtual/range {p0 .. p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getConnectionTypeDetail()Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_14 .line 743 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setConnectionTypeDetail(Ljava/lang/String;)V .line 747 :cond_14 invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale; move-result-object v2 invoke-virtual {v2}, Ljava/util/Locale;->toString()Ljava/lang/String; move-result-object v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setLocale(Ljava/lang/String;)V .line 748 invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale; move-result-object v2 invoke-virtual {v2}, Ljava/util/Locale;->getLanguage()Ljava/lang/String; move-result-object v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setLanguage(Ljava/lang/String;)V .line 749 invoke-static {}, Ljava/util/TimeZone;->getDefault()Ljava/util/TimeZone; move-result-object v2 invoke-virtual {v2}, Ljava/util/TimeZone;->getID()Ljava/lang/String; move-result-object v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setTimeZone(Ljava/lang/String;)V iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 752 invoke-interface {v2}, Lcom/vungle/ads/internal/platform/Platform;->getVolumeLevel()F move-result v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setVolumeLevel(F)V iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 753 invoke-interface {v2}, Lcom/vungle/ads/internal/platform/Platform;->isSoundEnabled()Z move-result v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setSoundEnabled(I)V const-string v2, "Amazon" .line 756 sget-object v4, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String; invoke-static {v2, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_15 iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 757 invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v2 const-string v3, "amazon.hardware.fire_tv" invoke-virtual {v2, v3}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z move-result v7 goto :goto_7 :cond_15 iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; const-string v4, "uimode" .line 763 invoke-virtual {v2, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v2 const-string v4, "null cannot be cast to non-null type android.app.UiModeManager" invoke-static {v2, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast v2, Landroid/app/UiModeManager; .line 764 invoke-virtual {v2}, Landroid/app/UiModeManager;->getCurrentModeType()I move-result v2 if-ne v2, v3, :cond_16 move v7, v8 .line 756 :cond_16 :goto_7 invoke-virtual {v6, v7}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setTv(Z)V iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 773 invoke-interface {v2}, Lcom/vungle/ads/internal/platform/Platform;->isSideLoaded()Z move-result v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setSideloadEnabled(Z)V iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->platform:Lcom/vungle/ads/internal/platform/Platform; .line 775 invoke-interface {v2}, Lcom/vungle/ads/internal/platform/Platform;->isSdCardPresent()Z move-result v2 invoke-virtual {v6, v2}, Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;->setSdCardAvailable(I)V iget-object v2, v1, Lcom/vungle/ads/internal/network/VungleApiClient;->uaString:Ljava/lang/String; .line 777 invoke-virtual {v0, v2}, Lcom/vungle/ads/internal/model/DeviceNode;->setUa(Ljava/lang/String;)V .line 780 invoke-virtual {v0, v6}, Lcom/vungle/ads/internal/model/DeviceNode;->setExt(Lcom/vungle/ads/internal/model/DeviceNode$VungleExt;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 782 monitor-exit p0 return-object v0 :goto_8 monitor-exit p0 throw v0 .end method .method public final getGzipApi$vungle_ads_release()Lcom/vungle/ads/internal/network/VungleApi; .locals 1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->gzipApi:Lcom/vungle/ads/internal/network/VungleApi; return-object v0 .end method .method public final getPlayServicesAvailabilityFromAPI()Ljava/lang/Boolean; .locals 5 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation const-string v0, "VungleApiClient" const/4 v1, 0x0 const/4 v2, 0x0 .line 574 :try_start_0 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v3 const-string v4, "getInstance()" invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V iget-object v4, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 576 invoke-virtual {v3, v4}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->isGooglePlayServicesAvailable(Landroid/content/Context;)I move-result v3 if-nez v3, :cond_0 const/4 v3, 0x1 goto :goto_0 :cond_0 move v3, v1 :goto_0 invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object v2 .line 577 invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z move-result v3 invoke-virtual {p0, v3}, Lcom/vungle/ads/internal/network/VungleApiClient;->addPlaySvcAvailabilityInCookie(Z)V :try_end_0 .catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_1 .line 589 :catch_0 sget-object v1, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; const-string v3, "Unexpected exception from Play services lib." invoke-virtual {v1, v0, v3}, Lcom/vungle/ads/internal/util/Logger$Companion;->w(Ljava/lang/String;Ljava/lang/String;)I goto :goto_1 .line 579 :catch_1 sget-object v2, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; const-string v3, "Play services Not available" invoke-virtual {v2, v0, v3}, Lcom/vungle/ads/internal/util/Logger$Companion;->w(Ljava/lang/String;Ljava/lang/String;)I sget-object v2, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean; .line 584 :try_start_1 invoke-virtual {p0, v1}, Lcom/vungle/ads/internal/network/VungleApiClient;->addPlaySvcAvailabilityInCookie(Z)V :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2 goto :goto_1 .line 586 :catch_2 sget-object v1, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion; const-string v3, "Failure to write GPS availability to DB" invoke-virtual {v1, v0, v3}, Lcom/vungle/ads/internal/util/Logger$Companion;->w(Ljava/lang/String;Ljava/lang/String;)I :goto_1 return-object v2 .end method .method public final getPlayServicesAvailabilityFromCookie()Ljava/lang/Boolean; .locals 2 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->filePreferences:Lcom/vungle/ads/internal/persistence/FilePreferences; const-string v1, "isPlaySvcAvailable" .line 567 invoke-virtual {v0, v1}, Lcom/vungle/ads/internal/persistence/FilePreferences;->getBoolean(Ljava/lang/String;)Ljava/lang/Boolean; move-result-object v0 return-object v0 .end method .method public final getResponseInterceptor$vungle_ads_release()Lokhttp3/Interceptor; .locals 1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->responseInterceptor:Lokhttp3/Interceptor; return-object v0 .end method .method public final getRetryAfterDataMap$vungle_ads_release()Ljava/util/Map; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Long;", ">;" } .end annotation iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->retryAfterDataMap:Ljava/util/Map; return-object v0 .end method .method public final getRetryAfterHeaderValue(Ljava/lang/String;)J .locals 2 const-string v0, "placementID" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->retryAfterDataMap:Ljava/util/Map; .line 194 invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/Long; if-eqz p1, :cond_0 invoke-virtual {p1}, Ljava/lang/Long;->longValue()J move-result-wide v0 goto :goto_0 :cond_0 const-wide/16 v0, 0x0 :goto_0 return-wide v0 .end method .method public final declared-synchronized initialize(Ljava/lang/String;)V .locals 5 monitor-enter p0 :try_start_0 const-string v0, "appId" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; .line 277 invoke-interface {v0, p1}, Lcom/vungle/ads/internal/network/VungleApi;->setAppId(Ljava/lang/String;)V iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->gzipApi:Lcom/vungle/ads/internal/network/VungleApi; .line 278 invoke-interface {v0, p1}, Lcom/vungle/ads/internal/network/VungleApi;->setAppId(Ljava/lang/String;)V const-string v0, "1.0" :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :try_start_1 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x21 if-lt v1, v2, :cond_0 iget-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 285 invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v1 iget-object v2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 286 invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v2 const-wide/16 v3, 0x0 .line 287 invoke-static {v3, v4}, Lcom/ea/nimble/Utility$$ExternalSyntheticApiModelOutline0;->m(J)Landroid/content/pm/PackageManager$PackageInfoFlags; move-result-object v3 .line 285 invoke-static {v1, v2, v3}, Lcom/ea/nimble/Utility$$ExternalSyntheticApiModelOutline1;->m(Landroid/content/pm/PackageManager;Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)Landroid/content/pm/PackageInfo; move-result-object v1 const-string v2, "{\n ap\u2026 )\n }" .line 284 invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V goto :goto_0 :catchall_0 move-exception p1 goto :goto_1 :cond_0 iget-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 290 invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v1 iget-object v2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 291 invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v2 const/4 v3, 0x0 .line 290 invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; move-result-object v1 const-string v2, "{\n ap\u2026 )\n }" .line 289 invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V .line 294 :goto_0 iget-object v1, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String; const-string v2, "packageInfo.versionName" invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_0 move-object v0, v1 :catch_0 :try_start_2 iget-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; .line 300 invoke-direct {p0, v1}, Lcom/vungle/ads/internal/network/VungleApiClient;->getBasicDeviceBody(Landroid/content/Context;)Lcom/vungle/ads/internal/model/DeviceNode; move-result-object v1 iput-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->baseDeviceInfo:Lcom/vungle/ads/internal/model/DeviceNode; .line 303 new-instance v1, Lcom/vungle/ads/internal/model/AppNode; iget-object v2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->applicationContext:Landroid/content/Context; invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v2 const-string v3, "applicationContext.packageName" invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {v1, v2, v0, p1}, Lcom/vungle/ads/internal/model/AppNode;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V iput-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->appBody:Lcom/vungle/ads/internal/model/AppNode; .line 308 invoke-virtual {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getPlayServicesAvailabilityFromAPI()Ljava/lang/Boolean; move-result-object p1 iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->isGooglePlayServicesAvailable:Ljava/lang/Boolean; :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 .line 310 monitor-exit p0 return-void :goto_1 monitor-exit p0 throw p1 .end method .method public final isGooglePlayServicesAvailable()Ljava/lang/Boolean; .locals 1 .annotation build Landroidx/annotation/VisibleForTesting; .end annotation iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->isGooglePlayServicesAvailable:Ljava/lang/Boolean; if-nez v0, :cond_0 .line 887 invoke-virtual {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getPlayServicesAvailabilityFromCookie()Ljava/lang/Boolean; move-result-object v0 iput-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->isGooglePlayServicesAvailable:Ljava/lang/Boolean; :cond_0 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->isGooglePlayServicesAvailable:Ljava/lang/Boolean; if-nez v0, :cond_1 .line 890 invoke-virtual {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getPlayServicesAvailabilityFromAPI()Ljava/lang/Boolean; move-result-object v0 iput-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->isGooglePlayServicesAvailable:Ljava/lang/Boolean; :cond_1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->isGooglePlayServicesAvailable:Ljava/lang/Boolean; return-object v0 .end method .method public final pingTPAT(Ljava/lang/String;)Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo; .locals 8 const-string v0, "url" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 377 invoke-interface {p1}, Ljava/lang/CharSequence;->length()I move-result v0 if-nez v0, :cond_0 goto :goto_0 :cond_0 sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion; invoke-virtual {v0, p1}, Lokhttp3/HttpUrl$Companion;->parse(Ljava/lang/String;)Lokhttp3/HttpUrl; move-result-object v0 if-nez v0, :cond_1 .line 378 :goto_0 new-instance v0, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo; const/16 v2, 0x79 .line 380 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v3, "Invalid URL : " invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v3 const/4 v4, 0x0 const/4 v5, 0x1 const/4 v6, 0x4 const/4 v7, 0x0 move-object v1, v0 .line 378 invoke-direct/range {v1 .. v7}, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo;->(ILjava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V return-object v0 .line 387 :cond_1 :try_start_0 new-instance v0, Ljava/net/URL; invoke-direct {v0, p1}, Ljava/net/URL;->(Ljava/lang/String;)V invoke-virtual {v0}, Ljava/net/URL;->getHost()Ljava/lang/String; move-result-object v0 :try_end_0 .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_1 .line 397 invoke-static {}, Landroid/security/NetworkSecurityPolicy;->getInstance()Landroid/security/NetworkSecurityPolicy; move-result-object v1 .line 398 invoke-virtual {v1, v0}, Landroid/security/NetworkSecurityPolicy;->isCleartextTrafficPermitted(Ljava/lang/String;)Z move-result v0 if-nez v0, :cond_2 .line 404 invoke-static {p1}, Landroid/webkit/URLUtil;->isHttpUrl(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_2 .line 405 new-instance p1, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo; const/16 v2, 0x79 const-string v3, "Clear Text Traffic is blocked" const/4 v4, 0x0 const/4 v5, 0x0 const/16 v6, 0xc const/4 v7, 0x0 move-object v1, p1 invoke-direct/range {v1 .. v7}, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo;->(ILjava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V return-object p1 :cond_2 :try_start_1 iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->uaString:Ljava/lang/String; if-nez v0, :cond_3 const-string v0, "" goto :goto_1 :catch_0 move-exception p1 goto/16 :goto_3 :cond_3 :goto_1 iget-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; .line 412 invoke-interface {v1, v0, p1}, Lcom/vungle/ads/internal/network/VungleApi;->pingTPAT(Ljava/lang/String;Ljava/lang/String;)Lcom/vungle/ads/internal/network/Call; move-result-object p1 invoke-interface {p1}, Lcom/vungle/ads/internal/network/Call;->execute()Lcom/vungle/ads/internal/network/Response; move-result-object p1 const/4 v0, 0x0 if-eqz p1, :cond_5 .line 413 invoke-virtual {p1}, Lcom/vungle/ads/internal/network/Response;->isSuccessful()Z move-result v1 if-nez v1, :cond_4 goto :goto_2 :cond_4 return-object v0 :cond_5 :goto_2 if-eqz p1, :cond_6 .line 414 invoke-virtual {p1}, Lcom/vungle/ads/internal/network/Response;->raw()Lokhttp3/Response; move-result-object p1 if-eqz p1, :cond_6 invoke-virtual {p1}, Lokhttp3/Response;->code()I move-result p1 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 :cond_6 const/4 p1, 0x4 new-array p1, p1, [Ljava/lang/Integer; const/16 v1, 0x12d .line 415 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x0 aput-object v1, p1, v2 const/16 v1, 0x12e invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x1 aput-object v1, p1, v2 const/16 v1, 0x133 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x2 aput-object v1, p1, v2 const/16 v1, 0x134 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x3 aput-object v1, p1, v2 invoke-static {p1}, Lkotlin/collections/CollectionsKt;->listOf([Ljava/lang/Object;)Ljava/util/List; move-result-object p1 check-cast p1, Ljava/lang/Iterable; invoke-static {p1, v0}, Lkotlin/collections/CollectionsKt;->contains(Ljava/lang/Iterable;Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_7 .line 418 new-instance p1, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo; const/16 v2, 0x1d .line 420 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v3, "Tpat ping was redirected with code " invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v3 const/4 v4, 0x0 const/4 v5, 0x0 const/16 v6, 0xc const/4 v7, 0x0 move-object v1, p1 .line 418 invoke-direct/range {v1 .. v7}, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo;->(ILjava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V return-object p1 .line 423 :cond_7 new-instance p1, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo; const/16 v1, 0x79 const-string v2, "Tpat ping was not successful" const/4 v3, 0x0 const/4 v4, 0x0 const/16 v5, 0xc const/4 v6, 0x0 move-object v0, p1 invoke-direct/range {v0 .. v6}, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo;->(ILjava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V :try_end_1 .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 return-object p1 .line 429 :goto_3 new-instance v7, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo; const/16 v1, 0x79 .line 431 invoke-virtual {p1}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String; move-result-object p1 if-nez p1, :cond_8 const-string p1, "IOException" :cond_8 move-object v2, p1 const/4 v3, 0x0 const/4 v4, 0x0 const/16 v5, 0xc const/4 v6, 0x0 move-object v0, v7 .line 429 invoke-direct/range {v0 .. v6}, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo;->(ILjava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V return-object v7 :catch_1 move-exception p1 .line 389 new-instance v7, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo; const/16 v1, 0x79 .line 391 invoke-virtual {p1}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String; move-result-object p1 if-nez p1, :cond_9 const-string p1, "MalformedURLException" :cond_9 move-object v2, p1 const/4 v3, 0x0 const/4 v4, 0x1 const/4 v5, 0x4 const/4 v6, 0x0 move-object v0, v7 .line 389 invoke-direct/range {v0 .. v6}, Lcom/vungle/ads/internal/load/BaseAdLoader$ErrorInfo;->(ILjava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V return-object v7 .end method .method public final reportErrors(Ljava/util/concurrent/BlockingQueue;Lcom/vungle/ads/AnalyticsClient$RequestListener;)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/concurrent/BlockingQueue<", "Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder;", ">;", "Lcom/vungle/ads/AnalyticsClient$RequestListener;", ")V" } .end annotation const-string v0, "errors" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "requestListener" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 482 sget-object v0, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager; invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->getErrorLoggingEndpoint()Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_5 .line 483 invoke-interface {v0}, Ljava/lang/CharSequence;->length()I move-result v1 if-nez v1, :cond_0 goto/16 :goto_2 .line 487 :cond_0 invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object v1 :cond_1 :goto_0 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_3 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder; .line 488 invoke-direct {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getConnectionType()Ljava/lang/String; move-result-object v3 if-eqz v3, :cond_2 .line 489 invoke-virtual {v2, v3}, Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder;->setConnectionType(Ljava/lang/String;)Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder; .line 491 :cond_2 invoke-virtual {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getConnectionTypeDetail()Ljava/lang/String; move-result-object v3 if-eqz v3, :cond_1 .line 492 invoke-virtual {v2, v3}, Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder;->setConnectionTypeDetail(Ljava/lang/String;)Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder; .line 493 invoke-virtual {v2, v3}, Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder;->setConnectionTypeDetailAndroid(Ljava/lang/String;)Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder; goto :goto_0 .line 497 :cond_3 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1}, Ljava/util/ArrayList;->()V .line 499 invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_1 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_4 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/vungle/ads/internal/protos/Sdk$SDKError$Builder; .line 500 invoke-virtual {v2}, Lcom/google/protobuf/GeneratedMessageLite$Builder;->build()Lcom/google/protobuf/GeneratedMessageLite; move-result-object v2 invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z goto :goto_1 .line 503 :cond_4 invoke-static {}, Lcom/vungle/ads/internal/protos/Sdk$SDKErrorBatch;->newBuilder()Lcom/vungle/ads/internal/protos/Sdk$SDKErrorBatch$Builder; move-result-object p1 invoke-virtual {p1, v1}, Lcom/vungle/ads/internal/protos/Sdk$SDKErrorBatch$Builder;->addAllErrors(Ljava/lang/Iterable;)Lcom/vungle/ads/internal/protos/Sdk$SDKErrorBatch$Builder; move-result-object p1 invoke-virtual {p1}, Lcom/google/protobuf/GeneratedMessageLite$Builder;->build()Lcom/google/protobuf/GeneratedMessageLite; move-result-object p1 check-cast p1, Lcom/vungle/ads/internal/protos/Sdk$SDKErrorBatch; .line 506 sget-object v1, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion; .line 505 invoke-virtual {p1}, Lcom/google/protobuf/AbstractMessageLite;->toByteArray()[B move-result-object v2 const-string v3, "batch.toByteArray()" invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V .line 507 sget-object v3, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion; const-string v4, "application/x-protobuf" invoke-virtual {v3, v4}, Lokhttp3/MediaType$Companion;->parse(Ljava/lang/String;)Lokhttp3/MediaType; move-result-object v3 .line 509 invoke-virtual {p1}, Lcom/google/protobuf/AbstractMessageLite;->toByteArray()[B move-result-object p1 array-length p1, p1 const/4 v4, 0x0 .line 506 invoke-virtual {v1, v2, v3, v4, p1}, Lokhttp3/RequestBody$Companion;->create([BLokhttp3/MediaType;II)Lokhttp3/RequestBody; move-result-object p1 iget-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; sget-object v2, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; .line 512 invoke-interface {v1, v2, v0, p1}, Lcom/vungle/ads/internal/network/VungleApi;->sendErrors(Ljava/lang/String;Ljava/lang/String;Lokhttp3/RequestBody;)Lcom/vungle/ads/internal/network/Call; move-result-object p1 new-instance v0, Lcom/vungle/ads/internal/network/VungleApiClient$reportErrors$3; invoke-direct {v0, p2}, Lcom/vungle/ads/internal/network/VungleApiClient$reportErrors$3;->(Lcom/vungle/ads/AnalyticsClient$RequestListener;)V invoke-interface {p1, v0}, Lcom/vungle/ads/internal/network/Call;->enqueue(Lcom/vungle/ads/internal/network/Callback;)V return-void .line 484 :cond_5 :goto_2 invoke-interface {p2}, Lcom/vungle/ads/AnalyticsClient$RequestListener;->onFailure()V return-void .end method .method public final reportMetrics(Ljava/util/concurrent/BlockingQueue;Lcom/vungle/ads/AnalyticsClient$RequestListener;)V .locals 8 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/concurrent/BlockingQueue<", "Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$Builder;", ">;", "Lcom/vungle/ads/AnalyticsClient$RequestListener;", ")V" } .end annotation const-string v0, "metrics" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "requestListener" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 441 sget-object v0, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager; invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->getMetricsEndpoint()Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_5 .line 442 invoke-interface {v0}, Ljava/lang/CharSequence;->length()I move-result v1 if-nez v1, :cond_0 goto/16 :goto_2 .line 446 :cond_0 invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object v1 :cond_1 :goto_0 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_3 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$Builder; .line 447 invoke-direct {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getConnectionType()Ljava/lang/String; move-result-object v3 if-eqz v3, :cond_2 .line 448 invoke-virtual {v2, v3}, Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$Builder;->setConnectionType(Ljava/lang/String;)Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$Builder; .line 450 :cond_2 invoke-virtual {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getConnectionTypeDetail()Ljava/lang/String; move-result-object v3 if-eqz v3, :cond_1 .line 451 invoke-virtual {v2, v3}, Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$Builder;->setConnectionTypeDetail(Ljava/lang/String;)Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$Builder; goto :goto_0 .line 455 :cond_3 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1}, Ljava/util/ArrayList;->()V .line 457 invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_1 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_4 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$Builder; .line 458 invoke-virtual {v2}, Lcom/google/protobuf/GeneratedMessageLite$Builder;->build()Lcom/google/protobuf/GeneratedMessageLite; move-result-object v2 invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z goto :goto_1 .line 461 :cond_4 invoke-static {}, Lcom/vungle/ads/internal/protos/Sdk$MetricBatch;->newBuilder()Lcom/vungle/ads/internal/protos/Sdk$MetricBatch$Builder; move-result-object p1 invoke-virtual {p1, v1}, Lcom/vungle/ads/internal/protos/Sdk$MetricBatch$Builder;->addAllMetrics(Ljava/lang/Iterable;)Lcom/vungle/ads/internal/protos/Sdk$MetricBatch$Builder; move-result-object p1 invoke-virtual {p1}, Lcom/google/protobuf/GeneratedMessageLite$Builder;->build()Lcom/google/protobuf/GeneratedMessageLite; move-result-object p1 check-cast p1, Lcom/vungle/ads/internal/protos/Sdk$MetricBatch; .line 464 sget-object v1, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion; sget-object v2, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion; const-string v3, "application/x-protobuf" invoke-virtual {v2, v3}, Lokhttp3/MediaType$Companion;->parse(Ljava/lang/String;)Lokhttp3/MediaType; move-result-object v2 invoke-virtual {p1}, Lcom/google/protobuf/AbstractMessageLite;->toByteArray()[B move-result-object v3 const-string p1, "batch.toByteArray()" invoke-static {v3, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const/4 v4, 0x0 const/4 v5, 0x0 const/16 v6, 0xc const/4 v7, 0x0 invoke-static/range {v1 .. v7}, Lokhttp3/RequestBody$Companion;->create$default(Lokhttp3/RequestBody$Companion;Lokhttp3/MediaType;[BIIILjava/lang/Object;)Lokhttp3/RequestBody; move-result-object p1 iget-object v1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; sget-object v2, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; .line 466 invoke-interface {v1, v2, v0, p1}, Lcom/vungle/ads/internal/network/VungleApi;->sendMetrics(Ljava/lang/String;Ljava/lang/String;Lokhttp3/RequestBody;)Lcom/vungle/ads/internal/network/Call; move-result-object p1 new-instance v0, Lcom/vungle/ads/internal/network/VungleApiClient$reportMetrics$3; invoke-direct {v0, p2}, Lcom/vungle/ads/internal/network/VungleApiClient$reportMetrics$3;->(Lcom/vungle/ads/AnalyticsClient$RequestListener;)V invoke-interface {p1, v0}, Lcom/vungle/ads/internal/network/Call;->enqueue(Lcom/vungle/ads/internal/network/Callback;)V return-void .line 443 :cond_5 :goto_2 invoke-interface {p2}, Lcom/vungle/ads/AnalyticsClient$RequestListener;->onFailure()V return-void .end method .method public final requestAd(Ljava/lang/String;Lcom/vungle/ads/VungleAdSize;)Lcom/vungle/ads/internal/network/Call; .locals 12 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Lcom/vungle/ads/VungleAdSize;", ")", "Lcom/vungle/ads/internal/network/Call<", "Lcom/vungle/ads/internal/model/AdPayload;", ">;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/IllegalStateException; } .end annotation const-string v0, "placement" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 334 sget-object v0, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager; invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->getAdsEndpoint()Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_2 .line 335 invoke-interface {v1}, Ljava/lang/CharSequence;->length()I move-result v2 if-nez v2, :cond_0 goto :goto_0 .line 339 :cond_0 invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->signalsDisabled()Z move-result v2 xor-int/lit8 v2, v2, 0x1 invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->fpdEnabled()Z move-result v0 invoke-virtual {p0, v2, v0}, Lcom/vungle/ads/internal/network/VungleApiClient;->requestBody(ZZ)Lcom/vungle/ads/internal/model/CommonRequestBody; move-result-object v0 .line 343 new-instance v11, Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam; .line 344 invoke-static {p1}, Lkotlin/collections/CollectionsKt;->listOf(Ljava/lang/Object;)Ljava/util/List; move-result-object v3 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/16 v9, 0x3e const/4 v10, 0x0 move-object v2, v11 .line 343 invoke-direct/range {v2 .. v10}, Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;->(Ljava/util/List;Lcom/vungle/ads/internal/model/CommonRequestBody$AdSizeParam;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V if-eqz p2, :cond_1 .line 347 new-instance p1, Lcom/vungle/ads/internal/model/CommonRequestBody$AdSizeParam; .line 348 invoke-virtual {p2}, Lcom/vungle/ads/VungleAdSize;->getWidth()I move-result v2 .line 349 invoke-virtual {p2}, Lcom/vungle/ads/VungleAdSize;->getHeight()I move-result p2 .line 347 invoke-direct {p1, v2, p2}, Lcom/vungle/ads/internal/model/CommonRequestBody$AdSizeParam;->(II)V invoke-virtual {v11, p1}, Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;->setAdSize(Lcom/vungle/ads/internal/model/CommonRequestBody$AdSizeParam;)V .line 353 :cond_1 invoke-virtual {v0, v11}, Lcom/vungle/ads/internal/model/CommonRequestBody;->setRequest(Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;)V iget-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->gzipApi:Lcom/vungle/ads/internal/network/VungleApi; sget-object p2, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; .line 355 invoke-interface {p1, p2, v1, v0}, Lcom/vungle/ads/internal/network/VungleApi;->ads(Ljava/lang/String;Ljava/lang/String;Lcom/vungle/ads/internal/model/CommonRequestBody;)Lcom/vungle/ads/internal/network/Call; move-result-object p1 return-object p1 :cond_2 :goto_0 const/4 p1, 0x0 return-object p1 .end method .method public final requestBody(ZZ)Lcom/vungle/ads/internal/model/CommonRequestBody; .locals 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/IllegalStateException; } .end annotation .line 626 invoke-direct {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getDeviceBody()Lcom/vungle/ads/internal/model/DeviceNode; move-result-object v1 .line 627 invoke-direct {p0, p2}, Lcom/vungle/ads/internal/network/VungleApiClient;->getUserBody(Z)Lcom/vungle/ads/internal/model/CommonRequestBody$User; move-result-object v3 .line 628 new-instance p2, Lcom/vungle/ads/internal/model/CommonRequestBody; iget-object v2, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->appBody:Lcom/vungle/ads/internal/model/AppNode; const/4 v4, 0x0 const/4 v5, 0x0 const/16 v6, 0x18 const/4 v7, 0x0 move-object v0, p2 invoke-direct/range {v0 .. v7}, Lcom/vungle/ads/internal/model/CommonRequestBody;->(Lcom/vungle/ads/internal/model/DeviceNode;Lcom/vungle/ads/internal/model/AppNode;Lcom/vungle/ads/internal/model/CommonRequestBody$User;Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt;Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;ILkotlin/jvm/internal/DefaultConstructorMarker;)V .line 629 invoke-direct {p0, p1}, Lcom/vungle/ads/internal/network/VungleApiClient;->getExtBody(Z)Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt; move-result-object p1 if-eqz p1, :cond_0 .line 630 invoke-virtual {p2, p1}, Lcom/vungle/ads/internal/model/CommonRequestBody;->setExt(Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt;)V :cond_0 return-object p2 .end method .method public final ri(Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;)Lcom/vungle/ads/internal/network/Call; .locals 13 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;", ")", "Lcom/vungle/ads/internal/network/Call<", "Ljava/lang/Void;", ">;" } .end annotation const-string v0, "request" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 359 sget-object v0, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager; invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->getRiEndpoint()Ljava/lang/String; move-result-object v0 const/4 v1, 0x0 if-eqz v0, :cond_3 .line 360 invoke-interface {v0}, Ljava/lang/CharSequence;->length()I move-result v2 if-nez v2, :cond_0 goto :goto_0 :cond_0 iget-object v5, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->appBody:Lcom/vungle/ads/internal/model/AppNode; if-nez v5, :cond_1 return-object v1 .line 365 :cond_1 invoke-direct {p0}, Lcom/vungle/ads/internal/network/VungleApiClient;->getDeviceBody()Lcom/vungle/ads/internal/model/DeviceNode; move-result-object v4 const/4 v2, 0x0 const/4 v11, 0x1 .line 366 invoke-static {p0, v2, v11, v1}, Lcom/vungle/ads/internal/network/VungleApiClient;->getUserBody$default(Lcom/vungle/ads/internal/network/VungleApiClient;ZILjava/lang/Object;)Lcom/vungle/ads/internal/model/CommonRequestBody$User; move-result-object v6 .line 367 new-instance v12, Lcom/vungle/ads/internal/model/CommonRequestBody; const/4 v7, 0x0 const/4 v8, 0x0 const/16 v9, 0x18 const/4 v10, 0x0 move-object v3, v12 invoke-direct/range {v3 .. v10}, Lcom/vungle/ads/internal/model/CommonRequestBody;->(Lcom/vungle/ads/internal/model/DeviceNode;Lcom/vungle/ads/internal/model/AppNode;Lcom/vungle/ads/internal/model/CommonRequestBody$User;Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt;Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;ILkotlin/jvm/internal/DefaultConstructorMarker;)V .line 368 invoke-virtual {v12, p1}, Lcom/vungle/ads/internal/model/CommonRequestBody;->setRequest(Lcom/vungle/ads/internal/model/CommonRequestBody$RequestParam;)V .line 369 invoke-static {p0, v2, v11, v1}, Lcom/vungle/ads/internal/network/VungleApiClient;->getExtBody$default(Lcom/vungle/ads/internal/network/VungleApiClient;ZILjava/lang/Object;)Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt; move-result-object p1 if-eqz p1, :cond_2 .line 371 invoke-virtual {v12, p1}, Lcom/vungle/ads/internal/model/CommonRequestBody;->setExt(Lcom/vungle/ads/internal/model/CommonRequestBody$RequestExt;)V :cond_2 iget-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; sget-object v1, Lcom/vungle/ads/internal/network/VungleApiClient;->headerUa:Ljava/lang/String; .line 373 invoke-interface {p1, v1, v0, v12}, Lcom/vungle/ads/internal/network/VungleApi;->ri(Ljava/lang/String;Ljava/lang/String;Lcom/vungle/ads/internal/model/CommonRequestBody;)Lcom/vungle/ads/internal/network/Call; move-result-object p1 return-object p1 :cond_3 :goto_0 return-object v1 .end method .method public final sendAdMarkup(Ljava/lang/String;Ljava/lang/String;)V .locals 4 const-string v0, "adMarkup" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "endpoint" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->api:Lcom/vungle/ads/internal/network/VungleApi; .line 526 sget-object v1, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion; sget-object v2, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion; const-string v3, "application/json" invoke-virtual {v2, v3}, Lokhttp3/MediaType$Companion;->parse(Ljava/lang/String;)Lokhttp3/MediaType; move-result-object v2 invoke-virtual {v1, p1, v2}, Lokhttp3/RequestBody$Companion;->create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody; move-result-object p1 invoke-interface {v0, p2, p1}, Lcom/vungle/ads/internal/network/VungleApi;->sendAdMarkup(Ljava/lang/String;Lokhttp3/RequestBody;)Lcom/vungle/ads/internal/network/Call; move-result-object p1 .line 527 new-instance p2, Lcom/vungle/ads/internal/network/VungleApiClient$sendAdMarkup$1; invoke-direct {p2}, Lcom/vungle/ads/internal/network/VungleApiClient$sendAdMarkup$1;->()V invoke-interface {p1, p2}, Lcom/vungle/ads/internal/network/Call;->enqueue(Lcom/vungle/ads/internal/network/Callback;)V return-void .end method .method public final setAppBody$vungle_ads_release(Lcom/vungle/ads/internal/model/AppNode;)V .locals 0 iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->appBody:Lcom/vungle/ads/internal/model/AppNode; return-void .end method .method public final setGzipApi$vungle_ads_release(Lcom/vungle/ads/internal/network/VungleApi;)V .locals 1 const-string v0, "" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->gzipApi:Lcom/vungle/ads/internal/network/VungleApi; return-void .end method .method public final setResponseInterceptor$vungle_ads_release(Lokhttp3/Interceptor;)V .locals 1 const-string v0, "" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->responseInterceptor:Lokhttp3/Interceptor; return-void .end method .method public final setRetryAfterDataMap$vungle_ads_release(Ljava/util/Map;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Long;", ">;)V" } .end annotation const-string v0, "" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lcom/vungle/ads/internal/network/VungleApiClient;->retryAfterDataMap:Ljava/util/Map; return-void .end method