apkfuckery/com.discord/smali/com/airbnb/lottie/e.smali
2019-10-01 16:15:45 +02:00

910 lines
23 KiB
Smali

.class public final Lcom/airbnb/lottie/e;
.super Ljava/lang/Object;
.source "LottieCompositionFactory.java"
# static fields
.field private static final fU:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lcom/airbnb/lottie/l<",
"Lcom/airbnb/lottie/d;",
">;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
sput-object v0, Lcom/airbnb/lottie/e;->fU:Ljava/util/Map;
return-void
.end method
.method private static a(Lcom/airbnb/lottie/d;Ljava/lang/String;)Lcom/airbnb/lottie/g;
.locals 2
iget-object p0, p0, Lcom/airbnb/lottie/d;->fI:Ljava/util/Map;
invoke-interface {p0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/airbnb/lottie/g;
iget-object v1, v0, Lcom/airbnb/lottie/g;->gy:Ljava/lang/String;
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
return-object v0
:cond_1
const/4 p0, 0x0
return-object p0
.end method
.method private static a(Lcom/airbnb/lottie/e/a/c;Ljava/lang/String;Z)Lcom/airbnb/lottie/k;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/e/a/c;",
"Ljava/lang/String;",
"Z)",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
:try_start_0
invoke-static {p0}, Lcom/airbnb/lottie/e/t;->d(Lcom/airbnb/lottie/e/a/c;)Lcom/airbnb/lottie/d;
move-result-object v0
invoke-static {}, Lcom/airbnb/lottie/c/g;->bm()Lcom/airbnb/lottie/c/g;
move-result-object v1
invoke-virtual {v1, p1, v0}, Lcom/airbnb/lottie/c/g;->a(Ljava/lang/String;Lcom/airbnb/lottie/d;)V
new-instance p1, Lcom/airbnb/lottie/k;
invoke-direct {p1, v0}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Object;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz p2, :cond_0
invoke-static {p0}, Lcom/airbnb/lottie/f/h;->closeQuietly(Ljava/io/Closeable;)V
:cond_0
return-object p1
:catchall_0
move-exception p1
goto :goto_0
:catch_0
move-exception p1
:try_start_1
new-instance v0, Lcom/airbnb/lottie/k;
invoke-direct {v0, p1}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Throwable;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz p2, :cond_1
invoke-static {p0}, Lcom/airbnb/lottie/f/h;->closeQuietly(Ljava/io/Closeable;)V
:cond_1
return-object v0
:goto_0
if-eqz p2, :cond_2
invoke-static {p0}, Lcom/airbnb/lottie/f/h;->closeQuietly(Ljava/io/Closeable;)V
:cond_2
throw p1
.end method
.method public static a(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/InputStream;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
invoke-static {p0, p1}, Lcom/airbnb/lottie/e;->b(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
move-result-object p0
return-object p0
.end method
.method public static a(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/zip/ZipInputStream;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
:try_start_0
invoke-static {p0, p1}, Lcom/airbnb/lottie/e;->b(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-static {p0}, Lcom/airbnb/lottie/f/h;->closeQuietly(Ljava/io/Closeable;)V
return-object p1
:catchall_0
move-exception p1
invoke-static {p0}, Lcom/airbnb/lottie/f/h;->closeQuietly(Ljava/io/Closeable;)V
throw p1
.end method
.method public static a(Landroid/content/Context;I)Lcom/airbnb/lottie/l;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"I)",
"Lcom/airbnb/lottie/l<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
invoke-static {p1}, Lcom/airbnb/lottie/e;->h(I)Ljava/lang/String;
move-result-object v0
new-instance v1, Lcom/airbnb/lottie/e$5;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/e$5;-><init>(Landroid/content/Context;I)V
invoke-static {v0, v1}, Lcom/airbnb/lottie/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lcom/airbnb/lottie/l;
move-result-object p0
return-object p0
.end method
.method public static a(Lcom/airbnb/lottie/e/a/c;Ljava/lang/String;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/e/a/c;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/l<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
new-instance p1, Lcom/airbnb/lottie/e$6;
const/4 v0, 0x0
invoke-direct {p1, p0, v0}, Lcom/airbnb/lottie/e$6;-><init>(Lcom/airbnb/lottie/e/a/c;Ljava/lang/String;)V
invoke-static {v0, p1}, Lcom/airbnb/lottie/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lcom/airbnb/lottie/l;
move-result-object p0
return-object p0
.end method
.method private static a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/concurrent/Callable<",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;>;)",
"Lcom/airbnb/lottie/l<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
if-nez p0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
invoke-static {}, Lcom/airbnb/lottie/c/g;->bm()Lcom/airbnb/lottie/c/g;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/airbnb/lottie/c/g;->x(Ljava/lang/String;)Lcom/airbnb/lottie/d;
move-result-object v0
:goto_0
if-eqz v0, :cond_1
new-instance p0, Lcom/airbnb/lottie/l;
new-instance p1, Lcom/airbnb/lottie/e$7;
invoke-direct {p1, v0}, Lcom/airbnb/lottie/e$7;-><init>(Lcom/airbnb/lottie/d;)V
invoke-direct {p0, p1}, Lcom/airbnb/lottie/l;-><init>(Ljava/util/concurrent/Callable;)V
return-object p0
:cond_1
if-eqz p0, :cond_2
sget-object v0, Lcom/airbnb/lottie/e;->fU:Ljava/util/Map;
invoke-interface {v0, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
sget-object p1, Lcom/airbnb/lottie/e;->fU:Ljava/util/Map;
invoke-interface {p1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/l;
return-object p0
:cond_2
new-instance v0, Lcom/airbnb/lottie/l;
invoke-direct {v0, p1}, Lcom/airbnb/lottie/l;-><init>(Ljava/util/concurrent/Callable;)V
new-instance p1, Lcom/airbnb/lottie/e$2;
invoke-direct {p1, p0}, Lcom/airbnb/lottie/e$2;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/l;->a(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
new-instance p1, Lcom/airbnb/lottie/e$3;
invoke-direct {p1, p0}, Lcom/airbnb/lottie/e$3;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/l;->c(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
sget-object p1, Lcom/airbnb/lottie/e;->fU:Ljava/util/Map;
invoke-interface {p1, p0, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
.end method
.method static synthetic aQ()Ljava/util/Map;
.locals 1
sget-object v0, Lcom/airbnb/lottie/e;->fU:Ljava/util/Map;
return-object v0
.end method
.method public static b(Landroid/content/Context;I)Lcom/airbnb/lottie/k;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"I)",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p0
invoke-virtual {p0, p1}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;
move-result-object p0
invoke-static {p1}, Lcom/airbnb/lottie/e;->h(I)Ljava/lang/String;
move-result-object p1
invoke-static {p0, p1}, Lcom/airbnb/lottie/e;->b(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
move-result-object p0
:try_end_0
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
new-instance p1, Lcom/airbnb/lottie/k;
invoke-direct {p1, p0}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Throwable;)V
return-object p1
.end method
.method public static b(Lcom/airbnb/lottie/e/a/c;Ljava/lang/String;)Lcom/airbnb/lottie/k;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/e/a/c;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
const/4 v0, 0x1
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/e;->a(Lcom/airbnb/lottie/e/a/c;Ljava/lang/String;Z)Lcom/airbnb/lottie/k;
move-result-object p0
return-object p0
.end method
.method private static b(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/InputStream;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
:try_start_0
invoke-static {p0}, Lokio/j;->v(Ljava/io/InputStream;)Lokio/r;
move-result-object v0
invoke-static {v0}, Lokio/j;->b(Lokio/r;)Lokio/d;
move-result-object v0
invoke-static {v0}, Lcom/airbnb/lottie/e/a/c;->a(Lokio/d;)Lcom/airbnb/lottie/e/a/c;
move-result-object v0
const/4 v1, 0x1
invoke-static {v0, p1, v1}, Lcom/airbnb/lottie/e;->a(Lcom/airbnb/lottie/e/a/c;Ljava/lang/String;Z)Lcom/airbnb/lottie/k;
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-static {p0}, Lcom/airbnb/lottie/f/h;->closeQuietly(Ljava/io/Closeable;)V
return-object p1
:catchall_0
move-exception p1
invoke-static {p0}, Lcom/airbnb/lottie/f/h;->closeQuietly(Ljava/io/Closeable;)V
throw p1
.end method
.method private static b(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/zip/ZipInputStream;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
:try_start_0
invoke-virtual {p0}, Ljava/util/zip/ZipInputStream;->getNextEntry()Ljava/util/zip/ZipEntry;
move-result-object v1
const/4 v2, 0x0
move-object v3, v2
:goto_0
if-eqz v1, :cond_3
invoke-virtual {v1}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
move-result-object v4
const-string v5, "__MACOSX"
invoke-virtual {v4, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_2
invoke-virtual {v1}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
move-result-object v1
const-string v5, ".json"
invoke-virtual {v1, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_0
invoke-static {p0}, Lokio/j;->v(Ljava/io/InputStream;)Lokio/r;
move-result-object v1
invoke-static {v1}, Lokio/j;->b(Lokio/r;)Lokio/d;
move-result-object v1
invoke-static {v1}, Lcom/airbnb/lottie/e/a/c;->a(Lokio/d;)Lcom/airbnb/lottie/e/a/c;
move-result-object v1
const/4 v3, 0x0
invoke-static {v1, v2, v3}, Lcom/airbnb/lottie/e;->a(Lcom/airbnb/lottie/e/a/c;Ljava/lang/String;Z)Lcom/airbnb/lottie/k;
move-result-object v1
iget-object v1, v1, Lcom/airbnb/lottie/k;->value:Ljava/lang/Object;
check-cast v1, Lcom/airbnb/lottie/d;
move-object v3, v1
goto :goto_1
:cond_0
const-string v1, ".png"
invoke-virtual {v4, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, ".webp"
invoke-virtual {v4, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_2
:cond_1
const-string v1, "/"
invoke-virtual {v4, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
array-length v4, v1
add-int/lit8 v4, v4, -0x1
aget-object v1, v1, v4
invoke-static {p0}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;)Landroid/graphics/Bitmap;
move-result-object v4
invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
:cond_2
invoke-virtual {p0}, Ljava/util/zip/ZipInputStream;->closeEntry()V
:goto_1
invoke-virtual {p0}, Ljava/util/zip/ZipInputStream;->getNextEntry()Ljava/util/zip/ZipEntry;
move-result-object v1
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:cond_3
if-nez v3, :cond_4
new-instance p0, Lcom/airbnb/lottie/k;
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Unable to parse composition"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Throwable;)V
return-object p0
:cond_4
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_5
:goto_2
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_6
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-static {v3, v1}, Lcom/airbnb/lottie/e;->a(Lcom/airbnb/lottie/d;Ljava/lang/String;)Lcom/airbnb/lottie/g;
move-result-object v1
if-eqz v1, :cond_5
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/graphics/Bitmap;
iget v2, v1, Lcom/airbnb/lottie/g;->width:I
iget v4, v1, Lcom/airbnb/lottie/g;->height:I
invoke-static {v0, v2, v4}, Lcom/airbnb/lottie/f/h;->a(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;
move-result-object v0
iput-object v0, v1, Lcom/airbnb/lottie/g;->gA:Landroid/graphics/Bitmap;
goto :goto_2
:cond_6
iget-object p0, v3, Lcom/airbnb/lottie/d;->fI:Ljava/util/Map;
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_7
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_8
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/g;
iget-object v1, v1, Lcom/airbnb/lottie/g;->gA:Landroid/graphics/Bitmap;
if-nez v1, :cond_7
new-instance p0, Lcom/airbnb/lottie/k;
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "There is no image for "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/airbnb/lottie/g;
iget-object v0, v0, Lcom/airbnb/lottie/g;->gy:Ljava/lang/String;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Throwable;)V
return-object p0
:cond_8
invoke-static {}, Lcom/airbnb/lottie/c/g;->bm()Lcom/airbnb/lottie/c/g;
move-result-object p0
invoke-virtual {p0, p1, v3}, Lcom/airbnb/lottie/c/g;->a(Ljava/lang/String;Lcom/airbnb/lottie/d;)V
new-instance p0, Lcom/airbnb/lottie/k;
invoke-direct {p0, v3}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Object;)V
return-object p0
:catch_0
move-exception p0
new-instance p1, Lcom/airbnb/lottie/k;
invoke-direct {p1, p0}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Throwable;)V
return-object p1
.end method
.method public static b(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/l;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/l<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "url_"
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
new-instance v1, Lcom/airbnb/lottie/e$1;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/e$1;-><init>(Landroid/content/Context;Ljava/lang/String;)V
invoke-static {v0, v1}, Lcom/airbnb/lottie/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lcom/airbnb/lottie/l;
move-result-object p0
return-object p0
.end method
.method public static c(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/l<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
new-instance v0, Lcom/airbnb/lottie/e$4;
invoke-direct {v0, p0, p1}, Lcom/airbnb/lottie/e$4;-><init>(Landroid/content/Context;Ljava/lang/String;)V
invoke-static {p1, v0}, Lcom/airbnb/lottie/e;->a(Ljava/lang/String;Ljava/util/concurrent/Callable;)Lcom/airbnb/lottie/l;
move-result-object p0
return-object p0
.end method
.method public static d(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/k;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
")",
"Lcom/airbnb/lottie/k<",
"Lcom/airbnb/lottie/d;",
">;"
}
.end annotation
:try_start_0
const-string v0, "asset_"
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, ".zip"
invoke-virtual {p1, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
new-instance v1, Ljava/util/zip/ZipInputStream;
invoke-virtual {p0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object p0
invoke-virtual {p0, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object p0
invoke-direct {v1, p0}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
invoke-static {v1, v0}, Lcom/airbnb/lottie/e;->a(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
move-result-object p0
return-object p0
:cond_0
invoke-virtual {p0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object p0
invoke-virtual {p0, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object p0
invoke-static {p0, v0}, Lcom/airbnb/lottie/e;->b(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/k;
move-result-object p0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
new-instance p1, Lcom/airbnb/lottie/k;
invoke-direct {p1, p0}, Lcom/airbnb/lottie/k;-><init>(Ljava/lang/Throwable;)V
return-object p1
.end method
.method private static h(I)Ljava/lang/String;
.locals 1
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p0
const-string v0, "rawRes_"
invoke-virtual {v0, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method