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,123 @@
.class public Lcom/ea/nimble/ApplicationEnvironment;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final COMPONENT_ID:Ljava/lang/String; = "com.ea.nimble.applicationEnvironment"
.field public static final NIMBLE_PARAMETER_ANDROID_ID:Ljava/lang/String; = "androidId"
.field public static final NIMBLE_PARAMETER_ATTRIBUTION_DATA:Ljava/lang/String; = "attributionData"
.field public static final NIMBLE_PARAMETER_COUNTRY_CODE:Ljava/lang/String; = "countryCode"
.field public static final NIMBLE_PARAMETER_CPU_CHIPSET:Ljava/lang/String; = "cpuChipset"
.field public static final NIMBLE_PARAMETER_CPU_CORE_COUNT:Ljava/lang/String; = "cpuCoreCount"
.field public static final NIMBLE_PARAMETER_DEVICE_ABIS:Ljava/lang/String; = "deviceAbis"
.field public static final NIMBLE_PARAMETER_DEVICE_BRAND:Ljava/lang/String; = "deviceBrand"
.field public static final NIMBLE_PARAMETER_DEVICE_CODENAME:Ljava/lang/String; = "deviceCodename"
.field public static final NIMBLE_PARAMETER_DEVICE_LANGUAGE:Ljava/lang/String; = "deviceLanguage"
.field public static final NIMBLE_PARAMETER_DEVICE_LOCALE:Ljava/lang/String; = "deviceLocale"
.field public static final NIMBLE_PARAMETER_DEVICE_MANUFACTURER:Ljava/lang/String; = "deviceManufacturer"
.field public static final NIMBLE_PARAMETER_DEVICE_MEMORY:Ljava/lang/String; = "deviceMemory"
.field public static final NIMBLE_PARAMETER_DEVICE_MODEL:Ljava/lang/String; = "deviceModel"
.field public static final NIMBLE_PARAMETER_DEVICE_PRODUCT:Ljava/lang/String; = "deviceProduct"
.field public static final NIMBLE_PARAMETER_DISPLAY_DENSITY:Ljava/lang/String; = "displayDensity"
.field public static final NIMBLE_PARAMETER_DISPLAY_HEIGHT:Ljava/lang/String; = "displayHeight"
.field public static final NIMBLE_PARAMETER_DISPLAY_WIDTH:Ljava/lang/String; = "displayWidth"
.field public static final NIMBLE_PARAMETER_FB_ATTR_ID:Ljava/lang/String; = "fbAttrId"
.field public static final NIMBLE_PARAMETER_GAID:Ljava/lang/String; = "gaid"
.field public static final NIMBLE_PARAMETER_LIMIT_AD_TRACKING:Ljava/lang/String; = "limitAdTracking"
.field public static final NIMBLE_PARAMETER_PLATFORM:Ljava/lang/String; = "platform"
.field public static final NIMBLE_PARAMETER_SYSTEM_NAME:Ljava/lang/String; = "systemName"
.field public static final NIMBLE_PARAMETER_SYSTEM_VERSION:Ljava/lang/String; = "systemVersion"
.field public static final NOTIFICATION_AGE_COMPLIANCE_REFRESHED:Ljava/lang/String; = "nimble.notification.age_compliance_refreshed"
# direct methods
.method public constructor <init>()V
.locals 0
.line 5
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getComponent()Lcom/ea/nimble/IApplicationEnvironment;
.locals 1
.line 36
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->getApplicationEnvironment()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
return-object v0
.end method
.method public static getCurrentActivity()Landroid/app/Activity;
.locals 1
.line 44
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->getCurrentActivity()Landroid/app/Activity;
move-result-object v0
return-object v0
.end method
.method public static isMainApplicationActive()Z
.locals 1
.line 59
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->isMainApplicationActive()Z
move-result v0
return v0
.end method
.method public static isMainApplicationRunning()Z
.locals 1
.line 54
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->isMainApplicationRunning()Z
move-result v0
return v0
.end method
.method public static setCurrentActivity(Landroid/app/Activity;)V
.locals 0
.line 49
invoke-static {p0}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->setCurrentActivity(Landroid/app/Activity;)V
return-void
.end method

View File

@@ -0,0 +1,60 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$1;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->refreshAgeCompliance()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$1;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 720
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 0
iget-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$1;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 724
invoke-static {p1}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$000(Lcom/ea/nimble/ApplicationEnvironmentImpl;)Landroid/content/BroadcastReceiver;
move-result-object p1
invoke-static {p1}, Lcom/ea/nimble/Utility;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
iget-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$1;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
const/4 p2, 0x0
.line 725
invoke-static {p1, p2}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$002(Lcom/ea/nimble/ApplicationEnvironmentImpl;Landroid/content/BroadcastReceiver;)Landroid/content/BroadcastReceiver;
iget-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$1;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 726
invoke-virtual {p1}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->refreshAgeCompliance()V
return-void
.end method

View File

@@ -0,0 +1,50 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->refreshAgeCompliance()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$2;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 735
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.locals 1
const-string v0, "geoip.url"
.line 739
iput-object v0, p1, Lcom/ea/nimble/SynergyRequest;->baseUrl:Ljava/lang/String;
.line 740
invoke-virtual {p1}, Lcom/ea/nimble/SynergyRequest;->send()V
return-void
.end method

View File

