671 lines
13 KiB
Smali
671 lines
13 KiB
Smali
.class public final Lcom/crashlytics/android/answers/t;
|
|
.super Ljava/lang/Object;
|
|
.source "FirebaseAnalyticsEventMapper.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final rS:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
new-array v1, v1, [Ljava/lang/String;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "app_clear_data"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const-string v3, "app_exception"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const-string v3, "app_remove"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x3
|
|
|
|
const-string v3, "app_upgrade"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x4
|
|
|
|
const-string v3, "app_install"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x5
|
|
|
|
const-string v3, "app_update"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x6
|
|
|
|
const-string v3, "firebase_campaign"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x7
|
|
|
|
const-string v3, "error"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x8
|
|
|
|
const-string v3, "first_open"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x9
|
|
|
|
const-string v3, "first_visit"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0xa
|
|
|
|
const-string v3, "in_app_purchase"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0xb
|
|
|
|
const-string v3, "notification_dismiss"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0xc
|
|
|
|
const-string v3, "notification_foreground"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0xd
|
|
|
|
const-string v3, "notification_open"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0xe
|
|
|
|
const-string v3, "notification_receive"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0xf
|
|
|
|
const-string v3, "os_update"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x10
|
|
|
|
const-string v3, "session_start"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x11
|
|
|
|
const-string v3, "user_engagement"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x12
|
|
|
|
const-string v3, "ad_exposure"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x13
|
|
|
|
const-string v3, "adunit_exposure"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x14
|
|
|
|
const-string v3, "ad_query"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x15
|
|
|
|
const-string v3, "ad_activeview"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x16
|
|
|
|
const-string v3, "ad_impression"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x17
|
|
|
|
const-string v3, "ad_click"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x18
|
|
|
|
const-string v3, "screen_view"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/16 v2, 0x19
|
|
|
|
const-string v3, "firebase_extra_parameter"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
|
|
|
|
sput-object v0, Lcom/crashlytics/android/answers/t;->rS:Ljava/util/Set;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static F(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/crashlytics/android/answers/t;->rS:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "fabric_"
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const-string v0, "[^\\p{Alnum}_]+"
|
|
|
|
const-string v2, "_"
|
|
|
|
invoke-virtual {p0, v0, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "ga_"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const-string v0, "google_"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const-string v0, "firebase_"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Character;->isLetter(C)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
:cond_2
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_3
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x28
|
|
|
|
if-le v0, v1, :cond_4
|
|
|
|
invoke-virtual {p0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_4
|
|
return-object p0
|
|
|
|
:cond_5
|
|
:goto_0
|
|
const-string p0, "fabric_unnamed_event"
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static G(Ljava/lang/String;)Ljava/lang/Integer;
|
|
.locals 1
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string v0, "true"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static a(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Double;)V
|
|
.locals 2
|
|
|
|
invoke-static {p2}, Lcom/crashlytics/android/answers/t;->r(Ljava/lang/Object;)Ljava/lang/Double;
|
|
|
|
move-result-object p2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljava/lang/Double;->doubleValue()D
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, p1, v0, v1}, Landroid/os/Bundle;->putDouble(Ljava/lang/String;D)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Integer;)V
|
|
.locals 0
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Long;)V
|
|
.locals 2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, p1, v0, v1}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Landroid/os/Bundle;Ljava/util/Map;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/os/Bundle;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/Map$Entry;
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v3, "[^\\p{Alnum}_]+"
|
|
|
|
const-string v4, "_"
|
|
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "ga_"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
const-string v3, "google_"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
const-string v3, "firebase_"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Ljava/lang/Character;->isLetter(C)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
:cond_2
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "fabric_"
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_3
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
const/16 v5, 0x28
|
|
|
|
if-le v3, v5, :cond_5
|
|
|
|
invoke-virtual {v2, v4, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
:goto_1
|
|
const-string v2, "fabric_unnamed_parameter"
|
|
|
|
:cond_5
|
|
:goto_2
|
|
instance-of v3, v1, Ljava/lang/String;
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v2, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
instance-of v3, v1, Ljava/lang/Double;
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Double;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Double;->doubleValue()D
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, v2, v0, v1}, Landroid/os/Bundle;->putDouble(Ljava/lang/String;D)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_7
|
|
instance-of v3, v1, Ljava/lang/Long;
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Long;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, v2, v0, v1}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_8
|
|
instance-of v1, v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v2, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_9
|
|
return-void
|
|
.end method
|
|
|
|
.method static r(Ljava/lang/Object;)Ljava/lang/Double;
|
|
.locals 0
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static s(Ljava/lang/Object;)Ljava/lang/Double;
|
|
.locals 3
|
|
|
|
check-cast p0, Ljava/lang/Long;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/math/BigDecimal;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/math/BigDecimal;-><init>(J)V
|
|
|
|
sget-object p0, Lcom/crashlytics/android/answers/a;->qV:Ljava/math/BigDecimal;
|
|
|
|
invoke-virtual {v0, p0}, Ljava/math/BigDecimal;->divide(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/math/BigDecimal;->doubleValue()D
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|