Add Discord APKTool decompilation (Smali source for modding)

- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;
.super Ljava/util/TimerTask;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->startWithConfig(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.field final synthetic val$clientToken:Ljava/lang/String;
.field final synthetic val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iput-object p2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
iput-object p3, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;->val$clientToken:Ljava/lang/String;
.line 139
invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 143
invoke-virtual {v1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->getUserAlias()Ljava/lang/String;
move-result-object v1
iget-object v2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;->val$clientToken:Ljava/lang/String;
invoke-virtual {v0, v1, v2}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->getInAppNotifications(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,210 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/gms/tasks/OnCompleteListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->run()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/android/gms/tasks/OnCompleteListener<",
"Ljava/lang/String;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 166
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onComplete(Lcom/google/android/gms/tasks/Task;)V
.locals 4
.param p1 # Lcom/google/android/gms/tasks/Task;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 170
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->isSuccessful()Z
move-result v0
const-string v1, "PushManager"
if-nez v0, :cond_0
.line 172
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getException()Ljava/lang/Exception;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "Failed to get firebase instance id: %s"
invoke-static {v1, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 173
iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
const/4 v0, 0x1
invoke-virtual {p1, v0}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 174
iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
const-string v0, "client_register_failure"
invoke-virtual {p1, v0}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V
goto :goto_0
.line 178
:cond_0
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->getResult()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 179
iget-object v0, v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
invoke-virtual {v0, p1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setRegistrationIdentifier(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 180
iget-object v0, v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
const/4 v2, 0x0
invoke-virtual {v0, v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 181
iget-object v0, v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
const/4 v3, 0x0
invoke-virtual {v0, v3}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V
const-string v0, "Device registered on FCM. Registration id: %s"
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 182
invoke-static {v0, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-array v0, v2, [Ljava/lang/Object;
invoke-static {v1, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:try_start_0
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 186
iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$100(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Landroid/content/Context;
move-result-object p1
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
check-cast p1, Landroid/app/Application;
.line 187
new-instance v0, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;
invoke-direct {v0}, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;-><init>()V
invoke-virtual {p1, v0}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
.line 191
invoke-virtual {p1}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "Failed to register activity lifecycle callbacks: %s"
invoke-static {v1, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;->this$1:Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.line 194
iget-object v0, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iget-object p1, p1, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
invoke-virtual {v0, p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
return-void
.end method

View File

@@ -0,0 +1,156 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->startWithConfig(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.field final synthetic val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iput-object p2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 155
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 5
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 159
invoke-static {v0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$000(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Z
move-result v0
const-string v1, "client_register_failure"
const/4 v2, 0x1
const/4 v3, 0x0
const-string v4, "PushManager"
if-eqz v0, :cond_0
const-string v0, "Attempt to register device with FCM"
new-array v3, v3, [Ljava/lang/Object;
.line 162
invoke-static {v4, v0, v3}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 165
:try_start_0
invoke-static {}, Lcom/google/firebase/messaging/FirebaseMessaging;->getInstance()Lcom/google/firebase/messaging/FirebaseMessaging;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getToken()Lcom/google/android/gms/tasks/Task;
move-result-object v0
new-instance v3, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;
invoke-direct {v3, p0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;-><init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;)V
invoke-virtual {v0, v3}, Lcom/google/android/gms/tasks/Task;->addOnCompleteListener(Lcom/google/android/gms/tasks/OnCompleteListener;)Lcom/google/android/gms/tasks/Task;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
.line 200
invoke-virtual {v0}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
const-string v3, "Failed to get registration ID from FCM: %s"
invoke-static {v4, v3, v0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 201
invoke-virtual {v0, v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 202
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 203
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
goto :goto_0
:cond_0
const-string v0, "Failed to find appropriate Google Play Service SDK on device."
new-array v3, v3, [Ljava/lang/Object;
.line 209
invoke-static {v4, v0, v3}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 210
invoke-virtual {v0, v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 211
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 212
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,194 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/eadp/http/models/HttpRequestListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.field final synthetic val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iput-object p2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 259
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onComplete(Lcom/ea/eadp/http/models/HttpResponse;)V
.locals 6
.line 263
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
move-result v0
.line 264
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object v1
const/16 v2, 0xc8
const-string v3, "response: %s"
const/4 v4, 0x0
const-string v5, "PushManager"
if-lt v0, v2, :cond_1
const/16 v2, 0x12c
if-ge v0, v2, :cond_1
const-string p1, "Registration request successful!"
new-array v2, v4, [Ljava/lang/Object;
.line 267
invoke-static {v5, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object p1
.line 268
invoke-static {v3, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-array v2, v4, [Ljava/lang/Object;
invoke-static {v5, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 282
invoke-virtual {p1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->getRegistrationIdentifier()Ljava/lang/String;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v2, "Device registration with server complete. Registered id: %s"
invoke-static {v2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-array v2, v4, [Ljava/lang/Object;
invoke-static {v5, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 285
invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object p1
if-eqz p1, :cond_0
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 287
invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object p1
invoke-interface {p1, v0, v1}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onRegistrationSuccess(ILjava/lang/String;)V
:cond_0
return-void
.line 272
:cond_1
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getMessage()Ljava/lang/String;
move-result-object p1
filled-new-array {v2, p1}, [Ljava/lang/Object;
move-result-object p1
const-string v2, "Registration request failed! Status: %s, Message: %s"
invoke-static {v2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-array v2, v4, [Ljava/lang/Object;
.line 273
invoke-static {v5, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
.line 274
invoke-static {v3, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
new-array v2, v4, [Ljava/lang/Object;
invoke-static {v5, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 276
invoke-static {v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v1
if-eqz v1, :cond_2
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$3;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 278
invoke-static {v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v1
invoke-interface {v1, v0, p1}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
:cond_2
return-void
.end method

View File

@@ -0,0 +1,175 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/eadp/http/models/HttpRequestListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->sendTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 320
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onComplete(Lcom/ea/eadp/http/models/HttpResponse;)V
.locals 6
.line 324
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
move-result v0
const/16 v1, 0xc8
const-string v2, "response: %s"
const/4 v3, 0x0
const-string v4, "PushManager"
if-lt v0, v1, :cond_0
const/16 v1, 0x12c
if-ge v0, v1, :cond_0
const-string v1, "Tracking request successful!"
new-array v5, v3, [Ljava/lang/Object;
.line 327
invoke-static {v4, v1, v5}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 328
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
new-array v2, v3, [Ljava/lang/Object;
invoke-static {v4, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 330
invoke-static {v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v1
if-eqz v1, :cond_1
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 332
invoke-static {v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v1
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object p1
invoke-interface {v1, v0, p1}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onTrackingSuccess(ILjava/lang/String;)V
goto :goto_0
.line 337
:cond_0
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getMessage()Ljava/lang/String;
move-result-object v5
filled-new-array {v1, v5}, [Ljava/lang/Object;
move-result-object v1
const-string v5, "Tracking request failed! Status: %s, Message: %s"
invoke-static {v5, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
new-array v5, v3, [Ljava/lang/Object;
.line 338
invoke-static {v4, v1, v5}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 339
invoke-interface {p1}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
invoke-static {v2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-array v2, v3, [Ljava/lang/Object;
invoke-static {v4, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 341
invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object p1
if-eqz p1, :cond_1
iget-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$4;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 343
invoke-static {p1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object p1
invoke-interface {p1, v0, v1}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
:cond_1
:goto_0
return-void
.end method

View File

@@ -0,0 +1,335 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->getInAppNotifications(Ljava/lang/String;Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.field final synthetic val$clientToken:Ljava/lang/String;
.field final synthetic val$userAlias:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
iput-object p2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$userAlias:Ljava/lang/String;
iput-object p3, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$clientToken:Ljava/lang/String;
.line 446
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 8
const-string v0, "PushManager"
const/4 v1, 0x0
:try_start_0
const-string v2, "%s/games/%s/users/%s/inapp"
const/4 v3, 0x3
new-array v3, v3, [Ljava/lang/Object;
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 453
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$400(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Ljava/lang/String;
move-result-object v4
aput-object v4, v3, v1
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$500(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Ljava/lang/String;
move-result-object v4
const/4 v5, 0x1
aput-object v4, v3, v5
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$userAlias:Ljava/lang/String;
const/4 v6, 0x2
aput-object v4, v3, v6
invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
iget-object v3, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 454
invoke-static {v3}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$600(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/http/services/HttpService;
move-result-object v3
invoke-interface {v3, v2}, Lcom/ea/eadp/http/services/HttpService;->getResource(Ljava/lang/String;)Lcom/ea/eadp/http/models/HttpRequest;
move-result-object v2
iget-object v3, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$clientToken:Ljava/lang/String;
if-eqz v3, :cond_0
const-string v3, "Authorization"
.line 457
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v7, "Bearer "
invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v7, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$clientToken:Ljava/lang/String;
invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-interface {v2, v3, v4}, Lcom/ea/eadp/http/models/HttpRequest;->setHeader(Ljava/lang/String;Ljava/lang/String;)Lcom/ea/eadp/http/models/HttpRequest;
goto :goto_0
:catch_0
move-exception v2
move v3, v1
goto/16 :goto_1
.line 459
:cond_0
:goto_0
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpRequest;->get()Lcom/ea/eadp/http/models/HttpResponse;
move-result-object v2
.line 460
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
move-result v3
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
const/16 v4, 0xc8
if-lt v3, v4, :cond_1
const/16 v4, 0x12c
if-ge v3, v4, :cond_1
:try_start_1
const-string v4, "Get In-App Notification request successful!"
new-array v5, v1, [Ljava/lang/Object;
.line 463
invoke-static {v0, v4, v5}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 464
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "response: "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object v5
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
new-array v5, v1, [Ljava/lang/Object;
invoke-static {v0, v4, v5}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 466
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v4
if-eqz v4, :cond_2
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 468
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v4
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object v2
invoke-interface {v4, v3, v2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onGetInAppSuccess(ILjava/lang/String;)V
goto :goto_2
:catch_1
move-exception v2
goto :goto_1
:cond_1
const-string v4, "Get In-App Notification request failed! Status: %s, Message: %s"
new-array v6, v6, [Ljava/lang/Object;
.line 473
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
move-result v7
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
aput-object v7, v6, v1
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getMessage()Ljava/lang/String;
move-result-object v7
aput-object v7, v6, v5
invoke-static {v4, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
new-array v6, v1, [Ljava/lang/Object;
.line 474
invoke-static {v0, v4, v6}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
const-string v6, "response: %s"
new-array v5, v5, [Ljava/lang/Object;
.line 475
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
move-result-object v2
aput-object v2, v5, v1
invoke-static {v6, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
new-array v5, v1, [Ljava/lang/Object;
invoke-static {v0, v2, v5}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 477
invoke-static {v2}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v2
if-eqz v2, :cond_2
iget-object v2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 479
invoke-static {v2}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v2
invoke-interface {v2, v3, v4}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
goto :goto_2
.line 485
:goto_1
invoke-virtual {v2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v2
filled-new-array {v2}, [Ljava/lang/Object;
move-result-object v2
const-string v4, "In-App Notification request failed with Exception: %s"
invoke-static {v4, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
new-array v1, v1, [Ljava/lang/Object;
.line 486
invoke-static {v0, v2, v1}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 488
invoke-static {v0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v0
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 490
invoke-static {v0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
move-result-object v0
invoke-interface {v0, v3, v2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
:cond_2
:goto_2
return-void
.end method

View File

@@ -0,0 +1,58 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$6;
.super Ljava/util/TimerTask;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->onRestart()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
# direct methods
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$6;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 505
invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$6;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.line 509
invoke-static {v0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$700(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
move-result-object v1
invoke-virtual {v1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->getUserAlias()Ljava/lang/String;
move-result-object v1
iget-object v2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$6;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
invoke-static {v2}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$800(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->getInAppNotifications(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,76 @@
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$TimeZoneSerializer;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/gson/JsonSerializer;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "TimeZoneSerializer"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/gson/JsonSerializer<",
"Ljava/util/TimeZone;",
">;"
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 585
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService$1;)V
.locals 0
.line 585
invoke-direct {p0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService$TimeZoneSerializer;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic serialize(Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
.locals 0
.line 585
check-cast p1, Ljava/util/TimeZone;
invoke-virtual {p0, p1, p2, p3}, Lcom/ea/eadp/pushnotification/services/AndroidPushService$TimeZoneSerializer;->serialize(Ljava/util/TimeZone;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
move-result-object p1
return-object p1
.end method
.method public serialize(Ljava/util/TimeZone;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
.locals 0
.line 590
new-instance p2, Lcom/google/gson/JsonPrimitive;
invoke-virtual {p1}, Ljava/util/TimeZone;->getID()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Lcom/google/gson/JsonPrimitive;-><init>(Ljava/lang/String;)V
return-object p2
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,44 @@
.class public interface abstract Lcom/ea/eadp/pushnotification/services/IPushService;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final NOTIFICATION_TYPE_OPENED:Ljava/lang/String; = "NOTIFICATION_OPENED"
.field public static final NOTIFICATION_TYPE_RECEIVED:Ljava/lang/String; = "NOTIFICATION_RECEIVED"
# virtual methods
.method public abstract getInAppNotifications(Ljava/lang/String;Ljava/lang/String;)V
.end method
.method public abstract getPushListener()Lcom/ea/eadp/pushnotification/listeners/IPushListener;
.end method
.method public abstract onRestart()V
.end method
.method public abstract onStop()V
.end method
.method public abstract persistTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end method
.method public abstract registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
.end method
.method public abstract sendPendingTrackingRequests()V
.end method
.method public abstract sendTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end method
.method public abstract setPushListener(Lcom/ea/eadp/pushnotification/listeners/IPushListener;)V
.end method
.method public abstract startWithConfig(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;Ljava/lang/String;)V
.end method
.method public abstract updateToken(Ljava/lang/String;)V
.end method

View File

@@ -0,0 +1,86 @@
.class Lcom/ea/eadp/pushnotification/services/TrackingEvent;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final name:Ljava/lang/String;
.annotation runtime Lcom/google/gson/annotations/Expose;
.end annotation
.end field
.field private final parameters:Ljava/util/Map;
.annotation runtime Lcom/google/gson/annotations/Expose;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Lcom/ea/eadp/pushnotification/services/TrackingEvent;->name:Ljava/lang/String;
.line 29
new-instance p3, Ljava/util/HashMap;
invoke-direct {p3}, Ljava/util/HashMap;-><init>()V
iput-object p3, p0, Lcom/ea/eadp/pushnotification/services/TrackingEvent;->parameters:Ljava/util/Map;
const-string v0, "pushId"
.line 30
invoke-interface {p3, v0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p1, "pnType"
.line 31
invoke-interface {p3, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p1, "deviceType"
const-string p2, "android"
.line 32
invoke-interface {p3, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p1, "deviceIdentifier"
.line 33
invoke-interface {p3, p1, p4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 34
new-instance p1, Ljava/text/SimpleDateFormat;
const-string p2, "yyyy-MM-dd\'T\'HH:mm:ss.SSS\'Z\'"
invoke-direct {p1, p2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V
.line 35
new-instance p2, Ljava/util/Date;
invoke-direct {p2}, Ljava/util/Date;-><init>()V
invoke-virtual {p1, p2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object p1
const-string p2, "timestamp"
invoke-interface {p3, p2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method