ContentModelParser.smali
.class Lcom/airbnb/lottie/parser/ContentModelParser;
.super Ljava/lang/Object;
# static fields
.field private static a:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
# direct methods
.method static constructor <clinit>()V
.registers 2
const-string v0, "ty"
const-string v1, "d"
filled-new-array {v0, v1}, [Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;->a([Ljava/lang/String;)Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
move-result-object v0
sput-object v0, Lcom/airbnb/lottie/parser/ContentModelParser;->a:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
return-void
.end method
.method static a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ContentModel;
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->d()V
const/4 v0, 0x2
const/4 v1, 0x2
:goto_5
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->g()Z
move-result v2
const/4 v3, 0x1
const/4 v4, 0x0
if-eqz v2, :cond_28
sget-object v2, Lcom/airbnb/lottie/parser/ContentModelParser;->a:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->u(Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;)I
move-result v2
if-eqz v2, :cond_23
if-eq v2, v3, :cond_1e
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->v()V
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->x()V
goto :goto_5
:cond_1e
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->n()I
move-result v1
goto :goto_5
:cond_23
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->p()Ljava/lang/String;
move-result-object v2
goto :goto_29
:cond_28
move-object v2, v4
:goto_29
if-nez v2, :cond_2c
return-object v4
:cond_2c
const/4 v5, -0x1
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
move-result v6
sparse-switch v6, :sswitch_data_12c
goto/16 :goto_bf
:sswitch_36
const-string v0, "tr"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/4 v0, 0x5
goto/16 :goto_c0
:sswitch_41
const-string v0, "tm"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/16 v0, 0x9
goto/16 :goto_c0
:sswitch_4d
const-string v0, "st"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/4 v0, 0x1
goto/16 :goto_c0
:sswitch_58
const-string v0, "sr"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/16 v0, 0xa
goto :goto_c0
:sswitch_63
const-string v0, "sh"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/4 v0, 0x6
goto :goto_c0
:sswitch_6d
const-string v0, "rp"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/16 v0, 0xc
goto :goto_c0
:sswitch_78
const-string v0, "rc"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/16 v0, 0x8
goto :goto_c0
:sswitch_83
const-string v0, "mm"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/16 v0, 0xb
goto :goto_c0
:sswitch_8e
const-string v3, "gs"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_bf
goto :goto_c0
:sswitch_97
const-string v0, "gr"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/4 v0, 0x0
goto :goto_c0
:sswitch_a1
const-string v0, "gf"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/4 v0, 0x4
goto :goto_c0
:sswitch_ab
const-string v0, "fl"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/4 v0, 0x3
goto :goto_c0
:sswitch_b5
const-string v0, "el"
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_bf
const/4 v0, 0x7
goto :goto_c0
:cond_bf
:goto_bf
const/4 v0, -0x1
:goto_c0
packed-switch v0, :pswitch_data_162
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Unknown shape type "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Lcom/airbnb/lottie/utils/Logger;->c(Ljava/lang/String;)V
goto :goto_11d
:pswitch_d8
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/RepeaterParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/Repeater;
move-result-object v4
goto :goto_11d
:pswitch_dd
invoke-static {p0}, Lcom/airbnb/lottie/parser/MergePathsParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;)Lcom/airbnb/lottie/model/content/MergePaths;
move-result-object v4
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/LottieComposition;->a(Ljava/lang/String;)V
goto :goto_11d
:pswitch_e7
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/PolystarShapeParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/PolystarShape;
move-result-object v4
goto :goto_11d
:pswitch_ec
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/ShapeTrimPathParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ShapeTrimPath;
move-result-object v4
goto :goto_11d
:pswitch_f1
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/RectangleShapeParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/RectangleShape;
move-result-object v4
goto :goto_11d
:pswitch_f6
invoke-static {p0, p1, v1}, Lcom/airbnb/lottie/parser/CircleShapeParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;I)Lcom/airbnb/lottie/model/content/CircleShape;
move-result-object v4
goto :goto_11d
:pswitch_fb
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/ShapePathParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ShapePath;
move-result-object v4
goto :goto_11d
:pswitch_100
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/AnimatableTransformParser;->g(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/animatable/AnimatableTransform;
move-result-object v4
goto :goto_11d
:pswitch_105
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/GradientFillParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/GradientFill;
move-result-object v4
goto :goto_11d
:pswitch_10a
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/ShapeFillParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ShapeFill;
move-result-object v4
goto :goto_11d
:pswitch_10f
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/GradientStrokeParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/GradientStroke;
move-result-object v4
goto :goto_11d
:pswitch_114
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/ShapeStrokeParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ShapeStroke;
move-result-object v4
goto :goto_11d
:pswitch_119
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/ShapeGroupParser;->a(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ShapeGroup;
move-result-object v4
:goto_11d
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->g()Z
move-result p1
if-eqz p1, :cond_127
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->x()V
goto :goto_11d
:cond_127
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->f()V
return-object v4
nop
:sswitch_data_12c
.sparse-switch
0xca7 -> :sswitch_b5
0xcc6 -> :sswitch_ab
0xcdf -> :sswitch_a1
0xceb -> :sswitch_97
0xcec -> :sswitch_8e
0xda0 -> :sswitch_83
0xe31 -> :sswitch_78
0xe3e -> :sswitch_6d
0xe55 -> :sswitch_63
0xe5f -> :sswitch_58
0xe61 -> :sswitch_4d
0xe79 -> :sswitch_41
0xe7e -> :sswitch_36
.end sparse-switch
:pswitch_data_162
.packed-switch 0x0
:pswitch_119
:pswitch_114
:pswitch_10f
:pswitch_10a
:pswitch_105
:pswitch_100
:pswitch_fb
:pswitch_f6
:pswitch_f1
:pswitch_ec
:pswitch_e7
:pswitch_dd
:pswitch_d8
.end packed-switch
.end method