572 lines
11 KiB
Smali
572 lines
11 KiB
Smali
.class final Lcom/airbnb/lottie/e/g;
|
|
.super Ljava/lang/Object;
|
|
.source "ContentModelParser.java"
|
|
|
|
|
|
# direct methods
|
|
.method static i(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/b;
|
|
.locals 9
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginObject()V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
const/4 v1, 0x2
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, -0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v7
|
|
|
|
const/16 v8, 0x64
|
|
|
|
if-eq v7, v8, :cond_1
|
|
|
|
const/16 v8, 0xe85
|
|
|
|
if-eq v7, v8, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string v7, "ty"
|
|
|
|
invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
const-string v7, "d"
|
|
|
|
invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
const/4 v2, -0x1
|
|
|
|
:goto_2
|
|
packed-switch v2, :pswitch_data_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextInt()I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object v2, v6
|
|
|
|
:goto_3
|
|
if-nez v2, :cond_4
|
|
|
|
return-object v6
|
|
|
|
:cond_4
|
|
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v7
|
|
|
|
sparse-switch v7, :sswitch_data_0
|
|
|
|
goto/16 :goto_4
|
|
|
|
:sswitch_0
|
|
const-string v0, "tr"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x5
|
|
|
|
goto/16 :goto_5
|
|
|
|
:sswitch_1
|
|
const-string v0, "tm"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/16 v0, 0x9
|
|
|
|
goto/16 :goto_5
|
|
|
|
:sswitch_2
|
|
const-string v0, "st"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto/16 :goto_5
|
|
|
|
:sswitch_3
|
|
const-string v0, "sr"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/16 v0, 0xa
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_4
|
|
const-string v0, "sh"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x6
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_5
|
|
const-string v0, "rp"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/16 v0, 0xc
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_6
|
|
const-string v0, "rc"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/16 v0, 0x8
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_7
|
|
const-string v0, "mm"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/16 v0, 0xb
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_8
|
|
const-string v7, "gs"
|
|
|
|
invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_9
|
|
const-string v0, "gr"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_a
|
|
const-string v0, "gf"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x4
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_b
|
|
const-string v0, "fl"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x3
|
|
|
|
goto :goto_5
|
|
|
|
:sswitch_c
|
|
const-string v0, "el"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v0, 0x7
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
:goto_4
|
|
const/4 v0, -0x1
|
|
|
|
:goto_5
|
|
packed-switch v0, :pswitch_data_1
|
|
|
|
const-string p1, "LOTTIE"
|
|
|
|
const-string v0, "Unknown shape type "
|
|
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_2
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/y;->p(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/k;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_3
|
|
invoke-static {p0}, Lcom/airbnb/lottie/e/t;->c(Landroid/util/JsonReader;)Lcom/airbnb/lottie/c/b/h;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v0, "Animation contains merge paths. Merge paths are only supported on KitKat+ and must be manually enabled by calling enableMergePathsForKitKatAndAbove()."
|
|
|
|
invoke-virtual {p1, v0}, Lcom/airbnb/lottie/d;->t(Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_4
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/w;->n(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/i;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_5
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/ae;->t(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/q;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_6
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/x;->o(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/j;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_7
|
|
invoke-static {p0, p1, v1}, Lcom/airbnb/lottie/e/e;->b(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;I)Lcom/airbnb/lottie/c/b/a;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_8
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/ac;->r(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/o;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_9
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/c;->d(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/a/l;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_a
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/k;->j(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/d;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_b
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/ab;->q(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/m;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_a
|
|
|
|
:pswitch_c
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/l;->k(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/e;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_a
|
|
|
|
:pswitch_d
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/ad;->s(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/p;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_a
|
|
|
|
:pswitch_e
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
:goto_6
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_b
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v7, 0xd2b
|
|
|
|
if-eq v2, v7, :cond_7
|
|
|
|
const/16 v7, 0xdbf
|
|
|
|
if-eq v2, v7, :cond_6
|
|
|
|
goto :goto_7
|
|
|
|
:cond_6
|
|
const-string v2, "nm"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_8
|
|
|
|
:cond_7
|
|
const-string v2, "it"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_8
|
|
:goto_7
|
|
const/4 v1, -0x1
|
|
|
|
:goto_8
|
|
packed-switch v1, :pswitch_data_2
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
goto :goto_6
|
|
|
|
:pswitch_f
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
:cond_9
|
|
:goto_9
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/g;->i(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/b;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_9
|
|
|
|
:cond_a
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
goto :goto_6
|
|
|
|
:pswitch_10
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
new-instance p1, Lcom/airbnb/lottie/c/b/n;
|
|
|
|
invoke-direct {p1, v6, v0}, Lcom/airbnb/lottie/c/b/n;-><init>(Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
move-object v6, p1
|
|
|
|
:goto_a
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_c
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
goto :goto_a
|
|
|
|
:cond_c
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endObject()V
|
|
|
|
return-object v6
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0xca7 -> :sswitch_c
|
|
0xcc6 -> :sswitch_b
|
|
0xcdf -> :sswitch_a
|
|
0xceb -> :sswitch_9
|
|
0xcec -> :sswitch_8
|
|
0xda0 -> :sswitch_7
|
|
0xe31 -> :sswitch_6
|
|
0xe3e -> :sswitch_5
|
|
0xe55 -> :sswitch_4
|
|
0xe5f -> :sswitch_3
|
|
0xe61 -> :sswitch_2
|
|
0xe79 -> :sswitch_1
|
|
0xe7e -> :sswitch_0
|
|
.end sparse-switch
|
|
|
|
:pswitch_data_1
|
|
.packed-switch 0x0
|
|
:pswitch_e
|
|
:pswitch_d
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
.end packed-switch
|
|
|
|
:pswitch_data_2
|
|
.packed-switch 0x0
|
|
:pswitch_10
|
|
:pswitch_f
|
|
.end packed-switch
|
|
.end method
|