mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
2986 lines
82 KiB
Smali
2986 lines
82 KiB
Smali
|
.class public Lcom/airbnb/lottie/LottieCompositionFactory;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "LottieCompositionFactory.java"
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final GZIP_MAGIC:[B
|
||
|
|
||
|
.field private static final ZIP_MAGIC:[B
|
||
|
|
||
|
.field private static final taskCache:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/String;",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private static final taskIdleListeners:Ljava/util/Set;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Set<",
|
||
|
"Lcom/airbnb/lottie/LottieTaskIdleListener;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 67
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
sput-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->taskCache:Ljava/util/Map;
|
||
|
|
||
|
.line 68
|
||
|
new-instance v0, Ljava/util/HashSet;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
||
|
|
||
|
sput-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->taskIdleListeners:Ljava/util/Set;
|
||
|
|
||
|
const/4 v0, 0x4
|
||
|
|
||
|
new-array v0, v0, [B
|
||
|
|
||
|
fill-array-data v0, :array_0
|
||
|
|
||
|
sput-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->ZIP_MAGIC:[B
|
||
|
|
||
|
const/4 v0, 0x3
|
||
|
|
||
|
new-array v0, v0, [B
|
||
|
|
||
|
fill-array-data v0, :array_1
|
||
|
|
||
|
sput-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->GZIP_MAGIC:[B
|
||
|
|
||
|
return-void
|
||
|
|
||
|
nop
|
||
|
|
||
|
:array_0
|
||
|
.array-data 1
|
||
|
0x50t
|
||
|
0x4bt
|
||
|
0x3t
|
||
|
0x4t
|
||
|
.end array-data
|
||
|
|
||
|
:array_1
|
||
|
.array-data 1
|
||
|
0x1ft
|
||
|
-0x75t
|
||
|
0x8t
|
||
|
.end array-data
|
||
|
.end method
|
||
|
|
||
|
.method private constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.line 78
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/util/concurrent/Callable<",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;>;",
|
||
|
"Ljava/lang/Runnable;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-nez p0, :cond_0
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 705
|
||
|
:cond_0
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p0}, Lcom/airbnb/lottie/model/LottieCompositionCache;->get(Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
.line 707
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/airbnb/lottie/LottieTask;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
:cond_1
|
||
|
if-eqz p0, :cond_2
|
||
|
|
||
|
sget-object v1, Lcom/airbnb/lottie/LottieCompositionFactory;->taskCache:Ljava/util/Map;
|
||
|
|
||
|
.line 709
|
||
|
invoke-interface {v1, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_2
|
||
|
|
||
|
.line 710
|
||
|
invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
:cond_2
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
if-eqz p2, :cond_3
|
||
|
|
||
|
.line 714
|
||
|
invoke-interface {p2}, Ljava/lang/Runnable;->run()V
|
||
|
|
||
|
:cond_3
|
||
|
return-object v0
|
||
|
|
||
|
.line 719
|
||
|
:cond_4
|
||
|
new-instance p2, Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
invoke-direct {p2, p1}, Lcom/airbnb/lottie/LottieTask;-><init>(Ljava/util/concurrent/Callable;)V
|
||
|
|
||
|
if-eqz p0, :cond_5
|
||
|
|
||
|
.line 721
|
||
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
||
|
|
||
|
.line 722
|
||
|
new-instance v1, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda4;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda4;-><init>(Ljava/lang/String;Ljava/util/concurrent/atomic/AtomicBoolean;)V
|
||
|
|
||
|
invoke-virtual {p2, v1}, Lcom/airbnb/lottie/LottieTask;->addListener(Lcom/airbnb/lottie/LottieListener;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
.line 729
|
||
|
new-instance v1, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda5;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda5;-><init>(Ljava/lang/String;Ljava/util/concurrent/atomic/AtomicBoolean;)V
|
||
|
|
||
|
invoke-virtual {p2, v1}, Lcom/airbnb/lottie/LottieTask;->addFailureListener(Lcom/airbnb/lottie/LottieListener;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
.line 740
|
||
|
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-nez p1, :cond_5
|
||
|
|
||
|
sget-object p1, Lcom/airbnb/lottie/LottieCompositionFactory;->taskCache:Ljava/util/Map;
|
||
|
|
||
|
.line 741
|
||
|
invoke-interface {p1, p0, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 742
|
||
|
invoke-interface {p1}, Ljava/util/Map;->size()I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
if-ne p0, p1, :cond_5
|
||
|
|
||
|
.line 743
|
||
|
invoke-static {v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->notifyTaskCacheIdleListeners(Z)V
|
||
|
|
||
|
:cond_5
|
||
|
return-object p2
|
||
|
.end method
|
||
|
|
||
|
.method public static clearCache(Landroid/content/Context;)V
|
||
|
.locals 1
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->taskCache:Ljava/util/Map;
|
||
|
|
||
|
.line 90
|
||
|
invoke-interface {v0}, Ljava/util/Map;->clear()V
|
||
|
|
||
|
.line 91
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/airbnb/lottie/model/LottieCompositionCache;->clear()V
|
||
|
|
||
|
.line 92
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/L;->networkCache(Landroid/content/Context;)Lcom/airbnb/lottie/network/NetworkCache;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
.line 94
|
||
|
invoke-virtual {p0}, Lcom/airbnb/lottie/network/NetworkCache;->clear()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static findImageAssetForFileName(Lcom/airbnb/lottie/LottieComposition;Ljava/lang/String;)Lcom/airbnb/lottie/LottieImageAsset;
|
||
|
.locals 2
|
||
|
|
||
|
.line 689
|
||
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieComposition;->getImages()Ljava/util/Map;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
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/LottieImageAsset;
|
||
|
|
||
|
.line 690
|
||
|
invoke-virtual {v0}, Lcom/airbnb/lottie/LottieImageAsset;->getFileName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
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 public static fromAsset(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 178
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "asset_"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 179
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromAsset(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromAsset(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 193
|
||
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
.line 194
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda6;
|
||
|
|
||
|
invoke-direct {v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda6;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
invoke-static {p2, v0, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromAssetSync(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 208
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "asset_"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 209
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromAssetSync(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromAssetSync(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 223
|
||
|
:cond_0
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p2}, Lcom/airbnb/lottie/model/LottieCompositionCache;->get(Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 225
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 228
|
||
|
:cond_1
|
||
|
:try_start_0
|
||
|
invoke-virtual {p0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1}, Lokio/Okio;->source(Ljava/io/InputStream;)Lokio/Source;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
.line 229
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->isZipCompressed(Lokio/BufferedSource;)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 230
|
||
|
new-instance v0, Ljava/util/zip/ZipInputStream;
|
||
|
|
||
|
invoke-interface {p1}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {v0, p1}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
|
||
|
|
||
|
invoke-static {p0, v0, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 231
|
||
|
:cond_2
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->isGzipCompressed(Lokio/BufferedSource;)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
if-eqz p0, :cond_3
|
||
|
|
||
|
.line 232
|
||
|
new-instance p0, Ljava/util/zip/GZIPInputStream;
|
||
|
|
||
|
invoke-interface {p1}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
|
||
|
|
||
|
invoke-static {p0, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 234
|
||
|
:cond_3
|
||
|
invoke-interface {p1}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
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
|
||
|
|
||
|
.line 236
|
||
|
new-instance p1, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJson(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lorg/json/JSONObject;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Ljava/lang/Deprecated;
|
||
|
.end annotation
|
||
|
|
||
|
.line 374
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda16;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda16;-><init>(Lorg/json/JSONObject;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
invoke-static {p1, v0, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonInputStream(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/io/InputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 339
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda2;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda2;-><init>(Ljava/io/InputStream;Ljava/lang/String;)V
|
||
|
|
||
|
new-instance v1, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda3;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda3;-><init>(Ljava/io/InputStream;)V
|
||
|
|
||
|
invoke-static {p1, v0, v1}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonInputStream(Ljava/io/InputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/io/InputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 346
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda0;
|
||
|
|
||
|
invoke-direct {v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda0;-><init>(Ljava/io/InputStream;Ljava/lang/String;Z)V
|
||
|
|
||
|
new-instance v1, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda8;
|
||
|
|
||
|
invoke-direct {v1, p2, p0}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda8;-><init>(ZLjava/io/InputStream;)V
|
||
|
|
||
|
invoke-static {p1, v0, v1}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/io/InputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 358
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/io/InputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 366
|
||
|
invoke-static {p0}, Lokio/Okio;->source(Ljava/io/InputStream;)Lokio/Source;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->of(Lokio/BufferedSource;)Lcom/airbnb/lottie/parser/moshi/JsonReader;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReaderSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonReader(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/airbnb/lottie/parser/moshi/JsonReader;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 409
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda13;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda13;-><init>(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)V
|
||
|
|
||
|
new-instance v1, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda14;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda14;-><init>(Lcom/airbnb/lottie/parser/moshi/JsonReader;)V
|
||
|
|
||
|
invoke-static {p1, v0, v1}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonReaderSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/airbnb/lottie/parser/moshi/JsonReader;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 414
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReaderSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonReaderSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/airbnb/lottie/parser/moshi/JsonReader;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 420
|
||
|
invoke-static {p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReaderSyncInternal(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private static fromJsonReaderSyncInternal(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lcom/airbnb/lottie/parser/moshi/JsonReader;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 426
|
||
|
:cond_0
|
||
|
:try_start_0
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/model/LottieCompositionCache;->get(Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 428
|
||
|
new-instance p1, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p1, v0}, Lcom/airbnb/lottie/LottieResult;-><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_1
|
||
|
|
||
|
.line 439
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
:cond_1
|
||
|
return-object p1
|
||
|
|
||
|
.line 430
|
||
|
:cond_2
|
||
|
:try_start_1
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/parser/LottieCompositionMoshiParser;->parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;)Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz p1, :cond_3
|
||
|
|
||
|
.line 432
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p1, v0}, Lcom/airbnb/lottie/model/LottieCompositionCache;->put(Ljava/lang/String;Lcom/airbnb/lottie/LottieComposition;)V
|
||
|
|
||
|
.line 434
|
||
|
:cond_3
|
||
|
new-instance p1, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p1, v0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Object;)V
|
||
|
:try_end_1
|
||
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
if-eqz p2, :cond_4
|
||
|
|
||
|
.line 439
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
:cond_4
|
||
|
return-object p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p1
|
||
|
|
||
|
.line 436
|
||
|
:try_start_2
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {v0, p1}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Throwable;)V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
if-eqz p2, :cond_5
|
||
|
|
||
|
.line 439
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
:cond_5
|
||
|
return-object v0
|
||
|
|
||
|
:goto_1
|
||
|
if-eqz p2, :cond_6
|
||
|
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
.line 441
|
||
|
:cond_6
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonString(Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 395
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda1;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda1;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
invoke-static {p1, v0, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonStringSync(Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 404
|
||
|
new-instance v0, Ljava/io/ByteArrayInputStream;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/String;->getBytes()[B
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v0, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
|
||
|
|
||
|
.line 405
|
||
|
invoke-static {v0}, Lokio/Okio;->source(Ljava/io/InputStream;)Lokio/Source;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->of(Lokio/BufferedSource;)Lcom/airbnb/lottie/parser/moshi/JsonReader;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReaderSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromJsonSync(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lorg/json/JSONObject;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Ljava/lang/Deprecated;
|
||
|
.end annotation
|
||
|
|
||
|
.line 388
|
||
|
invoke-virtual {p0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonStringSync(Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromRawRes(Landroid/content/Context;I)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"I)",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 251
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->rawResCacheKey(Landroid/content/Context;I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromRawRes(Landroid/content/Context;ILjava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromRawRes(Landroid/content/Context;ILjava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"I",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 265
|
||
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
||
|
|
||
|
invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
.line 266
|
||
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
.line 267
|
||
|
new-instance v1, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda7;
|
||
|
|
||
|
invoke-direct {v1, v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda7;-><init>(Ljava/lang/ref/WeakReference;Landroid/content/Context;ILjava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
invoke-static {p2, v1, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromRawResSync(Landroid/content/Context;I)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"I)",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 285
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->rawResCacheKey(Landroid/content/Context;I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromRawResSync(Landroid/content/Context;ILjava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromRawResSync(Landroid/content/Context;ILjava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"I",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 299
|
||
|
:cond_0
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p2}, Lcom/airbnb/lottie/model/LottieCompositionCache;->get(Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 301
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 304
|
||
|
:cond_1
|
||
|
:try_start_0
|
||
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1}, Lokio/Okio;->source(Ljava/io/InputStream;)Lokio/Source;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
.line 305
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->isZipCompressed(Lokio/BufferedSource;)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 306
|
||
|
new-instance v0, Ljava/util/zip/ZipInputStream;
|
||
|
|
||
|
invoke-interface {p1}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {v0, p1}, Ljava/util/zip/ZipInputStream;-><init>(Ljava/io/InputStream;)V
|
||
|
|
||
|
invoke-static {p0, v0, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 307
|
||
|
:cond_2
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->isGzipCompressed(Lokio/BufferedSource;)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result p0
|
||
|
:try_end_0
|
||
|
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_1
|
||
|
|
||
|
if-eqz p0, :cond_3
|
||
|
|
||
|
.line 309
|
||
|
:try_start_1
|
||
|
new-instance p0, Ljava/util/zip/GZIPInputStream;
|
||
|
|
||
|
invoke-interface {p1}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
|
||
|
|
||
|
invoke-static {p0, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_1
|
||
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_1 .. :try_end_1} :catch_1
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 312
|
||
|
:try_start_2
|
||
|
new-instance p1, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
.line 315
|
||
|
:cond_3
|
||
|
invoke-interface {p1}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {p0, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_2
|
||
|
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_2 .. :try_end_2} :catch_1
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catch_1
|
||
|
move-exception p0
|
||
|
|
||
|
.line 317
|
||
|
new-instance p1, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public static fromUrl(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 121
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "url_"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromUrl(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromUrl(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 130
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda15;
|
||
|
|
||
|
invoke-direct {v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda15;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
invoke-static {p2, v0, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromUrlSync(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 146
|
||
|
invoke-static {p0, p1, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromUrlSync(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromUrlSync(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 157
|
||
|
:cond_0
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p2}, Lcom/airbnb/lottie/model/LottieCompositionCache;->get(Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 159
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p0, v0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 161
|
||
|
:cond_1
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/L;->networkFetcher(Landroid/content/Context;)Lcom/airbnb/lottie/network/NetworkFetcher;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0, p1, p2}, Lcom/airbnb/lottie/network/NetworkFetcher;->fetchSync(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
.line 162
|
||
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-eqz p1, :cond_2
|
||
|
|
||
|
.line 163
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
invoke-virtual {p1, p2, v0}, Lcom/airbnb/lottie/model/LottieCompositionCache;->put(Ljava/lang/String;Lcom/airbnb/lottie/LottieComposition;)V
|
||
|
|
||
|
:cond_2
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStream(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 464
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda9;
|
||
|
|
||
|
invoke-direct {v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda9;-><init>(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)V
|
||
|
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda10;
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda10;-><init>(Ljava/util/zip/ZipInputStream;)V
|
||
|
|
||
|
invoke-static {p2, v0, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStream(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 472
|
||
|
new-instance v0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda11;
|
||
|
|
||
|
invoke-direct {v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda11;-><init>(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)V
|
||
|
|
||
|
if-eqz p3, :cond_0
|
||
|
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda12;
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory$$ExternalSyntheticLambda12;-><init>(Ljava/util/zip/ZipInputStream;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-static {p2, v0, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->cache(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/Runnable;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStream(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 449
|
||
|
invoke-static {v0, p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStream(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStream(Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieTask;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieTask<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 457
|
||
|
invoke-static {v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStream(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieTask;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 516
|
||
|
invoke-static {p0, p1, p2, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 532
|
||
|
:try_start_0
|
||
|
invoke-static {p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSyncInternal(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz p3, :cond_0
|
||
|
|
||
|
.line 535
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
:cond_0
|
||
|
return-object p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz p3, :cond_1
|
||
|
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
.line 537
|
||
|
:cond_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStreamSync(Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 487
|
||
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSync(Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static fromZipStreamSync(Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
"Z)",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 499
|
||
|
invoke-static {v0, p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private static fromZipStreamSyncInternal(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 12
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroid/content/Context;",
|
||
|
"Ljava/util/zip/ZipInputStream;",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Lcom/airbnb/lottie/LottieResult<",
|
||
|
"Lcom/airbnb/lottie/LottieComposition;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 543
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
.line 544
|
||
|
new-instance v1, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
move-object v3, v2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 547
|
||
|
:cond_0
|
||
|
:try_start_0
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3, p2}, Lcom/airbnb/lottie/model/LottieCompositionCache;->get(Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
.line 549
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p0, v3}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 551
|
||
|
:cond_1
|
||
|
invoke-virtual {p1}, Ljava/util/zip/ZipInputStream;->getNextEntry()Ljava/util/zip/ZipEntry;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
move-object v4, v2
|
||
|
|
||
|
:goto_1
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
if-eqz v3, :cond_b
|
||
|
|
||
|
.line 553
|
||
|
invoke-virtual {v3}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
const-string v8, "__MACOSX"
|
||
|
|
||
|
.line 554
|
||
|
invoke-virtual {v7, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
if-eqz v8, :cond_2
|
||
|
|
||
|
.line 555
|
||
|
invoke-virtual {p1}, Ljava/util/zip/ZipInputStream;->closeEntry()V
|
||
|
|
||
|
goto/16 :goto_7
|
||
|
|
||
|
.line 556
|
||
|
:cond_2
|
||
|
invoke-virtual {v3}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
const-string v9, "manifest.json"
|
||
|
|
||
|
invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
if-eqz v8, :cond_3
|
||
|
|
||
|
.line 557
|
||
|
invoke-virtual {p1}, Ljava/util/zip/ZipInputStream;->closeEntry()V
|
||
|
|
||
|
goto/16 :goto_7
|
||
|
|
||
|
.line 558
|
||
|
:cond_3
|
||
|
invoke-virtual {v3}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v8, ".json"
|
||
|
|
||
|
invoke-virtual {v3, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_4
|
||
|
|
||
|
.line 559
|
||
|
invoke-static {p1}, Lokio/Okio;->source(Ljava/io/InputStream;)Lokio/Source;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-static {v3}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-static {v3}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->of(Lokio/BufferedSource;)Lcom/airbnb/lottie/parser/moshi/JsonReader;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.line 560
|
||
|
invoke-static {v3, v2, v6}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReaderSyncInternal(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
move-object v4, v3
|
||
|
|
||
|
check-cast v4, Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
goto/16 :goto_7
|
||
|
|
||
|
:cond_4
|
||
|
const-string v3, ".png"
|
||
|
|
||
|
.line 561
|
||
|
invoke-virtual {v7, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v3
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
||
|
|
||
|
const-string v8, "/"
|
||
|
|
||
|
if-nez v3, :cond_a
|
||
|
|
||
|
:try_start_1
|
||
|
const-string v3, ".webp"
|
||
|
|
||
|
invoke-virtual {v7, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-nez v3, :cond_a
|
||
|
|
||
|
const-string v3, ".jpg"
|
||
|
|
||
|
invoke-virtual {v7, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-nez v3, :cond_a
|
||
|
|
||
|
const-string v3, ".jpeg"
|
||
|
|
||
|
invoke-virtual {v7, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_5
|
||
|
|
||
|
goto/16 :goto_6
|
||
|
|
||
|
:cond_5
|
||
|
const-string v3, ".ttf"
|
||
|
|
||
|
.line 565
|
||
|
invoke-virtual {v7, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-nez v3, :cond_7
|
||
|
|
||
|
const-string v3, ".otf"
|
||
|
|
||
|
invoke-virtual {v7, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_6
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
.line 589
|
||
|
:cond_6
|
||
|
invoke-virtual {p1}, Ljava/util/zip/ZipInputStream;->closeEntry()V
|
||
|
|
||
|
goto/16 :goto_7
|
||
|
|
||
|
.line 566
|
||
|
:cond_7
|
||
|
:goto_2
|
||
|
invoke-virtual {v7, v8}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.line 567
|
||
|
array-length v7, v3
|
||
|
|
||
|
sub-int/2addr v7, v5
|
||
|
|
||
|
aget-object v3, v3, v7
|
||
|
|
||
|
const-string v5, "\\."
|
||
|
|
||
|
.line 568
|
||
|
invoke-virtual {v3, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
aget-object v5, v5, v6
|
||
|
|
||
|
.line 569
|
||
|
new-instance v7, Ljava/io/File;
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
invoke-direct {v7, v8, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
||
|
|
||
|
.line 570
|
||
|
new-instance v8, Ljava/io/FileOutputStream;
|
||
|
|
||
|
invoke-direct {v8, v7}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
|
||
|
:try_end_1
|
||
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
||
|
|
||
|
.line 572
|
||
|
:try_start_2
|
||
|
new-instance v8, Ljava/io/FileOutputStream;
|
||
|
|
||
|
invoke-direct {v8, v7}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
||
|
|
||
|
const/16 v9, 0x1000
|
||
|
|
||
|
:try_start_3
|
||
|
new-array v9, v9, [B
|
||
|
|
||
|
.line 575
|
||
|
:goto_3
|
||
|
invoke-virtual {p1, v9}, Ljava/util/zip/ZipInputStream;->read([B)I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
const/4 v11, -0x1
|
||
|
|
||
|
if-eq v10, v11, :cond_8
|
||
|
|
||
|
.line 576
|
||
|
invoke-virtual {v8, v9, v6, v10}, Ljava/io/OutputStream;->write([BII)V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
.line 578
|
||
|
:cond_8
|
||
|
invoke-virtual {v8}, Ljava/io/OutputStream;->flush()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||
|
|
||
|
.line 579
|
||
|
:try_start_4
|
||
|
invoke-virtual {v8}, Ljava/io/OutputStream;->close()V
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v6
|
||
|
|
||
|
.line 572
|
||
|
:try_start_5
|
||
|
invoke-virtual {v8}, Ljava/io/OutputStream;->close()V
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v8
|
||
|
|
||
|
:try_start_6
|
||
|
invoke-virtual {v6, v8}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_4
|
||
|
throw v6
|
||
|
:try_end_6
|
||
|
.catchall {:try_start_6 .. :try_end_6} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception v6
|
||
|
|
||
|
.line 581
|
||
|
:try_start_7
|
||
|
new-instance v8, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v9, "Unable to save font "
|
||
|
|
||
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
const-string v9, " to the temporary file: "
|
||
|
|
||
|
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-string v8, ". "
|
||
|
|
||
|
invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-static {v3, v6}, Lcom/airbnb/lottie/utils/Logger;->warning(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
.line 583
|
||
|
:goto_5
|
||
|
invoke-static {v7}, Landroid/graphics/Typeface;->createFromFile(Ljava/io/File;)Landroid/graphics/Typeface;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.line 584
|
||
|
invoke-virtual {v7}, Ljava/io/File;->delete()Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-nez v6, :cond_9
|
||
|
|
||
|
.line 585
|
||
|
new-instance v6, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v8, "Failed to delete temp font file "
|
||
|
|
||
|
invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v7}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
const-string v7, "."
|
||
|
|
||
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-static {v6}, Lcom/airbnb/lottie/utils/Logger;->warning(Ljava/lang/String;)V
|
||
|
|
||
|
.line 587
|
||
|
:cond_9
|
||
|
invoke-interface {v1, v5, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
.line 562
|
||
|
:cond_a
|
||
|
:goto_6
|
||
|
invoke-virtual {v7, v8}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.line 563
|
||
|
array-length v6, v3
|
||
|
|
||
|
sub-int/2addr v6, v5
|
||
|
|
||
|
aget-object v3, v3, v6
|
||
|
|
||
|
.line 564
|
||
|
invoke-static {p1}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;)Landroid/graphics/Bitmap;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-interface {v0, v3, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 592
|
||
|
:goto_7
|
||
|
invoke-virtual {p1}, Ljava/util/zip/ZipInputStream;->getNextEntry()Ljava/util/zip/ZipEntry;
|
||
|
|
||
|
move-result-object v3
|
||
|
:try_end_7
|
||
|
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_1
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:cond_b
|
||
|
if-nez v4, :cond_c
|
||
|
|
||
|
.line 600
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string p2, "Unable to parse composition"
|
||
|
|
||
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 603
|
||
|
:cond_c
|
||
|
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_d
|
||
|
:goto_8
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_e
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Ljava/util/Map$Entry;
|
||
|
|
||
|
.line 604
|
||
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
check-cast v3, Ljava/lang/String;
|
||
|
|
||
|
invoke-static {v4, v3}, Lcom/airbnb/lottie/LottieCompositionFactory;->findImageAssetForFileName(Lcom/airbnb/lottie/LottieComposition;Ljava/lang/String;)Lcom/airbnb/lottie/LottieImageAsset;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
if-eqz v3, :cond_d
|
||
|
|
||
|
.line 606
|
||
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Landroid/graphics/Bitmap;
|
||
|
|
||
|
invoke-virtual {v3}, Lcom/airbnb/lottie/LottieImageAsset;->getWidth()I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
invoke-virtual {v3}, Lcom/airbnb/lottie/LottieImageAsset;->getHeight()I
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
invoke-static {p1, v7, v8}, Lcom/airbnb/lottie/utils/Utils;->resizeBitmapIfNeeded(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {v3, p1}, Lcom/airbnb/lottie/LottieImageAsset;->setBitmap(Landroid/graphics/Bitmap;)V
|
||
|
|
||
|
goto :goto_8
|
||
|
|
||
|
.line 610
|
||
|
:cond_e
|
||
|
invoke-interface {v1}, 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_f
|
||
|
:goto_9
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_12
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Ljava/util/Map$Entry;
|
||
|
|
||
|
.line 612
|
||
|
invoke-virtual {v4}, Lcom/airbnb/lottie/LottieComposition;->getFonts()Ljava/util/Map;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move v3, v6
|
||
|
|
||
|
:cond_10
|
||
|
:goto_a
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-eqz v7, :cond_11
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
check-cast v7, Lcom/airbnb/lottie/model/Font;
|
||
|
|
||
|
.line 613
|
||
|
invoke-virtual {v7}, Lcom/airbnb/lottie/model/Font;->getFamily()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
if-eqz v8, :cond_10
|
||
|
|
||
|
.line 615
|
||
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
check-cast v3, Landroid/graphics/Typeface;
|
||
|
|
||
|
invoke-virtual {v7, v3}, Lcom/airbnb/lottie/model/Font;->setTypeface(Landroid/graphics/Typeface;)V
|
||
|
|
||
|
move v3, v5
|
||
|
|
||
|
goto :goto_a
|
||
|
|
||
|
:cond_11
|
||
|
if-nez v3, :cond_f
|
||
|
|
||
|
.line 619
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v3, "Parsed font for "
|
||
|
|
||
|
invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string v1, " however it was not found in the animation."
|
||
|
|
||
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/utils/Logger;->warning(Ljava/lang/String;)V
|
||
|
|
||
|
goto :goto_9
|
||
|
|
||
|
.line 623
|
||
|
:cond_12
|
||
|
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
if-eqz p0, :cond_15
|
||
|
|
||
|
.line 624
|
||
|
invoke-virtual {v4}, Lcom/airbnb/lottie/LottieComposition;->getImages()Ljava/util/Map;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
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_13
|
||
|
:goto_b
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_15
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Ljava/util/Map$Entry;
|
||
|
|
||
|
.line 625
|
||
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Lcom/airbnb/lottie/LottieImageAsset;
|
||
|
|
||
|
if-nez p1, :cond_14
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
.line 629
|
||
|
:cond_14
|
||
|
invoke-virtual {p1}, Lcom/airbnb/lottie/LottieImageAsset;->getFileName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 630
|
||
|
new-instance v1, Landroid/graphics/BitmapFactory$Options;
|
||
|
|
||
|
invoke-direct {v1}, Landroid/graphics/BitmapFactory$Options;-><init>()V
|
||
|
|
||
|
.line 631
|
||
|
iput-boolean v5, v1, Landroid/graphics/BitmapFactory$Options;->inScaled:Z
|
||
|
|
||
|
const/16 v3, 0xa0
|
||
|
|
||
|
.line 632
|
||
|
iput v3, v1, Landroid/graphics/BitmapFactory$Options;->inDensity:I
|
||
|
|
||
|
const-string v3, "data:"
|
||
|
|
||
|
.line 634
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_13
|
||
|
|
||
|
const-string v3, "base64,"
|
||
|
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-lez v3, :cond_13
|
||
|
|
||
|
const/16 v3, 0x2c
|
||
|
|
||
|
.line 638
|
||
|
:try_start_8
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/String;->indexOf(I)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
add-int/2addr v3, v5
|
||
|
|
||
|
invoke-virtual {v0, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0, v6}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
:try_end_8
|
||
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_8 .. :try_end_8} :catch_0
|
||
|
|
||
|
.line 643
|
||
|
array-length v3, v0
|
||
|
|
||
|
invoke-static {v0, v6, v3, v1}, Landroid/graphics/BitmapFactory;->decodeByteArray([BIILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/airbnb/lottie/LottieImageAsset;->setBitmap(Landroid/graphics/Bitmap;)V
|
||
|
|
||
|
goto :goto_b
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p0
|
||
|
|
||
|
const-string p1, "data URL did not have correct base64 format."
|
||
|
|
||
|
.line 640
|
||
|
invoke-static {p1, p0}, Lcom/airbnb/lottie/utils/Logger;->warning(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
:cond_15
|
||
|
if-eqz p2, :cond_16
|
||
|
|
||
|
.line 649
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0, p2, v4}, Lcom/airbnb/lottie/model/LottieCompositionCache;->put(Ljava/lang/String;Lcom/airbnb/lottie/LottieComposition;)V
|
||
|
|
||
|
.line 651
|
||
|
:cond_16
|
||
|
new-instance p0, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p0, v4}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catch_1
|
||
|
move-exception p0
|
||
|
|
||
|
.line 595
|
||
|
new-instance p1, Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/LottieResult;-><init>(Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method private static isGzipCompressed(Lokio/BufferedSource;)Ljava/lang/Boolean;
|
||
|
.locals 1
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->GZIP_MAGIC:[B
|
||
|
|
||
|
.line 665
|
||
|
invoke-static {p0, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->matchesMagicBytes(Lokio/BufferedSource;[B)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private static isNightMode(Landroid/content/Context;)Z
|
||
|
.locals 1
|
||
|
|
||
|
.line 329
|
||
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
iget p0, p0, Landroid/content/res/Configuration;->uiMode:I
|
||
|
|
||
|
and-int/lit8 p0, p0, 0x30
|
||
|
|
||
|
const/16 v0, 0x20
|
||
|
|
||
|
if-ne p0, v0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method private static isZipCompressed(Lokio/BufferedSource;)Ljava/lang/Boolean;
|
||
|
.locals 1
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->ZIP_MAGIC:[B
|
||
|
|
||
|
.line 658
|
||
|
invoke-static {p0, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->matchesMagicBytes(Lokio/BufferedSource;[B)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$cache$15(Ljava/lang/String;Ljava/util/concurrent/atomic/AtomicBoolean;Lcom/airbnb/lottie/LottieComposition;)V
|
||
|
.locals 0
|
||
|
|
||
|
sget-object p2, Lcom/airbnb/lottie/LottieCompositionFactory;->taskCache:Ljava/util/Map;
|
||
|
|
||
|
.line 723
|
||
|
invoke-interface {p2, p0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
.line 724
|
||
|
invoke-virtual {p1, p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
|
||
|
|
||
|
.line 725
|
||
|
invoke-interface {p2}, Ljava/util/Map;->size()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
.line 726
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->notifyTaskCacheIdleListeners(Z)V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$cache$16(Ljava/lang/String;Ljava/util/concurrent/atomic/AtomicBoolean;Ljava/lang/Throwable;)V
|
||
|
.locals 0
|
||
|
|
||
|
sget-object p2, Lcom/airbnb/lottie/LottieCompositionFactory;->taskCache:Ljava/util/Map;
|
||
|
|
||
|
.line 730
|
||
|
invoke-interface {p2, p0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
.line 731
|
||
|
invoke-virtual {p1, p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
|
||
|
|
||
|
.line 732
|
||
|
invoke-interface {p2}, Ljava/util/Map;->size()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
.line 733
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->notifyTaskCacheIdleListeners(Z)V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromAsset$1(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 194
|
||
|
invoke-static {p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromAssetSync(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJson$7(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 376
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonSync(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJsonInputStream$3(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 339
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJsonInputStream$4(Ljava/io/InputStream;)V
|
||
|
.locals 0
|
||
|
|
||
|
.line 339
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJsonInputStream$5(Ljava/io/InputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 346
|
||
|
invoke-static {p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;Z)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJsonInputStream$6(ZLjava/io/InputStream;)V
|
||
|
.locals 0
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
.line 348
|
||
|
invoke-static {p1}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJsonReader$10(Lcom/airbnb/lottie/parser/moshi/JsonReader;)V
|
||
|
.locals 0
|
||
|
|
||
|
.line 409
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJsonReader$9(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 409
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReaderSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromJsonString$8(Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 395
|
||
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonStringSync(Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromRawRes$2(Ljava/lang/ref/WeakReference;Landroid/content/Context;ILjava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 268
|
||
|
invoke-virtual {p0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Landroid/content/Context;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
move-object p1, p0
|
||
|
|
||
|
.line 270
|
||
|
:cond_0
|
||
|
invoke-static {p1, p2, p3}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromRawResSync(Landroid/content/Context;ILjava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromUrl$0(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 131
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/L;->networkFetcher(Landroid/content/Context;)Lcom/airbnb/lottie/network/NetworkFetcher;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0, p1, p2}, Lcom/airbnb/lottie/network/NetworkFetcher;->fetchSync(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
.line 132
|
||
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
.line 133
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/airbnb/lottie/LottieComposition;
|
||
|
|
||
|
invoke-virtual {p1, p2, v0}, Lcom/airbnb/lottie/model/LottieCompositionCache;->put(Ljava/lang/String;Lcom/airbnb/lottie/LottieComposition;)V
|
||
|
|
||
|
:cond_0
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromZipStream$11(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 464
|
||
|
invoke-static {p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromZipStream$12(Ljava/util/zip/ZipInputStream;)V
|
||
|
.locals 0
|
||
|
|
||
|
.line 464
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromZipStream$13(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/Exception;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 472
|
||
|
invoke-static {p0, p1, p2}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromZipStreamSync(Landroid/content/Context;Ljava/util/zip/ZipInputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic lambda$fromZipStream$14(Ljava/util/zip/ZipInputStream;)V
|
||
|
.locals 0
|
||
|
|
||
|
.line 472
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/utils/Utils;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static matchesMagicBytes(Lokio/BufferedSource;[B)Ljava/lang/Boolean;
|
||
|
.locals 5
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 670
|
||
|
:try_start_0
|
||
|
invoke-interface {p0}, Lokio/BufferedSource;->peek()Lokio/BufferedSource;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
.line 671
|
||
|
array-length v1, p1
|
||
|
|
||
|
move v2, v0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v2, v1, :cond_1
|
||
|
|
||
|
aget-byte v3, p1, v2
|
||
|
|
||
|
.line 672
|
||
|
invoke-interface {p0}, Lokio/BufferedSource;->readByte()B
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eq v4, v3, :cond_0
|
||
|
|
||
|
.line 673
|
||
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 676
|
||
|
:cond_1
|
||
|
invoke-interface {p0}, Lokio/BufferedSource;->close()V
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
.line 677
|
||
|
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/NoSuchMethodError; {:try_start_0 .. :try_end_0} :catch_1
|
||
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p0
|
||
|
|
||
|
const-string p1, "Failed to check zip file header"
|
||
|
|
||
|
.line 682
|
||
|
invoke-static {p1, p0}, Lcom/airbnb/lottie/utils/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
.line 683
|
||
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
.line 680
|
||
|
:catch_1
|
||
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private static notifyTaskCacheIdleListeners(Z)V
|
||
|
.locals 3
|
||
|
|
||
|
.line 751
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
sget-object v1, Lcom/airbnb/lottie/LottieCompositionFactory;->taskIdleListeners:Ljava/util/Set;
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
.line 752
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-ge v1, v2, :cond_0
|
||
|
|
||
|
.line 753
|
||
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lcom/airbnb/lottie/LottieTaskIdleListener;
|
||
|
|
||
|
invoke-interface {v2, p0}, Lcom/airbnb/lottie/LottieTaskIdleListener;->onIdleChanged(Z)V
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static rawResCacheKey(Landroid/content/Context;I)Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
.line 322
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "rawRes"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-static {p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->isNightMode(Landroid/content/Context;)Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
const-string p0, "_night_"
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const-string p0, "_day_"
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static registerLottieTaskIdleListener(Lcom/airbnb/lottie/LottieTaskIdleListener;)V
|
||
|
.locals 1
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->taskIdleListeners:Ljava/util/Set;
|
||
|
|
||
|
.line 105
|
||
|
invoke-interface {v0, p0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->taskCache:Ljava/util/Map;
|
||
|
|
||
|
.line 106
|
||
|
invoke-interface {v0}, Ljava/util/Map;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p0, v0}, Lcom/airbnb/lottie/LottieTaskIdleListener;->onIdleChanged(Z)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static setMaxCacheSize(I)V
|
||
|
.locals 1
|
||
|
|
||
|
.line 86
|
||
|
invoke-static {}, Lcom/airbnb/lottie/model/LottieCompositionCache;->getInstance()Lcom/airbnb/lottie/model/LottieCompositionCache;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0}, Lcom/airbnb/lottie/model/LottieCompositionCache;->resize(I)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static unregisterLottieTaskIdleListener(Lcom/airbnb/lottie/LottieTaskIdleListener;)V
|
||
|
.locals 1
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/LottieCompositionFactory;->taskIdleListeners:Ljava/util/Set;
|
||
|
|
||
|
.line 110
|
||
|
invoke-interface {v0, p0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
||
|
|
||
|
return-void
|
||
|
.end method
|