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,93 @@
.class public Lcom/ea/eadp/pushnotification/forwarding/FCMMessageReceiver;
.super Lcom/google/firebase/messaging/FirebaseMessagingService;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 11
invoke-direct {p0}, Lcom/google/firebase/messaging/FirebaseMessagingService;-><init>()V
return-void
.end method
# virtual methods
.method public getIntentServiceName()Ljava/lang/String;
.locals 1
const-class v0, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;
.line 37
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public final onMessageReceived(Lcom/google/firebase/messaging/RemoteMessage;)V
.locals 3
.line 18
new-instance v0, Landroid/content/ComponentName;
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
.line 19
invoke-virtual {p0}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageReceiver;->getIntentServiceName()Ljava/lang/String;
move-result-object v2
invoke-direct {v0, v1, v2}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 20
invoke-virtual {p1}, Lcom/google/firebase/messaging/RemoteMessage;->toIntent()Landroid/content/Intent;
move-result-object p1
.line 21
invoke-virtual {p1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 23
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageReceiver;->getIntentServiceName()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1, p1}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->enqueueWork(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;)V
return-void
.end method
.method public final onNewToken(Ljava/lang/String;)V
.locals 1
.line 29
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->isMainApplicationActive()Z
move-result v0
if-eqz v0, :cond_0
.line 31
invoke-static {}, Lcom/ea/nimble/pushtng/PushNotification;->getComponent()Lcom/ea/nimble/pushtng/IPushNotification;
move-result-object v0
invoke-interface {v0, p1}, Lcom/ea/nimble/pushtng/IPushNotification;->updateToken(Ljava/lang/String;)V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,16 @@
.class public abstract synthetic Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$$ExternalSyntheticApiModelOutline0;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m(J)Landroid/content/pm/PackageManager$ResolveInfoFlags;
.locals 0
.line 0
invoke-static {p0, p1}, Landroid/content/pm/PackageManager$ResolveInfoFlags;->of(J)Landroid/content/pm/PackageManager$ResolveInfoFlags;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,16 @@
.class public abstract synthetic Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$$ExternalSyntheticApiModelOutline1;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m(Landroid/content/pm/PackageManager;Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;
.locals 0
.line 0
invoke-virtual {p0, p1, p2}, Landroid/content/pm/PackageManager;->queryBroadcastReceivers(Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,24 @@
.class public interface abstract Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$EnsEventFlags;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "EnsEventFlags"
.end annotation
# static fields
.field public static final ALL_DISABLED:I = 0x0
.field public static final ALL_ENABLED:I = 0x3
.field public static final CLICK_ENABLED:I = 0x1
.field public static final RECEIVED_ENABLED:I = 0x2

View File

@@ -0,0 +1,28 @@
.class public interface abstract Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$PushIntentExtraKeys;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "PushIntentExtraKeys"
.end annotation
# static fields
.field public static final ALERT:Ljava/lang/String; = "alert"
.field public static final COLLAPSE_KEY:Ljava/lang/String; = "collapse_key"
.field public static final DEEP_LINK_URL:Ljava/lang/String; = "deepLinkUrl"
.field public static final ENS_EVENTS:Ljava/lang/String; = "ensEvents"
.field public static final PN_TYPE:Ljava/lang/String; = "pnType"
.field public static final PUSH_ID:Ljava/lang/String; = "pushId"

View File

@@ -0,0 +1,812 @@
.class public Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;
.super Landroidx/core/app/JobIntentService;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$EnsEventFlags;,
Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$PushIntentExtraKeys;
}
.end annotation
# static fields
.field protected static final JOB_ID:I = 0x15be
.field private static final LOG_TAG:Ljava/lang/String; = "FCMMessageService"
# instance fields
.field private pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
# direct methods
.method public constructor <init>()V
.locals 0
.line 43
invoke-direct {p0}, Landroidx/core/app/JobIntentService;-><init>()V
return-void
.end method
.method public static enqueueWork(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;)V
.locals 1
.line 72
:try_start_0
invoke-static {p1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object p1
const/16 v0, 0x15be
.line 73
invoke-static {p0, p1, v0, p2}, Landroidx/core/app/JobIntentService;->enqueueWork(Landroid/content/Context;Ljava/lang/Class;ILandroid/content/Intent;)V
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 77
invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V
:goto_0
return-void
.end method
.method private postNotification(Landroid/content/Context;Landroid/os/Bundle;)V
.locals 9
.annotation build Landroid/annotation/SuppressLint;
value = {
"InlinedApi"
}
.end annotation
.line 145
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
const/16 v1, 0x20
.line 146
invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
.line 147
invoke-virtual {v0, p2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
.line 148
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 150
invoke-virtual {p0}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->getBroadcastForwarderComponent()Landroid/content/ComponentName;
move-result-object v1
.line 152
invoke-virtual {p0}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->isInForeground()Z
move-result v2
const/4 v3, 0x0
if-eqz v2, :cond_1
if-eqz v1, :cond_0
.line 156
invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 157
invoke-virtual {p0, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V
goto/16 :goto_2
:cond_0
const-string p1, "Broadcast listener for action \'com.ea.eadp.pushnotification.FORWARD_AS_ORDERED_BROADCAST\' was not found. Not sending broadcast"
new-array p2, v3, [Ljava/lang/Object;
.line 161
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_2
:cond_1
const-string v2, "pushId"
.line 166
invoke-virtual {p2, v2}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_2
.line 167
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
move-result v2
goto :goto_0
:cond_2
move v2, v3
:goto_0
const/16 v4, 0x80
.line 170
invoke-static {v4}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
move-result-object v4
if-eqz v4, :cond_3
.line 171
iget-object v5, v4, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
const-string v6, "com.ea.nimble.pushtng.channel.id"
invoke-virtual {v5, v6}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_3
.line 173
iget-object v4, v4, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
invoke-virtual {v4, v6}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
goto :goto_1
:cond_3
const-string v4, "nimble_default"
.line 176
:goto_1
new-instance v5, Landroidx/core/app/NotificationCompat$Builder;
invoke-direct {v5, p1, v4}, Landroidx/core/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V
const-string v4, "notification"
const-string v6, "do_not_collapse"
const-string v7, "collapse_key"
if-eqz v1, :cond_6
.line 180
invoke-virtual {p2, v7}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v8
if-eqz v8, :cond_4
.line 181
invoke-virtual {v8, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v6
if-nez v6, :cond_4
.line 183
invoke-virtual {v0, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 185
:cond_4
invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 187
invoke-virtual {p0, v5, p2}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->customizeNotification(Landroidx/core/app/NotificationCompat$Builder;Landroid/os/Bundle;)V
.line 188
invoke-virtual {v5}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
move-result-object p2
invoke-virtual {v0, v4, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
const/high16 p2, 0xc000000
.line 189
invoke-static {p1, v2, v0, p2}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object p1
const-string p2, "FCMMessageService"
if-eqz p1, :cond_5
.line 194
invoke-virtual {v5, p1}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
.line 197
:try_start_0
invoke-virtual {p1}, Landroid/app/PendingIntent;->send()V
:try_end_0
.catch Landroid/app/PendingIntent$CanceledException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:catch_0
move-exception p1
.line 201
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "[CanceledException] Could not launch PendingIntent for PN "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-array v0, v3, [Ljava/lang/Object;
invoke-static {p2, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_2
:cond_5
const-string p1, "Unable to query PendingIntent"
new-array v0, v3, [Ljava/lang/Object;
.line 206
invoke-static {p2, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_2
:cond_6
const-string v0, "Broadcast listener for action \'com.ea.eadp.pushnotification.FORWARD_AS_ORDERED_BROADCAST\' was not found. Not setting ContentIntent"
new-array v1, v3, [Ljava/lang/Object;
.line 216
invoke-static {p0, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 218
invoke-virtual {p0, v5, p2}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->customizeNotification(Landroidx/core/app/NotificationCompat$Builder;Landroid/os/Bundle;)V
.line 220
invoke-virtual {p1, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/app/NotificationManager;
if-eqz p1, :cond_8
.line 223
invoke-virtual {p2, v7}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
if-eqz p2, :cond_7
.line 224
invoke-virtual {p2, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_7
.line 227
invoke-virtual {v5}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
move-result-object v0
invoke-virtual {p1, p2, v3, v0}, Landroid/app/NotificationManager;->notify(Ljava/lang/String;ILandroid/app/Notification;)V
goto :goto_2
.line 231
:cond_7
invoke-virtual {v5}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
move-result-object p2
invoke-virtual {p1, v2, p2}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
goto :goto_2
:cond_8
const-string p1, "Notification Manager is not available or is inaccessible. Skipping Notification formatting."
new-array p2, v3, [Ljava/lang/Object;
.line 236
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_2
return-void
.end method
# virtual methods
.method public customizeNotification(Landroidx/core/app/NotificationCompat$Builder;Landroid/os/Bundle;)V
.locals 5
const-string v0, "alert"
.line 264
invoke-virtual {p2, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
.line 266
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
.line 267
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
const-string v2, "app_name"
const-string v3, "string"
.line 270
invoke-virtual {v0, v2, v3, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result v2
.line 271
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v3
invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v3
invoke-virtual {v3, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v2
:try_start_0
const-string v3, "pn_icon"
const-string v4, "drawable"
.line 276
invoke-virtual {v0, v3, v4, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result v0
.line 277
invoke-virtual {p1, v0}, Landroidx/core/app/NotificationCompat$Builder;->setSmallIcon(I)Landroidx/core/app/NotificationCompat$Builder;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
.line 281
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "PN NOT DISPLAYED: Unable to set application icon due to exception: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v3, "FCMMessageService"
invoke-static {v3, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 285
:goto_0
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v1, "android.permission.VIBRATE"
invoke-virtual {v0, v1}, Landroid/content/Context;->checkCallingOrSelfPermission(Ljava/lang/String;)I
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x7
goto :goto_1
:cond_0
const/4 v0, 0x5
.line 290
:goto_1
invoke-virtual {p1, v2}, Landroidx/core/app/NotificationCompat$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
move-result-object p1
new-instance v1, Landroidx/core/app/NotificationCompat$BigTextStyle;
invoke-direct {v1}, Landroidx/core/app/NotificationCompat$BigTextStyle;-><init>()V
invoke-virtual {v1, p2}, Landroidx/core/app/NotificationCompat$BigTextStyle;->bigText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$BigTextStyle;
move-result-object v1
invoke-virtual {p1, v1}, Landroidx/core/app/NotificationCompat$Builder;->setStyle(Landroidx/core/app/NotificationCompat$Style;)Landroidx/core/app/NotificationCompat$Builder;
move-result-object p1
invoke-virtual {p1, p2}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
move-result-object p1
const/4 p2, 0x1
invoke-virtual {p1, p2}, Landroidx/core/app/NotificationCompat$Builder;->setAutoCancel(Z)Landroidx/core/app/NotificationCompat$Builder;
move-result-object p1
invoke-virtual {p1, v0}, Landroidx/core/app/NotificationCompat$Builder;->setDefaults(I)Landroidx/core/app/NotificationCompat$Builder;
return-void
.end method
.method public displayNotification(Landroid/os/Bundle;)Z
.locals 0
const/4 p1, 0x1
return p1
.end method
.method public getBroadcastForwarderComponent()Landroid/content/ComponentName;
.locals 5
.line 312
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 313
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
.line 314
new-instance v1, Landroid/content/Intent;
const-string v2, "com.ea.eadp.pushnotification.FORWARD_AS_ORDERED_BROADCAST"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 315
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v2
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x21
const/4 v4, 0x0
if-lt v2, v3, :cond_0
const-wide/16 v2, 0x0
.line 319
invoke-static {v2, v3}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$$ExternalSyntheticApiModelOutline0;->m(J)Landroid/content/pm/PackageManager$ResolveInfoFlags;
move-result-object v2
invoke-static {v0, v1, v2}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$$ExternalSyntheticApiModelOutline1;->m(Landroid/content/pm/PackageManager;Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;
move-result-object v0
goto :goto_0
.line 324
:cond_0
invoke-virtual {v0, v1, v4}, Landroid/content/pm/PackageManager;->queryBroadcastReceivers(Landroid/content/Intent;I)Ljava/util/List;
move-result-object v0
.line 328
:goto_0
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_1
.line 330
invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/pm/ResolveInfo;
iget-object v0, v0, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
.line 331
new-instance v1, Landroid/content/ComponentName;
iget-object v2, v0, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
iget-object v0, v0, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;
invoke-direct {v1, v2, v0}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
return-object v1
:cond_1
const/4 v0, 0x0
return-object v0
.end method
.method public getHttpService()Lcom/ea/eadp/http/services/HttpService;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public isInForeground()Z
.locals 1
.line 251
sget-boolean v0, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->inForeground:Z
return v0
.end method
.method public onHandleMessage(Landroid/content/Intent;)V
.locals 4
.line 96
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p1
const/4 v0, 0x0
if-nez p1, :cond_0
const-string p1, "Skipping Push Notification: Incomplete Intent. Missing expected extras bundle."
new-array v0, v0, [Ljava/lang/Object;
.line 99
invoke-static {p0, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.line 102
:cond_0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Message received: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
new-array v2, v0, [Ljava/lang/Object;
const-string v3, "FCMMessageService"
invoke-static {v3, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 104
invoke-virtual {p0, p1}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->displayNotification(Landroid/os/Bundle;)Z
move-result v1
if-eqz v1, :cond_1
.line 106
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
invoke-direct {p0, v1, p1}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->postNotification(Landroid/content/Context;Landroid/os/Bundle;)V
:cond_1
const-string v1, "ensEvents"
.line 110
invoke-virtual {p1, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_2
.line 115
:try_start_0
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const-string v1, "ensEvents flag found but not parseable as integer"
new-array v0, v0, [Ljava/lang/Object;
.line 119
invoke-static {v3, v1, v0}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_2
const/4 v0, 0x3
:goto_0
const-string v1, "pushId"
.line 124
invoke-virtual {p1, v1}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_6
const/4 v2, 0x2
if-ge v0, v2, :cond_3
if-gez v0, :cond_6
:cond_3
iget-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
if-nez v0, :cond_4
.line 128
new-instance v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService;
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v2
invoke-virtual {p0}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->getHttpService()Lcom/ea/eadp/http/services/HttpService;
move-result-object v3
invoke-direct {v0, v2, v3}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;-><init>(Landroid/content/Context;Lcom/ea/eadp/http/services/HttpService;)V
iput-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
.line 131
:cond_4
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->isMainApplicationRunning()Z
move-result v0
const-string v2, "NOTIFICATION_RECEIVED"
const-string v3, "pnType"
if-eqz v0, :cond_5
iget-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
.line 133
invoke-virtual {p1, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {p1, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, v1, p1, v2}, Lcom/ea/eadp/pushnotification/services/IPushService;->sendTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_1
:cond_5
iget-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
.line 137
invoke-virtual {p1, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {p1, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-interface {v0, v1, p1, v2}, Lcom/ea/eadp/pushnotification/services/IPushService;->persistTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_6
:goto_1
return-void
.end method
.method public onHandleWork(Landroid/content/Intent;)V
.locals 1
.param p1 # Landroid/content/Intent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 84
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object v0
if-nez v0, :cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "Skipping Push Notification: Incomplete Intent. Missing expected extras bundle."
.line 87
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.line 91
:cond_0
invoke-virtual {p0, p1}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService;->onHandleMessage(Landroid/content/Intent;)V
return-void
.end method

View File

@@ -0,0 +1,16 @@
.class public abstract synthetic Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder$$ExternalSyntheticApiModelOutline0;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
.locals 0
.line 0
invoke-virtual {p0, p1, p2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,479 @@
.class public Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# static fields
.field private static final LOG_TAG:Ljava/lang/String; = "PushBroadcastForwarder"
# instance fields
.field private pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
# direct methods
.method public constructor <init>()V
.locals 0
.line 27
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
# virtual methods
.method public getHttpService()Lcom/ea/eadp/http/services/HttpService;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getPushTargetActivity(Landroid/content/Context;)Ljava/lang/String;
.locals 2
.line 162
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
.line 163
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
if-eqz v0, :cond_0
.line 166
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p1
invoke-virtual {v0, p1}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;
move-result-object p1
if-eqz p1, :cond_0
.line 168
invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object p1
return-object p1
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "PackageManager service is unable or is inaccessible. Unable to get PushTargetActivity."
.line 172
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
const-string p1, ""
return-object p1
.end method
.method public handleNewPushNotification(Landroid/content/Context;Landroid/os/Bundle;)V
.locals 6
const-string v0, "deepLinkUrl"
.line 87
invoke-virtual {p2, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "PushBroadcastForwarder"
const/4 v2, 0x0
if-eqz v0, :cond_0
.line 91
new-instance v3, Landroid/content/Intent;
const-string v4, "android.intent.action.VIEW"
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v5
invoke-direct {v3, v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
.line 92
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "Push notification clicked with URL: "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
new-array v4, v2, [Ljava/lang/Object;
invoke-static {v1, v0, v4}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 96
:cond_0
invoke-virtual {p0, p1}, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;->getPushTargetActivity(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
.line 97
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Push notification clicked with target activity: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
new-array v4, v2, [Ljava/lang/Object;
invoke-static {v1, v3, v4}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 100
:try_start_0
new-instance v3, Landroid/content/Intent;
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v4
invoke-direct {v3, p1, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 109
:goto_0
invoke-virtual {v3, p2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
const/high16 v0, 0x24000000
.line 110
invoke-virtual {v3, v0}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x21
const-string v4, "notification"
if-lt v0, v1, :cond_1
const-class v0, Landroid/app/Notification;
.line 114
invoke-static {p2, v4, v0}, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder$$ExternalSyntheticApiModelOutline0;->m(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/Notification;
goto :goto_1
.line 119
:cond_1
invoke-virtual {p2, v4}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Landroid/app/Notification;
:goto_1
const-string v1, "pushId"
.line 122
invoke-virtual {p2, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_2
.line 123
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v1
goto :goto_2
:cond_2
move v1, v2
:goto_2
const/high16 v5, 0x44000000 # 512.0f
.line 124
invoke-static {p1, v2, v3, v5}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v3
if-eqz v0, :cond_6
if-eqz v3, :cond_5
.line 129
iput-object v3, v0, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;
.line 130
invoke-virtual {p1, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/app/NotificationManager;
if-eqz p1, :cond_4
const-string v3, "collapse_key"
.line 133
invoke-virtual {p2, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
if-eqz p2, :cond_3
const-string v3, "do_not_collapse"
.line 134
invoke-virtual {p2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v3
if-nez v3, :cond_3
.line 137
invoke-virtual {p1, p2, v2, v0}, Landroid/app/NotificationManager;->notify(Ljava/lang/String;ILandroid/app/Notification;)V
goto :goto_3
.line 141
:cond_3
invoke-virtual {p1, v1, v0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
goto :goto_3
:cond_4
const-string p1, "Notification Manager is not available or is inaccessible. Skipping Notification formatting."
new-array p2, v2, [Ljava/lang/Object;
.line 146
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_3
:cond_5
const-string p1, "Unable to create PendingIntent"
new-array p2, v2, [Ljava/lang/Object;
.line 151
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_3
:cond_6
const-string p1, "Unable to create Push Notification"
new-array p2, v2, [Ljava/lang/Object;
.line 156
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_3
return-void
:catch_0
move-exception p1
const-string p2, "Could not launch target activity: %s, exception: %s"
filled-new-array {v0, p1}, [Ljava/lang/Object;
move-result-object p1
.line 104
invoke-static {p2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-array p2, v2, [Ljava/lang/Object;
invoke-static {v1, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 4
.line 35
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p2
const/4 v0, 0x0
if-nez p2, :cond_0
const-string p1, "Unable to get extras from Intent"
new-array p2, v0, [Ljava/lang/Object;
.line 38
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_0
const-string v1, "ensEvents"
.line 43
invoke-virtual {p2, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const/4 v2, 0x3
if-eqz v1, :cond_1
.line 48
:try_start_0
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const-string v1, "ensEvents flag found but not parseable as integer"
new-array v0, v0, [Ljava/lang/Object;
const-string v3, "PushBroadcastForwarder"
.line 52
invoke-static {v3, v1, v0}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_1
move v0, v2
:goto_0
const-string v1, "pushId"
.line 57
invoke-virtual {p2, v1}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_5
if-ge v0, v2, :cond_2
const/4 v2, 0x1
if-eq v0, v2, :cond_2
if-gez v0, :cond_5
:cond_2
iget-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
if-nez v0, :cond_3
.line 62
new-instance v0, Lcom/ea/eadp/pushnotification/services/AndroidPushService;
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v2
invoke-virtual {p0}, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;->getHttpService()Lcom/ea/eadp/http/services/HttpService;
move-result-object v3
invoke-direct {v0, v2, v3}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;-><init>(Landroid/content/Context;Lcom/ea/eadp/http/services/HttpService;)V
iput-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
.line 65
:cond_3
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->isMainApplicationRunning()Z
move-result v0
const-string v2, "NOTIFICATION_OPENED"
const-string v3, "pnType"
if-eqz v0, :cond_4
iget-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
.line 67
invoke-virtual {p2, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {p2, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v1, v3, v2}, Lcom/ea/eadp/pushnotification/services/IPushService;->sendTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_1
:cond_4
iget-object v0, p0, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;->pushManager:Lcom/ea/eadp/pushnotification/services/IPushService;
.line 71
invoke-virtual {p2, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {p2, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v1, v3, v2}, Lcom/ea/eadp/pushnotification/services/IPushService;->persistTrackingEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 75
:cond_5
:goto_1
invoke-virtual {p0, p1, p2}, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder;->handleNewPushNotification(Landroid/content/Context;Landroid/os/Bundle;)V
return-void
.end method

View File

@@ -0,0 +1,95 @@
.class public Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/app/Application$ActivityLifecycleCallbacks;
# static fields
.field public static inForeground:Z = false
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 10
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
const/4 p1, 0x1
sput-boolean p1, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->inForeground:Z
return-void
.end method
.method public onActivityDestroyed(Landroid/app/Activity;)V
.locals 0
const/4 p1, 0x0
sput-boolean p1, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->inForeground:Z
return-void
.end method
.method public onActivityPaused(Landroid/app/Activity;)V
.locals 0
const/4 p1, 0x0
sput-boolean p1, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->inForeground:Z
return-void
.end method
.method public onActivityResumed(Landroid/app/Activity;)V
.locals 0
const/4 p1, 0x1
sput-boolean p1, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->inForeground:Z
return-void
.end method
.method public onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public onActivityStarted(Landroid/app/Activity;)V
.locals 0
const/4 p1, 0x1
sput-boolean p1, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->inForeground:Z
return-void
.end method
.method public onActivityStopped(Landroid/app/Activity;)V
.locals 0
const/4 p1, 0x0
sput-boolean p1, Lcom/ea/eadp/pushnotification/lifecycles/PushLifecycleCallbacks;->inForeground:Z
return-void
.end method

View File

@@ -0,0 +1,17 @@
.class public interface abstract Lcom/ea/eadp/pushnotification/listeners/IPushListener;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract onConnectionError(ILjava/lang/String;)V
.end method
.method public abstract onGetInAppSuccess(ILjava/lang/String;)V
.end method
.method public abstract onRegistrationSuccess(ILjava/lang/String;)V
.end method
.method public abstract onTrackingSuccess(ILjava/lang/String;)V
.end method

View File

@@ -0,0 +1,361 @@
.class public Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private appId:Ljava/lang/String;
.field private appVersion:Ljava/lang/String;
.field private country:Ljava/lang/String;
.field private dateOfBirth:Ljava/lang/String;
.field private deviceIdentifier:Ljava/lang/String;
.field private deviceType:Ljava/lang/String;
.field private disabled:Z
.field private disabledReason:Ljava/lang/String;
.field private locale:Ljava/lang/String;
.field private manufacturer:Ljava/lang/String;
.field private model:Ljava/lang/String;
.field private operatingSystem:Ljava/lang/String;
.field private registrationIdentifier:Ljava/lang/String;
.field private silentIntervalEnd:Ljava/lang/Integer;
.field private silentIntervalStart:Ljava/lang/Integer;
.field private timezone:Ljava/util/TimeZone;
.field private userAlias:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.locals 1
.line 84
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 85
sget-object v0, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->manufacturer:Ljava/lang/String;
.line 86
sget-object v0, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->operatingSystem:Ljava/lang/String;
.line 87
sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->model:Ljava/lang/String;
const-string v0, "android"
iput-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->deviceType:Ljava/lang/String;
.line 89
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Locale;->toString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->locale:Ljava/lang/String;
.line 90
invoke-static {}, Ljava/util/TimeZone;->getDefault()Ljava/util/TimeZone;
move-result-object v0
iput-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->timezone:Ljava/util/TimeZone;
return-void
.end method
# virtual methods
.method public getAppId()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->appId:Ljava/lang/String;
return-object v0
.end method
.method public getAppVersion()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->appVersion:Ljava/lang/String;
return-object v0
.end method
.method public getCountry()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->country:Ljava/lang/String;
return-object v0
.end method
.method public getDateOfBirth()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->dateOfBirth:Ljava/lang/String;
return-object v0
.end method
.method public getDeviceIdentifier()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->deviceIdentifier:Ljava/lang/String;
return-object v0
.end method
.method public getDeviceType()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->deviceType:Ljava/lang/String;
return-object v0
.end method
.method public getDisabledReason()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->disabledReason:Ljava/lang/String;
return-object v0
.end method
.method public getLocale()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->locale:Ljava/lang/String;
return-object v0
.end method
.method public getManufacturer()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->manufacturer:Ljava/lang/String;
return-object v0
.end method
.method public getModel()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->model:Ljava/lang/String;
return-object v0
.end method
.method public getOperatingSystem()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->operatingSystem:Ljava/lang/String;
return-object v0
.end method
.method public getRegistrationIdentifier()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->registrationIdentifier:Ljava/lang/String;
return-object v0
.end method
.method public getSilentIntervalEnd()Ljava/lang/Integer;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->silentIntervalEnd:Ljava/lang/Integer;
return-object v0
.end method
.method public getSilentIntervalStart()Ljava/lang/Integer;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->silentIntervalStart:Ljava/lang/Integer;
return-object v0
.end method
.method public getTimezone()Ljava/util/TimeZone;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->timezone:Ljava/util/TimeZone;
return-object v0
.end method
.method public getUserAlias()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->userAlias:Ljava/lang/String;
return-object v0
.end method
.method public isDisabled()Z
.locals 1
iget-boolean v0, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->disabled:Z
return v0
.end method
.method public setAppId(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->appId:Ljava/lang/String;
return-void
.end method
.method public setAppVersion(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->appVersion:Ljava/lang/String;
return-void
.end method
.method public setCountry(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->country:Ljava/lang/String;
return-void
.end method
.method public setDateOfBirth(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->dateOfBirth:Ljava/lang/String;
return-void
.end method
.method public setDeviceIdentifier(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->deviceIdentifier:Ljava/lang/String;
return-void
.end method
.method public setDeviceType(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->deviceType:Ljava/lang/String;
return-void
.end method
.method public setDisabled(Z)V
.locals 0
iput-boolean p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->disabled:Z
return-void
.end method
.method public setDisabledReason(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->disabledReason:Ljava/lang/String;
return-void
.end method
.method public setLocale(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->locale:Ljava/lang/String;
return-void
.end method
.method public setManufacturer(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->manufacturer:Ljava/lang/String;
return-void
.end method
.method public setModel(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->model:Ljava/lang/String;
return-void
.end method
.method public setOperatingSystem(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->operatingSystem:Ljava/lang/String;
return-void
.end method
.method public setRegistrationIdentifier(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->registrationIdentifier:Ljava/lang/String;
return-void
.end method
.method public setSilentIntervalEnd(Ljava/lang/Integer;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->silentIntervalEnd:Ljava/lang/Integer;
return-void
.end method
.method public setSilentIntervalStart(Ljava/lang/Integer;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->silentIntervalStart:Ljava/lang/Integer;
return-void
.end method
.method public setTimezone(Ljava/util/TimeZone;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->timezone:Ljava/util/TimeZone;
return-void
.end method
.method public setUserAlias(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->userAlias:Ljava/lang/String;
return-void
.end method

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