- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
2916 lines
74 KiB
Smali
2916 lines
74 KiB
Smali
.class public final Lcom/vungle/ads/internal/downloader/AssetDownloader;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/vungle/ads/internal/downloader/Downloader;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/vungle/ads/internal/downloader/AssetDownloader$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final CONTENT_ENCODING:Ljava/lang/String; = "Content-Encoding"
|
|
|
|
.field private static final CONTENT_TYPE:Ljava/lang/String; = "Content-Type"
|
|
|
|
.field public static final Companion:Lcom/vungle/ads/internal/downloader/AssetDownloader$Companion;
|
|
|
|
.field private static final DOWNLOAD_CHUNK_SIZE:I = 0x800
|
|
|
|
.field private static final GZIP:Ljava/lang/String; = "gzip"
|
|
|
|
.field private static final IDENTITY:Ljava/lang/String; = "identity"
|
|
|
|
.field private static final MINIMUM_SPACE_REQUIRED_MB:I = 0x1400000
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "AssetDownloader"
|
|
|
|
.field private static final TIMEOUT:I = 0x1e
|
|
|
|
|
|
# instance fields
|
|
.field private final downloadExecutor:Lcom/vungle/ads/internal/executor/VungleThreadPoolExecutor;
|
|
|
|
.field private okHttpClient:Lokhttp3/OkHttpClient;
|
|
|
|
.field private final pathProvider:Lcom/vungle/ads/internal/util/PathProvider;
|
|
|
|
.field private final transitioning:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/vungle/ads/internal/downloader/DownloadRequest;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static synthetic $r8$lambda$oiDI-vyetpuVfH_-LetkRE0XUfk(Lcom/vungle/ads/internal/downloader/AssetDownloader;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
.locals 0
|
|
|
|
.line 0
|
|
invoke-static {p0, p1, p2}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->download$lambda-0(Lcom/vungle/ads/internal/downloader/AssetDownloader;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/AssetDownloader$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/vungle/ads/internal/downloader/AssetDownloader$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloader$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/vungle/ads/internal/executor/VungleThreadPoolExecutor;Lcom/vungle/ads/internal/util/PathProvider;)V
|
|
.locals 7
|
|
|
|
const-string v0, "downloadExecutor"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "pathProvider"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->downloadExecutor:Lcom/vungle/ads/internal/executor/VungleThreadPoolExecutor;
|
|
|
|
iput-object p2, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->pathProvider:Lcom/vungle/ads/internal/util/PathProvider;
|
|
|
|
.line 59
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->transitioning:Ljava/util/List;
|
|
|
|
.line 62
|
|
new-instance p1, Lokhttp3/OkHttpClient$Builder;
|
|
|
|
invoke-direct {p1}, Lokhttp3/OkHttpClient$Builder;-><init>()V
|
|
|
|
.line 63
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
const-wide/16 v1, 0x1e
|
|
|
|
invoke-virtual {p1, v1, v2, v0}, Lokhttp3/OkHttpClient$Builder;->readTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 64
|
|
invoke-virtual {p1, v1, v2, v0}, Lokhttp3/OkHttpClient$Builder;->connectTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 65
|
|
invoke-virtual {p1, v0}, Lokhttp3/OkHttpClient$Builder;->cache(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 66
|
|
invoke-virtual {p1, v0}, Lokhttp3/OkHttpClient$Builder;->followRedirects(Z)Lokhttp3/OkHttpClient$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 67
|
|
invoke-virtual {p1, v0}, Lokhttp3/OkHttpClient$Builder;->followSslRedirects(Z)Lokhttp3/OkHttpClient$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 68
|
|
sget-object v0, Lcom/vungle/ads/internal/ConfigManager;->INSTANCE:Lcom/vungle/ads/internal/ConfigManager;
|
|
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->isCleverCacheEnabled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 69
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->getCleverCacheDiskSize()J
|
|
|
|
move-result-wide v1
|
|
|
|
.line 70
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/ConfigManager;->getCleverCacheDiskPercentage()I
|
|
|
|
move-result v0
|
|
|
|
.line 72
|
|
invoke-virtual {p2}, Lcom/vungle/ads/internal/util/PathProvider;->getCleverCacheDir()Ljava/io/File;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "pathProvider.getCleverCacheDir().absolutePath"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2, v3}, Lcom/vungle/ads/internal/util/PathProvider;->getAvailableBytes(Ljava/lang/String;)J
|
|
|
|
move-result-wide v3
|
|
|
|
int-to-long v5, v0
|
|
|
|
mul-long/2addr v3, v5
|
|
|
|
const/16 v0, 0x64
|
|
|
|
int-to-long v5, v0
|
|
|
|
div-long/2addr v3, v5
|
|
|
|
.line 73
|
|
invoke-static {v1, v2, v3, v4}, Ljava/lang/Long;->min(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
.line 75
|
|
new-instance v2, Lokhttp3/Cache;
|
|
|
|
invoke-virtual {p2}, Lcom/vungle/ads/internal/util/PathProvider;->getCleverCacheDir()Ljava/io/File;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {v2, p2, v0, v1}, Lokhttp3/Cache;-><init>(Ljava/io/File;J)V
|
|
|
|
invoke-virtual {p1, v2}, Lokhttp3/OkHttpClient$Builder;->cache(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder;
|
|
|
|
goto :goto_0
|
|
|
|
.line 77
|
|
:cond_0
|
|
sget-object p2, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
const-string v0, "AssetDownloader"
|
|
|
|
const-string v1, "cache disk capacity size <=0, no clever cache active."
|
|
|
|
invoke-virtual {p2, v0, v1}, Lcom/vungle/ads/internal/util/Logger$Companion;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 81
|
|
:cond_1
|
|
:goto_0
|
|
invoke-virtual {p1}, Lokhttp3/OkHttpClient$Builder;->build()Lokhttp3/OkHttpClient;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->okHttpClient:Lokhttp3/OkHttpClient;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$launchRequest(Lcom/vungle/ads/internal/downloader/AssetDownloader;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
.locals 0
|
|
|
|
.line 40
|
|
invoke-direct {p0, p1, p2}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->launchRequest(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final checkSpaceAvailable()Z
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->pathProvider:Lcom/vungle/ads/internal/util/PathProvider;
|
|
|
|
.line 363
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/util/PathProvider;->getVungleDir()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "pathProvider.getVungleDir().absolutePath"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/vungle/ads/internal/util/PathProvider;->getAvailableBytes(Ljava/lang/String;)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/32 v2, 0x1400000
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
.line 365
|
|
sget-object v3, Lcom/vungle/ads/AnalyticsClient;->INSTANCE:Lcom/vungle/ads/AnalyticsClient;
|
|
|
|
const/16 v4, 0x7e
|
|
|
|
.line 367
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v5, "Insufficient space "
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/16 v9, 0x1c
|
|
|
|
const/4 v10, 0x0
|
|
|
|
.line 365
|
|
invoke-static/range {v3 .. v10}, Lcom/vungle/ads/AnalyticsClient;->logError$vungle_ads_release$default(Lcom/vungle/ads/AnalyticsClient;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private final decodeGzipIfNeeded(Lokhttp3/Response;)Lokhttp3/ResponseBody;
|
|
.locals 6
|
|
|
|
.line 340
|
|
invoke-virtual {p1}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Content-Encoding"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x2
|
|
|
|
.line 342
|
|
invoke-static {p1, v1, v2, v3, v2}, Lokhttp3/Response;->header$default(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const-string v5, "gzip"
|
|
|
|
.line 341
|
|
invoke-static {v5, v1, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 346
|
|
new-instance v1, Lokio/GzipSource;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Lokio/GzipSource;-><init>(Lokio/Source;)V
|
|
|
|
const-string v0, "Content-Type"
|
|
|
|
.line 347
|
|
invoke-static {p1, v0, v2, v3, v2}, Lokhttp3/Response;->header$default(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 348
|
|
new-instance v0, Lokhttp3/internal/http/RealResponseBody;
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
invoke-static {v1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, p1, v2, v3, v1}, Lokhttp3/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLokio/BufferedSource;)V
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
.locals 0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 118
|
|
invoke-interface {p2, p3, p1}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener;->onError(Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;Lcom/vungle/ads/internal/downloader/DownloadRequest;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private final deliverSuccess(Ljava/io/File;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
.locals 3
|
|
|
|
.line 357
|
|
sget-object v0, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "On success "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "AssetDownloader"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 358
|
|
invoke-interface {p3, p1, p2}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener;->onSuccess(Ljava/io/File;Lcom/vungle/ads/internal/downloader/DownloadRequest;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private static final download$lambda-0(Lcom/vungle/ads/internal/downloader/AssetDownloader;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
.locals 4
|
|
|
|
const-string v0, "this$0"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 104
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;
|
|
|
|
.line 106
|
|
new-instance v1, Lcom/vungle/ads/OutOfMemory;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "Cannot complete "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, " : Out of Memory"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Lcom/vungle/ads/OutOfMemory;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 107
|
|
sget-object v2, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;
|
|
|
|
invoke-virtual {v2}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;->getINTERNAL_ERROR()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
.line 104
|
|
invoke-direct {v0, v3, v1, v2}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;-><init>(ILjava/lang/Throwable;I)V
|
|
|
|
.line 103
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final isValidUrl(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 375
|
|
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 p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method private final launchRequest(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
.locals 44
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
move-object/from16 v3, p2
|
|
|
|
const-string v4, "On cancel "
|
|
|
|
const-string v5, "download status: "
|
|
|
|
.line 138
|
|
sget-object v0, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
.line 140
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v7, "launch request in thread: "
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Thread;->getId()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-virtual {v6, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v7, " request: "
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getAsset()Lcom/vungle/ads/internal/model/AdAsset;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Lcom/vungle/ads/internal/model/AdAsset;->getServerPath()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "AssetDownloader"
|
|
|
|
.line 138
|
|
invoke-virtual {v0, v7, v6}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 143
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->isCancelled()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
.line 146
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "Request "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getAsset()Lcom/vungle/ads/internal/model/AdAsset;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/vungle/ads/internal/model/AdAsset;->getServerPath()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " is cancelled before starting"
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 144
|
|
invoke-virtual {v0, v7, v2}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 148
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;
|
|
|
|
invoke-direct {v0}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;-><init>()V
|
|
|
|
.line 149
|
|
sget-object v2, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;
|
|
|
|
invoke-virtual {v2}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getCANCELLED()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v2}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setStatus(I)V
|
|
|
|
return-void
|
|
|
|
.line 154
|
|
:cond_0
|
|
new-instance v6, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;
|
|
|
|
invoke-direct {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;-><init>()V
|
|
|
|
.line 155
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-virtual {v6, v8, v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setTimestampDownloadStart(J)V
|
|
|
|
.line 158
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getAsset()Lcom/vungle/ads/internal/model/AdAsset;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/model/AdAsset;->getServerPath()Ljava/lang/String;
|
|
|
|
move-result-object v15
|
|
|
|
.line 159
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getAsset()Lcom/vungle/ads/internal/model/AdAsset;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/model/AdAsset;->getLocalPath()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 161
|
|
invoke-interface {v15}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v8
|
|
|
|
const/4 v14, -0x1
|
|
|
|
if-nez v8, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-direct {v1, v15}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->isValidUrl(Ljava/lang/String;)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_2
|
|
|
|
.line 163
|
|
:goto_0
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;
|
|
|
|
.line 165
|
|
new-instance v4, Lcom/vungle/ads/AssetDownloadError;
|
|
|
|
invoke-direct {v4}, Lcom/vungle/ads/AssetDownloadError;-><init>()V
|
|
|
|
.line 166
|
|
sget-object v5, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;
|
|
|
|
invoke-virtual {v5}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;->getINTERNAL_ERROR()I
|
|
|
|
move-result v5
|
|
|
|
.line 163
|
|
invoke-direct {v0, v14, v4, v5}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;-><init>(ILjava/lang/Throwable;I)V
|
|
|
|
.line 162
|
|
invoke-direct {v1, v2, v3, v0}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
|
|
return-void
|
|
|
|
.line 171
|
|
:cond_2
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_3
|
|
|
|
.line 173
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;
|
|
|
|
.line 175
|
|
new-instance v4, Lcom/vungle/ads/AssetDownloadError;
|
|
|
|
invoke-direct {v4}, Lcom/vungle/ads/AssetDownloadError;-><init>()V
|
|
|
|
.line 176
|
|
sget-object v5, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;
|
|
|
|
invoke-virtual {v5}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;->getFILE_NOT_FOUND_ERROR()I
|
|
|
|
move-result v5
|
|
|
|
.line 173
|
|
invoke-direct {v0, v14, v4, v5}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;-><init>(ILjava/lang/Throwable;I)V
|
|
|
|
.line 172
|
|
invoke-direct {v1, v2, v3, v0}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
|
|
return-void
|
|
|
|
.line 181
|
|
:cond_3
|
|
invoke-direct/range {p0 .. p0}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->checkSpaceAvailable()Z
|
|
|
|
move-result v8
|
|
|
|
const/4 v13, 0x0
|
|
|
|
if-nez v8, :cond_4
|
|
|
|
.line 183
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;
|
|
|
|
.line 185
|
|
new-instance v4, Lcom/vungle/ads/InternalError;
|
|
|
|
const/16 v5, 0x2723
|
|
|
|
const/4 v6, 0x2
|
|
|
|
invoke-direct {v4, v5, v13, v6, v13}, Lcom/vungle/ads/InternalError;-><init>(ILjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.line 186
|
|
sget-object v5, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;
|
|
|
|
invoke-virtual {v5}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;->getDISK_ERROR()I
|
|
|
|
move-result v5
|
|
|
|
.line 183
|
|
invoke-direct {v0, v14, v4, v5}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;-><init>(ILjava/lang/Throwable;I)V
|
|
|
|
.line 182
|
|
invoke-direct {v1, v2, v3, v0}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
|
|
return-void
|
|
|
|
.line 191
|
|
:cond_4
|
|
new-instance v12, Ljava/io/File;
|
|
|
|
invoke-direct {v12, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
move-object v10, v13
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-nez v0, :cond_25
|
|
|
|
.line 203
|
|
:try_start_0
|
|
invoke-virtual {v12}, Ljava/io/File;->getParentFile()Ljava/io/File;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_15
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_11
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 204
|
|
:try_start_1
|
|
invoke-virtual {v0}, Ljava/io/File;->exists()Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_5
|
|
|
|
.line 205
|
|
invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
move-object v8, v4
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object v10, v12
|
|
|
|
move-object v4, v13
|
|
|
|
move-object v15, v4
|
|
|
|
move-object/from16 v18, v15
|
|
|
|
move-object/from16 v19, v18
|
|
|
|
goto/16 :goto_32
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object v4, v13
|
|
|
|
move-object/from16 v18, v4
|
|
|
|
move-object/from16 v19, v18
|
|
|
|
move-object/from16 v26, v19
|
|
|
|
move/from16 v17, v14
|
|
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
move-object v13, v0
|
|
|
|
move/from16 v0, v17
|
|
|
|
move-object/from16 v14, v26
|
|
|
|
goto/16 :goto_2a
|
|
|
|
.line 207
|
|
:cond_5
|
|
:goto_2
|
|
:try_start_2
|
|
invoke-virtual {v12}, Ljava/io/File;->exists()Z
|
|
|
|
move-result v0
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_15
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_11
|
|
|
|
const-wide/16 v16, 0x0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
:try_start_3
|
|
invoke-virtual {v12}, Ljava/io/File;->length()J
|
|
|
|
move-result-wide v18
|
|
:try_end_3
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
move-wide/from16 v20, v18
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
move-wide/from16 v20, v16
|
|
|
|
.line 209
|
|
:goto_3
|
|
:try_start_4
|
|
new-instance v0, Lokhttp3/Request$Builder;
|
|
|
|
invoke-direct {v0}, Lokhttp3/Request$Builder;-><init>()V
|
|
|
|
invoke-virtual {v0, v15}, Lokhttp3/Request$Builder;->url(Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v8, v1, Lcom/vungle/ads/internal/downloader/AssetDownloader;->okHttpClient:Lokhttp3/OkHttpClient;
|
|
|
|
.line 211
|
|
invoke-virtual {v0}, Lokhttp3/Request$Builder;->build()Lokhttp3/Request;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v8, v0}, Lokhttp3/OkHttpClient;->newCall(Lokhttp3/Request;)Lokhttp3/Call;
|
|
|
|
move-result-object v18
|
|
:try_end_4
|
|
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_15
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_11
|
|
|
|
.line 212
|
|
:try_start_5
|
|
invoke-interface/range {v18 .. v18}, Lokhttp3/Call;->execute()Lokhttp3/Response;
|
|
|
|
move-result-object v8
|
|
:try_end_5
|
|
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_14
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_10
|
|
|
|
.line 214
|
|
:try_start_6
|
|
invoke-virtual {v8}, Lokhttp3/Response;->code()I
|
|
|
|
move-result v14
|
|
:try_end_6
|
|
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_13
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_f
|
|
|
|
.line 215
|
|
:try_start_7
|
|
invoke-virtual {v8}, Lokhttp3/Response;->isSuccessful()Z
|
|
|
|
move-result v0
|
|
:try_end_7
|
|
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_12
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_f
|
|
|
|
if-eqz v0, :cond_16
|
|
|
|
.line 224
|
|
:try_start_8
|
|
invoke-virtual {v8}, Lokhttp3/Response;->cacheResponse()Lokhttp3/Response;
|
|
|
|
move-result-object v0
|
|
:try_end_8
|
|
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_f
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_c
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 225
|
|
:try_start_9
|
|
sget-object v0, Lcom/vungle/ads/AnalyticsClient;->INSTANCE:Lcom/vungle/ads/AnalyticsClient;
|
|
|
|
.line 226
|
|
new-instance v9, Lcom/vungle/ads/SingleValueMetric;
|
|
|
|
sget-object v11, Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$SDKMetricType;->CACHED_ASSETS_USED:Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$SDKMetricType;
|
|
|
|
invoke-direct {v9, v11}, Lcom/vungle/ads/SingleValueMetric;-><init>(Lcom/vungle/ads/internal/protos/Sdk$SDKMetric$SDKMetricType;)V
|
|
|
|
.line 227
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getPlacementId()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
.line 228
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getCreativeId()Ljava/lang/String;
|
|
|
|
move-result-object v24
|
|
|
|
.line 229
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getEventId()Ljava/lang/String;
|
|
|
|
move-result-object v25
|
|
:try_end_9
|
|
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_2
|
|
.catchall {:try_start_9 .. :try_end_9} :catchall_2
|
|
|
|
move-object/from16 v26, v8
|
|
|
|
move-object v8, v0
|
|
|
|
move/from16 v27, v14
|
|
|
|
const/4 v14, 0x1
|
|
|
|
move-object/from16 v28, v10
|
|
|
|
move-object v10, v11
|
|
|
|
move-object/from16 v11, v24
|
|
|
|
move-object/from16 v30, v12
|
|
|
|
move-object/from16 v12, v25
|
|
|
|
move-object v13, v15
|
|
|
|
.line 225
|
|
:try_start_a
|
|
invoke-virtual/range {v8 .. v13}, Lcom/vungle/ads/AnalyticsClient;->logMetric$vungle_ads_release(Lcom/vungle/ads/SingleValueMetric;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 232
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_a
|
|
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_1
|
|
.catchall {:try_start_a .. :try_end_a} :catchall_1
|
|
|
|
goto :goto_9
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
:goto_4
|
|
move-object v8, v4
|
|
|
|
move-object/from16 v13, v26
|
|
|
|
:goto_5
|
|
move-object/from16 v41, v28
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
:goto_6
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
:goto_7
|
|
const/16 v19, 0x0
|
|
|
|
goto/16 :goto_32
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
:goto_8
|
|
move-object v13, v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move/from16 v22, v14
|
|
|
|
move/from16 v0, v27
|
|
|
|
move-object/from16 v41, v28
|
|
|
|
move-object/from16 v40, v30
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v21, 0x0
|
|
|
|
goto/16 :goto_2a
|
|
|
|
:catchall_2
|
|
move-exception v0
|
|
|
|
move-object/from16 v26, v8
|
|
|
|
move-object/from16 v28, v10
|
|
|
|
move-object/from16 v30, v12
|
|
|
|
goto :goto_4
|
|
|
|
:catch_2
|
|
move-exception v0
|
|
|
|
move-object/from16 v26, v8
|
|
|
|
move-object/from16 v28, v10
|
|
|
|
move-object/from16 v30, v12
|
|
|
|
move/from16 v27, v14
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_7
|
|
move-object/from16 v26, v8
|
|
|
|
move-object/from16 v28, v10
|
|
|
|
move-object/from16 v30, v12
|
|
|
|
move/from16 v27, v14
|
|
|
|
const/4 v14, 0x1
|
|
|
|
.line 234
|
|
:goto_9
|
|
:try_start_b
|
|
invoke-virtual/range {v26 .. v26}, Lokhttp3/Response;->headers()Lokhttp3/Headers;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v8, "Content-Encoding"
|
|
|
|
.line 235
|
|
invoke-virtual {v0, v8}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
:try_end_b
|
|
.catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_e
|
|
.catchall {:try_start_b .. :try_end_b} :catchall_b
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
:try_start_c
|
|
const-string v8, "gzip"
|
|
|
|
.line 237
|
|
invoke-static {v8, v0, v14}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_8
|
|
|
|
const-string v8, "identity"
|
|
|
|
.line 238
|
|
invoke-static {v8, v0, v14}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_9
|
|
|
|
:cond_8
|
|
move-object/from16 v13, v26
|
|
|
|
goto :goto_a
|
|
|
|
.line 240
|
|
:cond_9
|
|
sget-object v8, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
new-instance v9, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v10, "loadAd: Unknown Content-Encoding "
|
|
|
|
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v7, v9}, Lcom/vungle/ads/internal/util/Logger$Companion;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 241
|
|
new-instance v8, Ljava/io/IOException;
|
|
|
|
new-instance v9, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v10, "Unknown Content-Encoding "
|
|
|
|
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v8, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v8
|
|
:try_end_c
|
|
.catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_1
|
|
.catchall {:try_start_c .. :try_end_c} :catchall_1
|
|
|
|
.line 244
|
|
:goto_a
|
|
:try_start_d
|
|
invoke-direct {v1, v13}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->decodeGzipIfNeeded(Lokhttp3/Response;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v0
|
|
:try_end_d
|
|
.catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_d
|
|
.catchall {:try_start_d .. :try_end_d} :catchall_a
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
.line 246
|
|
:try_start_e
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object v8
|
|
:try_end_e
|
|
.catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_3
|
|
.catchall {:try_start_e .. :try_end_e} :catchall_3
|
|
|
|
goto :goto_d
|
|
|
|
:catchall_3
|
|
move-exception v0
|
|
|
|
move-object v8, v4
|
|
|
|
goto/16 :goto_5
|
|
|
|
:catch_3
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
move/from16 v22, v14
|
|
|
|
move-object/from16 v41, v28
|
|
|
|
move-object/from16 v40, v30
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v21, 0x0
|
|
|
|
:goto_b
|
|
move-object v13, v0
|
|
|
|
:goto_c
|
|
move/from16 v0, v27
|
|
|
|
goto/16 :goto_2a
|
|
|
|
:cond_a
|
|
const/4 v8, 0x0
|
|
|
|
.line 248
|
|
:goto_d
|
|
:try_start_f
|
|
sget-object v9, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
new-instance v10, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v11, "Start download from bytes:"
|
|
|
|
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-wide/from16 v11, v20
|
|
|
|
invoke-virtual {v10, v11, v12}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v14, ", url: "
|
|
|
|
invoke-virtual {v10, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v10, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v9, v7, v10}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
:try_end_f
|
|
.catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_c
|
|
.catchall {:try_start_f .. :try_end_f} :catchall_9
|
|
|
|
cmp-long v9, v11, v16
|
|
|
|
if-nez v9, :cond_b
|
|
|
|
move-object/from16 v20, v4
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
.line 252
|
|
:try_start_10
|
|
invoke-static {v10, v9, v4, v14}, Lokio/Okio;->sink$default(Ljava/io/File;ZILjava/lang/Object;)Lokio/Sink;
|
|
|
|
move-result-object v21
|
|
:try_end_10
|
|
.catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_4
|
|
.catchall {:try_start_10 .. :try_end_10} :catchall_4
|
|
|
|
goto :goto_10
|
|
|
|
:catchall_4
|
|
move-exception v0
|
|
|
|
move-object v15, v8
|
|
|
|
move-object v4, v14
|
|
|
|
move-object/from16 v19, v4
|
|
|
|
:goto_e
|
|
move-object/from16 v8, v20
|
|
|
|
move-object/from16 v41, v28
|
|
|
|
goto/16 :goto_32
|
|
|
|
:catch_4
|
|
move-exception v0
|
|
|
|
move/from16 v22, v4
|
|
|
|
move/from16 v21, v9
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
move-object v4, v14
|
|
|
|
move-object/from16 v19, v4
|
|
|
|
move-object/from16 v23, v20
|
|
|
|
move-object/from16 v41, v28
|
|
|
|
const/16 v17, -0x1
|
|
|
|
:goto_f
|
|
move-object v13, v0
|
|
|
|
move-object v14, v8
|
|
|
|
goto :goto_c
|
|
|
|
:cond_b
|
|
move-object/from16 v20, v4
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:try_start_11
|
|
invoke-static {v10}, Lokio/Okio;->appendingSink(Ljava/io/File;)Lokio/Sink;
|
|
|
|
move-result-object v21
|
|
|
|
:goto_10
|
|
invoke-static/range {v21 .. v21}, Lokio/Okio;->buffer(Lokio/Sink;)Lokio/BufferedSink;
|
|
|
|
move-result-object v4
|
|
:try_end_11
|
|
.catch Ljava/lang/Exception; {:try_start_11 .. :try_end_11} :catch_b
|
|
.catchall {:try_start_11 .. :try_end_11} :catchall_8
|
|
|
|
.line 255
|
|
:try_start_12
|
|
sget-object v21, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;
|
|
|
|
invoke-virtual/range {v21 .. v21}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getSTARTED()I
|
|
|
|
move-result v9
|
|
|
|
invoke-virtual {v6, v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setStatus(I)V
|
|
:try_end_12
|
|
.catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_9
|
|
.catchall {:try_start_12 .. :try_end_12} :catchall_7
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
.line 256
|
|
:try_start_13
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->contentLength()J
|
|
|
|
move-result-wide v23
|
|
:try_end_13
|
|
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_13} :catch_5
|
|
.catchall {:try_start_13 .. :try_end_13} :catchall_5
|
|
|
|
move-object/from16 v21, v15
|
|
|
|
move-wide/from16 v14, v23
|
|
|
|
goto :goto_12
|
|
|
|
:catchall_5
|
|
move-exception v0
|
|
|
|
move-object v15, v8
|
|
|
|
move-object/from16 v19, v14
|
|
|
|
goto :goto_e
|
|
|
|
:catch_5
|
|
move-exception v0
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
move-object/from16 v19, v14
|
|
|
|
move-object/from16 v23, v20
|
|
|
|
move-object/from16 v41, v28
|
|
|
|
const/16 v17, -0x1
|
|
|
|
:goto_11
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
goto :goto_f
|
|
|
|
:cond_c
|
|
move-object/from16 v21, v15
|
|
|
|
move-wide/from16 v14, v16
|
|
|
|
:goto_12
|
|
:try_start_14
|
|
invoke-virtual {v6, v14, v15}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setSizeBytes(J)V
|
|
|
|
.line 257
|
|
invoke-virtual {v6, v11, v12}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setStartBytes(J)V
|
|
:try_end_14
|
|
.catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_a
|
|
.catchall {:try_start_14 .. :try_end_14} :catchall_7
|
|
|
|
:goto_13
|
|
if-eqz v8, :cond_d
|
|
|
|
.line 259
|
|
:try_start_15
|
|
invoke-interface {v4}, Lokio/BufferedSink;->getBuffer()Lokio/Buffer;
|
|
|
|
move-result-object v0
|
|
|
|
const-wide/16 v11, 0x800
|
|
|
|
invoke-interface {v8, v0, v11, v12}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v11
|
|
:try_end_15
|
|
.catch Ljava/lang/Exception; {:try_start_15 .. :try_end_15} :catch_6
|
|
.catchall {:try_start_15 .. :try_end_15} :catchall_6
|
|
|
|
goto :goto_16
|
|
|
|
:catchall_6
|
|
move-exception v0
|
|
|
|
move-object v15, v8
|
|
|
|
move-object/from16 v8, v20
|
|
|
|
move-object/from16 v41, v28
|
|
|
|
goto/16 :goto_7
|
|
|
|
:catch_6
|
|
move-exception v0
|
|
|
|
move-object v14, v8
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
move-object/from16 v23, v20
|
|
|
|
move-object/from16 v15, v21
|
|
|
|
:goto_14
|
|
move-object/from16 v41, v28
|
|
|
|
:goto_15
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_d
|
|
const-wide/16 v11, -0x1
|
|
|
|
.line 260
|
|
:goto_16
|
|
:try_start_16
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_16
|
|
.catch Ljava/lang/Exception; {:try_start_16 .. :try_end_16} :catch_a
|
|
.catchall {:try_start_16 .. :try_end_16} :catchall_7
|
|
|
|
cmp-long v0, v11, v16
|
|
|
|
if-lez v0, :cond_e
|
|
|
|
.line 262
|
|
:try_start_17
|
|
invoke-virtual {v10}, Ljava/io/File;->exists()Z
|
|
|
|
move-result v0
|
|
:try_end_17
|
|
.catch Ljava/lang/Exception; {:try_start_17 .. :try_end_17} :catch_8
|
|
.catchall {:try_start_17 .. :try_end_17} :catchall_6
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
.line 270
|
|
:try_start_18
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->isCancelled()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
.line 271
|
|
sget-object v0, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getCANCELLED()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v6, v0}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setStatus(I)V
|
|
|
|
:cond_e
|
|
move-object/from16 v15, v21
|
|
|
|
goto :goto_18
|
|
|
|
.line 275
|
|
:cond_f
|
|
sget-object v0, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getIN_PROGRESS()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v6, v0}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setStatus(I)V
|
|
|
|
.line 277
|
|
invoke-interface {v4}, Lokio/BufferedSink;->emit()Lokio/BufferedSink;
|
|
:try_end_18
|
|
.catch Ljava/lang/Exception; {:try_start_18 .. :try_end_18} :catch_6
|
|
.catchall {:try_start_18 .. :try_end_18} :catchall_6
|
|
|
|
goto :goto_13
|
|
|
|
.line 263
|
|
:cond_10
|
|
:try_start_19
|
|
sget-object v32, Lcom/vungle/ads/AnalyticsClient;->INSTANCE:Lcom/vungle/ads/AnalyticsClient;
|
|
|
|
const/16 v33, 0x72
|
|
|
|
.line 265
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v9, "Asset save error "
|
|
|
|
invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
:try_end_19
|
|
.catch Ljava/lang/Exception; {:try_start_19 .. :try_end_19} :catch_8
|
|
.catchall {:try_start_19 .. :try_end_19} :catchall_6
|
|
|
|
move-object/from16 v15, v21
|
|
|
|
:try_start_1a
|
|
invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v34
|
|
|
|
const/16 v35, 0x0
|
|
|
|
const/16 v36, 0x0
|
|
|
|
const/16 v37, 0x0
|
|
|
|
const/16 v38, 0x1c
|
|
|
|
const/16 v39, 0x0
|
|
|
|
.line 263
|
|
invoke-static/range {v32 .. v39}, Lcom/vungle/ads/AnalyticsClient;->logError$vungle_ads_release$default(Lcom/vungle/ads/AnalyticsClient;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
.line 267
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/Downloader$RequestException;
|
|
|
|
const-string v9, "File is not existing"
|
|
|
|
invoke-direct {v0, v9}, Lcom/vungle/ads/internal/downloader/Downloader$RequestException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
:try_end_1a
|
|
.catch Ljava/lang/Exception; {:try_start_1a .. :try_end_1a} :catch_7
|
|
.catchall {:try_start_1a .. :try_end_1a} :catchall_6
|
|
|
|
:catch_7
|
|
move-exception v0
|
|
|
|
:goto_17
|
|
move-object v14, v8
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
move-object/from16 v23, v20
|
|
|
|
goto :goto_14
|
|
|
|
:catch_8
|
|
move-exception v0
|
|
|
|
move-object/from16 v15, v21
|
|
|
|
goto :goto_17
|
|
|
|
.line 282
|
|
:goto_18
|
|
:try_start_1b
|
|
invoke-interface {v4}, Lokio/BufferedSink;->flush()V
|
|
|
|
.line 284
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->getStatus()I
|
|
|
|
move-result v0
|
|
|
|
sget-object v9, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;
|
|
|
|
invoke-virtual {v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getIN_PROGRESS()I
|
|
|
|
move-result v11
|
|
:try_end_1b
|
|
.catch Ljava/lang/Exception; {:try_start_1b .. :try_end_1b} :catch_9
|
|
.catchall {:try_start_1b .. :try_end_1b} :catchall_7
|
|
|
|
if-ne v0, v11, :cond_11
|
|
|
|
.line 285
|
|
:try_start_1c
|
|
invoke-virtual {v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getDONE()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v6, v0}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setStatus(I)V
|
|
:try_end_1c
|
|
.catch Ljava/lang/Exception; {:try_start_1c .. :try_end_1c} :catch_7
|
|
.catchall {:try_start_1c .. :try_end_1c} :catchall_6
|
|
|
|
.line 310
|
|
:cond_11
|
|
invoke-virtual {v13}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
.line 311
|
|
invoke-virtual {v13}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
|
|
|
|
.line 314
|
|
:cond_12
|
|
invoke-interface/range {v18 .. v18}, Lokhttp3/Call;->cancel()V
|
|
|
|
.line 316
|
|
sget-object v0, Lcom/vungle/ads/internal/util/FileUtility;->INSTANCE:Lcom/vungle/ads/internal/util/FileUtility;
|
|
|
|
invoke-virtual {v0, v4}, Lcom/vungle/ads/internal/util/FileUtility;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 317
|
|
invoke-virtual {v0, v8}, Lcom/vungle/ads/internal/util/FileUtility;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 319
|
|
sget-object v0, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->getStatus()I
|
|
|
|
move-result v8
|
|
|
|
invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0, v7, v4}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 320
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->getStatus()I
|
|
|
|
move-result v4
|
|
|
|
.line 321
|
|
invoke-virtual {v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getERROR()I
|
|
|
|
move-result v8
|
|
|
|
if-ne v4, v8, :cond_13
|
|
|
|
:goto_19
|
|
move-object/from16 v14, v28
|
|
|
|
goto :goto_1a
|
|
|
|
.line 322
|
|
:cond_13
|
|
invoke-virtual {v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getSTARTED()I
|
|
|
|
move-result v8
|
|
|
|
if-ne v4, v8, :cond_14
|
|
|
|
goto :goto_19
|
|
|
|
.line 323
|
|
:goto_1a
|
|
invoke-direct {v1, v2, v3, v14}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
goto :goto_1b
|
|
|
|
:cond_14
|
|
move-object/from16 v14, v28
|
|
|
|
.line 326
|
|
invoke-virtual {v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getCANCELLED()I
|
|
|
|
move-result v8
|
|
|
|
if-ne v4, v8, :cond_15
|
|
|
|
.line 327
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
invoke-virtual {v4, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0, v7, v4}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_1b
|
|
|
|
:cond_15
|
|
move-object/from16 v12, v20
|
|
|
|
.line 331
|
|
invoke-direct {v1, v10, v2, v3}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverSuccess(Ljava/io/File;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
|
|
:goto_1b
|
|
move-object v8, v12
|
|
|
|
move-object/from16 v20, v15
|
|
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
goto/16 :goto_30
|
|
|
|
:catchall_7
|
|
move-exception v0
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
move-object/from16 v14, v28
|
|
|
|
move-object v15, v8
|
|
|
|
move-object v8, v12
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
goto/16 :goto_7
|
|
|
|
:catch_9
|
|
move-exception v0
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
:goto_1c
|
|
move-object/from16 v14, v28
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v23, v12
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
:goto_1d
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
goto/16 :goto_11
|
|
|
|
:catch_a
|
|
move-exception v0
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
move-object/from16 v15, v21
|
|
|
|
goto :goto_1c
|
|
|
|
:catchall_8
|
|
move-exception v0
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
move-object/from16 v14, v28
|
|
|
|
:goto_1e
|
|
move-object v15, v8
|
|
|
|
move-object v8, v12
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
const/4 v4, 0x0
|
|
|
|
goto/16 :goto_7
|
|
|
|
:catch_b
|
|
move-exception v0
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
move-object/from16 v14, v28
|
|
|
|
:goto_1f
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v23, v12
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
const/4 v4, 0x0
|
|
|
|
goto :goto_1d
|
|
|
|
:catchall_9
|
|
move-exception v0
|
|
|
|
move-object v12, v4
|
|
|
|
move-object/from16 v14, v28
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
goto :goto_1e
|
|
|
|
:catch_c
|
|
move-exception v0
|
|
|
|
move-object v12, v4
|
|
|
|
move-object/from16 v14, v28
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
goto :goto_1f
|
|
|
|
:catchall_a
|
|
move-exception v0
|
|
|
|
move-object v12, v4
|
|
|
|
:goto_20
|
|
move-object/from16 v14, v28
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
:goto_21
|
|
move-object v8, v12
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
goto/16 :goto_6
|
|
|
|
:catch_d
|
|
move-exception v0
|
|
|
|
move-object v12, v4
|
|
|
|
move-object/from16 v14, v28
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
:goto_22
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v23, v12
|
|
|
|
move-object/from16 v26, v13
|
|
|
|
:goto_23
|
|
move-object/from16 v41, v14
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
goto/16 :goto_15
|
|
|
|
:catchall_b
|
|
move-exception v0
|
|
|
|
move-object v12, v4
|
|
|
|
move-object/from16 v13, v26
|
|
|
|
goto :goto_20
|
|
|
|
:catch_e
|
|
move-exception v0
|
|
|
|
move-object v12, v4
|
|
|
|
move-object/from16 v13, v26
|
|
|
|
move-object/from16 v14, v28
|
|
|
|
move-object/from16 v10, v30
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v23, v12
|
|
|
|
goto :goto_23
|
|
|
|
:catchall_c
|
|
move-exception v0
|
|
|
|
move-object v13, v8
|
|
|
|
move-object v14, v10
|
|
|
|
move-object v10, v12
|
|
|
|
move-object v12, v4
|
|
|
|
goto :goto_21
|
|
|
|
:catch_f
|
|
move-exception v0
|
|
|
|
move-object v13, v8
|
|
|
|
move/from16 v27, v14
|
|
|
|
move-object v14, v10
|
|
|
|
move-object v10, v12
|
|
|
|
move-object v12, v4
|
|
|
|
goto :goto_22
|
|
|
|
:cond_16
|
|
move-object v13, v8
|
|
|
|
move/from16 v27, v14
|
|
|
|
move-object v14, v10
|
|
|
|
move-object v10, v12
|
|
|
|
move-object v12, v4
|
|
|
|
.line 216
|
|
:try_start_1d
|
|
new-instance v0, Lcom/vungle/ads/AssetFailedStatusCodeError;
|
|
|
|
.line 218
|
|
invoke-static/range {v27 .. v27}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
.line 219
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getPlacementId()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
:try_end_1d
|
|
.catch Ljava/lang/Exception; {:try_start_1d .. :try_end_1d} :catch_11
|
|
.catchall {:try_start_1d .. :try_end_1d} :catchall_e
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0x8
|
|
|
|
const/16 v20, 0x0
|
|
|
|
move-object v8, v0
|
|
|
|
const/16 v21, 0x0
|
|
|
|
move-object v9, v15
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object v10, v4
|
|
|
|
move-object v4, v12
|
|
|
|
move-object/from16 v12, v16
|
|
|
|
move-object/from16 v16, v13
|
|
|
|
move/from16 v13, v17
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
move/from16 v4, v27
|
|
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
move-object/from16 v14, v20
|
|
|
|
.line 216
|
|
:try_start_1e
|
|
invoke-direct/range {v8 .. v14}, Lcom/vungle/ads/AssetFailedStatusCodeError;-><init>(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.line 220
|
|
invoke-virtual {v0}, Lcom/vungle/ads/VungleError;->logErrorNoReturnValue$vungle_ads_release()V
|
|
|
|
.line 221
|
|
new-instance v0, Lcom/vungle/ads/internal/downloader/Downloader$RequestException;
|
|
|
|
new-instance v8, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v9, "Code: "
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-direct {v0, v8}, Lcom/vungle/ads/internal/downloader/Downloader$RequestException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
:try_end_1e
|
|
.catch Ljava/lang/Exception; {:try_start_1e .. :try_end_1e} :catch_10
|
|
.catchall {:try_start_1e .. :try_end_1e} :catchall_d
|
|
|
|
:catchall_d
|
|
move-exception v0
|
|
|
|
:goto_24
|
|
move-object/from16 v13, v16
|
|
|
|
move-object/from16 v4, v19
|
|
|
|
move-object v15, v4
|
|
|
|
:goto_25
|
|
move-object/from16 v8, v23
|
|
|
|
:goto_26
|
|
move-object/from16 v10, v40
|
|
|
|
goto/16 :goto_32
|
|
|
|
:catch_10
|
|
move-exception v0
|
|
|
|
:goto_27
|
|
move-object v13, v0
|
|
|
|
move v0, v4
|
|
|
|
move-object/from16 v26, v16
|
|
|
|
:goto_28
|
|
move-object/from16 v4, v19
|
|
|
|
move-object v14, v4
|
|
|
|
goto/16 :goto_2a
|
|
|
|
:catchall_e
|
|
move-exception v0
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v23, v12
|
|
|
|
move-object/from16 v16, v13
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
const/16 v19, 0x0
|
|
|
|
move-object/from16 v4, v19
|
|
|
|
move-object v15, v4
|
|
|
|
move-object/from16 v8, v23
|
|
|
|
goto/16 :goto_32
|
|
|
|
:catch_11
|
|
move-exception v0
|
|
|
|
move-object/from16 v40, v10
|
|
|
|
move-object/from16 v23, v12
|
|
|
|
move-object/from16 v16, v13
|
|
|
|
move-object/from16 v41, v14
|
|
|
|
move/from16 v4, v27
|
|
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
:goto_29
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
goto :goto_27
|
|
|
|
:catchall_f
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v16, v8
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object/from16 v19, v13
|
|
|
|
goto :goto_24
|
|
|
|
:catch_12
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v16, v8
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object/from16 v19, v13
|
|
|
|
move v4, v14
|
|
|
|
const/16 v17, -0x1
|
|
|
|
goto :goto_29
|
|
|
|
:catch_13
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v16, v8
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object/from16 v19, v13
|
|
|
|
const/16 v17, -0x1
|
|
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
move-object v13, v0
|
|
|
|
move-object/from16 v26, v16
|
|
|
|
move/from16 v0, v17
|
|
|
|
goto :goto_28
|
|
|
|
:catchall_10
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object/from16 v19, v13
|
|
|
|
move-object/from16 v4, v19
|
|
|
|
move-object v13, v4
|
|
|
|
move-object v15, v13
|
|
|
|
goto :goto_25
|
|
|
|
:catch_14
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object/from16 v19, v13
|
|
|
|
move/from16 v17, v14
|
|
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
move-object v13, v0
|
|
|
|
move/from16 v0, v17
|
|
|
|
move-object/from16 v4, v19
|
|
|
|
move-object v14, v4
|
|
|
|
move-object/from16 v26, v14
|
|
|
|
goto :goto_2a
|
|
|
|
:catchall_11
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object/from16 v19, v13
|
|
|
|
move-object/from16 v4, v19
|
|
|
|
move-object v13, v4
|
|
|
|
move-object v15, v13
|
|
|
|
move-object/from16 v18, v15
|
|
|
|
goto/16 :goto_25
|
|
|
|
:catch_15
|
|
move-exception v0
|
|
|
|
move-object/from16 v23, v4
|
|
|
|
move-object/from16 v41, v10
|
|
|
|
move-object/from16 v40, v12
|
|
|
|
move-object/from16 v19, v13
|
|
|
|
move/from16 v17, v14
|
|
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x1
|
|
|
|
move-object v13, v0
|
|
|
|
move/from16 v0, v17
|
|
|
|
move-object/from16 v4, v19
|
|
|
|
move-object v14, v4
|
|
|
|
move-object/from16 v18, v14
|
|
|
|
move-object/from16 v26, v18
|
|
|
|
.line 289
|
|
:goto_2a
|
|
:try_start_1f
|
|
sget-object v12, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v12, v7, v8}, Lcom/vungle/ads/internal/util/Logger$Companion;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 293
|
|
instance-of v8, v13, Ljava/net/ProtocolException;
|
|
:try_end_1f
|
|
.catchall {:try_start_1f .. :try_end_1f} :catchall_14
|
|
|
|
if-eqz v8, :cond_18
|
|
|
|
.line 294
|
|
:try_start_20
|
|
sget-object v27, Lcom/vungle/ads/AnalyticsClient;->INSTANCE:Lcom/vungle/ads/AnalyticsClient;
|
|
|
|
const/16 v28, 0x70
|
|
|
|
.line 296
|
|
new-instance v8, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v9, "Failed to load asset: "
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getAsset()Lcom/vungle/ads/internal/model/AdAsset;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v9}, Lcom/vungle/ads/internal/model/AdAsset;->getServerPath()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v29
|
|
|
|
const/16 v30, 0x0
|
|
|
|
const/16 v31, 0x0
|
|
|
|
const/16 v32, 0x0
|
|
|
|
const/16 v33, 0x1c
|
|
|
|
const/16 v34, 0x0
|
|
|
|
.line 294
|
|
invoke-static/range {v27 .. v34}, Lcom/vungle/ads/AnalyticsClient;->logError$vungle_ads_release$default(Lcom/vungle/ads/AnalyticsClient;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V
|
|
:try_end_20
|
|
.catchall {:try_start_20 .. :try_end_20} :catchall_12
|
|
|
|
:cond_17
|
|
move-object/from16 v42, v12
|
|
|
|
move-object/from16 v43, v13
|
|
|
|
move-object/from16 v20, v15
|
|
|
|
move-object v15, v14
|
|
|
|
goto :goto_2b
|
|
|
|
:catchall_12
|
|
move-exception v0
|
|
|
|
move-object v15, v14
|
|
|
|
move-object/from16 v8, v23
|
|
|
|
move-object/from16 v13, v26
|
|
|
|
goto/16 :goto_26
|
|
|
|
.line 298
|
|
:cond_18
|
|
:try_start_21
|
|
instance-of v8, v13, Ljava/net/UnknownHostException;
|
|
:try_end_21
|
|
.catchall {:try_start_21 .. :try_end_21} :catchall_14
|
|
|
|
if-nez v8, :cond_19
|
|
|
|
:try_start_22
|
|
instance-of v8, v13, Ljava/io/IOException;
|
|
:try_end_22
|
|
.catchall {:try_start_22 .. :try_end_22} :catchall_12
|
|
|
|
if-eqz v8, :cond_17
|
|
|
|
.line 299
|
|
:cond_19
|
|
:try_start_23
|
|
new-instance v16, Lcom/vungle/ads/AssetFailedStatusCodeError;
|
|
|
|
const/4 v10, 0x0
|
|
|
|
.line 301
|
|
invoke-virtual/range {p1 .. p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->getPlacementId()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
.line 302
|
|
invoke-virtual {v13}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v20
|
|
:try_end_23
|
|
.catchall {:try_start_23 .. :try_end_23} :catchall_14
|
|
|
|
const/16 v24, 0x2
|
|
|
|
const/16 v25, 0x0
|
|
|
|
move-object/from16 v8, v16
|
|
|
|
move-object v9, v15
|
|
|
|
move-object/from16 v42, v12
|
|
|
|
move-object/from16 v12, v20
|
|
|
|
move-object/from16 v43, v13
|
|
|
|
move/from16 v13, v24
|
|
|
|
move-object/from16 v20, v15
|
|
|
|
move-object v15, v14
|
|
|
|
move-object/from16 v14, v25
|
|
|
|
.line 299
|
|
:try_start_24
|
|
invoke-direct/range {v8 .. v14}, Lcom/vungle/ads/AssetFailedStatusCodeError;-><init>(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.line 303
|
|
invoke-virtual/range {v16 .. v16}, Lcom/vungle/ads/VungleError;->logErrorNoReturnValue$vungle_ads_release()V
|
|
|
|
.line 306
|
|
:goto_2b
|
|
sget-object v8, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;
|
|
|
|
invoke-virtual {v8}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getERROR()I
|
|
|
|
move-result v9
|
|
|
|
invoke-virtual {v6, v9}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->setStatus(I)V
|
|
|
|
.line 308
|
|
new-instance v9, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;
|
|
|
|
sget-object v10, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;
|
|
|
|
invoke-virtual {v10}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError$ErrorReason$Companion;->getREQUEST_ERROR()I
|
|
|
|
move-result v10
|
|
|
|
move-object/from16 v11, v43
|
|
|
|
invoke-direct {v9, v0, v11, v10}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;-><init>(ILjava/lang/Throwable;I)V
|
|
:try_end_24
|
|
.catchall {:try_start_24 .. :try_end_24} :catchall_13
|
|
|
|
if-eqz v26, :cond_1a
|
|
|
|
.line 310
|
|
invoke-virtual/range {v26 .. v26}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v13
|
|
|
|
goto :goto_2c
|
|
|
|
:cond_1a
|
|
move-object/from16 v13, v19
|
|
|
|
:goto_2c
|
|
if-eqz v13, :cond_1b
|
|
|
|
.line 311
|
|
invoke-virtual/range {v26 .. v26}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1b
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
:cond_1b
|
|
if-eqz v18, :cond_1c
|
|
|
|
.line 314
|
|
invoke-interface/range {v18 .. v18}, Lokhttp3/Call;->cancel()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
.line 316
|
|
:cond_1c
|
|
sget-object v0, Lcom/vungle/ads/internal/util/FileUtility;->INSTANCE:Lcom/vungle/ads/internal/util/FileUtility;
|
|
|
|
invoke-virtual {v0, v4}, Lcom/vungle/ads/internal/util/FileUtility;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 317
|
|
invoke-virtual {v0, v15}, Lcom/vungle/ads/internal/util/FileUtility;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 319
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->getStatus()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
move-object/from16 v4, v42
|
|
|
|
invoke-virtual {v4, v7, v0}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 320
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->getStatus()I
|
|
|
|
move-result v0
|
|
|
|
.line 321
|
|
invoke-virtual {v8}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getERROR()I
|
|
|
|
move-result v10
|
|
|
|
if-ne v0, v10, :cond_1d
|
|
|
|
goto :goto_2d
|
|
|
|
.line 322
|
|
:cond_1d
|
|
invoke-virtual {v8}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getSTARTED()I
|
|
|
|
move-result v10
|
|
|
|
if-ne v0, v10, :cond_1e
|
|
|
|
.line 323
|
|
:goto_2d
|
|
invoke-direct {v1, v2, v3, v9}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
|
|
move-object/from16 v8, v23
|
|
|
|
:goto_2e
|
|
move-object/from16 v10, v40
|
|
|
|
goto :goto_2f
|
|
|
|
.line 326
|
|
:cond_1e
|
|
invoke-virtual {v8}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getCANCELLED()I
|
|
|
|
move-result v8
|
|
|
|
if-ne v0, v8, :cond_1f
|
|
|
|
.line 327
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
move-object/from16 v8, v23
|
|
|
|
invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v4, v7, v0}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_2e
|
|
|
|
:cond_1f
|
|
move-object/from16 v8, v23
|
|
|
|
move-object/from16 v10, v40
|
|
|
|
.line 331
|
|
invoke-direct {v1, v10, v2, v3}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverSuccess(Ljava/io/File;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
|
|
:goto_2f
|
|
move-object v14, v9
|
|
|
|
:goto_30
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
move-object v4, v8
|
|
|
|
move-object v12, v10
|
|
|
|
move-object v10, v14
|
|
|
|
move/from16 v14, v17
|
|
|
|
move-object/from16 v13, v19
|
|
|
|
move-object/from16 v15, v20
|
|
|
|
move/from16 v0, v22
|
|
|
|
goto/16 :goto_1
|
|
|
|
:catchall_13
|
|
move-exception v0
|
|
|
|
:goto_31
|
|
move-object/from16 v8, v23
|
|
|
|
move-object/from16 v10, v40
|
|
|
|
move-object/from16 v13, v26
|
|
|
|
goto :goto_32
|
|
|
|
:catchall_14
|
|
move-exception v0
|
|
|
|
move-object v15, v14
|
|
|
|
goto :goto_31
|
|
|
|
:goto_32
|
|
if-eqz v13, :cond_20
|
|
|
|
.line 310
|
|
invoke-virtual {v13}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v9
|
|
|
|
move-object/from16 v19, v9
|
|
|
|
:cond_20
|
|
if-eqz v19, :cond_21
|
|
|
|
.line 311
|
|
invoke-virtual {v13}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v9
|
|
|
|
if-eqz v9, :cond_21
|
|
|
|
invoke-virtual {v9}, Lokhttp3/ResponseBody;->close()V
|
|
|
|
sget-object v9, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
:cond_21
|
|
if-eqz v18, :cond_22
|
|
|
|
.line 314
|
|
invoke-interface/range {v18 .. v18}, Lokhttp3/Call;->cancel()V
|
|
|
|
sget-object v9, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
.line 316
|
|
:cond_22
|
|
sget-object v9, Lcom/vungle/ads/internal/util/FileUtility;->INSTANCE:Lcom/vungle/ads/internal/util/FileUtility;
|
|
|
|
invoke-virtual {v9, v4}, Lcom/vungle/ads/internal/util/FileUtility;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 317
|
|
invoke-virtual {v9, v15}, Lcom/vungle/ads/internal/util/FileUtility;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 319
|
|
sget-object v4, Lcom/vungle/ads/internal/util/Logger;->Companion:Lcom/vungle/ads/internal/util/Logger$Companion;
|
|
|
|
new-instance v9, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->getStatus()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v7, v5}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 320
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress;->getStatus()I
|
|
|
|
move-result v5
|
|
|
|
.line 321
|
|
sget-object v6, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus;->Companion:Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;
|
|
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getERROR()I
|
|
|
|
move-result v9
|
|
|
|
if-eq v5, v9, :cond_24
|
|
|
|
.line 322
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getSTARTED()I
|
|
|
|
move-result v9
|
|
|
|
if-eq v5, v9, :cond_24
|
|
|
|
.line 326
|
|
invoke-virtual {v6}, Lcom/vungle/ads/internal/downloader/AssetDownloadListener$Progress$ProgressStatus$Companion;->getCANCELLED()I
|
|
|
|
move-result v6
|
|
|
|
if-ne v5, v6, :cond_23
|
|
|
|
.line 327
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v4, v7, v2}, Lcom/vungle/ads/internal/util/Logger$Companion;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_33
|
|
|
|
.line 331
|
|
:cond_23
|
|
invoke-direct {v1, v10, v2, v3}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverSuccess(Ljava/io/File;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
|
|
goto :goto_33
|
|
|
|
:cond_24
|
|
move-object/from16 v13, v41
|
|
|
|
.line 323
|
|
invoke-direct {v1, v2, v3, v13}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->deliverError(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;Lcom/vungle/ads/internal/downloader/AssetDownloadListener$DownloadError;)V
|
|
|
|
.line 331
|
|
:goto_33
|
|
throw v0
|
|
|
|
:cond_25
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public cancel(Lcom/vungle/ads/internal/downloader/DownloadRequest;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 122
|
|
invoke-virtual {p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->isCancelled()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 124
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/vungle/ads/internal/downloader/DownloadRequest;->cancel()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public cancelAll()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->transitioning:Ljava/util/List;
|
|
|
|
.line 128
|
|
check-cast v0, Ljava/lang/Iterable;
|
|
|
|
.line 379
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/vungle/ads/internal/downloader/DownloadRequest;
|
|
|
|
.line 129
|
|
invoke-virtual {p0, v1}, Lcom/vungle/ads/internal/downloader/AssetDownloader;->cancel(Lcom/vungle/ads/internal/downloader/DownloadRequest;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->transitioning:Ljava/util/List;
|
|
|
|
.line 131
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public download(Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
.locals 3
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->transitioning:Ljava/util/List;
|
|
|
|
.line 93
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/downloader/AssetDownloader;->downloadExecutor:Lcom/vungle/ads/internal/executor/VungleThreadPoolExecutor;
|
|
|
|
.line 95
|
|
new-instance v1, Lcom/vungle/ads/internal/downloader/AssetDownloader$download$1;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/vungle/ads/internal/downloader/AssetDownloader$download$1;-><init>(Lcom/vungle/ads/internal/downloader/AssetDownloader;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
|
|
new-instance v2, Lcom/vungle/ads/internal/downloader/AssetDownloader$$ExternalSyntheticLambda0;
|
|
|
|
invoke-direct {v2, p0, p1, p2}, Lcom/vungle/ads/internal/downloader/AssetDownloader$$ExternalSyntheticLambda0;-><init>(Lcom/vungle/ads/internal/downloader/AssetDownloader;Lcom/vungle/ads/internal/downloader/DownloadRequest;Lcom/vungle/ads/internal/downloader/AssetDownloadListener;)V
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/vungle/ads/internal/executor/VungleThreadPoolExecutor;->execute(Ljava/lang/Runnable;Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|