@@ -0,0 +1,242 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyNetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->refreshAgeCompliance()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$3;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 744
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Lcom/ea/nimble/SynergyNetworkConnectionHandle;)V
.locals 6
.line 749
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 750
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v1
invoke-interface {v1}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v1
const-string v2, "error"
const-string v3, "0"
const-string v4, "LOG_CALLBACK_ERROR : %s"
const-string v5, "result"
if-nez v1, :cond_2
.line 752
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object p1
invoke-interface {p1}, Lcom/ea/nimble/ISynergyResponse;->getJsonData()Ljava/util/Map;
move-result-object p1
const-string v1, "code"
.line 753
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
if-eqz v1, :cond_0
.line 754
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
if-lez v1, :cond_0
const-string v1, "message"
.line 756
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object v1
.line 757
invoke-static {p0, v4, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 758
invoke-interface {v0, v5, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 759
new-instance v1, Ljava/lang/Exception;
invoke-direct {v1, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
:cond_0
const-string v1, "agerequirements"
.line 764
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Map;
const-string v1, "minLegalRegAge"
.line 765
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Integer;
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
move-result p1
const-string v1, "com.ea.nimble.applicationEnvironment"
.line 767
sget-object v2, Lcom/ea/nimble/Persistence$Storage;->CACHE:Lcom/ea/nimble/Persistence$Storage;
invoke-static {v1, v2}, Lcom/ea/nimble/PersistenceService;->getPersistenceForNimbleComponent(Ljava/lang/String;Lcom/ea/nimble/Persistence$Storage;)Lcom/ea/nimble/Persistence;
move-result-object v1
if-eqz v1, :cond_1
.line 772
new-instance v2, Ljava/util/Date;
invoke-direct {v2}, Ljava/util/Date;-><init>()V
invoke-virtual {v2}, Ljava/util/Date;->getTime()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
const-string v3, "timeRetrieved"
invoke-virtual {v1, v3, v2}, Lcom/ea/nimble/Persistence;->setValue(Ljava/lang/String;Ljava/io/Serializable;)V
const-string v2, "ageRequirement"
.line 773
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-virtual {v1, v2, p1}, Lcom/ea/nimble/Persistence;->setValue(Ljava/lang/String;Ljava/io/Serializable;)V
goto :goto_0
:cond_1
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v1, "Could not get persistence object"
.line 777
invoke-static {p0, v1, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
const-string p1, "1"
.line 780
invoke-interface {v0, v5, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
.line 785
:cond_2
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v1
invoke-interface {v1}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
.line 786
invoke-static {p0, v4, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 787
invoke-interface {v0, v5, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 788
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object p1
invoke-interface {p1}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object p1
invoke-interface {v0, v2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:goto_1
const-string p1, "nimble.notification.age_compliance_refreshed"
.line 790
invoke-static {p1, v0}, Lcom/ea/nimble/Utility;->sendBroadcastSerializable(Ljava/lang/String;Ljava/util/Map;)V
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,73 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/gms/tasks/OnCanceledListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->requestIntegrityToken(Ljava/lang/String;Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.field final synthetic val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$5;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
iput-object p2, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$5;->val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
.line 1245
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCanceled()V
.locals 4
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, "IntegrityTokenRequest canceled by the service"
.line 1249
invoke-static {p0, v1, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$5;->val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
.line 1250
new-instance v2, Lcom/ea/nimble/Error;
sget-object v3, Lcom/ea/nimble/Error$Code;->UNKNOWN:Lcom/ea/nimble/Error$Code;
invoke-direct {v2, v3, v1}, Lcom/ea/nimble/Error;-><init>(Lcom/ea/nimble/Error$Code;Ljava/lang/String;)V
const/4 v1, 0x0
invoke-interface {v0, v1, v2}, Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;->onCallback(Ljava/lang/String;Lcom/ea/nimble/Error;)V
return-void
.end method

View File

@@ -0,0 +1,107 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$6;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/gms/tasks/OnFailureListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->requestIntegrityToken(Ljava/lang/String;Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.field final synthetic val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$6;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
iput-object p2, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$6;->val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
.line 1237
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onFailure(Ljava/lang/Exception;)V
.locals 5
.param p1 # Ljava/lang/Exception;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1241
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "IntegrityTokenRequest failed with exception:\n "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-static {p0, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$6;->val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
.line 1242
new-instance v1, Lcom/ea/nimble/Error;
sget-object v2, Lcom/ea/nimble/Error$Code;->UNKNOWN:Lcom/ea/nimble/Error$Code;
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v3
filled-new-array {v3}, [Ljava/lang/Object;
move-result-object v3
const-string v4, "requestIntegrityToken Request failed\nCause:%s"
invoke-static {v4, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-direct {v1, v2, v3, p1}, Lcom/ea/nimble/Error;-><init>(Lcom/ea/nimble/Error$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
const/4 p1, 0x0
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;->onCallback(Ljava/lang/String;Lcom/ea/nimble/Error;)V
return-void
.end method

View File

@@ -0,0 +1,91 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$7;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/gms/tasks/OnSuccessListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->requestIntegrityToken(Ljava/lang/String;Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;)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/OnSuccessListener<",
"Lcom/google/android/play/core/integrity/IntegrityTokenResponse;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.field final synthetic val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$7;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
iput-object p2, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$7;->val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
.line 1229
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onSuccess(Lcom/google/android/play/core/integrity/IntegrityTokenResponse;)V
.locals 2
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, "IntegrityTokenRequest is successful"
.line 1233
invoke-static {p0, v1, v0}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$7;->val$listener:Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
.line 1234
invoke-virtual {p1}, Lcom/google/android/play/core/integrity/IntegrityTokenResponse;->token()Ljava/lang/String;
move-result-object p1
const/4 v1, 0x0
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;->onCallback(Ljava/lang/String;Lcom/ea/nimble/Error;)V
return-void
.end method
.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
.locals 0
.line 1229
check-cast p1, Lcom/google/android/play/core/integrity/IntegrityTokenResponse;
invoke-virtual {p0, p1}, Lcom/ea/nimble/ApplicationEnvironmentImpl$7;->onSuccess(Lcom/google/android/play/core/integrity/IntegrityTokenResponse;)V
return-void
.end method

View File

@@ -0,0 +1,74 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$8;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->requestAttributionData()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$8;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1281
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 0
.line 1285
invoke-static {}, Lcom/ea/nimble/Network;->getComponent()Lcom/ea/nimble/INetwork;
move-result-object p1
invoke-interface {p1}, Lcom/ea/nimble/INetwork;->getStatus()Lcom/ea/nimble/Network$Status;
move-result-object p1
sget-object p2, Lcom/ea/nimble/Network$Status;->OK:Lcom/ea/nimble/Network$Status;
if-ne p1, p2, :cond_0
iget-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$8;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1287
invoke-static {p1}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$500(Lcom/ea/nimble/ApplicationEnvironmentImpl;)Landroid/content/BroadcastReceiver;
move-result-object p1
invoke-static {p1}, Lcom/ea/nimble/Utility;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
iget-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$8;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
const/4 p2, 0x0
.line 1288
invoke-static {p1, p2}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$502(Lcom/ea/nimble/ApplicationEnvironmentImpl;Landroid/content/BroadcastReceiver;)Landroid/content/BroadcastReceiver;
iget-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$8;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1289
invoke-static {p1}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$600(Lcom/ea/nimble/ApplicationEnvironmentImpl;)V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,306 @@
.class Lcom/ea/nimble/ApplicationEnvironmentImpl$9;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/installreferrer/api/InstallReferrerStateListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/ApplicationEnvironmentImpl;->requestAttributionData()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ApplicationEnvironmentImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1302
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onInstallReferrerServiceDisconnected()V
.locals 2
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, "requestAttributionData(): Google Play Install Referrer client disconnected."
.line 1364
invoke-static {p0, v1, v0}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public onInstallReferrerSetupFinished(I)V
.locals 16
move-object/from16 v1, p0
move/from16 v0, p1
const-wide/16 v7, 0x0
const/4 v2, -0x1
const/4 v3, 0x0
const-string v4, ""
const-wide/16 v5, 0x0
if-eq v0, v2, :cond_4
if-eqz v0, :cond_3
const/4 v2, 0x1
if-eq v0, v2, :cond_2
const/4 v2, 0x2
if-eq v0, v2, :cond_1
const/4 v2, 0x3
if-eq v0, v2, :cond_0
move-object v10, v4
move-object v11, v10
:goto_0
move-wide v12, v5
move-wide v14, v7
goto :goto_3
:cond_0
:try_start_0
const-string v0, "DEVELOPER_ERROR"
:goto_1
move-object v10, v0
:goto_2
move-object v11, v4
goto :goto_0
:catchall_0
move-exception v0
move-object v9, v0
move-object v0, v4
goto/16 :goto_6
:catch_0
move-exception v0
move-object v2, v4
goto :goto_4
:cond_1
const-string v0, "FEATURE_NOT_SUPPORTED"
goto :goto_1
:cond_2
const-string v0, "SERVICE_UNAVAILABLE"
goto :goto_1
:cond_3
const-string v2, "ok"
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
iget-object v0, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1319
invoke-static {v0}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$700(Lcom/ea/nimble/ApplicationEnvironmentImpl;)Lcom/android/installreferrer/api/InstallReferrerClient;
move-result-object v0
invoke-virtual {v0}, Lcom/android/installreferrer/api/InstallReferrerClient;->getInstallReferrer()Lcom/android/installreferrer/api/ReferrerDetails;
move-result-object v0
.line 1320
invoke-virtual {v0}, Lcom/android/installreferrer/api/ReferrerDetails;->getInstallReferrer()Ljava/lang/String;
move-result-object v4
.line 1321
invoke-virtual {v0}, Lcom/android/installreferrer/api/ReferrerDetails;->getInstallBeginTimestampSeconds()J
move-result-wide v5
.line 1322
invoke-virtual {v0}, Lcom/android/installreferrer/api/ReferrerDetails;->getReferrerClickTimestampSeconds()J
move-result-wide v7
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
move-object v10, v2
goto :goto_2
:catchall_1
move-exception v0
move-object v9, v0
move-object v0, v4
move-object v4, v2
goto :goto_6
:catch_1
move-exception v0
goto :goto_4
:cond_4
:try_start_2
const-string v0, "SERVICE_DISCONNECTED"
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
.catchall {:try_start_2 .. :try_end_2} :catchall_0
goto :goto_1
:goto_3
iget-object v0, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1354
invoke-static {v0}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$700(Lcom/ea/nimble/ApplicationEnvironmentImpl;)Lcom/android/installreferrer/api/InstallReferrerClient;
move-result-object v0
invoke-virtual {v0}, Lcom/android/installreferrer/api/InstallReferrerClient;->endConnection()V
iget-object v0, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1355
invoke-static {v0, v3}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$702(Lcom/ea/nimble/ApplicationEnvironmentImpl;Lcom/android/installreferrer/api/InstallReferrerClient;)Lcom/android/installreferrer/api/InstallReferrerClient;
iget-object v9, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1357
invoke-static/range {v9 .. v15}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$800(Lcom/ea/nimble/ApplicationEnvironmentImpl;Ljava/lang/String;Ljava/lang/String;JJ)V
goto :goto_5
.line 1349
:goto_4
:try_start_3
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
const-string v10, "requestAttributionData(): Failed with exception.\n"
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v10
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v9
const/4 v10, 0x0
new-array v10, v10, [Ljava/lang/Object;
invoke-static {v1, v9, v10}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 1350
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
iget-object v2, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1354
invoke-static {v2}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$700(Lcom/ea/nimble/ApplicationEnvironmentImpl;)Lcom/android/installreferrer/api/InstallReferrerClient;
move-result-object v2
invoke-virtual {v2}, Lcom/android/installreferrer/api/InstallReferrerClient;->endConnection()V
iget-object v2, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1355
invoke-static {v2, v3}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$702(Lcom/ea/nimble/ApplicationEnvironmentImpl;Lcom/android/installreferrer/api/InstallReferrerClient;)Lcom/android/installreferrer/api/InstallReferrerClient;
iget-object v2, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
move-object v3, v0
.line 1357
invoke-static/range {v2 .. v8}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$800(Lcom/ea/nimble/ApplicationEnvironmentImpl;Ljava/lang/String;Ljava/lang/String;JJ)V
:goto_5
return-void
:goto_6
iget-object v2, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1354
invoke-static {v2}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$700(Lcom/ea/nimble/ApplicationEnvironmentImpl;)Lcom/android/installreferrer/api/InstallReferrerClient;
move-result-object v2
invoke-virtual {v2}, Lcom/android/installreferrer/api/InstallReferrerClient;->endConnection()V
iget-object v2, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
.line 1355
invoke-static {v2, v3}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$702(Lcom/ea/nimble/ApplicationEnvironmentImpl;Lcom/android/installreferrer/api/InstallReferrerClient;)Lcom/android/installreferrer/api/InstallReferrerClient;
iget-object v2, v1, Lcom/ea/nimble/ApplicationEnvironmentImpl$9;->this$0:Lcom/ea/nimble/ApplicationEnvironmentImpl;
move-object v3, v4
move-object v4, v0
.line 1357
invoke-static/range {v2 .. v8}, Lcom/ea/nimble/ApplicationEnvironmentImpl;->access$800(Lcom/ea/nimble/ApplicationEnvironmentImpl;Ljava/lang/String;Ljava/lang/String;JJ)V
.line 1358
throw v9
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,220 @@
.class public Lcom/ea/nimble/ApplicationLifecycle;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final COMPONENT_ID:Ljava/lang/String; = "com.ea.nimble.applicationlifecycle"
# direct methods
.method public constructor <init>()V
.locals 0
.line 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getComponent()Lcom/ea/nimble/IApplicationLifecycle;
.locals 1
.line 13
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->getApplicationLifecycle()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
return-object v0
.end method
.method public static onActivityCreate(Landroid/os/Bundle;Landroid/app/Activity;)V
.locals 1
.line 18
invoke-static {p1}, Lcom/ea/nimble/ApplicationEnvironment;->setCurrentActivity(Landroid/app/Activity;)V
.line 19
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0, p1}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityCreate(Landroid/os/Bundle;Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityDestroy(Landroid/app/Activity;)V
.locals 1
.line 59
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityDestroy(Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityPause(Landroid/app/Activity;)V
.locals 1
.line 39
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityPause(Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityRestart(Landroid/app/Activity;)V
.locals 1
.line 24
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityRestart(Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityRestoreInstanceState(Landroid/os/Bundle;Landroid/app/Activity;)V
.locals 1
.line 34
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0, p1}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityRestoreInstanceState(Landroid/os/Bundle;Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityResult(IILandroid/content/Intent;Landroid/app/Activity;)V
.locals 1
.line 64
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0, p1, p2, p3}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityResult(IILandroid/content/Intent;Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityResume(Landroid/app/Activity;)V
.locals 1
.line 44
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityResume(Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityRetainNonConfigurationInstance()V
.locals 1
.line 88
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityRetainNonConfigurationInstance()V
return-void
.end method
.method public static onActivitySaveInstanceState(Landroid/os/Bundle;Landroid/app/Activity;)V
.locals 1
.line 49
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0, p1}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivitySaveInstanceState(Landroid/os/Bundle;Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityStart(Landroid/app/Activity;)V
.locals 1
.line 29
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityStart(Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityStop(Landroid/app/Activity;)V
.locals 1
.line 54
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityStop(Landroid/app/Activity;)V
return-void
.end method
.method public static onActivityWindowFocusChanged(ZLandroid/app/Activity;)V
.locals 1
.line 69
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0, p1}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityWindowFocusChanged(ZLandroid/app/Activity;)V
return-void
.end method
.method public static onBackPressed()Z
.locals 1
.line 83
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/IApplicationLifecycle;->handleBackPressed()Z
move-result v0
return v0
.end method
.method public static onNewIntent(Landroid/content/Intent;Landroid/app/Activity;)V
.locals 1
.line 74
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycle;->getComponent()Lcom/ea/nimble/IApplicationLifecycle;
move-result-object v0
invoke-interface {v0, p0, p1}, Lcom/ea/nimble/IApplicationLifecycle;->notifyActivityOnNewIntent(Landroid/content/Intent;Landroid/app/Activity;)V
return-void
.end method

View File

@@ -0,0 +1,215 @@
.class final enum Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/ApplicationLifecycleImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "State"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/ApplicationLifecycleImpl$State;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum CONFIG_CHANGE:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum INIT:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum LAUNCH:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum PAUSE:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum QUIT:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum RESUME:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum RUN:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.field public static final enum SUSPEND:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.locals 8
sget-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->INIT:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
sget-object v1, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->LAUNCH:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
sget-object v2, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->RESUME:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
sget-object v3, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->RUN:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
sget-object v4, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->PAUSE:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
sget-object v5, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->SUSPEND:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
sget-object v6, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->QUIT:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
sget-object v7, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->CONFIG_CHANGE:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
filled-new-array/range {v0 .. v7}, [Lcom/ea/nimble/ApplicationLifecycleImpl$State;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 486
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "INIT"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->INIT:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 487
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "LAUNCH"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->LAUNCH:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 488
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "RESUME"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->RESUME:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 489
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "RUN"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->RUN:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 490
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "PAUSE"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->PAUSE:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 491
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "SUSPEND"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->SUSPEND:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 492
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "QUIT"
const/4 v2, 0x6
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->QUIT:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 493
new-instance v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
const-string v1, "CONFIG_CHANGE"
const/4 v2, 0x7
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->CONFIG_CHANGE:Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 484
invoke-static {}, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->$values()[Lcom/ea/nimble/ApplicationLifecycleImpl$State;
move-result-object v0
sput-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->$VALUES:[Lcom/ea/nimble/ApplicationLifecycleImpl$State;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 484
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.locals 1
const-class v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 484
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.locals 1
sget-object v0, Lcom/ea/nimble/ApplicationLifecycleImpl$State;->$VALUES:[Lcom/ea/nimble/ApplicationLifecycleImpl$State;
.line 484
invoke-virtual {v0}, [Lcom/ea/nimble/ApplicationLifecycleImpl$State;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/ApplicationLifecycleImpl$State;
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,61 @@
.class public Lcom/ea/nimble/AuthResultActivity;
.super Landroid/app/Activity;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 7
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
.locals 2
.line 12
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 13
invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
invoke-virtual {p1}, Landroid/content/Intent;->getDataString()Ljava/lang/String;
move-result-object p1
.line 14
new-instance v0, Landroid/content/Intent;
const-class v1, Lcom/ea/nimble/CustomTabActivity;
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 15
sget-object v1, Lcom/ea/nimble/Constants;->CUSTOM_TAB_REDIRECT_ACTION:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 16
sget-object v1, Lcom/ea/nimble/Constants;->EXTRA_URL:Ljava/lang/String;
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const/high16 p1, 0x24000000
.line 17
invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
const/16 p1, 0x64
.line 18
invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
return-void
.end method

View File

@@ -0,0 +1,142 @@
.class public Lcom/ea/nimble/BackgroundNetworkConnection;
.super Lcom/ea/nimble/NetworkConnection;
.source "SourceFile"
# direct methods
.method public constructor <init>(Lcom/ea/nimble/NetworkImpl;Lcom/ea/nimble/HttpRequest;Lcom/ea/nimble/IOperationalTelemetryDispatch;)V
.locals 0
.line 7
invoke-direct {p0, p1, p2, p3}, Lcom/ea/nimble/NetworkConnection;-><init>(Lcom/ea/nimble/NetworkImpl;Lcom/ea/nimble/HttpRequest;Lcom/ea/nimble/IOperationalTelemetryDispatch;)V
return-void
.end method
# virtual methods
.method public bridge synthetic cancel()V
.locals 0
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->cancel()V
return-void
.end method
.method public cancelForAppSuspend()V
.locals 0
return-void
.end method
.method public bridge synthetic getCompletionCallback()Lcom/ea/nimble/NetworkConnectionCallback;
.locals 1
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->getCompletionCallback()Lcom/ea/nimble/NetworkConnectionCallback;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getHeaderCallback()Lcom/ea/nimble/NetworkConnectionCallback;
.locals 1
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->getHeaderCallback()Lcom/ea/nimble/NetworkConnectionCallback;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getLogSourceTitle()Ljava/lang/String;
.locals 1
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->getLogSourceTitle()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getProgressCallback()Lcom/ea/nimble/NetworkConnectionCallback;
.locals 1
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->getProgressCallback()Lcom/ea/nimble/NetworkConnectionCallback;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getRequest()Lcom/ea/nimble/HttpRequest;
.locals 1
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->getRequest()Lcom/ea/nimble/HttpRequest;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getResponse()Lcom/ea/nimble/HttpResponse;
.locals 1
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->getResponse()Lcom/ea/nimble/HttpResponse;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic run()V
.locals 0
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->run()V
return-void
.end method
.method public bridge synthetic setCompletionCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
.locals 0
.line 3
invoke-super {p0, p1}, Lcom/ea/nimble/NetworkConnection;->setCompletionCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
return-void
.end method
.method public bridge synthetic setHeaderCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
.locals 0
.line 3
invoke-super {p0, p1}, Lcom/ea/nimble/NetworkConnection;->setHeaderCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
return-void
.end method
.method public bridge synthetic setProgressCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
.locals 0
.line 3
invoke-super {p0, p1}, Lcom/ea/nimble/NetworkConnection;->setProgressCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
return-void
.end method
.method public bridge synthetic waitOn()V
.locals 0
.line 3
invoke-super {p0}, Lcom/ea/nimble/NetworkConnection;->waitOn()V
return-void
.end method

View File

@@ -0,0 +1,190 @@
.class public Lcom/ea/nimble/Base;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 5
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getComponent(Ljava/lang/String;)Lcom/ea/nimble/Component;
.locals 1
const-string v0, "Base"
.line 55
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGFUNCS(Ljava/lang/String;)V
.line 56
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->activeValidate()Lcom/ea/nimble/BaseCore;
move-result-object v0
if-nez v0, :cond_0
const/4 p0, 0x0
return-object p0
.line 60
:cond_0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->getComponentManager()Lcom/ea/nimble/ComponentManager;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/ea/nimble/ComponentManager;->getComponent(Ljava/lang/String;)Lcom/ea/nimble/Component;
move-result-object p0
return-object p0
.end method
.method public static getComponentList(Ljava/lang/String;)[Lcom/ea/nimble/Component;
.locals 1
const-string v0, "Base"
.line 72
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGFUNCS(Ljava/lang/String;)V
.line 73
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->activeValidate()Lcom/ea/nimble/BaseCore;
move-result-object v0
if-nez v0, :cond_0
const/4 p0, 0x0
return-object p0
.line 77
:cond_0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->getComponentManager()Lcom/ea/nimble/ComponentManager;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/ea/nimble/ComponentManager;->getComponentList(Ljava/lang/String;)[Lcom/ea/nimble/Component;
move-result-object p0
return-object p0
.end method
.method public static getConfiguration()Lcom/ea/nimble/NimbleConfiguration;
.locals 1
const-string v0, "Base"
.line 88
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGFUNCS(Ljava/lang/String;)V
.line 89
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->getConfiguration()Lcom/ea/nimble/NimbleConfiguration;
move-result-object v0
return-object v0
.end method
.method public static registerComponent(Lcom/ea/nimble/Component;Ljava/lang/String;)V
.locals 1
const-string v0, "Base"
.line 42
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGFUNCS(Ljava/lang/String;)V
.line 43
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->getComponentManager()Lcom/ea/nimble/ComponentManager;
move-result-object v0
invoke-virtual {v0, p0, p1}, Lcom/ea/nimble/ComponentManager;->registerComponent(Lcom/ea/nimble/Component;Ljava/lang/String;)V
return-void
.end method
.method public static restartWithConfiguration(Lcom/ea/nimble/NimbleConfiguration;)V
.locals 1
const-string v0, "Base"
.line 101
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
.line 102
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->activeValidate()Lcom/ea/nimble/BaseCore;
move-result-object v0
if-eqz v0, :cond_0
.line 104
invoke-virtual {v0, p0}, Lcom/ea/nimble/BaseCore;->restartWithConfiguration(Lcom/ea/nimble/NimbleConfiguration;)V
:cond_0
return-void
.end method
.method public static setupNimble()V
.locals 1
const-string v0, "Base"
.line 16
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
.line 17
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->setup()V
return-void
.end method
.method public static teardownNimble()V
.locals 1
const-string v0, "Base"
.line 29
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
.line 30
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->teardown()V
return-void
.end method

View File

@@ -0,0 +1,143 @@
.class Lcom/ea/nimble/BaseCore$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/BaseCore;->restartWithConfiguration(Lcom/ea/nimble/NimbleConfiguration;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/BaseCore;
.field final synthetic val$configuration:Lcom/ea/nimble/NimbleConfiguration;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/BaseCore;Lcom/ea/nimble/NimbleConfiguration;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/BaseCore$1;->this$0:Lcom/ea/nimble/BaseCore;
iput-object p2, p0, Lcom/ea/nimble/BaseCore$1;->val$configuration:Lcom/ea/nimble/NimbleConfiguration;
.line 290
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 295
sget-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
iget-object v1, p0, Lcom/ea/nimble/BaseCore$1;->this$0:Lcom/ea/nimble/BaseCore;
iget-object v1, v1, Lcom/ea/nimble/BaseCore;->m_state:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
aget v0, v0, v1
const/4 v1, 0x0
packed-switch v0, :pswitch_data_0
goto :goto_0
:pswitch_0
const-string v0, "Cannot restart Nimble when app is quiting"
new-array v1, v1, [Ljava/lang/Object;
.line 314
invoke-static {p0, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGF(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:pswitch_1
iget-object v0, p0, Lcom/ea/nimble/BaseCore$1;->this$0:Lcom/ea/nimble/BaseCore;
.line 299
iget-object v0, v0, Lcom/ea/nimble/BaseCore;->m_componentManager:Lcom/ea/nimble/ComponentManager;
invoke-virtual {v0}, Lcom/ea/nimble/ComponentManager;->cleanup()V
iget-object v0, p0, Lcom/ea/nimble/BaseCore$1;->this$0:Lcom/ea/nimble/BaseCore;
.line 300
iget-object v0, v0, Lcom/ea/nimble/BaseCore;->m_componentManager:Lcom/ea/nimble/ComponentManager;
invoke-virtual {v0}, Lcom/ea/nimble/ComponentManager;->teardown()V
iget-object v0, p0, Lcom/ea/nimble/BaseCore$1;->this$0:Lcom/ea/nimble/BaseCore;
iget-object v1, p0, Lcom/ea/nimble/BaseCore$1;->val$configuration:Lcom/ea/nimble/NimbleConfiguration;
.line 301
iput-object v1, v0, Lcom/ea/nimble/BaseCore;->m_configuration:Lcom/ea/nimble/NimbleConfiguration;
.line 302
iget-object v0, v0, Lcom/ea/nimble/BaseCore;->m_componentManager:Lcom/ea/nimble/ComponentManager;
invoke-virtual {v0}, Lcom/ea/nimble/ComponentManager;->setup()V
const-string v0, "nimble.notification.componentIndependentSetupFinished"
.line 304
invoke-static {v0}, Lcom/ea/nimble/Utility;->sendBroadcast(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/BaseCore$1;->this$0:Lcom/ea/nimble/BaseCore;
.line 305
iget-object v0, v0, Lcom/ea/nimble/BaseCore;->m_componentManager:Lcom/ea/nimble/ComponentManager;
invoke-virtual {v0}, Lcom/ea/nimble/ComponentManager;->restore()V
goto :goto_0
:pswitch_2
const-string v0, "Should not happen, getInstance should ensure active instance"
new-array v1, v1, [Ljava/lang/Object;
.line 310
invoke-static {p0, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGF(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_2
:pswitch_2
:pswitch_2
:pswitch_1
:pswitch_1
:pswitch_0
:pswitch_0
.end packed-switch
.end method

View File

@@ -0,0 +1,147 @@
.class synthetic Lcom/ea/nimble/BaseCore$2;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/BaseCore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$ea$nimble$BaseCore$State:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 205
invoke-static {}, Lcom/ea/nimble/BaseCore$State;->values()[Lcom/ea/nimble/BaseCore$State;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
:try_start_0
sget-object v1, Lcom/ea/nimble/BaseCore$State;->INACTIVE:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
sget-object v1, Lcom/ea/nimble/BaseCore$State;->MANUAL_TEARDOWN:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
sget-object v1, Lcom/ea/nimble/BaseCore$State;->DESTROY:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
:try_start_3
sget-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
sget-object v1, Lcom/ea/nimble/BaseCore$State;->AUTO_SETUP:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x4
aput v2, v0, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
:try_start_4
sget-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
sget-object v1, Lcom/ea/nimble/BaseCore$State;->MANUAL_SETUP:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x5
aput v2, v0, v1
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
:catch_4
:try_start_5
sget-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
sget-object v1, Lcom/ea/nimble/BaseCore$State;->QUITTING:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x6
aput v2, v0, v1
:try_end_5
.catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_5
:catch_5
:try_start_6
sget-object v0, Lcom/ea/nimble/BaseCore$2;->$SwitchMap$com$ea$nimble$BaseCore$State:[I
sget-object v1, Lcom/ea/nimble/BaseCore$State;->FAKE_DESTROY:Lcom/ea/nimble/BaseCore$State;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x7
aput v2, v0, v1
:try_end_6
.catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_6
:catch_6
return-void
.end method

View File

@@ -0,0 +1,200 @@
.class final enum Lcom/ea/nimble/BaseCore$State;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/BaseCore;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "State"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/BaseCore$State;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/BaseCore$State;
.field public static final enum AUTO_SETUP:Lcom/ea/nimble/BaseCore$State;
.field public static final enum DESTROY:Lcom/ea/nimble/BaseCore$State;
.field public static final enum FAKE_DESTROY:Lcom/ea/nimble/BaseCore$State;
.field public static final enum INACTIVE:Lcom/ea/nimble/BaseCore$State;
.field public static final enum MANUAL_SETUP:Lcom/ea/nimble/BaseCore$State;
.field public static final enum MANUAL_TEARDOWN:Lcom/ea/nimble/BaseCore$State;
.field public static final enum QUITTING:Lcom/ea/nimble/BaseCore$State;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/BaseCore$State;
.locals 7
sget-object v0, Lcom/ea/nimble/BaseCore$State;->INACTIVE:Lcom/ea/nimble/BaseCore$State;
sget-object v1, Lcom/ea/nimble/BaseCore$State;->AUTO_SETUP:Lcom/ea/nimble/BaseCore$State;
sget-object v2, Lcom/ea/nimble/BaseCore$State;->MANUAL_SETUP:Lcom/ea/nimble/BaseCore$State;
sget-object v3, Lcom/ea/nimble/BaseCore$State;->MANUAL_TEARDOWN:Lcom/ea/nimble/BaseCore$State;
sget-object v4, Lcom/ea/nimble/BaseCore$State;->QUITTING:Lcom/ea/nimble/BaseCore$State;
sget-object v5, Lcom/ea/nimble/BaseCore$State;->DESTROY:Lcom/ea/nimble/BaseCore$State;
sget-object v6, Lcom/ea/nimble/BaseCore$State;->FAKE_DESTROY:Lcom/ea/nimble/BaseCore$State;
filled-new-array/range {v0 .. v6}, [Lcom/ea/nimble/BaseCore$State;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 419
new-instance v0, Lcom/ea/nimble/BaseCore$State;
const-string v1, "INACTIVE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/BaseCore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/BaseCore$State;->INACTIVE:Lcom/ea/nimble/BaseCore$State;
.line 420
new-instance v0, Lcom/ea/nimble/BaseCore$State;
const-string v1, "AUTO_SETUP"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/BaseCore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/BaseCore$State;->AUTO_SETUP:Lcom/ea/nimble/BaseCore$State;
.line 421
new-instance v0, Lcom/ea/nimble/BaseCore$State;
const-string v1, "MANUAL_SETUP"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/BaseCore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/BaseCore$State;->MANUAL_SETUP:Lcom/ea/nimble/BaseCore$State;
.line 422
new-instance v0, Lcom/ea/nimble/BaseCore$State;
const-string v1, "MANUAL_TEARDOWN"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/BaseCore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/BaseCore$State;->MANUAL_TEARDOWN:Lcom/ea/nimble/BaseCore$State;
.line 423
new-instance v0, Lcom/ea/nimble/BaseCore$State;
const-string v1, "QUITTING"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/BaseCore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/BaseCore$State;->QUITTING:Lcom/ea/nimble/BaseCore$State;
.line 424
new-instance v0, Lcom/ea/nimble/BaseCore$State;
const-string v1, "DESTROY"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/BaseCore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/BaseCore$State;->DESTROY:Lcom/ea/nimble/BaseCore$State;
.line 425
new-instance v0, Lcom/ea/nimble/BaseCore$State;
const-string v1, "FAKE_DESTROY"
const/4 v2, 0x6
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/BaseCore$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/BaseCore$State;->FAKE_DESTROY:Lcom/ea/nimble/BaseCore$State;
.line 417
invoke-static {}, Lcom/ea/nimble/BaseCore$State;->$values()[Lcom/ea/nimble/BaseCore$State;
move-result-object v0
sput-object v0, Lcom/ea/nimble/BaseCore$State;->$VALUES:[Lcom/ea/nimble/BaseCore$State;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 417
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/BaseCore$State;
.locals 1
const-class v0, Lcom/ea/nimble/BaseCore$State;
.line 417
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/BaseCore$State;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/BaseCore$State;
.locals 1
sget-object v0, Lcom/ea/nimble/BaseCore$State;->$VALUES:[Lcom/ea/nimble/BaseCore$State;
.line 417
invoke-virtual {v0}, [Lcom/ea/nimble/BaseCore$State;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/BaseCore$State;
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,489 @@
.class public Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;
.super Ljava/io/InputStream;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/ByteBufferIOStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "ByteBufferInputStream"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ByteBufferIOStream;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ByteBufferIOStream;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 141
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
return-void
.end method
# virtual methods
.method public available()I
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 146
iget-boolean v1, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_closed:Z
if-nez v1, :cond_0
.line 150
iget v1, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
mul-int/lit16 v1, v1, 0x1000
iget v2, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
add-int/2addr v1, v2
iget v0, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
sub-int/2addr v1, v0
return v1
.line 148
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "ByteBufferIOStream is closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 157
invoke-virtual {v0}, Lcom/ea/nimble/ByteBufferIOStream;->closeIOStream()V
return-void
.end method
.method public markSupported()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public read()I
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 175
invoke-virtual {p0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->available()I
move-result v0
if-lez v0, :cond_1
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 181
iget-object v0, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->getFirst()Ljava/lang/Object;
move-result-object v0
check-cast v0, [B
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
iget v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
aget-byte v0, v0, v2
add-int/lit8 v2, v2, 0x1
.line 182
iput v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
const/16 v3, 0x1000
if-lt v2, v3, :cond_0
.line 185
iget-object v1, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v1}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;
move-result-object v2
check-cast v2, [B
invoke-virtual {v1, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
const/4 v2, 0x0
.line 186
iput v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
.line 187
iget v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 v2, v2, -0x1
iput v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
:cond_0
return v0
.line 178
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "Nothing to read in ByteBufferIOStream"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public read([B)I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 169
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->read([BII)I
move-result p1
return p1
.end method
.method public read([BII)I
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p2, :cond_4
if-ltz p3, :cond_4
add-int v0, p2, p3
.line 195
array-length v1, p1
if-gt v0, v1, :cond_4
.line 199
invoke-virtual {p0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->available()I
move-result v0
if-gtz v0, :cond_0
const/4 p1, -0x1
return p1
:cond_0
if-le p3, v0, :cond_1
move p3, v0
:cond_1
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 210
iget v1, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
const/16 v2, 0x1000
rsub-int v1, v1, 0x1000
if-ge p3, v1, :cond_2
.line 214
iget-object v0, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->getFirst()Ljava/lang/Object;
move-result-object v0
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
iget v1, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
invoke-static {v0, v1, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object p1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 215
iget p2, p1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
add-int/2addr p2, p3
iput p2, p1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
goto :goto_1
.line 220
:cond_2
iget-object v0, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->getFirst()Ljava/lang/Object;
move-result-object v0
iget-object v3, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
iget v3, v3, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
invoke-static {v0, v3, p1, p2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 221
iget-object v0, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;
move-result-object v3
check-cast v3, [B
invoke-virtual {v0, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
sub-int v0, p3, v1
add-int/2addr p2, v1
.line 224
div-int/lit16 v1, v0, 0x1000
const/4 v3, 0x0
move v4, v3
:goto_0
if-ge v4, v1, :cond_3
iget-object v5, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 227
iget-object v5, v5, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v5}, Ljava/util/LinkedList;->getFirst()Ljava/lang/Object;
move-result-object v5
invoke-static {v5, v3, p1, p2, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object v5, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 228
iget-object v5, v5, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v5}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;
move-result-object v6
check-cast v6, [B
invoke-virtual {v5, v6}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
add-int/lit16 v0, v0, -0x1000
add-int/lit16 p2, p2, 0x1000
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_3
iget-object v2, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 232
iget-object v2, v2, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v2}, Ljava/util/LinkedList;->getFirst()Ljava/lang/Object;
move-result-object v2
invoke-static {v2, v3, p1, p2, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object p1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 233
iput v0, p1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
.line 234
iget p2, p1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 v1, v1, 0x1
sub-int/2addr p2, v1
iput p2, p1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
:goto_1
return p3
.line 197
:cond_4
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
const-string p2, "The reading range of out of buffer boundary."
invoke-direct {p1, p2}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public skip(J)J
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 244
invoke-virtual {p0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->available()I
move-result v0
if-gtz v0, :cond_0
const-wide/16 p1, 0x0
return-wide p1
:cond_0
int-to-long v0, v0
cmp-long v2, p1, v0
if-lez v2, :cond_1
move-wide p1, v0
:cond_1
long-to-int v0, p1
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 255
iget v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
rsub-int v3, v2, 0x1000
if-ge v0, v3, :cond_2
add-int/2addr v2, v0
.line 259
iput v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
goto :goto_1
.line 264
:cond_2
iget-object v1, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v1}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;
move-result-object v2
check-cast v2, [B
invoke-virtual {v1, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
sub-int/2addr v0, v3
.line 266
div-int/lit16 v1, v0, 0x1000
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_3
iget-object v3, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 269
iget-object v3, v3, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v3}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;
move-result-object v4
check-cast v4, [B
invoke-virtual {v3, v4}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
add-int/lit16 v0, v0, -0x1000
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_3
iget-object v2, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 272
iput v0, v2, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
.line 273
iget v0, v2, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 v1, v1, 0x1
sub-int/2addr v0, v1
iput v0, v2, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
:goto_1
return-wide p1
.end method

View File

@@ -0,0 +1,333 @@
.class public Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;
.super Ljava/io/OutputStream;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/ByteBufferIOStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "ByteBufferOutputStream"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/ByteBufferIOStream;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/ByteBufferIOStream;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 280
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 286
invoke-virtual {v0}, Lcom/ea/nimble/ByteBufferIOStream;->closeIOStream()V
return-void
.end method
.method public write(I)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 358
iget-boolean v1, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_closed:Z
if-nez v1, :cond_1
.line 362
iget-object v0, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->getFirst()Ljava/lang/Object;
move-result-object v0
check-cast v0, [B
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
iget v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
int-to-byte p1, p1
aput-byte p1, v0, v2
add-int/lit8 v2, v2, 0x1
.line 363
iput v2, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
const/16 p1, 0x1000
if-ne v2, p1, :cond_0
const/4 p1, 0x0
.line 366
iput p1, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
.line 367
iget p1, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 p1, p1, 0x1
iput p1, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
:cond_0
return-void
.line 360
:cond_1
new-instance p1, Ljava/io/IOException;
const-string v0, "ByteBufferIOStream is closed"
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public write([B)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 352
array-length v0, p1
const/4 v1, 0x0
invoke-virtual {p0, p1, v1, v0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->write([BII)V
return-void
.end method
.method public write([BII)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p2, :cond_6
if-ltz p3, :cond_6
add-int v0, p2, p3
.line 292
array-length v1, p1
if-gt v0, v1, :cond_6
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 297
iget-boolean v1, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_closed:Z
if-nez v1, :cond_5
.line 302
iget v1, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
const/16 v2, 0x1000
rsub-int v1, v1, 0x1000
.line 303
iget-object v0, v0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/AbstractCollection;->iterator()Ljava/util/Iterator;
move-result-object v0
const/4 v3, 0x0
move v4, v3
:goto_0
iget-object v5, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 304
iget v5, v5, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
if-ge v4, v5, :cond_0
.line 306
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_0
if-ge p3, v1, :cond_1
.line 311
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
iget v1, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object p1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 312
iget p2, p1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
add-int/2addr p2, p3
iput p2, p1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
return-void
.line 316
:cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
iget-object v5, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
iget v5, v5, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
invoke-static {p1, p2, v4, v5, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
sub-int/2addr p3, v1
add-int/2addr p2, v1
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 319
iget v4, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 v4, v4, 0x1
iput v4, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
.line 320
iput v3, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
:goto_1
if-lez p3, :cond_4
.line 324
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
.line 326
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, [B
goto :goto_2
:cond_2
new-array v1, v2, [B
iget-object v4, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 331
iget-object v4, v4, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v4, v1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
:goto_2
if-ge p3, v2, :cond_3
.line 336
invoke-static {p1, p2, v1, v3, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 337
iput p3, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
move p3, v3
goto :goto_1
.line 342
:cond_3
invoke-static {p1, p2, v1, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
add-int/lit16 p3, p3, -0x1000
add-int/lit16 p2, p2, 0x1000
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;->this$0:Lcom/ea/nimble/ByteBufferIOStream;
.line 345
iget v4, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 v4, v4, 0x1
iput v4, v1, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
goto :goto_1
:cond_4
return-void
.line 299
:cond_5
new-instance p1, Ljava/io/IOException;
const-string p2, "ByteBufferIOStream is closed"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.line 294
:cond_6
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
const-string p2, "The writing range is out of buffer boundary."
invoke-direct {p1, p2}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,365 @@
.class public Lcom/ea/nimble/ByteBufferIOStream;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;,
Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;
}
.end annotation
# static fields
.field protected static final SEGMENT_SIZE:I = 0x1000
# instance fields
.field protected m_availableSegment:I
.field protected m_buffer:Ljava/util/LinkedList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/LinkedList<",
"[B>;"
}
.end annotation
.end field
.field protected m_closed:Z
.field protected m_input:Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;
.field protected m_output:Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;
.field protected m_readPosition:I
.field protected m_writePosition:I
# direct methods
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
.line 22
invoke-direct {p0, v0}, Lcom/ea/nimble/ByteBufferIOStream;-><init>(I)V
return-void
.end method
.method public constructor <init>(I)V
.locals 4
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_closed:Z
iput v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
iput v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
iput v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
.line 32
new-instance v1, Ljava/util/LinkedList;
invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V
iput-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
.line 33
new-instance v1, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;
invoke-direct {v1, p0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;-><init>(Lcom/ea/nimble/ByteBufferIOStream;)V
iput-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_input:Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;
.line 34
new-instance v1, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;
invoke-direct {v1, p0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;-><init>(Lcom/ea/nimble/ByteBufferIOStream;)V
iput-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_output:Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;
const/4 v1, 0x1
if-gtz p1, :cond_0
move p1, v1
:cond_0
sub-int/2addr p1, v1
const/16 v2, 0x1000
.line 39
div-int/2addr p1, v2
add-int/2addr p1, v1
:goto_0
if-ge v0, p1, :cond_1
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
new-array v3, v2, [B
.line 42
invoke-virtual {v1, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
return-void
.end method
# virtual methods
.method public appendSegmentToBuffer([BI)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
const/4 v1, 0x0
if-nez v0, :cond_2
.line 94
array-length v0, p1
const/16 v2, 0x1000
if-ne v0, v2, :cond_2
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
.line 96
invoke-virtual {v0}, Ljava/util/AbstractList;->listIterator()Ljava/util/ListIterator;
move-result-object v0
:goto_0
iget v3, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
if-ge v1, v3, :cond_0
.line 99
invoke-interface {v0}, Ljava/util/ListIterator;->next()Ljava/lang/Object;
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 102
:cond_0
invoke-interface {v0, p1}, Ljava/util/ListIterator;->add(Ljava/lang/Object;)V
if-eq p2, v2, :cond_1
iput p2, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
goto :goto_1
:cond_1
iget p1, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
goto :goto_1
.line 114
:cond_2
invoke-virtual {p0}, Lcom/ea/nimble/ByteBufferIOStream;->getOutputStream()Ljava/io/OutputStream;
move-result-object v0
invoke-virtual {v0, p1, v1, p2}, Ljava/io/OutputStream;->write([BII)V
:goto_1
return-void
.end method
.method public available()I
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_input:Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;
.line 73
invoke-virtual {v0}, Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;->available()I
move-result v0
return v0
.end method
.method public clear()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_closed:Z
iput v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
iput v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
iput v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_readPosition:I
return-void
.end method
.method public closeIOStream()V
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_closed:Z
return-void
.end method
.method public getInputStream()Ljava/io/InputStream;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_input:Lcom/ea/nimble/ByteBufferIOStream$ByteBufferInputStream;
return-object v0
.end method
.method public getOutputStream()Ljava/io/OutputStream;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_output:Lcom/ea/nimble/ByteBufferIOStream$ByteBufferOutputStream;
return-object v0
.end method
.method public growBufferBySegment()[B
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_writePosition:I
if-nez v0, :cond_1
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
.line 126
invoke-virtual {v0}, Ljava/util/AbstractList;->listIterator()Ljava/util/ListIterator;
move-result-object v0
const/4 v1, 0x0
:goto_0
iget v2, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
if-ge v1, v2, :cond_0
.line 129
invoke-interface {v0}, Ljava/util/ListIterator;->next()Ljava/lang/Object;
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
const/16 v1, 0x1000
new-array v1, v1, [B
.line 133
invoke-interface {v0, v1}, Ljava/util/ListIterator;->add(Ljava/lang/Object;)V
iget v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
return-object v1
.line 123
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "Bad location to grow buffer"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public prepareSegment()[B
.locals 2
iget v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_availableSegment:I
add-int/lit8 v0, v0, 0x1
iget-object v1, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
.line 80
invoke-virtual {v1}, Ljava/util/LinkedList;->size()I
move-result v1
if-lt v0, v1, :cond_0
const/16 v0, 0x1000
new-array v0, v0, [B
return-object v0
:cond_0
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
.line 86
invoke-virtual {v0}, Ljava/util/LinkedList;->size()I
move-result v0
if-nez v0, :cond_1
const/4 v0, 0x0
goto :goto_0
:cond_1
iget-object v0, p0, Lcom/ea/nimble/ByteBufferIOStream;->m_buffer:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->removeLast()Ljava/lang/Object;
move-result-object v0
check-cast v0, [B
:goto_0
return-object v0
.end method

View File

@@ -0,0 +1,55 @@
.class public abstract Lcom/ea/nimble/Component;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public cleanup()V
.locals 0
return-void
.end method
.method public abstract getComponentId()Ljava/lang/String;
.end method
.method public restore()V
.locals 0
return-void
.end method
.method public resume()V
.locals 0
return-void
.end method
.method public setup()V
.locals 0
return-void
.end method
.method public suspend()V
.locals 0
return-void
.end method
.method public teardown()V
.locals 0
return-void
.end method

View File

@@ -0,0 +1,155 @@
.class public final enum Lcom/ea/nimble/ComponentManager$Stage;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/ComponentManager;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Stage"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/ComponentManager$Stage;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/ComponentManager$Stage;
.field public static final enum CREATE:Lcom/ea/nimble/ComponentManager$Stage;
.field public static final enum READY:Lcom/ea/nimble/ComponentManager$Stage;
.field public static final enum SETUP:Lcom/ea/nimble/ComponentManager$Stage;
.field public static final enum SUSPEND:Lcom/ea/nimble/ComponentManager$Stage;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/ComponentManager$Stage;
.locals 4
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->CREATE:Lcom/ea/nimble/ComponentManager$Stage;
sget-object v1, Lcom/ea/nimble/ComponentManager$Stage;->SETUP:Lcom/ea/nimble/ComponentManager$Stage;
sget-object v2, Lcom/ea/nimble/ComponentManager$Stage;->READY:Lcom/ea/nimble/ComponentManager$Stage;
sget-object v3, Lcom/ea/nimble/ComponentManager$Stage;->SUSPEND:Lcom/ea/nimble/ComponentManager$Stage;
filled-new-array {v0, v1, v2, v3}, [Lcom/ea/nimble/ComponentManager$Stage;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 15
new-instance v0, Lcom/ea/nimble/ComponentManager$Stage;
const-string v1, "CREATE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ComponentManager$Stage;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ComponentManager$Stage;->CREATE:Lcom/ea/nimble/ComponentManager$Stage;
.line 16
new-instance v0, Lcom/ea/nimble/ComponentManager$Stage;
const-string v1, "SETUP"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ComponentManager$Stage;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ComponentManager$Stage;->SETUP:Lcom/ea/nimble/ComponentManager$Stage;
.line 17
new-instance v0, Lcom/ea/nimble/ComponentManager$Stage;
const-string v1, "READY"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ComponentManager$Stage;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ComponentManager$Stage;->READY:Lcom/ea/nimble/ComponentManager$Stage;
.line 18
new-instance v0, Lcom/ea/nimble/ComponentManager$Stage;
const-string v1, "SUSPEND"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/ComponentManager$Stage;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/ComponentManager$Stage;->SUSPEND:Lcom/ea/nimble/ComponentManager$Stage;
.line 13
invoke-static {}, Lcom/ea/nimble/ComponentManager$Stage;->$values()[Lcom/ea/nimble/ComponentManager$Stage;
move-result-object v0
sput-object v0, Lcom/ea/nimble/ComponentManager$Stage;->$VALUES:[Lcom/ea/nimble/ComponentManager$Stage;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 13
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/ComponentManager$Stage;
.locals 1
const-class v0, Lcom/ea/nimble/ComponentManager$Stage;
.line 13
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/ComponentManager$Stage;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/ComponentManager$Stage;
.locals 1
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->$VALUES:[Lcom/ea/nimble/ComponentManager$Stage;
.line 13
invoke-virtual {v0}, [Lcom/ea/nimble/ComponentManager$Stage;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/ComponentManager$Stage;
return-object v0
.end method

View File

@@ -0,0 +1,646 @@
.class Lcom/ea/nimble/ComponentManager;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/LogSource;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/ComponentManager$Stage;
}
.end annotation
# instance fields
.field private m_components:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lcom/ea/nimble/Component;",
">;"
}
.end annotation
.end field
.field private m_stage:Lcom/ea/nimble/ComponentManager$Stage;
# direct methods
.method public constructor <init>()V
.locals 1
.line 25
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 26
new-instance v0, Ljava/util/LinkedHashMap;
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 27
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->CREATE:Lcom/ea/nimble/ComponentManager$Stage;
iput-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
return-void
.end method
# virtual methods
.method public cleanup()V
.locals 2
.line 153
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 154
invoke-interface {v1}, Ljava/util/Map;->size()I
move-result v1
.line 153
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->listIterator(I)Ljava/util/ListIterator;
move-result-object v0
.line 156
sget-object v1, Lcom/ea/nimble/ComponentManager$Stage;->CREATE:Lcom/ea/nimble/ComponentManager$Stage;
iput-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 157
:goto_0
invoke-interface {v0}, Ljava/util/ListIterator;->hasPrevious()Z
move-result v1
if-eqz v1, :cond_0
.line 159
invoke-interface {v0}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/ea/nimble/Component;
.line 160
invoke-virtual {v1}, Lcom/ea/nimble/Component;->cleanup()V
goto :goto_0
:cond_0
return-void
.end method
.method public getComponent(Ljava/lang/String;)Lcom/ea/nimble/Component;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 94
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/ea/nimble/Component;
return-object p1
.end method
.method public getComponentList(Ljava/lang/String;)[Lcom/ea/nimble/Component;
.locals 4
.line 99
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 100
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->size()I
move-result v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 101
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_0
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
.line 103
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
invoke-virtual {v3, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_0
.line 105
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/ea/nimble/Component;
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 108
:cond_1
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result p1
new-array p1, p1, [Lcom/ea/nimble/Component;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Lcom/ea/nimble/Component;
return-object p1
.end method
.method public getLogSourceTitle()Ljava/lang/String;
.locals 1
const-string v0, "Component"
return-object v0
.end method
.method public getStage()Lcom/ea/nimble/ComponentManager$Stage;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
return-object v0
.end method
.method public registerComponent(Lcom/ea/nimble/Component;Ljava/lang/String;)V
.locals 4
.line 39
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 40
invoke-static {p2}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
const-string p1, "Cannot register component without valid componentId"
new-array p2, v1, [Ljava/lang/Object;
.line 42
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGF(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_0
if-nez p1, :cond_1
.line 47
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Try to register invalid component with id: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-array p2, v1, [Ljava/lang/Object;
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGF(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_1
iget-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 51
invoke-interface {v0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/Component;
if-nez v0, :cond_2
.line 54
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Register module: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
new-array v1, v1, [Ljava/lang/Object;
invoke-static {p0, v2, v1}, Lcom/ea/nimble/Log$Helper;->LOGI(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 58
:cond_2
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Register module(overwrite): "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
new-array v1, v1, [Ljava/lang/Object;
invoke-static {p0, v2, v1}, Lcom/ea/nimble/Log$Helper;->LOGI(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 61
invoke-interface {v1, p2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object p2, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 63
sget-object v1, Lcom/ea/nimble/ComponentManager$Stage;->SETUP:Lcom/ea/nimble/ComponentManager$Stage;
invoke-virtual {p2, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I
move-result p2
if-gez p2, :cond_3
return-void
:cond_3
if-eqz v0, :cond_6
iget-object p2, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 70
invoke-virtual {p2, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I
move-result p2
if-ltz p2, :cond_5
iget-object p2, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 72
sget-object v1, Lcom/ea/nimble/ComponentManager$Stage;->SUSPEND:Lcom/ea/nimble/ComponentManager$Stage;
invoke-virtual {p2, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I
move-result p2
if-ltz p2, :cond_4
.line 74
invoke-virtual {v0}, Lcom/ea/nimble/Component;->resume()V
.line 76
:cond_4
invoke-virtual {v0}, Lcom/ea/nimble/Component;->cleanup()V
.line 78
:cond_5
invoke-virtual {v0}, Lcom/ea/nimble/Component;->teardown()V
.line 81
:cond_6
invoke-virtual {p1}, Lcom/ea/nimble/Component;->setup()V
iget-object p2, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 82
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->READY:Lcom/ea/nimble/ComponentManager$Stage;
invoke-virtual {p2, v0}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I
move-result p2
if-ltz p2, :cond_7
.line 84
invoke-virtual {p1}, Lcom/ea/nimble/Component;->restore()V
iget-object p2, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 85
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->SUSPEND:Lcom/ea/nimble/ComponentManager$Stage;
invoke-virtual {p2, v0}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I
move-result p2
if-ltz p2, :cond_7
.line 87
invoke-virtual {p1}, Lcom/ea/nimble/Component;->suspend()V
:cond_7
return-void
.end method
.method public restore()V
.locals 2
.line 122
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->READY:Lcom/ea/nimble/ComponentManager$Stage;
iput-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
iget-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 123
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/ea/nimble/Component;
.line 125
invoke-virtual {v1}, Lcom/ea/nimble/Component;->restore()V
goto :goto_0
:cond_0
return-void
.end method
.method public resume()V
.locals 2
.line 144
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->READY:Lcom/ea/nimble/ComponentManager$Stage;
iput-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
iget-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 145
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/ea/nimble/Component;
.line 147
invoke-virtual {v1}, Lcom/ea/nimble/Component;->resume()V
goto :goto_0
:cond_0
return-void
.end method
.method public setup()V
.locals 2
.line 113
sget-object v0, Lcom/ea/nimble/ComponentManager$Stage;->SETUP:Lcom/ea/nimble/ComponentManager$Stage;
iput-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
iget-object v0, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 114
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/ea/nimble/Component;
.line 116
invoke-virtual {v1}, Lcom/ea/nimble/Component;->setup()V
goto :goto_0
:cond_0
return-void
.end method
.method public suspend()V
.locals 2
.line 131
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 132
invoke-interface {v1}, Ljava/util/Map;->size()I
move-result v1
.line 131
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->listIterator(I)Ljava/util/ListIterator;
move-result-object v0
.line 134
sget-object v1, Lcom/ea/nimble/ComponentManager$Stage;->SUSPEND:Lcom/ea/nimble/ComponentManager$Stage;
iput-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 135
:goto_0
invoke-interface {v0}, Ljava/util/ListIterator;->hasPrevious()Z
move-result v1
if-eqz v1, :cond_0
.line 137
invoke-interface {v0}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/ea/nimble/Component;
.line 138
invoke-virtual {v1}, Lcom/ea/nimble/Component;->suspend()V
goto :goto_0
:cond_0
return-void
.end method
.method public teardown()V
.locals 2
.line 166
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
iget-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_components:Ljava/util/Map;
.line 167
invoke-interface {v1}, Ljava/util/Map;->size()I
move-result v1
.line 166
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->listIterator(I)Ljava/util/ListIterator;
move-result-object v0
.line 169
sget-object v1, Lcom/ea/nimble/ComponentManager$Stage;->CREATE:Lcom/ea/nimble/ComponentManager$Stage;
iput-object v1, p0, Lcom/ea/nimble/ComponentManager;->m_stage:Lcom/ea/nimble/ComponentManager$Stage;
.line 170
:goto_0
invoke-interface {v0}, Ljava/util/ListIterator;->hasPrevious()Z
move-result v1
if-eqz v1, :cond_0
.line 172
invoke-interface {v0}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/ea/nimble/Component;
.line 173
invoke-virtual {v1}, Lcom/ea/nimble/Component;->teardown()V
goto :goto_0
:cond_0
return-void
.end method

View File

@@ -0,0 +1,120 @@
.class Lcom/ea/nimble/Constants;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final CUSTOM_TAB_REDIRECT_ACTION:Ljava/lang/String;
.field public static final CUSTOM_TAB_REQUEST_CODE:I = 0x64
.field public static final EXTRA_ERROR:Ljava/lang/String;
.field public static final EXTRA_REDIRECT_URL:Ljava/lang/String;
.field public static final EXTRA_URL:Ljava/lang/String;
.field public static final RESULT_ERROR:I = 0xa
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 5
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-class v1, Lcom/ea/nimble/Constants;
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, ".url"
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/ea/nimble/Constants;->EXTRA_URL:Ljava/lang/String;
.line 6
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, ".redirect_url"
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/ea/nimble/Constants;->EXTRA_REDIRECT_URL:Ljava/lang/String;
.line 7
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, ".error"
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/ea/nimble/Constants;->EXTRA_ERROR:Ljava/lang/String;
.line 11
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ".customTabRedirectAction"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/ea/nimble/Constants;->CUSTOM_TAB_REDIRECT_ACTION:Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,16 @@
.class public abstract synthetic Lcom/ea/nimble/CustomTabActivity$$ExternalSyntheticApiModelOutline0;
.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;->queryIntentServices(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,374 @@
.class public Lcom/ea/nimble/CustomTabActivity;
.super Landroid/app/Activity;
.source "SourceFile"
# static fields
.field private static final CHROME_PACKAGES:[Ljava/lang/String;
.field private static final LOG_TAG:Ljava/lang/String; = "NimbleCustomTabActivity"
.field private static sCustomTabPackageNameToUse:Ljava/lang/String;
# instance fields
.field private mShouldCloseCustomTab:Z
# direct methods
.method static constructor <clinit>()V
.locals 3
const-string v0, "com.chrome.beta"
const-string v1, "com.chrome.dev"
const-string v2, "com.android.chrome"
filled-new-array {v2, v0, v1}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/ea/nimble/CustomTabActivity;->CHROME_PACKAGES:[Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 1
.line 17
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/ea/nimble/CustomTabActivity;->mShouldCloseCustomTab:Z
return-void
.end method
.method public static getCustomTabsPackageToUse(Landroid/content/Context;)Ljava/lang/String;
.locals 3
sget-object v0, Lcom/ea/nimble/CustomTabActivity;->sCustomTabPackageNameToUse:Ljava/lang/String;
if-eqz v0, :cond_0
return-object v0
.line 31
:cond_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p0
.line 32
new-instance v0, Landroid/content/Intent;
const-string v1, "android.support.customtabs.action.CustomTabsService"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x21
if-lt v1, v2, :cond_1
const-wide/16 v1, 0x0
.line 36
invoke-static {v1, v2}, Lcom/ea/eadp/pushnotification/forwarding/FCMMessageService$$ExternalSyntheticApiModelOutline0;->m(J)Landroid/content/pm/PackageManager$ResolveInfoFlags;
move-result-object v1
invoke-static {p0, v0, v1}, Lcom/ea/nimble/CustomTabActivity$$ExternalSyntheticApiModelOutline0;->m(Landroid/content/pm/PackageManager;Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;
move-result-object p0
goto :goto_0
:cond_1
const/4 v1, 0x0
.line 41
invoke-virtual {p0, v0, v1}, Landroid/content/pm/PackageManager;->queryIntentServices(Landroid/content/Intent;I)Ljava/util/List;
move-result-object p0
:goto_0
if-eqz p0, :cond_3
sget-object v0, Lcom/ea/nimble/CustomTabActivity;->CHROME_PACKAGES:[Ljava/lang/String;
.line 47
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
.line 48
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_2
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/content/pm/ResolveInfo;
.line 50
iget-object v2, v1, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;
if-eqz v2, :cond_2
iget-object v2, v2, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;
invoke-interface {v0, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
.line 52
iget-object p0, v1, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;
iget-object p0, p0, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;
sput-object p0, Lcom/ea/nimble/CustomTabActivity;->sCustomTabPackageNameToUse:Ljava/lang/String;
.line 58
:cond_3
new-instance p0, Ljava/lang/StringBuilder;
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "CustomTabsPackageToUse : "
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
sget-object v0, Lcom/ea/nimble/CustomTabActivity;->sCustomTabPackageNameToUse:Ljava/lang/String;
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
sget-object p0, Lcom/ea/nimble/CustomTabActivity;->sCustomTabPackageNameToUse:Ljava/lang/String;
return-object p0
.end method
.method public static isCustomTabSupported(Landroid/content/Context;)Z
.locals 0
.line 65
invoke-static {p0}, Lcom/ea/nimble/CustomTabActivity;->getCustomTabsPackageToUse(Landroid/content/Context;)Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
.locals 3
.line 73
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 75
invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p1
.line 76
sget-object v0, Lcom/ea/nimble/Constants;->EXTRA_URL:Ljava/lang/String;
const-string v1, ""
invoke-virtual {p1, v0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 77
new-instance v0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;
invoke-static {}, Lcom/ea/nimble/WebView;->getCustomTabServiceSession()Landroidx/browser/customtabs/CustomTabsSession;
move-result-object v1
invoke-direct {v0, v1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;-><init>(Landroidx/browser/customtabs/CustomTabsSession;)V
const/4 v1, 0x1
.line 78
invoke-virtual {v0, v1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setUrlBarHidingEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
const/4 v1, 0x2
.line 79
invoke-virtual {v0, v1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setShareState(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder;
.line 80
invoke-virtual {v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->build()Landroidx/browser/customtabs/CustomTabsIntent;
move-result-object v0
.line 81
iget-object v1, v0, Landroidx/browser/customtabs/CustomTabsIntent;->intent:Landroid/content/Intent;
sget-object v2, Lcom/ea/nimble/CustomTabActivity;->sCustomTabPackageNameToUse:Ljava/lang/String;
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 84
:try_start_0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "[onCreate] URL: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 85
invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object p1
invoke-virtual {v0, p0, p1}, Landroidx/browser/customtabs/CustomTabsIntent;->launchUrl(Landroid/content/Context;Landroid/net/Uri;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/ea/nimble/CustomTabActivity;->mShouldCloseCustomTab:Z
return-void
:catch_0
move-exception p1
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
.line 89
invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
.line 90
invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object v0
sget-object v1, Lcom/ea/nimble/Constants;->EXTRA_ERROR:Ljava/lang/String;
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
move-result-object p1
const/16 v0, 0xa
invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V
.line 91
invoke-virtual {p0}, Landroid/app/Activity;->finish()V
return-void
.end method
.method public onNewIntent(Landroid/content/Intent;)V
.locals 2
.line 113
invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V
.line 114
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "[onNewIntent] Action: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 115
sget-object v0, Lcom/ea/nimble/Constants;->CUSTOM_TAB_REDIRECT_ACTION:Ljava/lang/String;
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, -0x1
.line 117
invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V
.line 118
invoke-virtual {p0}, Landroid/app/Activity;->finish()V
:cond_0
return-void
.end method
.method public onResume()V
.locals 1
.line 100
invoke-super {p0}, Landroid/app/Activity;->onResume()V
iget-boolean v0, p0, Lcom/ea/nimble/CustomTabActivity;->mShouldCloseCustomTab:Z
if-eqz v0, :cond_0
const/4 v0, 0x0
.line 104
invoke-virtual {p0, v0}, Landroid/app/Activity;->setResult(I)V
.line 105
invoke-virtual {p0}, Landroid/app/Activity;->finish()V
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/ea/nimble/CustomTabActivity;->mShouldCloseCustomTab:Z
return-void
.end method

View File

@@ -0,0 +1,679 @@
.class Lcom/ea/nimble/Encryptor;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static ENCRYPTION_KEY_LENGTH:I = 0x100
.field private static ENCRYPTION_KEY_ROUND:I = 0x3e5
.field private static final ENCRYPTOR_VERSION_1:[B
.field private static final ENCRYPTOR_VERSION_2:[B
# direct methods
.method static constructor <clinit>()V
.locals 2
const/4 v0, 0x4
new-array v1, v0, [B
fill-array-data v1, :array_0
sput-object v1, Lcom/ea/nimble/Encryptor;->ENCRYPTOR_VERSION_1:[B
new-array v0, v0, [B
fill-array-data v0, :array_1
sput-object v0, Lcom/ea/nimble/Encryptor;->ENCRYPTOR_VERSION_2:[B
return-void
:array_0
.array-data 1
0x4et
0x45t
0x56t
0x31t
.end array-data
:array_1
.array-data 1
0x4et
0x45t
0x56t
0x32t
.end array-data
.end method
.method public constructor <init>()V
.locals 0
.line 31
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private decryptLegacyInputStream(Ljava/io/InputStream;)Ljava/io/ObjectInputStream;
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Ljava/security/GeneralSecurityException;
}
.end annotation
.line 165
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
.line 166
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationBundleId()Ljava/lang/String;
move-result-object v0
const-string v1, "02:00:00:00:00:00"
.line 170
invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B
move-result-object v1
const/16 v2, 0x8
new-array v3, v2, [B
const/4 v4, 0x0
move v5, v4
:goto_0
if-ge v4, v2, :cond_1
add-int/lit8 v6, v5, 0x1
.line 174
rem-int/lit8 v7, v6, 0x3
if-nez v7, :cond_0
move v5, v6
.line 178
:cond_0
aget-byte v6, v1, v5
aput-byte v6, v3, v4
add-int/lit8 v4, v4, 0x1
add-int/lit8 v5, v5, 0x1
goto :goto_0
:cond_1
const-string v1, "PBEWithMD5AndDES"
.line 180
invoke-static {v1}, Ljavax/crypto/SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;
move-result-object v2
.line 181
new-instance v4, Ljavax/crypto/spec/PBEKeySpec;
invoke-virtual {v0}, Ljava/lang/String;->toCharArray()[C
move-result-object v0
sget v5, Lcom/ea/nimble/Encryptor;->ENCRYPTION_KEY_ROUND:I
sget v6, Lcom/ea/nimble/Encryptor;->ENCRYPTION_KEY_LENGTH:I
invoke-direct {v4, v0, v3, v5, v6}, Ljavax/crypto/spec/PBEKeySpec;-><init>([C[BII)V
.line 182
invoke-virtual {v2, v4}, Ljavax/crypto/SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
move-result-object v0
.line 183
new-instance v2, Ljavax/crypto/spec/PBEParameterSpec;
sget v4, Lcom/ea/nimble/Encryptor;->ENCRYPTION_KEY_ROUND:I
invoke-direct {v2, v3, v4}, Ljavax/crypto/spec/PBEParameterSpec;-><init>([BI)V
.line 185
invoke-static {v1}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;
move-result-object v1
const/4 v3, 0x2
.line 186
invoke-virtual {v1, v3, v0, v2}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
.line 188
new-instance v0, Ljava/io/ObjectInputStream;
new-instance v2, Ljavax/crypto/CipherInputStream;
invoke-direct {v2, p1, v1}, Ljavax/crypto/CipherInputStream;-><init>(Ljava/io/InputStream;Ljavax/crypto/Cipher;)V
invoke-direct {v0, v2}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
return-object v0
.end method
.method private decryptV1InputStream(Ljava/io/InputStream;)Ljava/io/ObjectInputStream;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Ljava/security/GeneralSecurityException;
}
.end annotation
sget-object v0, Lcom/ea/nimble/Encryptor;->ENCRYPTOR_VERSION_1:[B
.line 135
array-length v1, v0
.line 136
invoke-virtual {p1, v1}, Ljava/io/InputStream;->mark(I)V
.line 137
new-array v2, v1, [B
const/4 v3, 0x0
.line 138
invoke-virtual {p1, v2, v3, v1}, Ljava/io/InputStream;->read([BII)I
move-result v4
if-lt v4, v1, :cond_1
.line 139
invoke-static {v0, v2}, Ljava/util/Arrays;->equals([B[B)Z
move-result v0
if-nez v0, :cond_0
goto :goto_0
.line 147
:cond_0
new-instance v0, Ljava/io/ObjectInputStream;
invoke-direct {v0, p1}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
.line 148
invoke-virtual {v0}, Ljava/io/ObjectInputStream;->readInt()I
move-result v1
.line 149
new-array v2, v1, [B
.line 150
invoke-virtual {v0, v2, v3, v1}, Ljava/io/ObjectInputStream;->read([BII)I
.line 151
invoke-virtual {v0}, Ljava/io/ObjectInputStream;->readInt()I
move-result v1
.line 152
new-array v4, v1, [B
.line 153
invoke-virtual {v0, v4, v3, v1}, Ljava/io/ObjectInputStream;->read([BII)I
.line 156
invoke-direct {p0, v2}, Lcom/ea/nimble/Encryptor;->getKeyV1([B)Ljavax/crypto/SecretKey;
move-result-object v0
const-string v1, "AES/CBC/PKCS5Padding"
.line 157
invoke-static {v1}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;
move-result-object v1
.line 158
new-instance v2, Ljavax/crypto/spec/IvParameterSpec;
invoke-direct {v2, v4}, Ljavax/crypto/spec/IvParameterSpec;-><init>([B)V
const/4 v3, 0x2
invoke-virtual {v1, v3, v0, v2}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
.line 160
new-instance v0, Ljava/io/ObjectInputStream;
new-instance v2, Ljavax/crypto/CipherInputStream;
invoke-direct {v2, p1, v1}, Ljavax/crypto/CipherInputStream;-><init>(Ljava/io/InputStream;Ljavax/crypto/Cipher;)V
invoke-direct {v0, v2}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
return-object v0
.line 142
:cond_1
:goto_0
invoke-virtual {p1}, Ljava/io/InputStream;->reset()V
.line 143
invoke-direct {p0, p1}, Lcom/ea/nimble/Encryptor;->decryptLegacyInputStream(Ljava/io/InputStream;)Ljava/io/ObjectInputStream;
move-result-object p1
return-object p1
.end method
.method private getKeyV1([B)Ljavax/crypto/SecretKey;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/security/GeneralSecurityException;
}
.end annotation
.line 42
:try_start_0
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationBundleId()Ljava/lang/String;
move-result-object v0
const-string v1, "PBKDF2WithHmacSHA1"
.line 44
invoke-static {v1}, Ljavax/crypto/SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;
move-result-object v1
.line 45
new-instance v2, Ljavax/crypto/spec/PBEKeySpec;
invoke-virtual {v0}, Ljava/lang/String;->toCharArray()[C
move-result-object v0
sget v3, Lcom/ea/nimble/Encryptor;->ENCRYPTION_KEY_ROUND:I
sget v4, Lcom/ea/nimble/Encryptor;->ENCRYPTION_KEY_LENGTH:I
invoke-direct {v2, v0, p1, v3, v4}, Ljavax/crypto/spec/PBEKeySpec;-><init>([C[BII)V
.line 46
invoke-virtual {v1, v2}, Ljavax/crypto/SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
move-result-object p1
.line 47
new-instance v0, Ljavax/crypto/spec/SecretKeySpec;
invoke-interface {p1}, Ljava/security/Key;->getEncoded()[B
move-result-object p1
const-string v1, "AES"
invoke-direct {v0, p1, v1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
:try_end_0
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception p1
.line 53
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Can\'t initialize Encryptor: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {v2, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGFS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 54
throw p1
.end method
.method private getKeyV2()Ljavax/crypto/SecretKey;
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/security/GeneralSecurityException;
}
.end annotation
.line 62
:try_start_0
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
.line 63
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getAndroidId()Ljava/lang/String;
move-result-object v1
.line 64
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationBundleId()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->SHA256Hash(Ljava/lang/String;)[B
move-result-object v0
const-string v2, "PBKDF2WithHmacSHA1"
.line 66
invoke-static {v2}, Ljavax/crypto/SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;
move-result-object v2
.line 67
new-instance v3, Ljavax/crypto/spec/PBEKeySpec;
invoke-virtual {v1}, Ljava/lang/String;->toCharArray()[C
move-result-object v1
sget v4, Lcom/ea/nimble/Encryptor;->ENCRYPTION_KEY_ROUND:I
sget v5, Lcom/ea/nimble/Encryptor;->ENCRYPTION_KEY_LENGTH:I
invoke-direct {v3, v1, v0, v4, v5}, Ljavax/crypto/spec/PBEKeySpec;-><init>([C[BII)V
.line 68
invoke-virtual {v2, v3}, Ljavax/crypto/SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
move-result-object v0
.line 69
new-instance v1, Ljavax/crypto/spec/SecretKeySpec;
invoke-interface {v0}, Ljava/security/Key;->getEncoded()[B
move-result-object v0
const-string v2, "AES"
invoke-direct {v1, v0, v2}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
:try_end_0
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_0} :catch_0
return-object v1
:catch_0
move-exception v0
.line 73
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Can\'t initialize Encryptor: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
invoke-static {v3, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGFS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 74
throw v0
.end method
# virtual methods
.method public decryptInputStream(Ljava/io/InputStream;)Ljava/io/ObjectInputStream;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Ljava/security/GeneralSecurityException;
}
.end annotation
.line 101
invoke-virtual {p1}, Ljava/io/InputStream;->markSupported()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
const-string v0, "decryptInputStream() : InputStream doesn\'t support stream mark()"
new-array v2, v1, [Ljava/lang/Object;
const-string v3, "Encryptor"
.line 103
invoke-static {v3, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
sget-object v0, Lcom/ea/nimble/Encryptor;->ENCRYPTOR_VERSION_2:[B
.line 107
array-length v2, v0
.line 108
invoke-virtual {p1, v2}, Ljava/io/InputStream;->mark(I)V
.line 109
new-array v3, v2, [B
.line 110
invoke-virtual {p1, v3, v1, v2}, Ljava/io/InputStream;->read([BII)I
move-result v4
if-lt v4, v2, :cond_2
.line 111
invoke-static {v0, v3}, Ljava/util/Arrays;->equals([B[B)Z
move-result v0
if-nez v0, :cond_1
goto :goto_0
.line 119
:cond_1
new-instance v0, Ljava/io/ObjectInputStream;
invoke-direct {v0, p1}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
.line 120
invoke-virtual {v0}, Ljava/io/ObjectInputStream;->readInt()I
move-result v2
.line 121
new-array v3, v2, [B
.line 122
invoke-virtual {v0, v3, v1, v2}, Ljava/io/ObjectInputStream;->read([BII)I
.line 125
invoke-direct {p0}, Lcom/ea/nimble/Encryptor;->getKeyV2()Ljavax/crypto/SecretKey;
move-result-object v0
const-string v1, "AES/CBC/PKCS5Padding"
.line 126
invoke-static {v1}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;
move-result-object v1
.line 127
new-instance v2, Ljavax/crypto/spec/IvParameterSpec;
invoke-direct {v2, v3}, Ljavax/crypto/spec/IvParameterSpec;-><init>([B)V
const/4 v3, 0x2
invoke-virtual {v1, v3, v0, v2}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
.line 129
new-instance v0, Ljava/io/ObjectInputStream;
new-instance v2, Ljavax/crypto/CipherInputStream;
invoke-direct {v2, p1, v1}, Ljavax/crypto/CipherInputStream;-><init>(Ljava/io/InputStream;Ljavax/crypto/Cipher;)V
invoke-direct {v0, v2}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
return-object v0
.line 114
:cond_2
:goto_0
invoke-virtual {p1}, Ljava/io/InputStream;->reset()V
.line 115
invoke-direct {p0, p1}, Lcom/ea/nimble/Encryptor;->decryptV1InputStream(Ljava/io/InputStream;)Ljava/io/ObjectInputStream;
move-result-object p1
return-object p1
.end method
.method public encryptOutputStream(Ljava/io/OutputStream;)Ljava/io/ObjectOutputStream;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Ljava/security/GeneralSecurityException;
}
.end annotation
.line 81
invoke-direct {p0}, Lcom/ea/nimble/Encryptor;->getKeyV2()Ljavax/crypto/SecretKey;
move-result-object v0
const-string v1, "AES/CBC/PKCS5Padding"
.line 82
invoke-static {v1}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;
move-result-object v1
const/4 v2, 0x1
.line 83
invoke-virtual {v1, v2, v0}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;)V
sget-object v0, Lcom/ea/nimble/Encryptor;->ENCRYPTOR_VERSION_2:[B
.line 86
array-length v2, v0
const/4 v3, 0x0
invoke-virtual {p1, v0, v3, v2}, Ljava/io/OutputStream;->write([BII)V
.line 88
invoke-virtual {v1}, Ljavax/crypto/Cipher;->getParameters()Ljava/security/AlgorithmParameters;
move-result-object v0
const-class v2, Ljavax/crypto/spec/IvParameterSpec;
invoke-virtual {v0, v2}, Ljava/security/AlgorithmParameters;->getParameterSpec(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
move-result-object v0
check-cast v0, Ljavax/crypto/spec/IvParameterSpec;
invoke-virtual {v0}, Ljavax/crypto/spec/IvParameterSpec;->getIV()[B
move-result-object v0
.line 91
new-instance v2, Ljava/io/ObjectOutputStream;
invoke-direct {v2, p1}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
.line 92
array-length v4, v0
invoke-virtual {v2, v4}, Ljava/io/ObjectOutputStream;->writeInt(I)V
.line 93
array-length v4, v0
invoke-virtual {v2, v0, v3, v4}, Ljava/io/ObjectOutputStream;->write([BII)V
.line 94
invoke-virtual {v2}, Ljava/io/ObjectOutputStream;->flush()V
.line 96
new-instance v0, Ljava/io/ObjectOutputStream;
new-instance v2, Ljavax/crypto/CipherOutputStream;
invoke-direct {v2, p1, v1}, Ljavax/crypto/CipherOutputStream;-><init>(Ljava/io/OutputStream;Ljavax/crypto/Cipher;)V
invoke-direct {v0, v2}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -0,0 +1,81 @@
.class Lcom/ea/nimble/Error$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/os/Parcelable$Creator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/Error;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroid/os/Parcelable$Creator<",
"Lcom/ea/nimble/Error;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 164
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public createFromParcel(Landroid/os/Parcel;)Lcom/ea/nimble/Error;
.locals 1
.line 171
new-instance v0, Lcom/ea/nimble/Error;
invoke-direct {v0, p1}, Lcom/ea/nimble/Error;-><init>(Landroid/os/Parcel;)V
return-object v0
.end method
.method public bridge synthetic createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
.locals 0
.line 164
invoke-virtual {p0, p1}, Lcom/ea/nimble/Error$1;->createFromParcel(Landroid/os/Parcel;)Lcom/ea/nimble/Error;
move-result-object p1
return-object p1
.end method
.method public newArray(I)[Lcom/ea/nimble/Error;
.locals 0
.line 179
new-array p1, p1, [Lcom/ea/nimble/Error;
return-object p1
.end method
.method public bridge synthetic newArray(I)[Ljava/lang/Object;
.locals 0
.line 164
invoke-virtual {p0, p1}, Lcom/ea/nimble/Error$1;->newArray(I)[Lcom/ea/nimble/Error;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,534 @@
.class public final enum Lcom/ea/nimble/Error$Code;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/Error;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Code"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/Error$Code;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/Error$Code;
.field public static final enum INVALID_ARGUMENT:Lcom/ea/nimble/Error$Code;
.field public static final enum MISSING_CALLBACK:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_CONNECTION_ERROR:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_INVALID_SERVER_RESPONSE:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_NO_CONNECTION:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_OPERATION_CANCELLED:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_OVERSIZE_DATA:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_TIMEOUT:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_UNREACHABLE:Lcom/ea/nimble/Error$Code;
.field public static final enum NETWORK_UNSUPPORTED_CONNECTION_TYPE:Lcom/ea/nimble/Error$Code;
.field public static final enum NOT_AVAILABLE:Lcom/ea/nimble/Error$Code;
.field public static final enum NOT_IMPLEMENTED:Lcom/ea/nimble/Error$Code;
.field public static final enum NOT_READY:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_ENVIRONMENT_UPDATE_FAILURE:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_GET_AGE_COMPLIANCE_FAILURE:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_GET_ANONYMOUS_ID_FAILURE:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_GET_DIRECTION_TIMEOUT:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_GET_EA_DEVICE_ID_FAILURE:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_GET_NONCE_FAILURE:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_PURCHASE_VERIFICATION_FAILURE:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_SERVER_FULL:Lcom/ea/nimble/Error$Code;
.field public static final enum SYNERGY_VALIDATE_EA_DEVICE_ID_FAILURE:Lcom/ea/nimble/Error$Code;
.field public static final enum SYSTEM_UNEXPECTED:Lcom/ea/nimble/Error$Code;
.field public static final enum UNKNOWN:Lcom/ea/nimble/Error$Code;
.field public static final enum UNSUPPORTED:Lcom/ea/nimble/Error$Code;
# instance fields
.field private final m_value:I
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/Error$Code;
.locals 25
sget-object v0, Lcom/ea/nimble/Error$Code;->UNKNOWN:Lcom/ea/nimble/Error$Code;
sget-object v1, Lcom/ea/nimble/Error$Code;->SYSTEM_UNEXPECTED:Lcom/ea/nimble/Error$Code;
sget-object v2, Lcom/ea/nimble/Error$Code;->NOT_READY:Lcom/ea/nimble/Error$Code;
sget-object v3, Lcom/ea/nimble/Error$Code;->UNSUPPORTED:Lcom/ea/nimble/Error$Code;
sget-object v4, Lcom/ea/nimble/Error$Code;->NOT_AVAILABLE:Lcom/ea/nimble/Error$Code;
sget-object v5, Lcom/ea/nimble/Error$Code;->NOT_IMPLEMENTED:Lcom/ea/nimble/Error$Code;
sget-object v6, Lcom/ea/nimble/Error$Code;->INVALID_ARGUMENT:Lcom/ea/nimble/Error$Code;
sget-object v7, Lcom/ea/nimble/Error$Code;->MISSING_CALLBACK:Lcom/ea/nimble/Error$Code;
sget-object v8, Lcom/ea/nimble/Error$Code;->NETWORK_UNSUPPORTED_CONNECTION_TYPE:Lcom/ea/nimble/Error$Code;
sget-object v9, Lcom/ea/nimble/Error$Code;->NETWORK_NO_CONNECTION:Lcom/ea/nimble/Error$Code;
sget-object v10, Lcom/ea/nimble/Error$Code;->NETWORK_UNREACHABLE:Lcom/ea/nimble/Error$Code;
sget-object v11, Lcom/ea/nimble/Error$Code;->NETWORK_OVERSIZE_DATA:Lcom/ea/nimble/Error$Code;
sget-object v12, Lcom/ea/nimble/Error$Code;->NETWORK_OPERATION_CANCELLED:Lcom/ea/nimble/Error$Code;
sget-object v13, Lcom/ea/nimble/Error$Code;->NETWORK_INVALID_SERVER_RESPONSE:Lcom/ea/nimble/Error$Code;
sget-object v14, Lcom/ea/nimble/Error$Code;->NETWORK_TIMEOUT:Lcom/ea/nimble/Error$Code;
sget-object v15, Lcom/ea/nimble/Error$Code;->NETWORK_CONNECTION_ERROR:Lcom/ea/nimble/Error$Code;
sget-object v16, Lcom/ea/nimble/Error$Code;->SYNERGY_SERVER_FULL:Lcom/ea/nimble/Error$Code;
sget-object v17, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_DIRECTION_TIMEOUT:Lcom/ea/nimble/Error$Code;
sget-object v18, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_EA_DEVICE_ID_FAILURE:Lcom/ea/nimble/Error$Code;
sget-object v19, Lcom/ea/nimble/Error$Code;->SYNERGY_VALIDATE_EA_DEVICE_ID_FAILURE:Lcom/ea/nimble/Error$Code;
sget-object v20, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_ANONYMOUS_ID_FAILURE:Lcom/ea/nimble/Error$Code;
sget-object v21, Lcom/ea/nimble/Error$Code;->SYNERGY_ENVIRONMENT_UPDATE_FAILURE:Lcom/ea/nimble/Error$Code;
sget-object v22, Lcom/ea/nimble/Error$Code;->SYNERGY_PURCHASE_VERIFICATION_FAILURE:Lcom/ea/nimble/Error$Code;
sget-object v23, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_NONCE_FAILURE:Lcom/ea/nimble/Error$Code;
sget-object v24, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_AGE_COMPLIANCE_FAILURE:Lcom/ea/nimble/Error$Code;
filled-new-array/range {v0 .. v24}, [Lcom/ea/nimble/Error$Code;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 19
new-instance v0, Lcom/ea/nimble/Error$Code;
const-string v1, "UNKNOWN"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->UNKNOWN:Lcom/ea/nimble/Error$Code;
.line 21
new-instance v0, Lcom/ea/nimble/Error$Code;
const/4 v1, 0x1
const/16 v2, 0x64
const-string v3, "SYSTEM_UNEXPECTED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYSTEM_UNEXPECTED:Lcom/ea/nimble/Error$Code;
.line 22
new-instance v0, Lcom/ea/nimble/Error$Code;
const/4 v1, 0x2
const/16 v2, 0x65
const-string v3, "NOT_READY"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NOT_READY:Lcom/ea/nimble/Error$Code;
.line 23
new-instance v0, Lcom/ea/nimble/Error$Code;
const/4 v1, 0x3
const/16 v2, 0x66
const-string v3, "UNSUPPORTED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->UNSUPPORTED:Lcom/ea/nimble/Error$Code;
.line 24
new-instance v0, Lcom/ea/nimble/Error$Code;
const/4 v1, 0x4
const/16 v2, 0x67
const-string v3, "NOT_AVAILABLE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NOT_AVAILABLE:Lcom/ea/nimble/Error$Code;
.line 25
new-instance v0, Lcom/ea/nimble/Error$Code;
const/4 v1, 0x5
const/16 v2, 0x68
const-string v3, "NOT_IMPLEMENTED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NOT_IMPLEMENTED:Lcom/ea/nimble/Error$Code;
.line 27
new-instance v0, Lcom/ea/nimble/Error$Code;
const/4 v1, 0x6
const/16 v2, 0x12c
const-string v3, "INVALID_ARGUMENT"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->INVALID_ARGUMENT:Lcom/ea/nimble/Error$Code;
.line 28
new-instance v0, Lcom/ea/nimble/Error$Code;
const/4 v1, 0x7
const/16 v2, 0x12d
const-string v3, "MISSING_CALLBACK"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->MISSING_CALLBACK:Lcom/ea/nimble/Error$Code;
.line 30
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x8
const/16 v2, 0x3e9
const-string v3, "NETWORK_UNSUPPORTED_CONNECTION_TYPE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_UNSUPPORTED_CONNECTION_TYPE:Lcom/ea/nimble/Error$Code;
.line 31
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x9
const/16 v2, 0x3ea
const-string v3, "NETWORK_NO_CONNECTION"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_NO_CONNECTION:Lcom/ea/nimble/Error$Code;
.line 32
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0xa
const/16 v2, 0x3eb
const-string v3, "NETWORK_UNREACHABLE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_UNREACHABLE:Lcom/ea/nimble/Error$Code;
.line 33
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0xb
const/16 v2, 0x3ec
const-string v3, "NETWORK_OVERSIZE_DATA"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_OVERSIZE_DATA:Lcom/ea/nimble/Error$Code;
.line 34
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0xc
const/16 v2, 0x3ed
const-string v3, "NETWORK_OPERATION_CANCELLED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_OPERATION_CANCELLED:Lcom/ea/nimble/Error$Code;
.line 35
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0xd
const/16 v2, 0x3ee
const-string v3, "NETWORK_INVALID_SERVER_RESPONSE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_INVALID_SERVER_RESPONSE:Lcom/ea/nimble/Error$Code;
.line 36
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0xe
const/16 v2, 0x3ef
const-string v3, "NETWORK_TIMEOUT"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_TIMEOUT:Lcom/ea/nimble/Error$Code;
.line 37
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0xf
const/16 v2, 0x3f2
const-string v3, "NETWORK_CONNECTION_ERROR"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->NETWORK_CONNECTION_ERROR:Lcom/ea/nimble/Error$Code;
.line 39
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x10
const/16 v2, 0x7d1
const-string v3, "SYNERGY_SERVER_FULL"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_SERVER_FULL:Lcom/ea/nimble/Error$Code;
.line 40
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x11
const/16 v2, 0x7d2
const-string v3, "SYNERGY_GET_DIRECTION_TIMEOUT"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_DIRECTION_TIMEOUT:Lcom/ea/nimble/Error$Code;
.line 41
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x12
const/16 v2, 0x7d3
const-string v3, "SYNERGY_GET_EA_DEVICE_ID_FAILURE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_EA_DEVICE_ID_FAILURE:Lcom/ea/nimble/Error$Code;
.line 42
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x13
const/16 v2, 0x7d4
const-string v3, "SYNERGY_VALIDATE_EA_DEVICE_ID_FAILURE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_VALIDATE_EA_DEVICE_ID_FAILURE:Lcom/ea/nimble/Error$Code;
.line 43
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x14
const/16 v2, 0x7d5
const-string v3, "SYNERGY_GET_ANONYMOUS_ID_FAILURE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_ANONYMOUS_ID_FAILURE:Lcom/ea/nimble/Error$Code;
.line 44
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x15
const/16 v2, 0x7d6
const-string v3, "SYNERGY_ENVIRONMENT_UPDATE_FAILURE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_ENVIRONMENT_UPDATE_FAILURE:Lcom/ea/nimble/Error$Code;
.line 45
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x16
const/16 v2, 0x7d7
const-string v3, "SYNERGY_PURCHASE_VERIFICATION_FAILURE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_PURCHASE_VERIFICATION_FAILURE:Lcom/ea/nimble/Error$Code;
.line 46
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x17
const/16 v2, 0x7d8
const-string v3, "SYNERGY_GET_NONCE_FAILURE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_NONCE_FAILURE:Lcom/ea/nimble/Error$Code;
.line 47
new-instance v0, Lcom/ea/nimble/Error$Code;
const/16 v1, 0x18
const/16 v2, 0x7d9
const-string v3, "SYNERGY_GET_AGE_COMPLIANCE_FAILURE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/Error$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/Error$Code;->SYNERGY_GET_AGE_COMPLIANCE_FAILURE:Lcom/ea/nimble/Error$Code;
.line 17
invoke-static {}, Lcom/ea/nimble/Error$Code;->$values()[Lcom/ea/nimble/Error$Code;
move-result-object v0
sput-object v0, Lcom/ea/nimble/Error$Code;->$VALUES:[Lcom/ea/nimble/Error$Code;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 51
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/ea/nimble/Error$Code;->m_value:I
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/Error$Code;
.locals 1
const-class v0, Lcom/ea/nimble/Error$Code;
.line 17
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/Error$Code;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/Error$Code;
.locals 1
sget-object v0, Lcom/ea/nimble/Error$Code;->$VALUES:[Lcom/ea/nimble/Error$Code;
.line 17
invoke-virtual {v0}, [Lcom/ea/nimble/Error$Code;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/Error$Code;
return-object v0
.end method
# virtual methods
.method public intValue()I
.locals 1
iget v0, p0, Lcom/ea/nimble/Error$Code;->m_value:I
return v0
.end method

View File

@@ -0,0 +1,475 @@
.class public Lcom/ea/nimble/Error;
.super Ljava/lang/Exception;
.source "SourceFile"
# interfaces
.implements Landroid/os/Parcelable;
.implements Ljava/io/Externalizable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/Error$Code;
}
.end annotation
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Lcom/ea/nimble/Error;",
">;"
}
.end annotation
.end field
.field public static final ERROR_DOMAIN:Ljava/lang/String; = "NimbleError"
.field private static final serialVersionUID:J = 0x1L
# instance fields
.field private m_code:I
.field private m_domain:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 163
new-instance v0, Lcom/ea/nimble/Error$1;
invoke-direct {v0}, Lcom/ea/nimble/Error$1;-><init>()V
sput-object v0, Lcom/ea/nimble/Error;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 102
invoke-direct {p0}, Ljava/lang/Exception;-><init>()V
return-void
.end method
.method public constructor <init>(Landroid/os/Parcel;)V
.locals 0
.line 190
invoke-direct {p0}, Ljava/lang/Exception;-><init>()V
.line 191
invoke-virtual {p0, p1}, Lcom/ea/nimble/Error;->readFromParcel(Landroid/os/Parcel;)V
return-void
.end method
.method public constructor <init>(Lcom/ea/nimble/Error$Code;Ljava/lang/String;)V
.locals 1
const/4 v0, 0x0
.line 91
invoke-direct {p0, p1, p2, v0}, Lcom/ea/nimble/Error;-><init>(Lcom/ea/nimble/Error$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public constructor <init>(Lcom/ea/nimble/Error$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 1
const-string v0, "NimbleError"
.line 86
invoke-virtual {p1}, Lcom/ea/nimble/Error$Code;->intValue()I
move-result p1
invoke-direct {p0, v0, p1, p2, p3}, Lcom/ea/nimble/Error;-><init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
.locals 1
const/4 v0, 0x0
.line 78
invoke-direct {p0, p1, p2, p3, v0}, Lcom/ea/nimble/Error;-><init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
.locals 0
.line 71
invoke-direct {p0, p3, p4}, Ljava/lang/Exception;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
iput-object p1, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
iput p2, p0, Lcom/ea/nimble/Error;->m_code:I
return-void
.end method
# virtual methods
.method public describeContents()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public getCode()I
.locals 1
iget v0, p0, Lcom/ea/nimble/Error;->m_code:I
return v0
.end method
.method public getDomain()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
return-object v0
.end method
.method public isError(Lcom/ea/nimble/Error$Code;)Z
.locals 1
iget v0, p0, Lcom/ea/nimble/Error;->m_code:I
.line 118
invoke-virtual {p1}, Lcom/ea/nimble/Error$Code;->intValue()I
move-result p1
if-ne v0, p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public readExternal(Ljava/io/ObjectInput;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;,
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 277
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
.line 280
invoke-interface {p1}, Ljava/io/DataInput;->readInt()I
move-result v0
iput v0, p0, Lcom/ea/nimble/Error;->m_code:I
.line 283
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Throwable;
.line 284
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
return-void
.end method
.method public readFromParcel(Landroid/os/Parcel;)V
.locals 2
.line 254
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
.line 257
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Lcom/ea/nimble/Error;->m_code:I
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x21
if-lt v0, v1, :cond_0
const/4 v0, 0x0
const-class v1, Ljava/lang/Throwable;
.line 263
invoke-static {p1, v0, v1}, Lcom/ea/nimble/Error$$ExternalSyntheticApiModelOutline0;->m(Landroid/os/Parcel;Ljava/lang/ClassLoader;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Throwable;
goto :goto_0
.line 267
:cond_0
invoke-virtual {p1}, Landroid/os/Parcel;->readSerializable()Ljava/io/Serializable;
move-result-object p1
check-cast p1, Ljava/lang/Throwable;
.line 269
:goto_0
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 4
.line 124
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
const-string v2, "("
if-eqz v1, :cond_0
.line 125
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
if-lez v1, :cond_0
iget-object v1, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
.line 127
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
:cond_0
const-string v1, "Error"
.line 131
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
iget v1, p0, Lcom/ea/nimble/Error;->m_code:I
.line 133
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 134
invoke-virtual {p0}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_1
.line 135
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v2
if-lez v2, :cond_1
const-string v2, ": "
.line 137
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 139
:cond_1
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object v1
if-eqz v1, :cond_2
const-string v2, "\nCaused by: "
.line 142
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 143
new-instance v2, Ljava/io/StringWriter;
invoke-direct {v2}, Ljava/io/StringWriter;-><init>()V
.line 144
new-instance v3, Ljava/io/PrintWriter;
invoke-direct {v3, v2}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
invoke-virtual {v1, v3}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V
.line 145
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
goto :goto_1
:cond_2
const-string v1, "\nCaused by: null"
.line 149
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 151
:goto_1
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public writeExternal(Ljava/io/ObjectOutput;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
if-eqz v0, :cond_0
.line 292
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
.line 294
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
goto :goto_0
:cond_0
const-string v0, ""
.line 299
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
:goto_0
iget v0, p0, Lcom/ea/nimble/Error;->m_code:I
.line 304
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeInt(I)V
.line 308
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object v0
.line 309
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
return-void
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.locals 1
iget-object p2, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
const-string v0, ""
if-eqz p2, :cond_0
.line 216
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result p2
if-lez p2, :cond_0
iget-object p2, p0, Lcom/ea/nimble/Error;->m_domain:Ljava/lang/String;
.line 218
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
goto :goto_0
.line 223
:cond_0
invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
:goto_0
iget p2, p0, Lcom/ea/nimble/Error;->m_code:I
.line 228
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
.line 232
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object p2
if-eqz p2, :cond_1
.line 235
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeSerializable(Ljava/io/Serializable;)V
goto :goto_1
.line 240
:cond_1
invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeSerializable(Ljava/io/Serializable;)V
:goto_1
return-void
.end method

View File

@@ -0,0 +1,82 @@
.class public Lcom/ea/nimble/Global;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final NIMBLE_AUTHENTICATOR_ANONYMOUS:Ljava/lang/String; = "anonymous"
.field public static final NIMBLE_AUTHENTICATOR_FACEBOOK:Ljava/lang/String; = "facebook"
.field public static final NIMBLE_AUTHENTICATOR_ORIGIN:Ljava/lang/String; = "origin"
.field public static final NIMBLE_DOMAIN:Ljava/lang/String; = "com.ea.nimble"
.field public static final NIMBLE_ID:Ljava/lang/String; = "Nimble"
.field public static final NIMBLE_IDENTITY_DICTIONARY_KEY_AUTHENTICATOR_ID:Ljava/lang/String; = "authenticatorId"
.field public static final NIMBLE_IDENTITY_DICTIONARY_KEY_PIDMAP_ID:Ljava/lang/String; = "pidMapId"
.field public static final NIMBLE_NOTIFICATION_AGE_COMPLIANCE_DOB_UPDATE:Ljava/lang/String; = "nimble.notification.ageCompliance.dobUpdate"
.field public static final NIMBLE_NOTIFICATION_ATTRIBUTION_DATA_AVAILABLE:Ljava/lang/String; = "nimble.notification.attributionDataAvailable"
.field public static final NIMBLE_NOTIFICATION_IDENTITY_AUTHENTICATION_UPDATE:Ljava/lang/String; = "nimble.notification.identity.authentication.update"
.field public static final NIMBLE_NOTIFICATION_IDENTITY_MAIN_AUTHENTICATOR_CHANGE:Ljava/lang/String; = "nimble.notification.identity.main.authenticator.change"
.field public static final NIMBLE_NOTIFICATION_IDENTITY_PERSONA_INFO_UPDATE:Ljava/lang/String; = "nimble.notification.identity.authenticator.persona.info.update"
.field public static final NIMBLE_NOTIFICATION_IDENTITY_PID_INFO_UPDATE:Ljava/lang/String; = "nimble.notification.identity.authenticator.pid.info.update"
.field public static final NIMBLE_NOTIFICATION_IDENTITY_STOP_PROCESS_STATUS_UPDATE:Ljava/lang/String; = "nimble.notification.identity.stopProcessStatusUpdate"
.field public static final NIMBLE_NOTIFICATION_IDENTITY_USER_INFO_UPDATE:Ljava/lang/String; = "nimble.notification.identity.authenticator.user.info.update"
.field public static final NIMBLE_NOTIFICATION_PLAYERIDMAP_CHANGE:Ljava/lang/String; = "nimble.notification.playerIdMapChange"
.field public static final NIMBLE_RELEASE_VERSION:Ljava/lang/String; = "1.63.0.2"
.field public static final NIMBLE_SDK_VERSION:Ljava/lang/String; = "1.63.0.2.0923"
.field public static final NOTIFICATION_CHANNEL_DEFAULT_DESCRIPTION_KEY:Ljava/lang/String; = "com.ea.nimble.pushtng.channel.description"
.field public static final NOTIFICATION_CHANNEL_DEFAULT_ID:Ljava/lang/String; = "nimble_default"
.field public static final NOTIFICATION_CHANNEL_DEFAULT_NAME_KEY:Ljava/lang/String; = "com.ea.nimble.pushtng.channel.name"
.field public static final NOTIFICATION_CHANNEL_DEFAULT_NAME_VALUE:Ljava/lang/String; = "Default"
.field public static final NOTIFICATION_CHANNEL_LOCAL_NOTIFICATION_ID_KEY:Ljava/lang/String; = "com.ea.nimble.NimbleLocalNotifications.channel.id"
.field public static final NOTIFICATION_CHANNEL_PUSHTNG_ID_KEY:Ljava/lang/String; = "com.ea.nimble.pushtng.channel.id"
.field public static final NOTIFICATION_COMPONENT_INDEPENDENT_SETUP_FINISHED:Ljava/lang/String; = "nimble.notification.componentIndependentSetupFinished"
.field public static final NOTIFICATION_DICTIONARY_KEY_DETAIL_ERROR:Ljava/lang/String; = "detailError"
.field public static final NOTIFICATION_DICTIONARY_KEY_ERROR:Ljava/lang/String; = "error"
.field public static final NOTIFICATION_DICTIONARY_KEY_RESULT:Ljava/lang/String; = "result"
.field public static final NOTIFICATION_DICTIONARY_RESULT_FAIL:Ljava/lang/String; = "0"
.field public static final NOTIFICATION_DICTIONARY_RESULT_SUCCESS:Ljava/lang/String; = "1"
.field public static final NOTIFICATION_LANGUAGE_CHANGE:Ljava/lang/String; = "nimble.notification.languageChange"
.field public static final NOTIFICATION_LOGIN_STATUS_CHANGE:Ljava/lang/String; = "nimble.notification.loginStatusChange"
.field public static final NOTIFICATION_NETWORK_STATUS_CHANGE:Ljava/lang/String; = "nimble.notification.networkStatusChange"
# direct methods
.method public constructor <init>()V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,35 @@
.class public Lcom/ea/nimble/HttpError;
.super Lcom/ea/nimble/Error;
.source "SourceFile"
# static fields
.field public static final ERROR_DOMAIN:Ljava/lang/String; = "HttpError"
.field private static final serialVersionUID:J = 0x1L
# direct methods
.method public constructor <init>(ILjava/lang/String;)V
.locals 2
const-string v0, "HttpError"
const/4 v1, 0x0
.line 14
invoke-direct {p0, v0, p1, p2, v1}, Lcom/ea/nimble/Error;-><init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public constructor <init>(ILjava/lang/String;Ljava/lang/Throwable;)V
.locals 1
const-string v0, "HttpError"
.line 9
invoke-direct {p0, v0, p1, p2, p3}, Lcom/ea/nimble/Error;-><init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method

View File

@@ -0,0 +1,198 @@
.class public Lcom/ea/nimble/HttpRequest;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/IHttpRequest;
# static fields
.field private static DEFAULT_NETWORK_TIMEOUT:I = 0x1e
# instance fields
.field public data:Ljava/io/ByteArrayOutputStream;
.field public headers:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public method:Lcom/ea/nimble/IHttpRequest$Method;
.field public runInBackground:Z
.field public targetFilePath:Ljava/lang/String;
.field public timeout:D
.field public url:Ljava/net/URL;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>()V
.locals 3
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/ea/nimble/HttpRequest;->url:Ljava/net/URL;
.line 16
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
iput-object v1, p0, Lcom/ea/nimble/HttpRequest;->method:Lcom/ea/nimble/IHttpRequest$Method;
.line 17
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
iput-object v1, p0, Lcom/ea/nimble/HttpRequest;->data:Ljava/io/ByteArrayOutputStream;
.line 18
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
iput-object v1, p0, Lcom/ea/nimble/HttpRequest;->headers:Ljava/util/HashMap;
sget v1, Lcom/ea/nimble/HttpRequest;->DEFAULT_NETWORK_TIMEOUT:I
int-to-double v1, v1
iput-wide v1, p0, Lcom/ea/nimble/HttpRequest;->timeout:D
iput-object v0, p0, Lcom/ea/nimble/HttpRequest;->targetFilePath:Ljava/lang/String;
return-void
.end method
.method public constructor <init>(Ljava/net/URL;)V
.locals 0
.line 25
invoke-direct {p0}, Lcom/ea/nimble/HttpRequest;-><init>()V
iput-object p1, p0, Lcom/ea/nimble/HttpRequest;->url:Ljava/net/URL;
return-void
.end method
# virtual methods
.method public getData()[B
.locals 1
.line 45
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->data:Ljava/io/ByteArrayOutputStream;
.line 46
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object v0
return-object v0
.end method
.method public getHeaders()Ljava/util/HashMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 52
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->headers:Ljava/util/HashMap;
return-object v0
.end method
.method public bridge synthetic getHeaders()Ljava/util/Map;
.locals 1
.line 9
invoke-virtual {p0}, Lcom/ea/nimble/HttpRequest;->getHeaders()Ljava/util/HashMap;
move-result-object v0
return-object v0
.end method
.method public getMethod()Lcom/ea/nimble/IHttpRequest$Method;
.locals 1
.line 38
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->method:Lcom/ea/nimble/IHttpRequest$Method;
return-object v0
.end method
.method public getRunInBackground()Z
.locals 1
.line 73
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-boolean v0, p0, Lcom/ea/nimble/HttpRequest;->runInBackground:Z
return v0
.end method
.method public getTargetFilePath()Ljava/lang/String;
.locals 1
.line 66
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->targetFilePath:Ljava/lang/String;
return-object v0
.end method
.method public getTimeout()D
.locals 2
.line 59
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-wide v0, p0, Lcom/ea/nimble/HttpRequest;->timeout:D
return-wide v0
.end method
.method public getUrl()Ljava/net/URL;
.locals 1
.line 31
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->url:Ljava/net/URL;
return-object v0
.end method

View File

@@ -0,0 +1,225 @@
.class public Lcom/ea/nimble/HttpResponse;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/IHttpResponse;
# instance fields
.field public data:Lcom/ea/nimble/ByteBufferIOStream;
.field public downloadedContentLength:J
.field public error:Ljava/lang/Exception;
.field public expectedContentLength:J
.field public headers:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public isCompleted:Z
.field public lastModified:J
.field public statusCode:I
.field public url:Ljava/net/URL;
# direct methods
.method public constructor <init>()V
.locals 2
.line 13
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/ea/nimble/HttpResponse;->url:Ljava/net/URL;
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/ea/nimble/HttpResponse;->isCompleted:Z
iput v0, p0, Lcom/ea/nimble/HttpResponse;->statusCode:I
.line 17
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/HttpResponse;->headers:Ljava/util/HashMap;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/ea/nimble/HttpResponse;->expectedContentLength:J
iput-wide v0, p0, Lcom/ea/nimble/HttpResponse;->downloadedContentLength:J
const-wide/16 v0, -0x1
iput-wide v0, p0, Lcom/ea/nimble/HttpResponse;->lastModified:J
.line 21
new-instance v0, Lcom/ea/nimble/ByteBufferIOStream;
invoke-direct {v0}, Lcom/ea/nimble/ByteBufferIOStream;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/HttpResponse;->data:Lcom/ea/nimble/ByteBufferIOStream;
return-void
.end method
# virtual methods
.method public getDataStream()Ljava/io/InputStream;
.locals 1
.line 79
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpResponse;->data:Lcom/ea/nimble/ByteBufferIOStream;
.line 80
invoke-virtual {v0}, Lcom/ea/nimble/ByteBufferIOStream;->getInputStream()Ljava/io/InputStream;
move-result-object v0
return-object v0
.end method
.method public getDownloadedContentLength()J
.locals 2
.line 56
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-wide v0, p0, Lcom/ea/nimble/HttpResponse;->downloadedContentLength:J
return-wide v0
.end method
.method public getError()Ljava/lang/Exception;
.locals 1
.line 85
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpResponse;->error:Ljava/lang/Exception;
return-object v0
.end method
.method public getExpectedContentLength()J
.locals 2
.line 50
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-wide v0, p0, Lcom/ea/nimble/HttpResponse;->expectedContentLength:J
return-wide v0
.end method
.method public getHeaders()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 44
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpResponse;->headers:Ljava/util/HashMap;
return-object v0
.end method
.method public getLastModified()Ljava/util/Date;
.locals 5
.line 62
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-wide v0, p0, Lcom/ea/nimble/HttpResponse;->lastModified:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-nez v4, :cond_0
.line 65
new-instance v0, Ljava/util/Date;
invoke-direct {v0}, Ljava/util/Date;-><init>()V
return-object v0
:cond_0
cmp-long v0, v0, v2
if-lez v0, :cond_1
.line 69
new-instance v0, Ljava/util/Date;
iget-wide v1, p0, Lcom/ea/nimble/HttpResponse;->lastModified:J
invoke-direct {v0, v1, v2}, Ljava/util/Date;-><init>(J)V
return-object v0
:cond_1
const/4 v0, 0x0
return-object v0
.end method
.method public getStatusCode()I
.locals 1
.line 38
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget v0, p0, Lcom/ea/nimble/HttpResponse;->statusCode:I
return v0
.end method
.method public getUrl()Ljava/net/URL;
.locals 1
.line 32
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/HttpResponse;->url:Ljava/net/URL;
return-object v0
.end method
.method public isCompleted()Z
.locals 1
.line 26
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-boolean v0, p0, Lcom/ea/nimble/HttpResponse;->isCompleted:Z
return v0
.end method

View File

@@ -0,0 +1,19 @@
.class public interface abstract Lcom/ea/nimble/IApplicationEnvironment$AdvertisingIdCalback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IApplicationEnvironment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "AdvertisingIdCalback"
.end annotation
# virtual methods
.method public abstract onCallback(Ljava/lang/String;Z)V
.end method

View File

@@ -0,0 +1,19 @@
.class public interface abstract Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IApplicationEnvironment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "IntegrityTokenCallback"
.end annotation
# virtual methods
.method public abstract onCallback(Ljava/lang/String;Lcom/ea/nimble/Error;)V
.end method

View File

@@ -0,0 +1,132 @@
.class public interface abstract Lcom/ea/nimble/IApplicationEnvironment;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;,
Lcom/ea/nimble/IApplicationEnvironment$AdvertisingIdCalback;
}
.end annotation
# static fields
.field public static final UNAVAILABLE_ADVERTISING_ID:Ljava/lang/String; = ""
# virtual methods
.method public abstract getAdvertisingId()Ljava/lang/String;
.end method
.method public abstract getAgeCompliance()I
.end method
.method public abstract getAndroidId()Ljava/lang/String;
.end method
.method public abstract getApplicationBundleId()Ljava/lang/String;
.end method
.method public abstract getApplicationContext()Landroid/content/Context;
.end method
.method public abstract getApplicationLanguageCode()Ljava/lang/String;
.end method
.method public abstract getApplicationName()Ljava/lang/String;
.end method
.method public abstract getApplicationVersion()Ljava/lang/String;
.end method
.method public abstract getCachePath()Ljava/lang/String;
.end method
.method public abstract getCarrier()Ljava/lang/String;
.end method
.method public abstract getCurrencyCode()Ljava/lang/String;
.end method
.method public abstract getDeviceBrand()Ljava/lang/String;
.end method
.method public abstract getDeviceCodename()Ljava/lang/String;
.end method
.method public abstract getDeviceFingerprint()Ljava/lang/String;
.end method
.method public abstract getDeviceManufacturer()Ljava/lang/String;
.end method
.method public abstract getDeviceModel()Ljava/lang/String;
.end method
.method public abstract getDeviceString()Ljava/lang/String;
.end method
.method public abstract getDocumentPath()Ljava/lang/String;
.end method
.method public abstract getGameSpecifiedPlayerId()Ljava/lang/String;
.end method
.method public abstract getGoogleAdvertisingId()Ljava/lang/String;
.end method
.method public abstract getIadAttribution()Z
.end method
.method public abstract getOsVersion()Ljava/lang/String;
.end method
.method public abstract getParameter(Ljava/lang/String;)Ljava/lang/String;
.end method
.method public abstract getPlayerIdMap()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end method
.method public abstract getShortApplicationLanguageCode()Ljava/lang/String;
.end method
.method public abstract getTempPath()Ljava/lang/String;
.end method
.method public abstract isAppCracked()Z
.end method
.method public abstract isDeviceRooted()Z
.end method
.method public abstract isLimitAdTrackingEnabled()Z
.end method
.method public abstract refreshAgeCompliance()V
.end method
.method public abstract requestIntegrityToken(Ljava/lang/String;Lcom/ea/nimble/IApplicationEnvironment$IntegrityTokenCallback;)V
.end method
.method public abstract retrieveAdvertisingId(Lcom/ea/nimble/IApplicationEnvironment$AdvertisingIdCalback;)V
.end method
.method public abstract setApplicationLanguageCode(Ljava/lang/String;)V
.end method
.method public abstract setGameSpecifiedPlayerId(Ljava/lang/String;)V
.end method
.method public abstract setPlayerId(Ljava/lang/String;Ljava/lang/String;)V
.end method

View File

@@ -0,0 +1,28 @@
.class public interface abstract Lcom/ea/nimble/IApplicationLifecycle$ActivityEventCallbacks;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IApplicationLifecycle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ActivityEventCallbacks"
.end annotation
# virtual methods
.method public abstract onActivityResult(Landroid/app/Activity;IILandroid/content/Intent;)V
.end method
.method public abstract onBackPressed()Z
.end method
.method public abstract onNewIntent(Landroid/app/Activity;Landroid/content/Intent;)V
.end method
.method public abstract onWindowFocusChanged(Z)V
.end method

View File

@@ -0,0 +1,56 @@
.class public Lcom/ea/nimble/IApplicationLifecycle$ActivityEventHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/IApplicationLifecycle$ActivityEventCallbacks;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IApplicationLifecycle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ActivityEventHandler"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 40
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onActivityResult(Landroid/app/Activity;IILandroid/content/Intent;)V
.locals 0
return-void
.end method
.method public onBackPressed()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public onNewIntent(Landroid/app/Activity;Landroid/content/Intent;)V
.locals 0
return-void
.end method
.method public onWindowFocusChanged(Z)V
.locals 0
return-void
.end method

View File

@@ -0,0 +1,37 @@
.class public interface abstract Lcom/ea/nimble/IApplicationLifecycle$ActivityLifecycleCallbacks;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IApplicationLifecycle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ActivityLifecycleCallbacks"
.end annotation
# virtual methods
.method public abstract onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
.end method
.method public abstract onActivityDestroyed(Landroid/app/Activity;)V
.end method
.method public abstract onActivityPaused(Landroid/app/Activity;)V
.end method
.method public abstract onActivityResumed(Landroid/app/Activity;)V
.end method
.method public abstract onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
.end method
.method public abstract onActivityStarted(Landroid/app/Activity;)V
.end method
.method public abstract onActivityStopped(Landroid/app/Activity;)V
.end method

View File

@@ -0,0 +1,72 @@
.class public Lcom/ea/nimble/IApplicationLifecycle$ActivityLifecycleHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/IApplicationLifecycle$ActivityLifecycleCallbacks;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IApplicationLifecycle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ActivityLifecycleHandler"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 21
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
return-void
.end method
.method public onActivityDestroyed(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public onActivityPaused(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public onActivityResumed(Landroid/app/Activity;)V
.locals 0
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
return-void
.end method
.method public onActivityStopped(Landroid/app/Activity;)V
.locals 0
return-void
.end method

View File

@@ -0,0 +1,28 @@
.class public interface abstract Lcom/ea/nimble/IApplicationLifecycle$ApplicationLifecycleCallbacks;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IApplicationLifecycle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ApplicationLifecycleCallbacks"
.end annotation
# virtual methods
.method public abstract onApplicationLaunch(Landroid/content/Intent;)V
.end method
.method public abstract onApplicationQuit()V
.end method
.method public abstract onApplicationResume()V
.end method
.method public abstract onApplicationSuspend()V
.end method

View File

@@ -0,0 +1,77 @@
.class public interface abstract Lcom/ea/nimble/IApplicationLifecycle;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/IApplicationLifecycle$ApplicationLifecycleCallbacks;,
Lcom/ea/nimble/IApplicationLifecycle$ActivityEventHandler;,
Lcom/ea/nimble/IApplicationLifecycle$ActivityEventCallbacks;,
Lcom/ea/nimble/IApplicationLifecycle$ActivityLifecycleHandler;,
Lcom/ea/nimble/IApplicationLifecycle$ActivityLifecycleCallbacks;
}
.end annotation
# virtual methods
.method public abstract handleBackPressed()Z
.end method
.method public abstract notifyActivityCreate(Landroid/os/Bundle;Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityDestroy(Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityOnNewIntent(Landroid/content/Intent;Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityPause(Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityRestart(Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityRestoreInstanceState(Landroid/os/Bundle;Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityResult(IILandroid/content/Intent;Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityResume(Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityRetainNonConfigurationInstance()V
.end method
.method public abstract notifyActivitySaveInstanceState(Landroid/os/Bundle;Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityStart(Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityStop(Landroid/app/Activity;)V
.end method
.method public abstract notifyActivityWindowFocusChanged(ZLandroid/app/Activity;)V
.end method
.method public abstract registerActivityEventCallbacks(Lcom/ea/nimble/IApplicationLifecycle$ActivityEventCallbacks;)V
.end method
.method public abstract registerActivityLifecycleCallbacks(Lcom/ea/nimble/IApplicationLifecycle$ActivityLifecycleCallbacks;)V
.end method
.method public abstract registerApplicationLifecycleCallbacks(Lcom/ea/nimble/IApplicationLifecycle$ApplicationLifecycleCallbacks;)V
.end method
.method public abstract unregisterActivityEventCallbacks(Lcom/ea/nimble/IApplicationLifecycle$ActivityEventCallbacks;)V
.end method
.method public abstract unregisterActivityLifecycleCallbacks(Lcom/ea/nimble/IApplicationLifecycle$ActivityLifecycleCallbacks;)V
.end method
.method public abstract unregisterApplicationLifecycleCallbacks(Lcom/ea/nimble/IApplicationLifecycle$ApplicationLifecycleCallbacks;)V
.end method

View File

@@ -0,0 +1,115 @@
.class synthetic Lcom/ea/nimble/IHttpRequest$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IHttpRequest;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$ea$nimble$IHttpRequest$Method:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 21
invoke-static {}, Lcom/ea/nimble/IHttpRequest$Method;->values()[Lcom/ea/nimble/IHttpRequest$Method;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/ea/nimble/IHttpRequest$1;->$SwitchMap$com$ea$nimble$IHttpRequest$Method:[I
:try_start_0
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Lcom/ea/nimble/IHttpRequest$1;->$SwitchMap$com$ea$nimble$IHttpRequest$Method:[I
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->HEAD:Lcom/ea/nimble/IHttpRequest$Method;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Lcom/ea/nimble/IHttpRequest$1;->$SwitchMap$com$ea$nimble$IHttpRequest$Method:[I
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->POST:Lcom/ea/nimble/IHttpRequest$Method;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
:try_start_3
sget-object v0, Lcom/ea/nimble/IHttpRequest$1;->$SwitchMap$com$ea$nimble$IHttpRequest$Method:[I
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->PUT:Lcom/ea/nimble/IHttpRequest$Method;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x4
aput v2, v0, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
:try_start_4
sget-object v0, Lcom/ea/nimble/IHttpRequest$1;->$SwitchMap$com$ea$nimble$IHttpRequest$Method:[I
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->DELETE:Lcom/ea/nimble/IHttpRequest$Method;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x5
aput v2, v0, v1
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
:catch_4
return-void
.end method

View File

@@ -0,0 +1,249 @@
.class public final enum Lcom/ea/nimble/IHttpRequest$Method;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/IHttpRequest;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Method"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/IHttpRequest$Method;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/IHttpRequest$Method;
.field public static final enum DELETE:Lcom/ea/nimble/IHttpRequest$Method;
.field public static final enum GET:Lcom/ea/nimble/IHttpRequest$Method;
.field public static final enum HEAD:Lcom/ea/nimble/IHttpRequest$Method;
.field public static final enum POST:Lcom/ea/nimble/IHttpRequest$Method;
.field public static final enum PUT:Lcom/ea/nimble/IHttpRequest$Method;
.field public static final enum UNRECOGNIZED:Lcom/ea/nimble/IHttpRequest$Method;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/IHttpRequest$Method;
.locals 6
sget-object v0, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->HEAD:Lcom/ea/nimble/IHttpRequest$Method;
sget-object v2, Lcom/ea/nimble/IHttpRequest$Method;->POST:Lcom/ea/nimble/IHttpRequest$Method;
sget-object v3, Lcom/ea/nimble/IHttpRequest$Method;->PUT:Lcom/ea/nimble/IHttpRequest$Method;
sget-object v4, Lcom/ea/nimble/IHttpRequest$Method;->DELETE:Lcom/ea/nimble/IHttpRequest$Method;
sget-object v5, Lcom/ea/nimble/IHttpRequest$Method;->UNRECOGNIZED:Lcom/ea/nimble/IHttpRequest$Method;
filled-new-array/range {v0 .. v5}, [Lcom/ea/nimble/IHttpRequest$Method;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 11
new-instance v0, Lcom/ea/nimble/IHttpRequest$Method;
const-string v1, "GET"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/IHttpRequest$Method;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
.line 12
new-instance v0, Lcom/ea/nimble/IHttpRequest$Method;
const-string v1, "HEAD"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/IHttpRequest$Method;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/IHttpRequest$Method;->HEAD:Lcom/ea/nimble/IHttpRequest$Method;
.line 13
new-instance v0, Lcom/ea/nimble/IHttpRequest$Method;
const-string v1, "POST"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/IHttpRequest$Method;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/IHttpRequest$Method;->POST:Lcom/ea/nimble/IHttpRequest$Method;
.line 14
new-instance v0, Lcom/ea/nimble/IHttpRequest$Method;
const-string v1, "PUT"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/IHttpRequest$Method;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/IHttpRequest$Method;->PUT:Lcom/ea/nimble/IHttpRequest$Method;
.line 15
new-instance v0, Lcom/ea/nimble/IHttpRequest$Method;
const-string v1, "DELETE"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/IHttpRequest$Method;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/IHttpRequest$Method;->DELETE:Lcom/ea/nimble/IHttpRequest$Method;
.line 16
new-instance v0, Lcom/ea/nimble/IHttpRequest$Method;
const-string v1, "UNRECOGNIZED"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/IHttpRequest$Method;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/IHttpRequest$Method;->UNRECOGNIZED:Lcom/ea/nimble/IHttpRequest$Method;
.line 9
invoke-static {}, Lcom/ea/nimble/IHttpRequest$Method;->$values()[Lcom/ea/nimble/IHttpRequest$Method;
move-result-object v0
sput-object v0, Lcom/ea/nimble/IHttpRequest$Method;->$VALUES:[Lcom/ea/nimble/IHttpRequest$Method;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 9
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/IHttpRequest$Method;
.locals 1
const-class v0, Lcom/ea/nimble/IHttpRequest$Method;
.line 9
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/IHttpRequest$Method;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/IHttpRequest$Method;
.locals 1
sget-object v0, Lcom/ea/nimble/IHttpRequest$Method;->$VALUES:[Lcom/ea/nimble/IHttpRequest$Method;
.line 9
invoke-virtual {v0}, [Lcom/ea/nimble/IHttpRequest$Method;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/IHttpRequest$Method;
return-object v0
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 2
.line 21
sget-object v0, Lcom/ea/nimble/IHttpRequest$1;->$SwitchMap$com$ea$nimble$IHttpRequest$Method:[I
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result v1
aget v0, v0, v1
const/4 v1, 0x1
if-eq v0, v1, :cond_4
const/4 v1, 0x2
if-eq v0, v1, :cond_3
const/4 v1, 0x3
if-eq v0, v1, :cond_2
const/4 v1, 0x4
if-eq v0, v1, :cond_1
const/4 v1, 0x5
if-eq v0, v1, :cond_0
const/4 v0, 0x0
return-object v0
:cond_0
const-string v0, "DELETE"
return-object v0
:cond_1
const-string v0, "PUT"
return-object v0
:cond_2
const-string v0, "POST"
return-object v0
:cond_3
const-string v0, "HEAD"
return-object v0
:cond_4
const-string v0, "GET"
return-object v0
.end method

View File

@@ -0,0 +1,43 @@
.class public interface abstract Lcom/ea/nimble/IHttpRequest;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/IHttpRequest$Method;
}
.end annotation
# virtual methods
.method public abstract getData()[B
.end method
.method public abstract getHeaders()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end method
.method public abstract getMethod()Lcom/ea/nimble/IHttpRequest$Method;
.end method
.method public abstract getRunInBackground()Z
.end method
.method public abstract getTargetFilePath()Ljava/lang/String;
.end method
.method public abstract getTimeout()D
.end method
.method public abstract getUrl()Ljava/net/URL;
.end method

View File

@@ -0,0 +1,41 @@
.class public interface abstract Lcom/ea/nimble/IHttpResponse;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getDataStream()Ljava/io/InputStream;
.end method
.method public abstract getDownloadedContentLength()J
.end method
.method public abstract getError()Ljava/lang/Exception;
.end method
.method public abstract getExpectedContentLength()J
.end method
.method public abstract getHeaders()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end method
.method public abstract getLastModified()Ljava/util/Date;
.end method
.method public abstract getStatusCode()I
.end method
.method public abstract getUrl()Ljava/net/URL;
.end method
.method public abstract isCompleted()Z
.end method

View File

@@ -0,0 +1,19 @@
.class public interface abstract Lcom/ea/nimble/ILog$LogCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/ILog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "LogCallback"
.end annotation
# virtual methods
.method public abstract callback(ILjava/lang/String;Ljava/lang/String;)V
.end method

View File

@@ -0,0 +1,31 @@
.class public interface abstract Lcom/ea/nimble/ILog;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/ILog$LogCallback;
}
.end annotation
# virtual methods
.method public abstract getLogFilePath()Ljava/lang/String;
.end method
.method public abstract getThresholdLevel()I
.end method
.method public abstract setLogCallback(Lcom/ea/nimble/ILog$LogCallback;)V
.end method
.method public abstract setThresholdLevel(I)V
.end method
.method public varargs abstract writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.end method
.method public varargs abstract writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.end method

View File

@@ -0,0 +1,68 @@
.class public interface abstract Lcom/ea/nimble/INetwork;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract forceRedetectNetworkStatus()V
.end method
.method public abstract getStatus()Lcom/ea/nimble/Network$Status;
.end method
.method public abstract isNetworkWifi()Z
.end method
.method public abstract sendDeleteRequest(Ljava/net/URL;Ljava/util/HashMap;Lcom/ea/nimble/NetworkConnectionCallback;)Lcom/ea/nimble/NetworkConnectionHandle;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/net/URL;",
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Lcom/ea/nimble/NetworkConnectionCallback;",
")",
"Lcom/ea/nimble/NetworkConnectionHandle;"
}
.end annotation
.end method
.method public abstract sendGetRequest(Ljava/net/URL;Ljava/util/HashMap;Lcom/ea/nimble/NetworkConnectionCallback;)Lcom/ea/nimble/NetworkConnectionHandle;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/net/URL;",
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Lcom/ea/nimble/NetworkConnectionCallback;",
")",
"Lcom/ea/nimble/NetworkConnectionHandle;"
}
.end annotation
.end method
.method public abstract sendPostRequest(Ljava/net/URL;Ljava/util/HashMap;[BLcom/ea/nimble/NetworkConnectionCallback;)Lcom/ea/nimble/NetworkConnectionHandle;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/net/URL;",
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;[B",
"Lcom/ea/nimble/NetworkConnectionCallback;",
")",
"Lcom/ea/nimble/NetworkConnectionHandle;"
}
.end annotation
.end method
.method public abstract sendRequest(Lcom/ea/nimble/HttpRequest;Lcom/ea/nimble/NetworkConnectionCallback;)Lcom/ea/nimble/NetworkConnectionHandle;
.end method
.method public abstract sendRequest(Lcom/ea/nimble/HttpRequest;Lcom/ea/nimble/NetworkConnectionCallback;Lcom/ea/nimble/IOperationalTelemetryDispatch;)Lcom/ea/nimble/NetworkConnectionHandle;
.end method

View File

@@ -0,0 +1,11 @@
.class public interface abstract Lcom/ea/nimble/INimbleBadgeProvider;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getBadgeCount()I
.end method
.method public abstract setBadgeCount(ILjava/lang/String;Ljava/lang/String;)Lcom/ea/nimble/Error;
.end method

View File

@@ -0,0 +1,11 @@
.class public interface abstract Lcom/ea/nimble/INimbleLocalNotificationCustomizer;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract customizeLocalNotification(Landroid/app/Notification$Builder;Landroid/os/Bundle;)V
.end method
.method public abstract customizeLocalNotification(Landroidx/core/app/NotificationCompat$Builder;Landroid/os/Bundle;)V
.end method

View File

@@ -0,0 +1,49 @@
.class public interface abstract Lcom/ea/nimble/INimbleLocalNotifications;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract cancelAllNotifications()V
.end method
.method public abstract cancelNotification(Ljava/lang/String;)V
.end method
.method public abstract getBadgeCount()I
.end method
.method public abstract isEnabled()Z
.end method
.method public abstract scheduleNotification(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;)Lcom/ea/nimble/Error;
.end method
.method public abstract scheduleNotification(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Map;)Lcom/ea/nimble/Error;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/util/Date;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Lcom/ea/nimble/Error;"
}
.end annotation
.end method
.method public abstract setBadgeCount(ILjava/lang/String;Ljava/lang/String;)Lcom/ea/nimble/Error;
.end method
.method public abstract setBadgeProvider(Lcom/ea/nimble/INimbleBadgeProvider;)V
.end method
.method public abstract setCustomizer(Lcom/ea/nimble/INimbleLocalNotificationCustomizer;)V
.end method
.method public abstract setEnabled(Z)V
.end method

View File

@@ -0,0 +1,37 @@
.class public interface abstract Lcom/ea/nimble/IOperationalTelemetryDispatch;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final EVENTTYPE_NETWORK_METRICS:Ljava/lang/String; = "com.ea.nimble.network"
.field public static final EVENTTYPE_TRACKING_SYNERGY_PAYLOADS:Ljava/lang/String; = "com.ea.nimble.trackingimpl.synergy"
.field public static final NIMBLE_DEFAULT_MAX_OT_EVENT_COUNT:I = 0x64
.field public static final NOTIFICATION_OT_EVENT_THRESHOLD_WARNING:Ljava/lang/String; = "nimble.notification.ot.eventthresholdwarning"
# virtual methods
.method public abstract getEvents(Ljava/lang/String;)Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Lcom/ea/nimble/OperationalTelemetryEvent;",
">;"
}
.end annotation
.end method
.method public abstract getMaxEventCount(Ljava/lang/String;)I
.end method
.method public abstract logEvent(Ljava/lang/String;Ljava/lang/String;)V
.end method
.method public abstract setMaxEventCount(Ljava/lang/String;I)V
.end method

View File

@@ -0,0 +1,20 @@
.class public interface abstract Lcom/ea/nimble/IPersistenceService;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract cleanPersistenceReference(Ljava/lang/String;Lcom/ea/nimble/Persistence$Storage;)V
.end method
.method public abstract getPersistence(Ljava/lang/String;Lcom/ea/nimble/Persistence$Storage;)Lcom/ea/nimble/Persistence;
.end method
.method public abstract migratePersistence(Ljava/lang/String;Lcom/ea/nimble/Persistence$Storage;Ljava/lang/String;Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;)V
.end method
.method public abstract removePersistence(Ljava/lang/String;Lcom/ea/nimble/Persistence$Storage;)V
.end method
.method public abstract wipeAllDataAndForceTerminate()V
.end method

View File

@@ -0,0 +1,72 @@
.class public interface abstract Lcom/ea/nimble/ISynergyEnvironment;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final NETWORK_CONNECTION_NONE:I = 0x1
.field public static final NETWORK_CONNECTION_UNKNOWN:I = 0x0
.field public static final NETWORK_CONNECTION_WIFI:I = 0x2
.field public static final NETWORK_CONNECTION_WIRELESS:I = 0x3
.field public static final SYNERGY_APP_VERSION_OK:I = 0x0
.field public static final SYNERGY_APP_VERSION_UPDATE_RECOMMENDED:I = 0x1
.field public static final SYNERGY_APP_VERSION_UPDATE_REQUIRED:I = 0x0
# virtual methods
.method public abstract checkAndInitiateSynergyEnvironmentUpdate()Lcom/ea/nimble/Error;
.end method
.method public abstract getEADeviceId()Ljava/lang/String;
.end method
.method public abstract getEAHardwareId()Ljava/lang/String;
.end method
.method public abstract getGosMdmAppKey()Ljava/lang/String;
.end method
.method public abstract getLatestAppVersionCheckResult()I
.end method
.method public abstract getNexusClientId()Ljava/lang/String;
.end method
.method public abstract getNexusClientSecret()Ljava/lang/String;
.end method
.method public abstract getProductId()Ljava/lang/String;
.end method
.method public abstract getSellId()Ljava/lang/String;
.end method
.method public abstract getServerUrlWithKey(Ljava/lang/String;)Ljava/lang/String;
.end method
.method public abstract getSynergyDirectorServerUrl(Lcom/ea/nimble/NimbleConfiguration;)Ljava/lang/String;
.end method
.method public abstract getSynergyId()Ljava/lang/String;
.end method
.method public abstract getTrackingPostInterval()I
.end method
.method public abstract isDataAvailable()Z
.end method
.method public abstract isFeatureDisabled(Ljava/lang/String;)Z
.end method
.method public abstract isUpdateInProgress()Z
.end method
.method public abstract setServerUrl(Ljava/lang/String;Ljava/lang/String;)Lcom/ea/nimble/Error;
.end method

View File

@@ -0,0 +1,17 @@
.class public interface abstract Lcom/ea/nimble/ISynergyIdManager;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getAnonymousSynergyId()Ljava/lang/String;
.end method
.method public abstract getSynergyId()Ljava/lang/String;
.end method
.method public abstract login(Ljava/lang/String;Ljava/lang/String;)Lcom/ea/nimble/SynergyIdManagerError;
.end method
.method public abstract logout(Ljava/lang/String;)Lcom/ea/nimble/SynergyIdManagerError;
.end method

View File

@@ -0,0 +1,64 @@
.class public interface abstract Lcom/ea/nimble/ISynergyNetwork;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract sendGetRequest(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)Lcom/ea/nimble/SynergyNetworkConnectionHandle;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Lcom/ea/nimble/SynergyNetworkConnectionCallback;",
")",
"Lcom/ea/nimble/SynergyNetworkConnectionHandle;"
}
.end annotation
.end method
.method public abstract sendPostRequest(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/ea/nimble/ISynergyRequest$IJsonData;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)Lcom/ea/nimble/SynergyNetworkConnectionHandle;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Lcom/ea/nimble/ISynergyRequest$IJsonData;",
"Lcom/ea/nimble/SynergyNetworkConnectionCallback;",
")",
"Lcom/ea/nimble/SynergyNetworkConnectionHandle;"
}
.end annotation
.end method
.method public abstract sendPostRequest(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/ea/nimble/ISynergyRequest$IJsonData;Lcom/ea/nimble/SynergyNetworkConnectionCallback;Ljava/util/Map;)Lcom/ea/nimble/SynergyNetworkConnectionHandle;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Lcom/ea/nimble/ISynergyRequest$IJsonData;",
"Lcom/ea/nimble/SynergyNetworkConnectionCallback;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Lcom/ea/nimble/SynergyNetworkConnectionHandle;"
}
.end annotation
.end method
.method public abstract sendRequest(Lcom/ea/nimble/SynergyRequest;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)V
.end method

View File

@@ -0,0 +1,22 @@
.class public interface abstract Lcom/ea/nimble/ISynergyRequest$IJsonData;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/ISynergyRequest;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "IJsonData"
.end annotation
# virtual methods
.method public abstract getData()Ljava/lang/Object;
.end method
.method public abstract size()I
.end method

View File

@@ -0,0 +1,37 @@
.class public interface abstract Lcom/ea/nimble/ISynergyRequest;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/ISynergyRequest$IJsonData;
}
.end annotation
# virtual methods
.method public abstract getApi()Ljava/lang/String;
.end method
.method public abstract getBaseUrl()Ljava/lang/String;
.end method
.method public abstract getHttpRequest()Lcom/ea/nimble/IHttpRequest;
.end method
.method public abstract getJsonData()Lcom/ea/nimble/ISynergyRequest$IJsonData;
.end method
.method public abstract getUrlParameters()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end method

View File

@@ -0,0 +1,26 @@
.class public interface abstract Lcom/ea/nimble/ISynergyResponse;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getError()Ljava/lang/Exception;
.end method
.method public abstract getHttpResponse()Lcom/ea/nimble/IHttpResponse;
.end method
.method public abstract getJsonData()Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end method
.method public abstract isCompleted()Z
.end method

View File

@@ -0,0 +1,392 @@
.class public Lcom/ea/nimble/Log$Helper;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/Log;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Helper"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 18
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static varargs LOG(ILjava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 85
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/4 v1, 0x0
invoke-interface {v0, p0, v1, p1, p2}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 28
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0xc8
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 59
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0xc8
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 43
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x1f4
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 74
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x1f4
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGF(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 48
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x258
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGFS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 79
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x258
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static LOGFUNC(Ljava/lang/Object;)V
.locals 4
.line 97
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
.line 98
invoke-interface {v0}, Lcom/ea/nimble/ILog;->getThresholdLevel()I
move-result v1
if-gtz v1, :cond_0
.line 100
invoke-static {}, Lcom/ea/nimble/Log$Helper;->getMethodString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
new-array v3, v2, [Ljava/lang/Object;
invoke-interface {v0, v2, p0, v1, v3}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
return-void
.end method
.method public static LOGFUNCS(Ljava/lang/String;)V
.locals 4
.line 115
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
.line 116
invoke-interface {v0}, Lcom/ea/nimble/ILog;->getThresholdLevel()I
move-result v1
if-gtz v1, :cond_0
.line 118
invoke-static {}, Lcom/ea/nimble/Log$Helper;->getMethodString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
new-array v3, v2, [Ljava/lang/Object;
invoke-interface {v0, v2, p0, v1, v3}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
return-void
.end method
.method public static varargs LOGI(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 33
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x12c
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 64
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x12c
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static LOGPUBLICFUNC(Ljava/lang/Object;)V
.locals 4
.line 106
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
.line 107
invoke-interface {v0}, Lcom/ea/nimble/ILog;->getThresholdLevel()I
move-result v1
const/16 v2, 0x64
if-gt v1, v2, :cond_0
.line 109
invoke-static {}, Lcom/ea/nimble/Log$Helper;->getMethodString()Ljava/lang/String;
move-result-object v1
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-interface {v0, v2, p0, v1, v3}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
return-void
.end method
.method public static LOGPUBLICFUNCS(Ljava/lang/String;)V
.locals 4
.line 124
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
.line 125
invoke-interface {v0}, Lcom/ea/nimble/ILog;->getThresholdLevel()I
move-result v1
const/16 v2, 0x64
if-gt v1, v2, :cond_0
.line 127
invoke-static {}, Lcom/ea/nimble/Log$Helper;->getMethodString()Ljava/lang/String;
move-result-object v1
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-interface {v0, v2, p0, v1, v3}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
return-void
.end method
.method public static varargs LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 23
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x64
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGVS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 54
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x64
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 38
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x190
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithSource(ILjava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 2
.line 69
invoke-static {}, Lcom/ea/nimble/Log;->getComponent()Lcom/ea/nimble/ILog;
move-result-object v0
const/16 v1, 0x190
invoke-interface {v0, v1, p0, p1, p2}, Lcom/ea/nimble/ILog;->writeWithTitle(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method private static getMethodString()Ljava/lang/String;
.locals 3
.line 91
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->getStackTrace()[Ljava/lang/StackTraceElement;
move-result-object v0
const/4 v1, 0x4
aget-object v0, v0, v1
.line 92
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/lang/StackTraceElement;->getMethodName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, " [Line "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StackTraceElement;->getLineNumber()I
move-result v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v0, "] called..."
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,87 @@
.class public Lcom/ea/nimble/Log;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/Log$Helper;
}
.end annotation
# static fields
.field public static final COMPONENT_ID:Ljava/lang/String; = "com.ea.nimble.NimbleLog"
.field public static final LEVEL_ALL:I = 0x0
.field public static final LEVEL_DEBUG:I = 0xc8
.field public static final LEVEL_ERROR:I = 0x1f4
.field public static final LEVEL_FATAL:I = 0x258
.field public static final LEVEL_INFO:I = 0x12c
.field public static final LEVEL_SILENT:I = 0x2bc
.field public static final LEVEL_VERBOSE:I = 0x64
.field public static final LEVEL_WARN:I = 0x190
.field private static s_instance:Lcom/ea/nimble/ILog;
# direct methods
.method public constructor <init>()V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static declared-synchronized getComponent()Lcom/ea/nimble/ILog;
.locals 2
const-class v0, Lcom/ea/nimble/Log;
monitor-enter v0
:try_start_0
sget-object v1, Lcom/ea/nimble/Log;->s_instance:Lcom/ea/nimble/ILog;
if-nez v1, :cond_0
.line 137
new-instance v1, Lcom/ea/nimble/LogImpl;
invoke-direct {v1}, Lcom/ea/nimble/LogImpl;-><init>()V
sput-object v1, Lcom/ea/nimble/Log;->s_instance:Lcom/ea/nimble/ILog;
goto :goto_0
:catchall_0
move-exception v1
goto :goto_1
:cond_0
:goto_0
sget-object v1, Lcom/ea/nimble/Log;->s_instance:Lcom/ea/nimble/ILog;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 139
monitor-exit v0
return-object v1
:goto_1
monitor-exit v0
throw v1
.end method

View File

@@ -0,0 +1,14 @@
.class synthetic Lcom/ea/nimble/LogImpl$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/LogImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation

View File

@@ -0,0 +1,92 @@
.class Lcom/ea/nimble/LogImpl$GuardTask;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/LogImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "GuardTask"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/LogImpl;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/LogImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/LogImpl$GuardTask;->this$0:Lcom/ea/nimble/LogImpl;
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/LogImpl;Lcom/ea/nimble/LogImpl$1;)V
.locals 0
.line 38
invoke-direct {p0, p1}, Lcom/ea/nimble/LogImpl$GuardTask;-><init>(Lcom/ea/nimble/LogImpl;)V
return-void
.end method
# virtual methods
.method public run()V
.locals 6
iget-object v0, p0, Lcom/ea/nimble/LogImpl$GuardTask;->this$0:Lcom/ea/nimble/LogImpl;
.line 43
invoke-static {v0}, Lcom/ea/nimble/LogImpl;->access$000(Lcom/ea/nimble/LogImpl;)Ljava/io/File;
move-result-object v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/LogImpl$GuardTask;->this$0:Lcom/ea/nimble/LogImpl;
invoke-static {v0}, Lcom/ea/nimble/LogImpl;->access$000(Lcom/ea/nimble/LogImpl;)Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->length()J
move-result-wide v0
iget-object v2, p0, Lcom/ea/nimble/LogImpl$GuardTask;->this$0:Lcom/ea/nimble/LogImpl;
invoke-static {v2}, Lcom/ea/nimble/LogImpl;->access$100(Lcom/ea/nimble/LogImpl;)I
move-result v2
int-to-long v2, v2
const-wide/16 v4, 0x400
mul-long/2addr v2, v4
cmp-long v0, v0, v2
if-lez v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/LogImpl$GuardTask;->this$0:Lcom/ea/nimble/LogImpl;
.line 45
invoke-static {v0}, Lcom/ea/nimble/LogImpl;->access$200(Lcom/ea/nimble/LogImpl;)V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,40 @@
.class Lcom/ea/nimble/LogImpl$LogRecord;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/LogImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "LogRecord"
.end annotation
# instance fields
.field public level:I
.field public message:Ljava/lang/String;
# direct methods
.method private constructor <init>()V
.locals 0
.line 50
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/LogImpl$1;)V
.locals 0
.line 50
invoke-direct {p0}, Lcom/ea/nimble/LogImpl$LogRecord;-><init>()V
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/ea/nimble/LogSource;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getLogSourceTitle()Ljava/lang/String;
.end method

View File

@@ -0,0 +1,83 @@
.class synthetic Lcom/ea/nimble/Network$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/Network;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$ea$nimble$Network$Status:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 26
invoke-static {}, Lcom/ea/nimble/Network$Status;->values()[Lcom/ea/nimble/Network$Status;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/ea/nimble/Network$1;->$SwitchMap$com$ea$nimble$Network$Status:[I
:try_start_0
sget-object v1, Lcom/ea/nimble/Network$Status;->NONE:Lcom/ea/nimble/Network$Status;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Lcom/ea/nimble/Network$1;->$SwitchMap$com$ea$nimble$Network$Status:[I
sget-object v1, Lcom/ea/nimble/Network$Status;->DEAD:Lcom/ea/nimble/Network$Status;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Lcom/ea/nimble/Network$1;->$SwitchMap$com$ea$nimble$Network$Status:[I
sget-object v1, Lcom/ea/nimble/Network$Status;->OK:Lcom/ea/nimble/Network$Status;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
return-void
.end method

View File

@@ -0,0 +1,201 @@
.class public final enum Lcom/ea/nimble/Network$Status;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/Network;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Status"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/Network$Status;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/Network$Status;
.field public static final enum DEAD:Lcom/ea/nimble/Network$Status;
.field public static final enum NONE:Lcom/ea/nimble/Network$Status;
.field public static final enum OK:Lcom/ea/nimble/Network$Status;
.field public static final enum UNKNOWN:Lcom/ea/nimble/Network$Status;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/Network$Status;
.locals 4
sget-object v0, Lcom/ea/nimble/Network$Status;->UNKNOWN:Lcom/ea/nimble/Network$Status;
sget-object v1, Lcom/ea/nimble/Network$Status;->NONE:Lcom/ea/nimble/Network$Status;
sget-object v2, Lcom/ea/nimble/Network$Status;->DEAD:Lcom/ea/nimble/Network$Status;
sget-object v3, Lcom/ea/nimble/Network$Status;->OK:Lcom/ea/nimble/Network$Status;
filled-new-array {v0, v1, v2, v3}, [Lcom/ea/nimble/Network$Status;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 18
new-instance v0, Lcom/ea/nimble/Network$Status;
const-string v1, "UNKNOWN"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/Network$Status;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/Network$Status;->UNKNOWN:Lcom/ea/nimble/Network$Status;
.line 19
new-instance v0, Lcom/ea/nimble/Network$Status;
const-string v1, "NONE"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/Network$Status;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/Network$Status;->NONE:Lcom/ea/nimble/Network$Status;
.line 20
new-instance v0, Lcom/ea/nimble/Network$Status;
const-string v1, "DEAD"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/Network$Status;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/Network$Status;->DEAD:Lcom/ea/nimble/Network$Status;
.line 21
new-instance v0, Lcom/ea/nimble/Network$Status;
const-string v1, "OK"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/Network$Status;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/Network$Status;->OK:Lcom/ea/nimble/Network$Status;
.line 16
invoke-static {}, Lcom/ea/nimble/Network$Status;->$values()[Lcom/ea/nimble/Network$Status;
move-result-object v0
sput-object v0, Lcom/ea/nimble/Network$Status;->$VALUES:[Lcom/ea/nimble/Network$Status;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 16
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/Network$Status;
.locals 1
const-class v0, Lcom/ea/nimble/Network$Status;
.line 16
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/Network$Status;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/Network$Status;
.locals 1
sget-object v0, Lcom/ea/nimble/Network$Status;->$VALUES:[Lcom/ea/nimble/Network$Status;
.line 16
invoke-virtual {v0}, [Lcom/ea/nimble/Network$Status;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/Network$Status;
return-object v0
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 2
.line 26
sget-object v0, Lcom/ea/nimble/Network$1;->$SwitchMap$com$ea$nimble$Network$Status:[I
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result v1
aget v0, v0, v1
const/4 v1, 0x1
if-eq v0, v1, :cond_2
const/4 v1, 0x2
if-eq v0, v1, :cond_1
const/4 v1, 0x3
if-eq v0, v1, :cond_0
const-string v0, "NET UNKNOWN"
return-object v0
:cond_0
const-string v0, "NET OK"
return-object v0
:cond_1
const-string v0, "NET DEAD"
return-object v0
:cond_2
const-string v0, "NET NONE"
return-object v0
.end method

View File

@@ -0,0 +1,463 @@
.class public Lcom/ea/nimble/Network;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/Network$Status;
}
.end annotation
# static fields
.field public static final COMPONENT_ID:Ljava/lang/String; = "com.ea.nimble.network"
# direct methods
.method public constructor <init>()V
.locals 0
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static generateParameterString(Ljava/util/Map;)Ljava/lang/String;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Ljava/lang/String;"
}
.end annotation
const-string v0, "UTF-8"
const-string v1, "NimbleNetwork"
.line 48
invoke-static {v1}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/4 v1, 0x0
if-nez p0, :cond_0
return-object v1
.line 54
:cond_0
invoke-interface {p0}, Ljava/util/Map;->size()I
move-result v2
if-nez v2, :cond_1
return-object v1
.line 60
:cond_1
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
const-string v2, ""
move-object v3, v2
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v4
const/4 v5, 0x0
if-eqz v4, :cond_4
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/util/Map$Entry;
.line 62
invoke-interface {v4}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/String;
.line 63
invoke-interface {v4}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
.line 64
invoke-virtual {v2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v7
const-string v8, "URL parameters map contains invalid key"
const-string v9, "Network"
if-eqz v7, :cond_2
new-array v4, v5, [Ljava/lang/Object;
.line 66
invoke-static {v9, v8, v4}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 72
:cond_2
:try_start_0
invoke-static {v6, v0}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_1
.line 80
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v7
const-string v8, "URL parameters map contains invalid value"
if-eqz v7, :cond_3
new-array v4, v5, [Ljava/lang/Object;
.line 82
invoke-static {v9, v8, v4}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 88
:cond_3
:try_start_1
invoke-static {v4, v0}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
:try_end_1
.catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_0
.line 96
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
.line 97
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "="
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
.line 98
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
.line 99
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "&"
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
goto :goto_0
:catch_0
new-array v4, v5, [Ljava/lang/Object;
.line 92
invoke-static {v9, v8, v4}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_0
:catch_1
new-array v4, v5, [Ljava/lang/Object;
.line 76
invoke-static {v9, v8, v4}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_0
.line 102
:cond_4
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result p0
if-nez p0, :cond_5
return-object v1
.line 107
:cond_5
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result p0
add-int/lit8 p0, p0, -0x1
invoke-virtual {v3, v5, p0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static generateURL(Ljava/lang/String;Ljava/util/Map;)Ljava/net/URL;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Ljava/net/URL;"
}
.end annotation
const-string v0, "NimbleNetwork"
.line 112
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const-string v0, ""
.line 113
invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
const-string v2, "Network"
if-eqz v0, :cond_0
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
const-string p1, "Base url is blank, return null"
.line 115
invoke-static {v2, p1, p0}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-object v1
.line 119
:cond_0
invoke-static {p1}, Lcom/ea/nimble/Network;->generateParameterString(Ljava/util/Map;)Ljava/lang/String;
move-result-object p1
if-nez p1, :cond_1
const-string p1, "Generated URL with only base url = %s"
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object v0
.line 123
invoke-static {v2, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGWS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 128
:cond_1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p0, "?"
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string p1, "Generated URL = %s"
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object v0
.line 129
invoke-static {v2, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGVS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 134
:goto_0
:try_start_0
new-instance p1, Ljava/net/URL;
invoke-direct {p1, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
const-string p1, "Malformed URL from %s"
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 138
invoke-static {v2, p1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-object v1
.end method
.method public static getComponent()Lcom/ea/nimble/INetwork;
.locals 1
const-string v0, "com.ea.nimble.network"
.line 42
invoke-static {v0}, Lcom/ea/nimble/Base;->getComponent(Ljava/lang/String;)Lcom/ea/nimble/Component;
move-result-object v0
check-cast v0, Lcom/ea/nimble/INetwork;
return-object v0
.end method
.method public static getHttpProxy()Ljava/lang/String;
.locals 3
const-string v0, "NimbleNetwork"
.line 145
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
:try_start_0
const-string v0, "http.proxyHost"
.line 148
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_1
const-string v1, "http.proxyPort"
.line 151
invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_0
.line 154
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, ":"
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
goto :goto_1
:cond_0
:goto_0
return-object v0
.line 161
:goto_1
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "Network"
const-string v2, "Unable to get system proxy settings. %s"
invoke-static {v1, v2, v0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_1
const/4 v0, 0x0
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/ea/nimble/NetworkConnectionCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract callback(Lcom/ea/nimble/NetworkConnectionHandle;)V
.end method

View File

@@ -0,0 +1,35 @@
.class public interface abstract Lcom/ea/nimble/NetworkConnectionHandle;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract cancel()V
.end method
.method public abstract getCompletionCallback()Lcom/ea/nimble/NetworkConnectionCallback;
.end method
.method public abstract getHeaderCallback()Lcom/ea/nimble/NetworkConnectionCallback;
.end method
.method public abstract getProgressCallback()Lcom/ea/nimble/NetworkConnectionCallback;
.end method
.method public abstract getRequest()Lcom/ea/nimble/IHttpRequest;
.end method
.method public abstract getResponse()Lcom/ea/nimble/IHttpResponse;
.end method
.method public abstract setCompletionCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
.end method
.method public abstract setHeaderCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
.end method
.method public abstract setProgressCallback(Lcom/ea/nimble/NetworkConnectionCallback;)V
.end method
.method public abstract waitOn()V
.end method

View File

@@ -0,0 +1,36 @@
.class public final synthetic Lcom/ea/nimble/NetworkImpl$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/NetworkConnectionCallback;
# instance fields
.field public final synthetic f$0:Lcom/ea/nimble/NetworkImpl;
# direct methods
.method public synthetic constructor <init>(Lcom/ea/nimble/NetworkImpl;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/ea/nimble/NetworkImpl$$ExternalSyntheticLambda0;->f$0:Lcom/ea/nimble/NetworkImpl;
return-void
.end method
# virtual methods
.method public final callback(Lcom/ea/nimble/NetworkConnectionHandle;)V
.locals 1
.line 0
iget-object v0, p0, Lcom/ea/nimble/NetworkImpl$$ExternalSyntheticLambda0;->f$0:Lcom/ea/nimble/NetworkImpl;
invoke-static {v0, p1}, Lcom/ea/nimble/NetworkImpl;->$r8$lambda$koEGOnqclMdY97rgov36m5ZzvPQ(Lcom/ea/nimble/NetworkImpl;Lcom/ea/nimble/NetworkConnectionHandle;)V
return-void
.end method

View File

@@ -0,0 +1,99 @@
.class synthetic Lcom/ea/nimble/NetworkImpl$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/NetworkImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$ea$nimble$NetworkImpl$DetectionState:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 618
invoke-static {}, Lcom/ea/nimble/NetworkImpl$DetectionState;->values()[Lcom/ea/nimble/NetworkImpl$DetectionState;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/ea/nimble/NetworkImpl$1;->$SwitchMap$com$ea$nimble$NetworkImpl$DetectionState:[I
:try_start_0
sget-object v1, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_REACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Lcom/ea/nimble/NetworkImpl$1;->$SwitchMap$com$ea$nimble$NetworkImpl$DetectionState:[I
sget-object v1, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_UNREACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Lcom/ea/nimble/NetworkImpl$1;->$SwitchMap$com$ea$nimble$NetworkImpl$DetectionState:[I
sget-object v1, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_REACHABLE_BACKUP:Lcom/ea/nimble/NetworkImpl$DetectionState;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
:try_start_3
sget-object v0, Lcom/ea/nimble/NetworkImpl$1;->$SwitchMap$com$ea$nimble$NetworkImpl$DetectionState:[I
sget-object v1, Lcom/ea/nimble/NetworkImpl$DetectionState;->PING:Lcom/ea/nimble/NetworkImpl$DetectionState;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x4
aput v2, v0, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
return-void
.end method

View File

@@ -0,0 +1,82 @@
.class Lcom/ea/nimble/NetworkImpl$ConnectivityReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/NetworkImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "ConnectivityReceiver"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/NetworkImpl;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/NetworkImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/NetworkImpl$ConnectivityReceiver;->this$0:Lcom/ea/nimble/NetworkImpl;
.line 59
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/NetworkImpl;Lcom/ea/nimble/NetworkImpl$1;)V
.locals 0
.line 59
invoke-direct {p0, p1}, Lcom/ea/nimble/NetworkImpl$ConnectivityReceiver;-><init>(Lcom/ea/nimble/NetworkImpl;)V
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 1
const-string p1, "Network reachability changed!"
const/4 p2, 0x0
new-array p2, p2, [Ljava/lang/Object;
.line 64
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/nimble/NetworkImpl$ConnectivityReceiver;->this$0:Lcom/ea/nimble/NetworkImpl;
.line 65
monitor-enter p1
:try_start_0
iget-object p2, p0, Lcom/ea/nimble/NetworkImpl$ConnectivityReceiver;->this$0:Lcom/ea/nimble/NetworkImpl;
const/4 v0, 0x1
.line 68
invoke-static {p2, v0}, Lcom/ea/nimble/NetworkImpl;->access$000(Lcom/ea/nimble/NetworkImpl;Z)V
.line 69
monitor-exit p1
return-void
:catchall_0
move-exception p2
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p2
.end method

View File

@@ -0,0 +1,170 @@
.class final enum Lcom/ea/nimble/NetworkImpl$DetectionState;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/NetworkImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "DetectionState"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/NetworkImpl$DetectionState;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/NetworkImpl$DetectionState;
.field public static final enum NONE:Lcom/ea/nimble/NetworkImpl$DetectionState;
.field public static final enum PING:Lcom/ea/nimble/NetworkImpl$DetectionState;
.field public static final enum VERIFY_REACHABLE_BACKUP:Lcom/ea/nimble/NetworkImpl$DetectionState;
.field public static final enum VERIFY_REACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
.field public static final enum VERIFY_UNREACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/NetworkImpl$DetectionState;
.locals 5
sget-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->NONE:Lcom/ea/nimble/NetworkImpl$DetectionState;
sget-object v1, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_REACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
sget-object v2, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_UNREACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
sget-object v3, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_REACHABLE_BACKUP:Lcom/ea/nimble/NetworkImpl$DetectionState;
sget-object v4, Lcom/ea/nimble/NetworkImpl$DetectionState;->PING:Lcom/ea/nimble/NetworkImpl$DetectionState;
filled-new-array {v0, v1, v2, v3, v4}, [Lcom/ea/nimble/NetworkImpl$DetectionState;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 52
new-instance v0, Lcom/ea/nimble/NetworkImpl$DetectionState;
const-string v1, "NONE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NetworkImpl$DetectionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->NONE:Lcom/ea/nimble/NetworkImpl$DetectionState;
.line 53
new-instance v0, Lcom/ea/nimble/NetworkImpl$DetectionState;
const-string v1, "VERIFY_REACHABLE_MAIN"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NetworkImpl$DetectionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_REACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
.line 54
new-instance v0, Lcom/ea/nimble/NetworkImpl$DetectionState;
const-string v1, "VERIFY_UNREACHABLE_MAIN"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NetworkImpl$DetectionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_UNREACHABLE_MAIN:Lcom/ea/nimble/NetworkImpl$DetectionState;
.line 55
new-instance v0, Lcom/ea/nimble/NetworkImpl$DetectionState;
const-string v1, "VERIFY_REACHABLE_BACKUP"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NetworkImpl$DetectionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->VERIFY_REACHABLE_BACKUP:Lcom/ea/nimble/NetworkImpl$DetectionState;
.line 56
new-instance v0, Lcom/ea/nimble/NetworkImpl$DetectionState;
const-string v1, "PING"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NetworkImpl$DetectionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->PING:Lcom/ea/nimble/NetworkImpl$DetectionState;
.line 50
invoke-static {}, Lcom/ea/nimble/NetworkImpl$DetectionState;->$values()[Lcom/ea/nimble/NetworkImpl$DetectionState;
move-result-object v0
sput-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->$VALUES:[Lcom/ea/nimble/NetworkImpl$DetectionState;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 50
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/NetworkImpl$DetectionState;
.locals 1
const-class v0, Lcom/ea/nimble/NetworkImpl$DetectionState;
.line 50
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/NetworkImpl$DetectionState;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/NetworkImpl$DetectionState;
.locals 1
sget-object v0, Lcom/ea/nimble/NetworkImpl$DetectionState;->$VALUES:[Lcom/ea/nimble/NetworkImpl$DetectionState;
.line 50
invoke-virtual {v0}, [Lcom/ea/nimble/NetworkImpl$DetectionState;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/NetworkImpl$DetectionState;
return-object v0
.end method

View File

@@ -0,0 +1,132 @@
.class Lcom/ea/nimble/NetworkImpl$NetworkCallback;
.super Landroid/net/ConnectivityManager$NetworkCallback;
.source "SourceFile"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x1c
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/NetworkImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "NetworkCallback"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/NetworkImpl;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/NetworkImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/NetworkImpl$NetworkCallback;->this$0:Lcom/ea/nimble/NetworkImpl;
.line 74
invoke-direct {p0}, Landroid/net/ConnectivityManager$NetworkCallback;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/NetworkImpl;Lcom/ea/nimble/NetworkImpl$1;)V
.locals 0
.line 74
invoke-direct {p0, p1}, Lcom/ea/nimble/NetworkImpl$NetworkCallback;-><init>(Lcom/ea/nimble/NetworkImpl;)V
return-void
.end method
# virtual methods
.method public onAvailable(Landroid/net/Network;)V
.locals 2
const-string v0, "Network reachability changed!"
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
.line 79
invoke-static {p0, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 80
invoke-super {p0, p1}, Landroid/net/ConnectivityManager$NetworkCallback;->onAvailable(Landroid/net/Network;)V
iget-object p1, p0, Lcom/ea/nimble/NetworkImpl$NetworkCallback;->this$0:Lcom/ea/nimble/NetworkImpl;
.line 81
monitor-enter p1
:try_start_0
iget-object v0, p0, Lcom/ea/nimble/NetworkImpl$NetworkCallback;->this$0:Lcom/ea/nimble/NetworkImpl;
const/4 v1, 0x1
.line 84
invoke-static {v0, v1}, Lcom/ea/nimble/NetworkImpl;->access$000(Lcom/ea/nimble/NetworkImpl;Z)V
.line 85
monitor-exit p1
return-void
:catchall_0
move-exception v0
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public onLost(Landroid/net/Network;)V
.locals 2
const-string v0, "Network reachability changed!"
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
.line 91
invoke-static {p0, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 92
invoke-super {p0, p1}, Landroid/net/ConnectivityManager$NetworkCallback;->onLost(Landroid/net/Network;)V
iget-object p1, p0, Lcom/ea/nimble/NetworkImpl$NetworkCallback;->this$0:Lcom/ea/nimble/NetworkImpl;
.line 93
monitor-enter p1
:try_start_0
iget-object v0, p0, Lcom/ea/nimble/NetworkImpl$NetworkCallback;->this$0:Lcom/ea/nimble/NetworkImpl;
const/4 v1, 0x1
.line 96
invoke-static {v0, v1}, Lcom/ea/nimble/NetworkImpl;->access$000(Lcom/ea/nimble/NetworkImpl;Z)V
.line 97
monitor-exit p1
return-void
:catchall_0
move-exception v0
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method

View File

@@ -0,0 +1,85 @@
.class Lcom/ea/nimble/NetworkImpl$TimerTask;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/NetworkImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "TimerTask"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/NetworkImpl;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/NetworkImpl;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/NetworkImpl$TimerTask;->this$0:Lcom/ea/nimble/NetworkImpl;
.line 532
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/NetworkImpl;Lcom/ea/nimble/NetworkImpl$1;)V
.locals 0
.line 532
invoke-direct {p0, p1}, Lcom/ea/nimble/NetworkImpl$TimerTask;-><init>(Lcom/ea/nimble/NetworkImpl;)V
return-void
.end method
# virtual methods
.method public run()V
.locals 5
iget-object v0, p0, Lcom/ea/nimble/NetworkImpl$TimerTask;->this$0:Lcom/ea/nimble/NetworkImpl;
.line 537
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/ea/nimble/NetworkImpl$TimerTask;->this$0:Lcom/ea/nimble/NetworkImpl;
const/4 v2, 0x0
.line 539
invoke-static {v1, v2}, Lcom/ea/nimble/NetworkImpl;->access$402(Lcom/ea/nimble/NetworkImpl;Lcom/ea/nimble/Timer;)Lcom/ea/nimble/Timer;
iget-object v1, p0, Lcom/ea/nimble/NetworkImpl$TimerTask;->this$0:Lcom/ea/nimble/NetworkImpl;
const-string v2, "https://ping1.tnt-ea.com"
const-wide/high16 v3, 0x403e000000000000L # 30.0
.line 540
invoke-static {v1, v2, v3, v4}, Lcom/ea/nimble/NetworkImpl;->access$500(Lcom/ea/nimble/NetworkImpl;Ljava/lang/String;D)V
.line 541
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,293 @@
.class public Lcom/ea/nimble/NimbleApplicationConfiguration;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final LOG_TITLE:Ljava/lang/String; = "AppConfig"
# direct methods
.method public constructor <init>()V
.locals 0
.line 10
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static configValueExists(Ljava/lang/String;)Z
.locals 1
const-string v0, "AppConfig"
.line 16
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/16 v0, 0x80
.line 17
invoke-static {v0}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
move-result-object v0
if-eqz v0, :cond_0
.line 18
iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz v0, :cond_0
.line 20
invoke-virtual {v0, p0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
move-result p0
return p0
:cond_0
const/4 p0, 0x0
return p0
.end method
.method public static getConfigValueAsBoolean(Ljava/lang/String;)Z
.locals 1
const-string v0, "AppConfig"
.line 93
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/4 v0, 0x0
.line 94
invoke-static {p0, v0}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsBoolean(Ljava/lang/String;Z)Z
move-result p0
return p0
.end method
.method public static getConfigValueAsBoolean(Ljava/lang/String;Z)Z
.locals 2
const-string v0, "AppConfig"
.line 99
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/16 v1, 0x80
.line 100
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
move-result-object v1
if-eqz v1, :cond_0
.line 101
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz v1, :cond_0
.line 103
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;)Z
move-result p0
return p0
:cond_0
const-string v1, "Config value of key \'%s\' cannot be retrieved."
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 107
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return p1
.end method
.method public static getConfigValueAsDouble(Ljava/lang/String;)D
.locals 2
const-string v0, "AppConfig"
.line 71
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const-wide/16 v0, 0x0
.line 72
invoke-static {p0, v0, v1}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsDouble(Ljava/lang/String;D)D
move-result-wide v0
return-wide v0
.end method
.method public static getConfigValueAsDouble(Ljava/lang/String;D)D
.locals 2
const-string v0, "AppConfig"
.line 77
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/16 v1, 0x80
.line 78
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
move-result-object v1
if-eqz v1, :cond_0
.line 79
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz v1, :cond_0
.line 81
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getDouble(Ljava/lang/String;)D
move-result-wide p0
return-wide p0
:cond_0
const-string v1, "Config value of key \'%s\' cannot be retrieved."
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 85
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-wide p1
.end method
.method public static getConfigValueAsInt(Ljava/lang/String;)I
.locals 1
const-string v0, "AppConfig"
.line 49
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/4 v0, 0x0
.line 50
invoke-static {p0, v0}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsInt(Ljava/lang/String;I)I
move-result p0
return p0
.end method
.method public static getConfigValueAsInt(Ljava/lang/String;I)I
.locals 2
const-string v0, "AppConfig"
.line 55
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/16 v1, 0x80
.line 56
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
move-result-object v1
if-eqz v1, :cond_0
.line 57
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz v1, :cond_0
.line 59
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
move-result p0
return p0
:cond_0
const-string v1, "Config value of key \'%s\' cannot be retrieved."
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 63
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return p1
.end method
.method public static getConfigValueAsString(Ljava/lang/String;)Ljava/lang/String;
.locals 1
const-string v0, "AppConfig"
.line 27
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const-string v0, ""
.line 28
invoke-static {p0, v0}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getConfigValueAsString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 2
const-string v0, "AppConfig"
.line 33
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const/16 v1, 0x80
.line 34
invoke-static {v1}, Lcom/ea/nimble/Utility;->getApplicationInfo(I)Landroid/content/pm/ApplicationInfo;
move-result-object v1
if-eqz v1, :cond_0
.line 35
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
if-eqz v1, :cond_0
.line 37
invoke-virtual {v1, p0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_0
const-string v1, "Config value of key \'%s\' cannot be retrieved."
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 41
invoke-static {v0, v1, p0}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
return-object p1
.end method

View File

@@ -0,0 +1,115 @@
.class synthetic Lcom/ea/nimble/NimbleConfiguration$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/NimbleConfiguration;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$ea$nimble$NimbleConfiguration:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 47
invoke-static {}, Lcom/ea/nimble/NimbleConfiguration;->values()[Lcom/ea/nimble/NimbleConfiguration;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/ea/nimble/NimbleConfiguration$1;->$SwitchMap$com$ea$nimble$NimbleConfiguration:[I
:try_start_0
sget-object v1, Lcom/ea/nimble/NimbleConfiguration;->INTEGRATION:Lcom/ea/nimble/NimbleConfiguration;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Lcom/ea/nimble/NimbleConfiguration$1;->$SwitchMap$com$ea$nimble$NimbleConfiguration:[I
sget-object v1, Lcom/ea/nimble/NimbleConfiguration;->STAGE:Lcom/ea/nimble/NimbleConfiguration;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Lcom/ea/nimble/NimbleConfiguration$1;->$SwitchMap$com$ea$nimble$NimbleConfiguration:[I
sget-object v1, Lcom/ea/nimble/NimbleConfiguration;->LIVE:Lcom/ea/nimble/NimbleConfiguration;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
:try_start_3
sget-object v0, Lcom/ea/nimble/NimbleConfiguration$1;->$SwitchMap$com$ea$nimble$NimbleConfiguration:[I
sget-object v1, Lcom/ea/nimble/NimbleConfiguration;->CUSTOMIZED:Lcom/ea/nimble/NimbleConfiguration;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x4
aput v2, v0, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
:try_start_4
sget-object v0, Lcom/ea/nimble/NimbleConfiguration$1;->$SwitchMap$com$ea$nimble$NimbleConfiguration:[I
sget-object v1, Lcom/ea/nimble/NimbleConfiguration;->MANUAL:Lcom/ea/nimble/NimbleConfiguration;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x5
aput v2, v0, v1
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
:catch_4
return-void
.end method

View File

@@ -0,0 +1,319 @@
.class public final enum Lcom/ea/nimble/NimbleConfiguration;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/NimbleConfiguration;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/NimbleConfiguration;
.field public static final enum CUSTOMIZED:Lcom/ea/nimble/NimbleConfiguration;
.field public static final enum INTEGRATION:Lcom/ea/nimble/NimbleConfiguration;
.field public static final enum LIVE:Lcom/ea/nimble/NimbleConfiguration;
.field public static final enum MANUAL:Lcom/ea/nimble/NimbleConfiguration;
.field public static final enum STAGE:Lcom/ea/nimble/NimbleConfiguration;
.field public static final enum UNKNOWN:Lcom/ea/nimble/NimbleConfiguration;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/NimbleConfiguration;
.locals 6
sget-object v0, Lcom/ea/nimble/NimbleConfiguration;->UNKNOWN:Lcom/ea/nimble/NimbleConfiguration;
sget-object v1, Lcom/ea/nimble/NimbleConfiguration;->INTEGRATION:Lcom/ea/nimble/NimbleConfiguration;
sget-object v2, Lcom/ea/nimble/NimbleConfiguration;->STAGE:Lcom/ea/nimble/NimbleConfiguration;
sget-object v3, Lcom/ea/nimble/NimbleConfiguration;->LIVE:Lcom/ea/nimble/NimbleConfiguration;
sget-object v4, Lcom/ea/nimble/NimbleConfiguration;->CUSTOMIZED:Lcom/ea/nimble/NimbleConfiguration;
sget-object v5, Lcom/ea/nimble/NimbleConfiguration;->MANUAL:Lcom/ea/nimble/NimbleConfiguration;
filled-new-array/range {v0 .. v5}, [Lcom/ea/nimble/NimbleConfiguration;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 7
new-instance v0, Lcom/ea/nimble/NimbleConfiguration;
const-string v1, "UNKNOWN"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NimbleConfiguration;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NimbleConfiguration;->UNKNOWN:Lcom/ea/nimble/NimbleConfiguration;
.line 8
new-instance v0, Lcom/ea/nimble/NimbleConfiguration;
const-string v1, "INTEGRATION"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NimbleConfiguration;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NimbleConfiguration;->INTEGRATION:Lcom/ea/nimble/NimbleConfiguration;
new-instance v0, Lcom/ea/nimble/NimbleConfiguration;
const-string v1, "STAGE"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NimbleConfiguration;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NimbleConfiguration;->STAGE:Lcom/ea/nimble/NimbleConfiguration;
new-instance v0, Lcom/ea/nimble/NimbleConfiguration;
const-string v1, "LIVE"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NimbleConfiguration;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NimbleConfiguration;->LIVE:Lcom/ea/nimble/NimbleConfiguration;
new-instance v0, Lcom/ea/nimble/NimbleConfiguration;
const-string v1, "CUSTOMIZED"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NimbleConfiguration;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NimbleConfiguration;->CUSTOMIZED:Lcom/ea/nimble/NimbleConfiguration;
new-instance v0, Lcom/ea/nimble/NimbleConfiguration;
const-string v1, "MANUAL"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/NimbleConfiguration;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/NimbleConfiguration;->MANUAL:Lcom/ea/nimble/NimbleConfiguration;
.line 5
invoke-static {}, Lcom/ea/nimble/NimbleConfiguration;->$values()[Lcom/ea/nimble/NimbleConfiguration;
move-result-object v0
sput-object v0, Lcom/ea/nimble/NimbleConfiguration;->$VALUES:[Lcom/ea/nimble/NimbleConfiguration;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 5
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static fromName(Ljava/lang/String;)Lcom/ea/nimble/NimbleConfiguration;
.locals 1
const-string v0, "AppConfig"
.line 12
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNCS(Ljava/lang/String;)V
const-string v0, "int"
.line 13
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
sget-object p0, Lcom/ea/nimble/NimbleConfiguration;->INTEGRATION:Lcom/ea/nimble/NimbleConfiguration;
return-object p0
:cond_0
const-string v0, "stage"
.line 17
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
sget-object p0, Lcom/ea/nimble/NimbleConfiguration;->STAGE:Lcom/ea/nimble/NimbleConfiguration;
return-object p0
:cond_1
const-string v0, "live"
.line 21
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
sget-object p0, Lcom/ea/nimble/NimbleConfiguration;->LIVE:Lcom/ea/nimble/NimbleConfiguration;
return-object p0
:cond_2
const-string v0, "custom"
.line 25
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_3
sget-object p0, Lcom/ea/nimble/NimbleConfiguration;->CUSTOMIZED:Lcom/ea/nimble/NimbleConfiguration;
return-object p0
:cond_3
const-string v0, "manual"
.line 29
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_4
sget-object p0, Lcom/ea/nimble/NimbleConfiguration;->MANUAL:Lcom/ea/nimble/NimbleConfiguration;
return-object p0
:cond_4
sget-object p0, Lcom/ea/nimble/NimbleConfiguration;->UNKNOWN:Lcom/ea/nimble/NimbleConfiguration;
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/NimbleConfiguration;
.locals 1
const-class v0, Lcom/ea/nimble/NimbleConfiguration;
.line 5
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/NimbleConfiguration;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/NimbleConfiguration;
.locals 1
sget-object v0, Lcom/ea/nimble/NimbleConfiguration;->$VALUES:[Lcom/ea/nimble/NimbleConfiguration;
.line 5
invoke-virtual {v0}, [Lcom/ea/nimble/NimbleConfiguration;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/NimbleConfiguration;
return-object v0
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 2
.line 47
sget-object v0, Lcom/ea/nimble/NimbleConfiguration$1;->$SwitchMap$com$ea$nimble$NimbleConfiguration:[I
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result v1
aget v0, v0, v1
const/4 v1, 0x1
if-eq v0, v1, :cond_4
const/4 v1, 0x2
if-eq v0, v1, :cond_3
const/4 v1, 0x3
if-eq v0, v1, :cond_2
const/4 v1, 0x4
if-eq v0, v1, :cond_1
const/4 v1, 0x5
if-eq v0, v1, :cond_0
const-string v0, "unknown"
return-object v0
:cond_0
const-string v0, "manual"
return-object v0
:cond_1
const-string v0, "custom"
return-object v0
:cond_2
const-string v0, "live"
return-object v0
:cond_3
const-string v0, "stage"
return-object v0
:cond_4
const-string v0, "int"
return-object v0
.end method

View File

@@ -0,0 +1,393 @@
.class public Lcom/ea/nimble/NimbleLocalNotificationReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# static fields
.field public static final NIMBLE_LOCAL_NOTIFICATION_RECEIVED:Ljava/lang/String; = "nimble.notification.localNotificationReceived"
.field private static final NOTIFICATION_TRACKING2_LOG_EVENT:Ljava/lang/String; = "nimble.notification.tracking2.logEvent"
# direct methods
.method public constructor <init>()V
.locals 0
.line 22
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
# virtual methods
.method public getPushTargetActivity(Landroid/content/Context;)Ljava/lang/String;
.locals 2
.line 122
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
.line 123
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
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
.line 124
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
invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public handleNewLocalNotification(Landroid/content/Context;Landroid/os/Bundle;)V
.locals 6
const-string v0, "pushId"
const-string v1, ""
.line 38
invoke-virtual {p2, v0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "deepLinkUrl"
.line 42
invoke-virtual {p2, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
if-eqz v1, :cond_0
.line 45
new-instance v3, Landroid/content/Intent;
const-string v4, "android.intent.action.VIEW"
invoke-static {v1}, 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 46
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "[handleNewLocalNotification]: Local notification clicked with URL: "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
new-array v4, v2, [Ljava/lang/Object;
invoke-static {p0, v1, v4}, Lcom/ea/nimble/Log$Helper;->LOGI(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 50
:cond_0
invoke-virtual {p0, p1}, Lcom/ea/nimble/NimbleLocalNotificationReceiver;->getPushTargetActivity(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
.line 51
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "[handleNewLocalNotification]: Local notification received with target activity: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v1}, 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 {p0, v3, v4}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 54
:try_start_0
new-instance v3, Landroid/content/Intent;
invoke-static {v1}, 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 63
:goto_0
invoke-virtual {v3, p2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
const-string v1, "PushNotification"
const-string v4, "true"
.line 64
invoke-virtual {v3, v1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const/high16 v1, 0x24000000
.line 65
invoke-virtual {v3, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
const/high16 v1, 0x44000000 # 512.0f
.line 66
invoke-static {p1, v2, v3, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v1
.line 67
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->isMainApplicationActive()Z
move-result v3
if-eqz v3, :cond_1
.line 70
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
const-string v1, "en"
const-string v2, "message"
.line 71
invoke-virtual {p1, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 72
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
const-string v2, "core"
.line 73
invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V
const-string p1, "msg_id"
.line 74
invoke-virtual {v1, p1, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string p1, "type"
const-string v0, "pn"
.line 75
invoke-virtual {v1, p1, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string p1, "service"
const-string v2, "local"
.line 76
invoke-virtual {v1, p1, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string p1, "status"
const-string v2, "received"
.line 77
invoke-virtual {v1, p1, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string p1, "format"
.line 78
invoke-virtual {v1, p1, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 80
new-instance p1, Landroid/content/Intent;
invoke-direct {p1}, Landroid/content/Intent;-><init>()V
const-string v0, "nimble.notification.tracking2.logEvent"
.line 81
invoke-virtual {p1, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 82
invoke-virtual {p1, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
.line 83
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;
move-result-object v0
invoke-virtual {v0, p1}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->sendBroadcast(Landroid/content/Intent;)Z
const-string p1, "nimble.notification.localNotificationReceived"
.line 85
invoke-static {p1, p2}, Lcom/ea/nimble/Utility;->sendBroadcast(Ljava/lang/String;Landroid/os/Bundle;)V
goto :goto_2
:cond_1
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0x21
const-string v5, "notification"
if-lt v3, v4, :cond_2
const-class v3, Landroid/app/Notification;
.line 92
invoke-static {p2, v5, v3}, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder$$ExternalSyntheticApiModelOutline0;->m(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/app/Notification;
goto :goto_1
.line 97
:cond_2
invoke-virtual {p2, v5}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object p2
check-cast p2, Landroid/app/Notification;
:goto_1
if-eqz p2, :cond_4
if-eqz v1, :cond_3
.line 104
iput-object v1, p2, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;
.line 105
invoke-virtual {p1, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/app/NotificationManager;
.line 106
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v0
invoke-virtual {p1, v0, p2}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
goto :goto_2
:cond_3
const-string p1, "[handleNewLocalNotification]: Unable to create PendingIntent"
new-array p2, v2, [Ljava/lang/Object;
.line 110
invoke-static {p1, p2}, 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 {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_2
:cond_4
const-string p1, "[handleNewLocalNotification]: Unable to create Local Notification"
new-array p2, v2, [Ljava/lang/Object;
.line 115
invoke-static {p1, p2}, 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 {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_2
return-void
:catch_0
move-exception p1
.line 58
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
filled-new-array {v1, p1}, [Ljava/lang/Object;
move-result-object p1
const-string p2, "[handleNewLocalNotification]: Could not launch target activity: %s, exception: %s"
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 {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 0
.line 31
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p2
.line 33
invoke-virtual {p0, p1, p2}, Lcom/ea/nimble/NimbleLocalNotificationReceiver;->handleNewLocalNotification(Landroid/content/Context;Landroid/os/Bundle;)V
return-void
.end method

View File

@@ -0,0 +1,61 @@
.class public Lcom/ea/nimble/NimbleLocalNotifications;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final COMPONENT_ID:Ljava/lang/String; = "com.ea.nimble.base.localNotifications"
.field public static final DEEP_LINK_URL:Ljava/lang/String; = "deepLinkUrl"
.field static final KEY_NOTIFICATION_ID:Ljava/lang/String; = "pushId"
.field static final KEY_NOTIFICATION_PN_TYPE:Ljava/lang/String; = "pnType"
.field static final NOTIFICATION_TYPE_LOCAL:Ljava/lang/String; = "local"
# direct methods
.method public constructor <init>()V
.locals 0
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getComponent()Lcom/ea/nimble/INimbleLocalNotifications;
.locals 1
const-string v0, "com.ea.nimble.base.localNotifications"
.line 29
invoke-static {v0}, Lcom/ea/nimble/Base;->getComponent(Ljava/lang/String;)Lcom/ea/nimble/Component;
move-result-object v0
check-cast v0, Lcom/ea/nimble/INimbleLocalNotifications;
return-object v0
.end method
.method private static initialize()V
.locals 2
const-string v0, "LocalNotification"
.line 22
invoke-static {v0}, Lcom/ea/nimble/Log$Helper;->LOGFUNCS(Ljava/lang/String;)V
.line 23
new-instance v0, Lcom/ea/nimble/NimbleLocalNotificationsImpl;
invoke-direct {v0}, Lcom/ea/nimble/NimbleLocalNotificationsImpl;-><init>()V
const-string v1, "com.ea.nimble.base.localNotifications"
invoke-static {v0, v1}, Lcom/ea/nimble/Base;->registerComponent(Lcom/ea/nimble/Component;Ljava/lang/String;)V
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
.class public Lcom/ea/nimble/OperationalTelemetryDispatch;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final COMPONENT_ID:Ljava/lang/String; = "com.ea.nimble.operationaltelemetrydispatch"
.field public static final LOG_TAG:Ljava/lang/String; = "OTDispatch"
# direct methods
.method public constructor <init>()V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getComponent()Lcom/ea/nimble/IOperationalTelemetryDispatch;
.locals 1
const-string v0, "com.ea.nimble.operationaltelemetrydispatch"
.line 10
invoke-static {v0}, Lcom/ea/nimble/Base;->getComponent(Ljava/lang/String;)Lcom/ea/nimble/Component;
move-result-object v0
check-cast v0, Lcom/ea/nimble/IOperationalTelemetryDispatch;
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
.class public interface abstract Lcom/ea/nimble/OperationalTelemetryEvent;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getEventDictionary()Lorg/json/JSONObject;
.end method
.method public abstract getEventDictionaryString()Ljava/lang/String;
.end method
.method public abstract getEventType()Ljava/lang/String;
.end method
.method public abstract getLoggedTime()Ljava/util/Date;
.end method

View File

@@ -0,0 +1,99 @@
.class Lcom/ea/nimble/OperationalTelemetryEventImpl;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/OperationalTelemetryEvent;
# instance fields
.field private m_eventDictionary:Lorg/json/JSONObject;
.field private m_eventType:Ljava/lang/String;
.field private m_loggedTime:Ljava/util/Date;
# direct methods
.method public constructor <init>(Ljava/lang/String;Lorg/json/JSONObject;Ljava/util/Date;)V
.locals 0
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/ea/nimble/OperationalTelemetryEventImpl;->m_eventType:Ljava/lang/String;
iput-object p2, p0, Lcom/ea/nimble/OperationalTelemetryEventImpl;->m_eventDictionary:Lorg/json/JSONObject;
iput-object p3, p0, Lcom/ea/nimble/OperationalTelemetryEventImpl;->m_loggedTime:Ljava/util/Date;
return-void
.end method
# virtual methods
.method public getEventDictionary()Lorg/json/JSONObject;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/OperationalTelemetryEventImpl;->m_eventDictionary:Lorg/json/JSONObject;
return-object v0
.end method
.method public getEventDictionaryString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/OperationalTelemetryEventImpl;->m_eventDictionary:Lorg/json/JSONObject;
.line 30
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getEventType()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/OperationalTelemetryEventImpl;->m_eventType:Ljava/lang/String;
return-object v0
.end method
.method public getLoggedTime()Ljava/util/Date;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/OperationalTelemetryEventImpl;->m_loggedTime:Ljava/util/Date;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 39
invoke-virtual {p0}, Lcom/ea/nimble/OperationalTelemetryEventImpl;->getEventType()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0}, Lcom/ea/nimble/OperationalTelemetryEventImpl;->getLoggedTime()Ljava/util/Date;
move-result-object v1
invoke-virtual {p0}, Lcom/ea/nimble/OperationalTelemetryEventImpl;->getEventDictionary()Lorg/json/JSONObject;
move-result-object v2
filled-new-array {v0, v1, v2}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "OperationalTelemetryEvent(%s)-(%s) > %s"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,36 @@
.class public final synthetic Lcom/ea/nimble/Persistence$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Lcom/ea/nimble/Persistence;
# direct methods
.method public synthetic constructor <init>(Lcom/ea/nimble/Persistence;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/ea/nimble/Persistence$$ExternalSyntheticLambda0;->f$0:Lcom/ea/nimble/Persistence;
return-void
.end method
# virtual methods
.method public final run()V
.locals 1
.line 0
iget-object v0, p0, Lcom/ea/nimble/Persistence$$ExternalSyntheticLambda0;->f$0:Lcom/ea/nimble/Persistence;
invoke-static {v0}, Lcom/ea/nimble/Persistence;->$r8$lambda$YNrsC2LI9jcht_Qhd_E1tZJaAUY(Lcom/ea/nimble/Persistence;)V
return-void
.end method

View File

@@ -0,0 +1,136 @@
.class synthetic Lcom/ea/nimble/Persistence$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/Persistence;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$ea$nimble$Persistence$Storage:[I
.field static final synthetic $SwitchMap$com$ea$nimble$PersistenceService$PersistenceMergePolicy:[I
# direct methods
.method static constructor <clinit>()V
.locals 5
.line 586
invoke-static {}, Lcom/ea/nimble/Persistence$Storage;->values()[Lcom/ea/nimble/Persistence$Storage;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/ea/nimble/Persistence$1;->$SwitchMap$com$ea$nimble$Persistence$Storage:[I
const/4 v1, 0x1
:try_start_0
sget-object v2, Lcom/ea/nimble/Persistence$Storage;->DOCUMENT:Lcom/ea/nimble/Persistence$Storage;
invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I
move-result v2
aput v1, v0, v2
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
const/4 v0, 0x2
:try_start_1
sget-object v2, Lcom/ea/nimble/Persistence$1;->$SwitchMap$com$ea$nimble$Persistence$Storage:[I
sget-object v3, Lcom/ea/nimble/Persistence$Storage;->CACHE:Lcom/ea/nimble/Persistence$Storage;
invoke-virtual {v3}, Ljava/lang/Enum;->ordinal()I
move-result v3
aput v0, v2, v3
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
const/4 v2, 0x3
:try_start_2
sget-object v3, Lcom/ea/nimble/Persistence$1;->$SwitchMap$com$ea$nimble$Persistence$Storage:[I
sget-object v4, Lcom/ea/nimble/Persistence$Storage;->TEMP:Lcom/ea/nimble/Persistence$Storage;
invoke-virtual {v4}, Ljava/lang/Enum;->ordinal()I
move-result v4
aput v2, v3, v4
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
.line 126
:catch_2
invoke-static {}, Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;->values()[Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;
move-result-object v3
array-length v3, v3
new-array v3, v3, [I
sput-object v3, Lcom/ea/nimble/Persistence$1;->$SwitchMap$com$ea$nimble$PersistenceService$PersistenceMergePolicy:[I
:try_start_3
sget-object v4, Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;->OVERWRITE:Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;
invoke-virtual {v4}, Ljava/lang/Enum;->ordinal()I
move-result v4
aput v1, v3, v4
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
:try_start_4
sget-object v1, Lcom/ea/nimble/Persistence$1;->$SwitchMap$com$ea$nimble$PersistenceService$PersistenceMergePolicy:[I
sget-object v3, Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;->SOURCE_FIRST:Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;
invoke-virtual {v3}, Ljava/lang/Enum;->ordinal()I
move-result v3
aput v0, v1, v3
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
:catch_4
:try_start_5
sget-object v0, Lcom/ea/nimble/Persistence$1;->$SwitchMap$com$ea$nimble$PersistenceService$PersistenceMergePolicy:[I
sget-object v1, Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;->TARGET_FIRST:Lcom/ea/nimble/PersistenceService$PersistenceMergePolicy;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
aput v2, v0, v1
:try_end_5
.catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_5
:catch_5
return-void
.end method

View File

@@ -0,0 +1,140 @@
.class public final enum Lcom/ea/nimble/Persistence$Storage;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/Persistence;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Storage"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/Persistence$Storage;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/Persistence$Storage;
.field public static final enum CACHE:Lcom/ea/nimble/Persistence$Storage;
.field public static final enum DOCUMENT:Lcom/ea/nimble/Persistence$Storage;
.field public static final enum TEMP:Lcom/ea/nimble/Persistence$Storage;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/Persistence$Storage;
.locals 3
sget-object v0, Lcom/ea/nimble/Persistence$Storage;->DOCUMENT:Lcom/ea/nimble/Persistence$Storage;
sget-object v1, Lcom/ea/nimble/Persistence$Storage;->CACHE:Lcom/ea/nimble/Persistence$Storage;
sget-object v2, Lcom/ea/nimble/Persistence$Storage;->TEMP:Lcom/ea/nimble/Persistence$Storage;
filled-new-array {v0, v1, v2}, [Lcom/ea/nimble/Persistence$Storage;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 31
new-instance v0, Lcom/ea/nimble/Persistence$Storage;
const-string v1, "DOCUMENT"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/Persistence$Storage;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/Persistence$Storage;->DOCUMENT:Lcom/ea/nimble/Persistence$Storage;
.line 32
new-instance v0, Lcom/ea/nimble/Persistence$Storage;
const-string v1, "CACHE"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/Persistence$Storage;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/Persistence$Storage;->CACHE:Lcom/ea/nimble/Persistence$Storage;
.line 33
new-instance v0, Lcom/ea/nimble/Persistence$Storage;
const-string v1, "TEMP"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/Persistence$Storage;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/Persistence$Storage;->TEMP:Lcom/ea/nimble/Persistence$Storage;
.line 29
invoke-static {}, Lcom/ea/nimble/Persistence$Storage;->$values()[Lcom/ea/nimble/Persistence$Storage;
move-result-object v0
sput-object v0, Lcom/ea/nimble/Persistence$Storage;->$VALUES:[Lcom/ea/nimble/Persistence$Storage;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 29
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/Persistence$Storage;
.locals 1
const-class v0, Lcom/ea/nimble/Persistence$Storage;
.line 29
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/ea/nimble/Persistence$Storage;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/Persistence$Storage;
.locals 1
sget-object v0, Lcom/ea/nimble/Persistence$Storage;->$VALUES:[Lcom/ea/nimble/Persistence$Storage;
.line 29
invoke-virtual {v0}, [Lcom/ea/nimble/Persistence$Storage;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/Persistence$Storage;
return-object v0
.end method

Some files were not shown because too many files have changed in this diff Show More