240 lines
7.3 KiB
Smali
240 lines
7.3 KiB
Smali
.class final Lcom/crashlytics/android/answers/ag;
|
|
.super Ljava/lang/Object;
|
|
.source "SessionEventTransform.java"
|
|
|
|
# interfaces
|
|
.implements Lio/fabric/sdk/android/a/d/a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lio/fabric/sdk/android/a/d/a<",
|
|
"Lcom/crashlytics/android/answers/ae;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static b(Lcom/crashlytics/android/answers/ae;)Lorg/json/JSONObject;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/crashlytics/android/answers/ae;->sh:Lcom/crashlytics/android/answers/af;
|
|
|
|
const-string v2, "appBundleId"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sy:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "executionId"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sz:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "installationId"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sA:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "limitAdTrackingEnabled"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sB:Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "betaDeviceToken"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sC:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "buildId"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sD:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "osVersion"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->dY:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "deviceModel"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sE:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "appVersionCode"
|
|
|
|
iget-object v3, v1, Lcom/crashlytics/android/answers/af;->sF:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "appVersionName"
|
|
|
|
iget-object v1, v1, Lcom/crashlytics/android/answers/af;->sG:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v1, "timestamp"
|
|
|
|
iget-wide v2, p0, Lcom/crashlytics/android/answers/ae;->timestamp:J
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
|
|
|
|
const-string v1, "type"
|
|
|
|
iget-object v2, p0, Lcom/crashlytics/android/answers/ae;->si:Lcom/crashlytics/android/answers/ae$b;
|
|
|
|
invoke-virtual {v2}, Lcom/crashlytics/android/answers/ae$b;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
iget-object v1, p0, Lcom/crashlytics/android/answers/ae;->sj:Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v1, "details"
|
|
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
iget-object v3, p0, Lcom/crashlytics/android/answers/ae;->sj:Ljava/util/Map;
|
|
|
|
invoke-direct {v2, v3}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
:cond_0
|
|
const-string v1, "customType"
|
|
|
|
iget-object v2, p0, Lcom/crashlytics/android/answers/ae;->sk:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
iget-object v1, p0, Lcom/crashlytics/android/answers/ae;->sl:Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v1, "customAttributes"
|
|
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
iget-object v3, p0, Lcom/crashlytics/android/answers/ae;->sl:Ljava/util/Map;
|
|
|
|
invoke-direct {v2, v3}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
:cond_1
|
|
const-string v1, "predefinedType"
|
|
|
|
iget-object v2, p0, Lcom/crashlytics/android/answers/ae;->sm:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
iget-object v1, p0, Lcom/crashlytics/android/answers/ae;->sn:Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const-string v1, "predefinedAttributes"
|
|
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
iget-object p0, p0, Lcom/crashlytics/android/answers/ae;->sn:Ljava/util/Map;
|
|
|
|
invoke-direct {v2, p0}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_2
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x9
|
|
|
|
if-lt v0, v1, :cond_3
|
|
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
invoke-virtual {p0}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
invoke-virtual {p0}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic t(Ljava/lang/Object;)[B
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
check-cast p1, Lcom/crashlytics/android/answers/ae;
|
|
|
|
invoke-static {p1}, Lcom/crashlytics/android/answers/ag;->b(Lcom/crashlytics/android/answers/ae;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "UTF-8"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|