203 lines
5.7 KiB
Smali
203 lines
5.7 KiB
Smali
.class public Le/h/a/c/f0;
|
|
.super Ljava/lang/Object;
|
|
.source "SessionEventTransform.java"
|
|
|
|
# interfaces
|
|
.implements Lq/a/a/a/p/d/a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lq/a/a/a/p/d/a<",
|
|
"Le/h/a/c/d0;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/Object;)[B
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
check-cast p1, Le/h/a/c/d0;
|
|
|
|
:try_start_0
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
iget-object v1, p1, Le/h/a/c/d0;->a:Le/h/a/c/e0;
|
|
|
|
const-string v2, "appBundleId"
|
|
|
|
iget-object v3, v1, Le/h/a/c/e0;->a: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, Le/h/a/c/e0;->b: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, Le/h/a/c/e0;->c: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, Le/h/a/c/e0;->d: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, Le/h/a/c/e0;->e: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, Le/h/a/c/e0;->f: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, Le/h/a/c/e0;->g: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, Le/h/a/c/e0;->h: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, Le/h/a/c/e0;->i: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, Le/h/a/c/e0;->j: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, p1, Le/h/a/c/d0;->b: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, p1, Le/h/a/c/d0;->c:Le/h/a/c/d0$c;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Enum;->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, p1, Le/h/a/c/d0;->d:Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v2, "details"
|
|
|
|
new-instance v3, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v3, v1}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
:cond_0
|
|
const-string v1, "customType"
|
|
|
|
iget-object v2, p1, Le/h/a/c/d0;->e:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
iget-object v1, p1, Le/h/a/c/d0;->f:Ljava/util/Map;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v2, "customAttributes"
|
|
|
|
new-instance v3, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v3, v1}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
:cond_1
|
|
const-string v1, "predefinedType"
|
|
|
|
iget-object v2, p1, Le/h/a/c/d0;->g:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
iget-object p1, p1, Le/h/a/c/d0;->h:Ljava/util/Map;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
const-string v1, "predefinedAttributes"
|
|
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v2, p1}, 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
|
|
invoke-virtual {v0}, 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
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
invoke-virtual {p1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|