541 lines
12 KiB
Smali
541 lines
12 KiB
Smali
.class public Lcom/adjust/sdk/f;
|
|
.super Ljava/lang/Object;
|
|
.source "AdjustAttribution.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# static fields
|
|
.field private static final serialPersistentFields:[Ljava/io/ObjectStreamField;
|
|
|
|
.field private static final serialVersionUID:J = 0x1L
|
|
|
|
|
|
# instance fields
|
|
.field public adgroup:Ljava/lang/String;
|
|
|
|
.field public adid:Ljava/lang/String;
|
|
|
|
.field public campaign:Ljava/lang/String;
|
|
|
|
.field public clickLabel:Ljava/lang/String;
|
|
|
|
.field public creative:Ljava/lang/String;
|
|
|
|
.field public network:Ljava/lang/String;
|
|
|
|
.field public trackerName:Ljava/lang/String;
|
|
|
|
.field public trackerToken:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
const/16 v0, 0x8
|
|
|
|
new-array v0, v0, [Ljava/io/ObjectStreamField;
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "trackerToken"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "trackerName"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "network"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "campaign"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x3
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "adgroup"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x4
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "creative"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x5
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "clickLabel"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x6
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Ljava/io/ObjectStreamField;
|
|
|
|
const-string v2, "adid"
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v2, v3}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
const/4 v2, 0x7
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sput-object v0, Lcom/adjust/sdk/f;->serialPersistentFields:[Ljava/io/ObjectStreamField;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/adjust/sdk/f;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v1, Lcom/adjust/sdk/f;
|
|
|
|
invoke-direct {v1}, Lcom/adjust/sdk/f;-><init>()V
|
|
|
|
const-string v2, "tracker_token"
|
|
|
|
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lcom/adjust/sdk/f;->trackerToken:Ljava/lang/String;
|
|
|
|
const-string v2, "tracker_name"
|
|
|
|
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lcom/adjust/sdk/f;->trackerName:Ljava/lang/String;
|
|
|
|
const-string v2, "network"
|
|
|
|
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lcom/adjust/sdk/f;->network:Ljava/lang/String;
|
|
|
|
const-string v2, "campaign"
|
|
|
|
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lcom/adjust/sdk/f;->campaign:Ljava/lang/String;
|
|
|
|
const-string v2, "adgroup"
|
|
|
|
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lcom/adjust/sdk/f;->adgroup:Ljava/lang/String;
|
|
|
|
const-string v2, "creative"
|
|
|
|
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Lcom/adjust/sdk/f;->creative:Ljava/lang/String;
|
|
|
|
const-string v2, "click_label"
|
|
|
|
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
iput-object p0, v1, Lcom/adjust/sdk/f;->clickLabel:Ljava/lang/String;
|
|
|
|
iput-object p1, v1, Lcom/adjust/sdk/f;->adid:Ljava/lang/String;
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/ClassNotFoundException;,
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private writeObject(Ljava/io/ObjectOutputStream;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Ljava/io/ObjectOutputStream;->defaultWriteObject()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
check-cast p1, Lcom/adjust/sdk/f;
|
|
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->trackerToken:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lcom/adjust/sdk/f;->trackerToken:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
return v1
|
|
|
|
:cond_3
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->trackerName:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lcom/adjust/sdk/f;->trackerName:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->network:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lcom/adjust/sdk/f;->network:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
return v1
|
|
|
|
:cond_5
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->campaign:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lcom/adjust/sdk/f;->campaign:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_6
|
|
|
|
return v1
|
|
|
|
:cond_6
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->adgroup:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lcom/adjust/sdk/f;->adgroup:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_7
|
|
|
|
return v1
|
|
|
|
:cond_7
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->creative:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lcom/adjust/sdk/f;->creative:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_8
|
|
|
|
return v1
|
|
|
|
:cond_8
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->clickLabel:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lcom/adjust/sdk/f;->clickLabel:Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
return v1
|
|
|
|
:cond_9
|
|
iget-object v2, p0, Lcom/adjust/sdk/f;->adid:Ljava/lang/String;
|
|
|
|
iget-object p1, p1, Lcom/adjust/sdk/f;->adid:Ljava/lang/String;
|
|
|
|
invoke-static {v2, p1}, Lcom/adjust/sdk/ay;->b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_a
|
|
|
|
return v1
|
|
|
|
:cond_a
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/f;->trackerToken:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit16 v0, v0, 0x275
|
|
|
|
mul-int/lit8 v0, v0, 0x25
|
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/f;->trackerName:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x25
|
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/f;->network:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x25
|
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/f;->campaign:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x25
|
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/f;->adgroup:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x25
|
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/f;->creative:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x25
|
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/f;->clickLabel:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x25
|
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/f;->adid:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Lcom/adjust/sdk/ay;->m(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 5
|
|
|
|
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
const-string v1, "tt:%s tn:%s net:%s cam:%s adg:%s cre:%s cl:%s adid:%s"
|
|
|
|
const/16 v2, 0x8
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->trackerToken:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->trackerName:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->network:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x2
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->campaign:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x3
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->adgroup:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x4
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->creative:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x5
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->clickLabel:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x6
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/f;->adid:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x7
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-static {v0, v1, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|