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,19 @@
.class public interface abstract Lcom/ea/nimble/mtx/INimbleMTX$FinalizeTransactionCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/INimbleMTX;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "FinalizeTransactionCallback"
.end annotation
# virtual methods
.method public abstract finalizeComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
.end method

View File

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

View File

@@ -0,0 +1,22 @@
.class public interface abstract Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/INimbleMTX;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "PurchaseTransactionCallback"
.end annotation
# virtual methods
.method public abstract purchaseComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
.end method
.method public abstract unverifiedReceiptReceived(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
.end method

View File

@@ -0,0 +1,99 @@
.class public interface abstract Lcom/ea/nimble/mtx/INimbleMTX;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/mtx/INimbleMTX$FinalizeTransactionCallback;,
Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;,
Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
}
.end annotation
# static fields
.field public static final NIMBLE_NOTIFICATION_MTX_REFRESH_CATALOG_FINISHED:Ljava/lang/String; = "nimble.notification.mtx.refreshcatalogfinished"
.field public static final NIMBLE_NOTIFICATION_MTX_RESTORE_PURCHASED_TRANSACTIONS_FINISHED:Ljava/lang/String; = "nimble.notification.mtx.restorepurchasedtransactionsfinished"
.field public static final NIMBLE_NOTIFICATION_MTX_TRANSACTIONS_RECOVERED:Ljava/lang/String; = "nimble.notification.mtx.transactionsrecovered"
.field public static final NOTIFICATION_DICTIONARY_KEY_TRANSACTIONID:Ljava/lang/String; = "TRANSACTION_ID"
# virtual methods
.method public abstract finalizeTransaction(Ljava/lang/String;Lcom/ea/nimble/mtx/INimbleMTX$FinalizeTransactionCallback;)Lcom/ea/nimble/Error;
.end method
.method public abstract getAvailableCatalogItems()Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/NimbleCatalogItem;",
">;"
}
.end annotation
.end method
.method public abstract getPendingTransactions()Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/NimbleMTXTransaction;",
">;"
}
.end annotation
.end method
.method public abstract getPurchasedTransactions()Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/NimbleMTXTransaction;",
">;"
}
.end annotation
.end method
.method public abstract getRecoveredTransactions()Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/NimbleMTXTransaction;",
">;"
}
.end annotation
.end method
.method public abstract itemGranted(Ljava/lang/String;Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;)Lcom/ea/nimble/Error;
.end method
.method public abstract purchaseItem(Ljava/lang/String;Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;Ljava/lang/String;)Lcom/ea/nimble/Error;
.end method
.method public abstract refreshAvailableCatalogItems()V
.end method
.method public abstract restorePurchasedTransactions()V
.end method
.method public abstract resumeTransaction(Ljava/lang/String;Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;Lcom/ea/nimble/mtx/INimbleMTX$FinalizeTransactionCallback;)Lcom/ea/nimble/Error;
.end method
.method public abstract setPlatformParameters(Ljava/util/Map;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.end method

View File

@@ -0,0 +1,155 @@
.class public final enum Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/NimbleCatalogItem;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "ItemType"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.field public static final enum CONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.field public static final enum NONCONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.field public static final enum SUBSCRIPTION:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.field public static final enum UNKNOWN:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.locals 4
sget-object v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->UNKNOWN:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
sget-object v1, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->NONCONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
sget-object v2, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->CONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
sget-object v3, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->SUBSCRIPTION:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
filled-new-array {v0, v1, v2, v3}, [Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 11
new-instance v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
const-string v1, "UNKNOWN"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->UNKNOWN:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 12
new-instance v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
const-string v1, "NONCONSUMABLE"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->NONCONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 13
new-instance v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
const-string v1, "CONSUMABLE"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->CONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 14
new-instance v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
const-string v1, "SUBSCRIPTION"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->SUBSCRIPTION:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 9
invoke-static {}, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->$values()[Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
move-result-object v0
sput-object v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->$VALUES:[Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
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/mtx/NimbleCatalogItem$ItemType;
.locals 1
const-class v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.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/mtx/NimbleCatalogItem$ItemType;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.locals 1
sget-object v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->$VALUES:[Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 9
invoke-virtual {v0}, [Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
return-object v0
.end method

View File

@@ -0,0 +1,60 @@
.class public abstract Lcom/ea/nimble/mtx/NimbleCatalogItem;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public abstract getAdditionalInfo()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 getDescription()Ljava/lang/String;
.end method
.method public abstract getItemType()Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.end method
.method public abstract getMetaDataUrl()Ljava/lang/String;
.end method
.method public abstract getPriceDecimal()F
.end method
.method public abstract getPriceWithCurrencyAndFormat()Ljava/lang/String;
.end method
.method public abstract getSellId()Ljava/lang/String;
.end method
.method public abstract getSku()Ljava/lang/String;
.end method
.method public abstract getTitle()Ljava/lang/String;
.end method

View File

@@ -0,0 +1,67 @@
.class public Lcom/ea/nimble/mtx/NimbleMTX;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final COMPONENT_ID:Ljava/lang/String; = "com.ea.nimble.mtx"
# direct methods
.method public constructor <init>()V
.locals 0
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getComponent()Lcom/ea/nimble/mtx/INimbleMTX;
.locals 5
const-string v0, "com.ea.nimble.mtx"
.line 21
invoke-static {v0}, Lcom/ea/nimble/Base;->getComponentList(Ljava/lang/String;)[Lcom/ea/nimble/Component;
move-result-object v0
if-eqz v0, :cond_1
.line 22
array-length v1, v0
if-lez v1, :cond_1
.line 24
array-length v1, v0
const/4 v2, 0x1
const/4 v3, 0x0
if-eq v1, v2, :cond_0
const-string v1, "More than one MTX component registered!"
new-array v2, v3, [Ljava/lang/Object;
const-string v4, "MTX"
.line 26
invoke-static {v4, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGFS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 29
:cond_0
aget-object v0, v0, v3
check-cast v0, Lcom/ea/nimble/mtx/INimbleMTX;
return-object v0
:cond_1
const/4 v0, 0x0
return-object v0
.end method

View File

@@ -0,0 +1,502 @@
.class public final enum Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/NimbleMTXError;
.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/mtx/NimbleMTXError$Code;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum BILLING_NOT_AVAILABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum EMPTY_BILLING_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum EMPTY_SYNERGY_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum ERROR_GETTING_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum GET_NONCE_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum INTERNAL_STATE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum INVALID_SERVER_RESPONSE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum INVALID_SKU:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum INVALID_TRANSACTION_STATE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum ITEM_ALREADY_OWNED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum ITEM_NOT_OWNED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum ITEM_TYPE_NOT_MATCH:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum ITEM_UNAVAILABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum NON_CRITICAL_INTERRUPTION:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum PLATFORM_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum TRANSACTION_DEFERRED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum TRANSACTION_NOT_RESUMABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum TRANSACTION_PENDING:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum TRANSACTION_SUPERSEDED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum UNABLE_TO_CONSTRUCT_REQUEST:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum UNRECOGNIZED_TRANSACTION_ID:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum USER_CANCELED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.field public static final enum VERIFICATION_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
# instance fields
.field private m_value:I
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.locals 23
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->BILLING_NOT_AVAILABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v1, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_ALREADY_OWNED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_NOT_OWNED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v3, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->USER_CANCELED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v4, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->VERIFICATION_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v5, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->GET_NONCE_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v6, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->NON_CRITICAL_INTERRUPTION:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v7, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INTERNAL_STATE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v8, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_PENDING:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v9, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_NOT_RESUMABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v10, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->UNRECOGNIZED_TRANSACTION_ID:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v11, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INVALID_TRANSACTION_STATE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v12, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->UNABLE_TO_CONSTRUCT_REQUEST:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v13, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->PLATFORM_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v14, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INVALID_SERVER_RESPONSE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v15, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ERROR_GETTING_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v16, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_UNAVAILABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v17, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INVALID_SKU:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v18, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_DEFERRED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v19, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_SUPERSEDED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v20, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->EMPTY_SYNERGY_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v21, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->EMPTY_BILLING_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
sget-object v22, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_TYPE_NOT_MATCH:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
filled-new-array/range {v0 .. v22}, [Lcom/ea/nimble/mtx/NimbleMTXError$Code;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 9
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x0
const/16 v2, 0x4e20
const-string v3, "BILLING_NOT_AVAILABLE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->BILLING_NOT_AVAILABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 10
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x1
const/16 v2, 0x4e21
const-string v3, "ITEM_ALREADY_OWNED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_ALREADY_OWNED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 11
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x2
const/16 v2, 0x4e22
const-string v3, "ITEM_NOT_OWNED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_NOT_OWNED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 12
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x3
const/16 v2, 0x4e23
const-string v3, "USER_CANCELED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->USER_CANCELED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 13
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x4
const/16 v2, 0x4e24
const-string v3, "VERIFICATION_ERROR"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->VERIFICATION_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 14
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x5
const/16 v2, 0x4e25
const-string v3, "GET_NONCE_ERROR"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->GET_NONCE_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 15
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x6
const/16 v2, 0x4e26
const-string v3, "NON_CRITICAL_INTERRUPTION"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->NON_CRITICAL_INTERRUPTION:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 16
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/4 v1, 0x7
const/16 v2, 0x4e27
const-string v3, "INTERNAL_STATE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INTERNAL_STATE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 17
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x8
const/16 v2, 0x4e28
const-string v3, "TRANSACTION_PENDING"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_PENDING:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 18
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x9
const/16 v2, 0x4e29
const-string v3, "TRANSACTION_NOT_RESUMABLE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_NOT_RESUMABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 19
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0xa
const/16 v2, 0x4e2a
const-string v3, "UNRECOGNIZED_TRANSACTION_ID"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->UNRECOGNIZED_TRANSACTION_ID:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 20
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0xb
const/16 v2, 0x4e2b
const-string v3, "INVALID_TRANSACTION_STATE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INVALID_TRANSACTION_STATE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 21
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0xc
const/16 v2, 0x4e2c
const-string v3, "UNABLE_TO_CONSTRUCT_REQUEST"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->UNABLE_TO_CONSTRUCT_REQUEST:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 22
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0xd
const/16 v2, 0x4e2d
const-string v3, "PLATFORM_ERROR"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->PLATFORM_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 23
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0xe
const/16 v2, 0x4e2e
const-string v3, "INVALID_SERVER_RESPONSE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INVALID_SERVER_RESPONSE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 24
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0xf
const/16 v2, 0x4e2f
const-string v3, "ERROR_GETTING_PREPURCHASE_INFO"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ERROR_GETTING_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 25
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x10
const/16 v2, 0x4e30
const-string v3, "ITEM_UNAVAILABLE"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_UNAVAILABLE:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 26
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x11
const/16 v2, 0x4e31
const-string v3, "INVALID_SKU"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->INVALID_SKU:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 27
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x12
const/16 v2, 0x4e32
const-string v3, "TRANSACTION_DEFERRED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_DEFERRED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 28
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x13
const/16 v2, 0x4e33
const-string v3, "TRANSACTION_SUPERSEDED"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->TRANSACTION_SUPERSEDED:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 29
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x14
const/16 v2, 0x4e34
const-string v3, "EMPTY_SYNERGY_CATALOG"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->EMPTY_SYNERGY_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 30
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x15
const/16 v2, 0x4e35
const-string v3, "EMPTY_BILLING_CATALOG"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->EMPTY_BILLING_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 32
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const/16 v1, 0x16
const/16 v2, 0x4e45
const-string v3, "ITEM_TYPE_NOT_MATCH"
invoke-direct {v0, v3, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ITEM_TYPE_NOT_MATCH:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 7
invoke-static {}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->$values()[Lcom/ea/nimble/mtx/NimbleMTXError$Code;
move-result-object v0
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->$VALUES:[Lcom/ea/nimble/mtx/NimbleMTXError$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 35
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->m_value:I
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.locals 1
const-class v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 7
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/mtx/NimbleMTXError$Code;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.locals 1
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->$VALUES:[Lcom/ea/nimble/mtx/NimbleMTXError$Code;
.line 7
invoke-virtual {v0}, [Lcom/ea/nimble/mtx/NimbleMTXError$Code;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/mtx/NimbleMTXError$Code;
return-object v0
.end method
# virtual methods
.method public intValue()I
.locals 1
iget v0, p0, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->m_value:I
return v0
.end method

View File

@@ -0,0 +1,60 @@
.class public Lcom/ea/nimble/mtx/NimbleMTXError;
.super Lcom/ea/nimble/Error;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/mtx/NimbleMTXError$Code;
}
.end annotation
# static fields
.field public static final ERROR_DOMAIN:Ljava/lang/String; = "NimbleMTXError"
.field private static final serialVersionUID:J = 0x1L
# direct methods
.method public constructor <init>()V
.locals 0
.line 50
invoke-direct {p0}, Lcom/ea/nimble/Error;-><init>()V
return-void
.end method
.method public constructor <init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;)V
.locals 2
.line 62
invoke-virtual {p1}, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->intValue()I
move-result p1
const/4 v0, 0x0
const-string v1, "NimbleMTXError"
invoke-direct {p0, v1, p1, p2, v0}, Lcom/ea/nimble/Error;-><init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public constructor <init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 1
const-string v0, "NimbleMTXError"
.line 57
invoke-virtual {p1}, Lcom/ea/nimble/mtx/NimbleMTXError$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

View File

@@ -0,0 +1,215 @@
.class public final enum Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/NimbleMTXTransaction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "TransactionState"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum COMPLETE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum UNDEFINED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum USER_INITIATED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum WAITING_FOR_PLATFORM_CONSUMPTION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum WAITING_FOR_PLATFORM_RESPONSE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.field public static final enum WAITING_FOR_VERIFICATION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.locals 8
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
sget-object v1, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->USER_INITIATED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
sget-object v2, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
sget-object v3, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PLATFORM_RESPONSE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
sget-object v4, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_VERIFICATION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
sget-object v5, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
sget-object v6, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PLATFORM_CONSUMPTION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
sget-object v7, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->COMPLETE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
filled-new-array/range {v0 .. v7}, [Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 16
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "UNDEFINED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 17
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "USER_INITIATED"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->USER_INITIATED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 18
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "WAITING_FOR_PREPURCHASE_INFO"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 19
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "WAITING_FOR_PLATFORM_RESPONSE"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PLATFORM_RESPONSE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 20
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "WAITING_FOR_VERIFICATION"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_VERIFICATION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 21
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 22
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "WAITING_FOR_PLATFORM_CONSUMPTION"
const/4 v2, 0x6
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PLATFORM_CONSUMPTION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 23
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
const-string v1, "COMPLETE"
const/4 v2, 0x7
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->COMPLETE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 14
invoke-static {}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->$values()[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
move-result-object v0
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->$VALUES:[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
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 14
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/mtx/NimbleMTXTransaction$TransactionState;
.locals 1
const-class v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 14
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/mtx/NimbleMTXTransaction$TransactionState;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.locals 1
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->$VALUES:[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.line 14
invoke-virtual {v0}, [Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.end method

View File

@@ -0,0 +1,125 @@
.class public final enum Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/NimbleMTXTransaction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "TransactionType"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.field public static final enum PURCHASE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.field public static final enum RESTORE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.locals 2
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->PURCHASE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
sget-object v1, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->RESTORE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
filled-new-array {v0, v1}, [Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 10
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
const-string v1, "PURCHASE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->PURCHASE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.line 11
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
const-string v1, "RESTORE"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->RESTORE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.line 8
invoke-static {}, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->$values()[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
move-result-object v0
sput-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->$VALUES:[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
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 8
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/mtx/NimbleMTXTransaction$TransactionType;
.locals 1
const-class v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.line 8
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/mtx/NimbleMTXTransaction$TransactionType;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.locals 1
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->$VALUES:[Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.line 8
invoke-virtual {v0}, [Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
return-object v0
.end method

View File

@@ -0,0 +1,53 @@
.class public interface abstract Lcom/ea/nimble/mtx/NimbleMTXTransaction;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;,
Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
}
.end annotation
# virtual methods
.method public abstract getAdditionalInfo()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 getError()Ljava/lang/Exception;
.end method
.method public abstract getItemSellId()Ljava/lang/String;
.end method
.method public abstract getItemSku()Ljava/lang/String;
.end method
.method public abstract getPriceDecimal()F
.end method
.method public abstract getReceipt()Ljava/lang/String;
.end method
.method public abstract getTimeStamp()Ljava/util/Date;
.end method
.method public abstract getTransactionId()Ljava/lang/String;
.end method
.method public abstract getTransactionState()Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.end method
.method public abstract getTransactionType()Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.end method

View File

@@ -0,0 +1,13 @@
.class public final Lcom/ea/nimble/mtx/R;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,24 @@
.class public Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public m_id:I
.field public m_regularImageData:[B
.field public m_selectedImageData:[B
.field public m_title:Ljava/lang/String;
# 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,175 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getItemCatalog(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$1;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.line 128
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.locals 4
.line 132
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
.line 133
invoke-static {}, Lcom/ea/nimble/SynergyEnvironment;->getComponent()Lcom/ea/nimble/ISynergyEnvironment;
move-result-object v1
if-eqz v1, :cond_1
const-string v2, "synergy.product"
.line 136
invoke-interface {v1, v2}, Lcom/ea/nimble/ISynergyEnvironment;->getServerUrlWithKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, p1, Lcom/ea/nimble/SynergyRequest;->baseUrl:Ljava/lang/String;
.line 138
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
const-string v3, "masterSellId"
.line 139
invoke-interface {v1}, Lcom/ea/nimble/ISynergyEnvironment;->getSellId()Ljava/lang/String;
move-result-object v1
invoke-virtual {v2, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "typeSubstr"
const-string v3, "1"
.line 140
invoke-virtual {v2, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "apiVer"
const-string v3, "1.0.0"
.line 141
invoke-virtual {v2, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 142
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationVersion()Ljava/lang/String;
move-result-object v1
const-string v3, "ver"
invoke-virtual {v2, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 143
invoke-static {}, Lcom/ea/nimble/SynergyIdManager;->getComponent()Lcom/ea/nimble/ISynergyIdManager;
move-result-object v1
invoke-interface {v1}, Lcom/ea/nimble/ISynergyIdManager;->getSynergyId()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
invoke-static {}, Lcom/ea/nimble/SynergyIdManager;->getComponent()Lcom/ea/nimble/ISynergyIdManager;
move-result-object v1
invoke-interface {v1}, Lcom/ea/nimble/ISynergyIdManager;->getSynergyId()Ljava/lang/String;
move-result-object v1
goto :goto_0
:cond_0
const-string v1, "0"
:goto_0
const-string v3, "uid"
invoke-virtual {v2, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "sdkVer"
const-string v3, "1.63.0.2"
.line 144
invoke-virtual {v2, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "langCode"
.line 145
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getShortApplicationLanguageCode()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "includeOfferType"
const-string v1, "true"
.line 146
invoke-virtual {v2, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 148
iput-object v2, p1, Lcom/ea/nimble/SynergyRequest;->urlParameters:Ljava/util/Map;
.line 149
invoke-virtual {p1}, Lcom/ea/nimble/SynergyRequest;->send()V
goto :goto_1
:cond_1
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getItemCatalog prepareRequest callback failed] Synergy environment is null, unable to send request"
.line 153
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_1
return-void
.end method

View File

@@ -0,0 +1,196 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$10;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyNetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getCategories(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$10;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$10;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;
.line 446
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 450
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_1
.line 452
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 v0, "gameCategoryData"
.line 454
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/List;
.line 456
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
.line 457
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map;
.line 459
new-instance v3, Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;
invoke-direct {v3}, Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;-><init>()V
const-string v4, "categoryId"
.line 460
invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Integer;
invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I
move-result v4
iput v4, v3, Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;->m_id:I
const-string v4, "title"
.line 461
invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
iput-object v4, v3, Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;->m_title:Ljava/lang/String;
const-string v4, "imageOff"
.line 462
invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
const/4 v5, 0x0
invoke-static {v4, v5}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
move-result-object v4
iput-object v4, v3, Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;->m_regularImageData:[B
const-string v4, "imageOn"
.line 464
invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-static {v2, v5}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
move-result-object v2
iput-object v2, v3, Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;->m_selectedImageData:[B
.line 467
invoke-interface {v0, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$10;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;
.line 469
invoke-interface {p1, v0, v1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;->callback(Ljava/util/Set;Ljava/lang/Exception;)V
goto :goto_1
:cond_1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$10;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;
.line 473
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, v1, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;->callback(Ljava/util/Set;Ljava/lang/Exception;)V
:goto_1
return-void
.end method

View File

@@ -0,0 +1,145 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$11;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getDownloadUrlForItem(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$item:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$11;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$11;->val$item:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.line 492
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.locals 4
.line 496
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
.line 497
invoke-static {}, Lcom/ea/nimble/SynergyEnvironment;->getComponent()Lcom/ea/nimble/ISynergyEnvironment;
move-result-object v1
if-eqz v1, :cond_0
const-string v2, "synergy.product"
.line 500
invoke-interface {v1, v2}, Lcom/ea/nimble/ISynergyEnvironment;->getServerUrlWithKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, p1, Lcom/ea/nimble/SynergyRequest;->baseUrl:Ljava/lang/String;
.line 502
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
const-string v2, "apiVer"
const-string v3, "1.0.0"
.line 503
invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 504
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationVersion()Ljava/lang/String;
move-result-object v2
const-string v3, "ver"
invoke-virtual {v1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 505
invoke-static {}, Lcom/ea/nimble/SynergyIdManager;->getComponent()Lcom/ea/nimble/ISynergyIdManager;
move-result-object v2
invoke-interface {v2}, Lcom/ea/nimble/ISynergyIdManager;->getSynergyId()Ljava/lang/String;
move-result-object v2
const-string v3, "uid"
invoke-virtual {v1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "langCode"
.line 506
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getShortApplicationLanguageCode()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$11;->val$item:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.line 507
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getSellId()Ljava/lang/String;
move-result-object v0
const-string v2, "sellId"
invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 509
iput-object v1, p1, Lcom/ea/nimble/SynergyRequest;->urlParameters:Ljava/util/Map;
.line 510
invoke-virtual {p1}, Lcom/ea/nimble/SynergyRequest;->send()V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getDownloadUrlForItem prepareRequest callback failed] Synergy environment is null, unable to send request"
.line 514
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,144 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyNetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getDownloadUrlForItem(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
.line 519
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Lcom/ea/nimble/SynergyNetworkConnectionHandle;)V
.locals 2
.line 523
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_1
.line 525
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 v0, "infoData"
.line 527
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Map;
const-string v0, "fileURL"
.line 529
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/List;
.line 531
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_0
const/4 v0, 0x0
.line 533
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
.line 534
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;->callback(Ljava/lang/String;Ljava/lang/Exception;)V
goto :goto_0
.line 538
:cond_0
new-instance p1, Ljava/lang/Exception;
const-string v0, "No urls for item"
invoke-direct {p1, v0}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
.line 539
invoke-interface {v0, v1, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;->callback(Ljava/lang/String;Ljava/lang/Exception;)V
goto :goto_0
:cond_1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
.line 544
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, v1, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;->callback(Ljava/lang/String;Ljava/lang/Exception;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,94 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$13;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/NetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->downloadContent(Ljava/lang/String;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$13;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$13;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
.line 577
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Lcom/ea/nimble/NetworkConnectionHandle;)V
.locals 2
.line 581
invoke-interface {p1}, Lcom/ea/nimble/NetworkConnectionHandle;->getResponse()Lcom/ea/nimble/IHttpResponse;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/IHttpResponse;->getError()Ljava/lang/Exception;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$13;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
.line 583
invoke-interface {p1}, Lcom/ea/nimble/NetworkConnectionHandle;->getResponse()Lcom/ea/nimble/IHttpResponse;
move-result-object p1
invoke-interface {p1}, Lcom/ea/nimble/IHttpResponse;->getDataStream()Ljava/io/InputStream;
move-result-object p1
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;->callback(Ljava/io/InputStream;Ljava/lang/Exception;)V
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$13;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
.line 585
invoke-interface {p1}, Lcom/ea/nimble/NetworkConnectionHandle;->getResponse()Lcom/ea/nimble/IHttpResponse;
move-result-object p1
invoke-interface {p1}, Lcom/ea/nimble/IHttpResponse;->getError()Ljava/lang/Exception;
move-result-object p1
invoke-interface {v0, v1, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;->callback(Ljava/io/InputStream;Ljava/lang/Exception;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,172 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyNetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getItemCatalog(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;
.line 158
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Lcom/ea/nimble/SynergyNetworkConnectionHandle;)V
.locals 4
.line 162
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_3
.line 164
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 v0, "productData"
.line 166
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/List;
if-eqz p1, :cond_2
.line 168
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_0
goto :goto_1
.line 174
:cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v2
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V
.line 175
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map;
iget-object v3, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.line 177
invoke-static {v3, v2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->access$000(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Ljava/util/Map;)Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
move-result-object v2
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;
.line 179
invoke-interface {p1, v0, v1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;->callback(Ljava/util/List;Ljava/lang/Exception;)V
goto :goto_2
:cond_2
:goto_1
iget-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;
.line 170
new-instance v0, Lcom/ea/nimble/mtx/NimbleMTXError;
sget-object v2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->EMPTY_SYNERGY_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const-string v3, "No items retrieved from Synergy"
invoke-direct {v0, v2, v3}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;)V
invoke-interface {p1, v1, v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;->callback(Ljava/util/List;Ljava/lang/Exception;)V
goto :goto_2
:cond_3
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;
.line 184
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, v1, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;->callback(Ljava/util/List;Ljava/lang/Exception;)V
:goto_2
return-void
.end method

View File

@@ -0,0 +1,146 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/NetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->loadBinaryDataForItems(Ljava/util/Collection;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;
.field final synthetic val$item:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;->val$item:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
iput-object p3, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;
.line 230
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Lcom/ea/nimble/NetworkConnectionHandle;)V
.locals 6
.line 233
invoke-interface {p1}, Lcom/ea/nimble/NetworkConnectionHandle;->getResponse()Lcom/ea/nimble/IHttpResponse;
move-result-object p1
invoke-interface {p1}, Lcom/ea/nimble/IHttpResponse;->getDataStream()Ljava/io/InputStream;
move-result-object p1
.line 235
new-instance v0, Ljava/io/ByteArrayOutputStream;
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
const/4 v1, 0x0
const/16 v2, 0x1000
:try_start_0
new-array v3, v2, [B
.line 242
:goto_0
invoke-virtual {p1, v3, v1, v2}, Ljava/io/InputStream;->read([BII)I
move-result v4
const/4 v5, -0x1
if-eq v4, v5, :cond_0
.line 244
invoke-virtual {v0, v3, v1, v4}, Ljava/io/ByteArrayOutputStream;->write([BII)V
goto :goto_0
.line 247
:cond_0
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
const-string p1, "Error reading binary data"
new-array v1, v1, [Ljava/lang/Object;
.line 251
invoke-static {p0, p1, v1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 254
:goto_1
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;->val$item:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.line 255
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getAdditionalInfo()Ljava/util/Map;
move-result-object v0
const-string v1, "binaryData"
invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.line 257
invoke-static {p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->access$106(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)I
iget-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.line 258
invoke-static {p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->access$100(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)I
move-result p1
if-nez p1, :cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;
const/4 v0, 0x0
.line 260
invoke-interface {p1, v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;->callback(Ljava/lang/Exception;)V
:cond_1
return-void
.end method

View File

@@ -0,0 +1,111 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getNonce(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$4;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.line 277
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.locals 4
.line 281
invoke-static {}, Lcom/ea/nimble/SynergyEnvironment;->getComponent()Lcom/ea/nimble/ISynergyEnvironment;
move-result-object v0
if-eqz v0, :cond_0
const-string v1, "synergy.drm"
.line 284
invoke-interface {v0, v1}, Lcom/ea/nimble/ISynergyEnvironment;->getServerUrlWithKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, p1, Lcom/ea/nimble/SynergyRequest;->baseUrl:Ljava/lang/String;
.line 286
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
const-string v2, "apiVer"
const-string v3, "1.0.0"
.line 287
invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 288
invoke-static {}, Lcom/ea/nimble/SynergyIdManager;->getComponent()Lcom/ea/nimble/ISynergyIdManager;
move-result-object v2
invoke-interface {v2}, Lcom/ea/nimble/ISynergyIdManager;->getSynergyId()Ljava/lang/String;
move-result-object v2
const-string v3, "uid"
invoke-virtual {v1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "masterSellId"
.line 289
invoke-interface {v0}, Lcom/ea/nimble/ISynergyEnvironment;->getSellId()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 290
iput-object v1, p1, Lcom/ea/nimble/SynergyRequest;->urlParameters:Ljava/util/Map;
.line 291
invoke-virtual {p1}, Lcom/ea/nimble/SynergyRequest;->send()V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getNonce failed] Synergy environment is null, unable to send request"
.line 295
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,114 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyNetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getNonce(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$5;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$5;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
.line 301
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Lcom/ea/nimble/SynergyNetworkConnectionHandle;)V
.locals 2
.line 305
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_1
.line 309
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 v0, "nonce"
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_0
.line 313
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
goto :goto_0
:cond_0
const-string p1, ""
:goto_0
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$5;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
.line 315
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;->callback(Ljava/lang/String;Ljava/lang/Exception;)V
goto :goto_1
:cond_1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$5;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
.line 319
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, v1, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;->callback(Ljava/lang/String;Ljava/lang/Exception;)V
:goto_1
return-void
.end method

View File

@@ -0,0 +1,69 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->downloadItem(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
.line 338
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Ljava/lang/String;Ljava/lang/Exception;)V
.locals 1
if-nez p2, :cond_0
iget-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
.line 344
invoke-static {p2, p1, v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->access$200(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Ljava/lang/String;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
goto :goto_0
:cond_0
const/4 p1, 0x0
.line 348
invoke-virtual {p0, p1, p2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;->callback(Ljava/lang/String;Ljava/lang/Exception;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,111 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$7;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getPurchasedItems(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$7;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.line 357
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.locals 4
.line 361
invoke-static {}, Lcom/ea/nimble/SynergyEnvironment;->getComponent()Lcom/ea/nimble/ISynergyEnvironment;
move-result-object v0
if-eqz v0, :cond_0
const-string v1, "synergy.drm"
.line 364
invoke-interface {v0, v1}, Lcom/ea/nimble/ISynergyEnvironment;->getServerUrlWithKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, p1, Lcom/ea/nimble/SynergyRequest;->baseUrl:Ljava/lang/String;
.line 366
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
const-string v2, "apiVer"
const-string v3, "1.0.0"
.line 367
invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 368
invoke-static {}, Lcom/ea/nimble/SynergyIdManager;->getComponent()Lcom/ea/nimble/ISynergyIdManager;
move-result-object v2
invoke-interface {v2}, Lcom/ea/nimble/ISynergyIdManager;->getSynergyId()Ljava/lang/String;
move-result-object v2
const-string v3, "uid"
invoke-virtual {v1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "masterSellId"
.line 369
invoke-interface {v0}, Lcom/ea/nimble/ISynergyEnvironment;->getSellId()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 370
iput-object v1, p1, Lcom/ea/nimble/SynergyRequest;->urlParameters:Ljava/util/Map;
.line 371
invoke-virtual {p1}, Lcom/ea/nimble/SynergyRequest;->send()V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getPurchasedItems prepareRequest callback failed] Synergy environment is null, unable to send request"
.line 375
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,156 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyNetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getPurchasedItems(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
iput-object p2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;
.line 380
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Lcom/ea/nimble/SynergyNetworkConnectionHandle;)V
.locals 5
.line 384
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_1
.line 386
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 v0, "sellIds"
.line 389
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/List;
.line 390
new-instance v0, Ljava/util/ArrayList;
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v2
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V
.line 393
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
.line 395
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
iget-object v4, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
invoke-static {v4}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->access$300(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
.line 396
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;
.line 398
invoke-interface {p1, v0, v1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;->callback(Ljava/util/List;Ljava/lang/Exception;)V
goto :goto_1
:cond_1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;->val$callback:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;
.line 402
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, v1, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;->callback(Ljava/util/List;Ljava/lang/Exception;)V
:goto_1
return-void
.end method

View File

@@ -0,0 +1,112 @@
.class Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$9;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getCategories(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$9;->this$0:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.line 420
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.locals 5
.line 424
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
.line 425
invoke-static {}, Lcom/ea/nimble/SynergyEnvironment;->getComponent()Lcom/ea/nimble/ISynergyEnvironment;
move-result-object v1
if-eqz v1, :cond_0
const-string v2, "synergy.product"
.line 428
invoke-interface {v1, v2}, Lcom/ea/nimble/ISynergyEnvironment;->getServerUrlWithKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, p1, Lcom/ea/nimble/SynergyRequest;->baseUrl:Ljava/lang/String;
.line 430
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
const-string v3, "apiVer"
const-string v4, "1.0.0"
.line 431
invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v3, "masterSellId"
.line 432
invoke-interface {v1}, Lcom/ea/nimble/ISynergyEnvironment;->getSellId()Ljava/lang/String;
move-result-object v1
invoke-virtual {v2, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "langCode"
.line 433
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getShortApplicationLanguageCode()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 435
iput-object v2, p1, Lcom/ea/nimble/SynergyRequest;->urlParameters:Ljava/util/Map;
.line 436
invoke-virtual {p1}, Lcom/ea/nimble/SynergyRequest;->send()V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getCategories prepareRequest callback failed] Synergy environment is null, unable to send request"
.line 440
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,29 @@
.class public interface abstract Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "CategoryCallback"
.end annotation
# virtual methods
.method public abstract callback(Ljava/util/Set;Ljava/lang/Exception;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Lcom/ea/nimble/mtx/catalog/synergy/ItemCategory;",
">;",
"Ljava/lang/Exception;",
")V"
}
.end annotation
.end method

View File

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

View File

@@ -0,0 +1,19 @@
.class public interface abstract Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "DataCallback"
.end annotation
# virtual methods
.method public abstract callback(Ljava/io/InputStream;Ljava/lang/Exception;)V
.end method

View File

@@ -0,0 +1,29 @@
.class public interface abstract Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ItemCallback"
.end annotation
# virtual methods
.method public abstract callback(Ljava/util/List;Ljava/lang/Exception;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;",
">;",
"Ljava/lang/Exception;",
")V"
}
.end annotation
.end method

View File

@@ -0,0 +1,29 @@
.class public interface abstract Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ItemSkuCallback"
.end annotation
# virtual methods
.method public abstract callback(Ljava/util/List;Ljava/lang/Exception;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/Exception;",
")V"
}
.end annotation
.end method

View File

@@ -0,0 +1,125 @@
.class public final enum Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "StoreType"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.field public static final enum AMAZON:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.field public static final enum GOOGLE:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.locals 2
sget-object v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->GOOGLE:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
sget-object v1, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->AMAZON:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
filled-new-array {v0, v1}, [Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 49
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
const-string v1, "GOOGLE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->GOOGLE:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.line 50
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
const-string v1, "AMAZON"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->AMAZON:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.line 47
invoke-static {}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->$values()[Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
move-result-object v0
sput-object v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->$VALUES:[Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
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 47
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/mtx/catalog/synergy/SynergyCatalog$StoreType;
.locals 1
const-class v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.line 47
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/mtx/catalog/synergy/SynergyCatalog$StoreType;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.locals 1
sget-object v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->$VALUES:[Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
.line 47
invoke-virtual {v0}, [Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
return-object v0
.end method

View File

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

View File

@@ -0,0 +1,968 @@
.class public Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/LogSource;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;,
Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;,
Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;,
Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;,
Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;,
Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;,
Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;
}
.end annotation
# static fields
.field public static final MTX_INFO_KEY_CURRENCY:Ljava/lang/String; = "localCurrency"
.field public static final MTX_INFO_KEY_METADATA:Ljava/lang/String; = "metadata"
.field public static final MTX_INFO_KEY_SELLID:Ljava/lang/String; = "sellId"
.field private static final SYNERGY_API_GET_AVAILABLE_ITEMS:Ljava/lang/String; = "/product/api/core/getAvailableItems"
.field private static final SYNERGY_API_GET_CATEGORIES:Ljava/lang/String; = "/product/api/core/getMTXGameCategories"
.field private static final SYNERGY_API_GET_DOWNLOAD_URL:Ljava/lang/String; = "/product/api/core/getDownloadItemUrl"
.field private static final SYNERGY_API_GET_NONCE:Ljava/lang/String; = "/drm/api/core/getNonce"
.field private static final SYNERGY_API_GET_PURCHASED_ITEMS:Ljava/lang/String; = "/drm/api/core/getPurchasedItems"
# instance fields
.field private m_itemSkuPrefix:Ljava/lang/String;
.field private m_itemsLoadingBinaryData:I
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;)V
.locals 1
.line 96
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemsLoadingBinaryData:I
.line 97
sget-object v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;->AMAZON:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StoreType;
if-ne p1, v0, :cond_0
.line 99
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
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
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "."
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
goto :goto_0
:cond_0
const-string p1, ""
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
:goto_0
return-void
.end method
.method public static synthetic access$000(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Ljava/util/Map;)Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.locals 0
.line 45
invoke-direct {p0, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->createItemFromMap(Ljava/util/Map;)Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
move-result-object p0
return-object p0
.end method
.method public static synthetic access$100(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)I
.locals 0
.line 45
iget p0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemsLoadingBinaryData:I
return p0
.end method
.method public static synthetic access$106(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)I
.locals 1
.line 45
iget v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemsLoadingBinaryData:I
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemsLoadingBinaryData:I
return v0
.end method
.method public static synthetic access$200(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Ljava/lang/String;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
.locals 0
.line 45
invoke-direct {p0, p1, p2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->downloadContent(Ljava/lang/String;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
return-void
.end method
.method public static synthetic access$300(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)Ljava/lang/String;
.locals 0
.line 45
iget-object p0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
return-object p0
.end method
.method private createItemFromMap(Ljava/util/Map;)Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)",
"Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;"
}
.end annotation
.line 598
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
invoke-direct {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;-><init>()V
.line 599
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, ""
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, "sellId"
invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
.line 603
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "skuAlias_"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "="
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
const-string v3, "desc2"
.line 604
invoke-interface {p1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
const/4 v4, 0x0
if-eqz v3, :cond_1
.line 605
invoke-virtual {v3, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v5
if-eqz v5, :cond_1
.line 607
invoke-virtual {v3, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
move-result v5
.line 608
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v2
add-int/2addr v5, v2
invoke-virtual {v3, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v2
const/16 v3, 0x3b
.line 609
invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(I)I
move-result v3
if-lez v3, :cond_0
.line 612
invoke-virtual {v2, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
:cond_0
iput-object v2, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_sku:Ljava/lang/String;
.line 615
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "[Sku Mapping] SellID="
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " | SKU="
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_sku:Ljava/lang/String;
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 v1
new-array v2, v4, [Ljava/lang/Object;
invoke-static {p0, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 620
:cond_1
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
iget-object v3, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
invoke-virtual {v2, v3}, 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 v1
iput-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_sku:Ljava/lang/String;
:goto_0
const-string v1, "title"
.line 623
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
iput-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_title:Ljava/lang/String;
const-string v1, "offerType"
.line 625
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-static {v1}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "Subscription"
.line 626
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
.line 628
sget-object v1, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->SUBSCRIPTION:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
iput-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_type:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
goto :goto_2
:cond_2
const-string v1, "consumable"
.line 632
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_3
.line 633
sget-object v1, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->CONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
goto :goto_1
:cond_3
sget-object v1, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->NONCONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
:goto_1
iput-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_type:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
:goto_2
const-string v1, "desc"
.line 636
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
iput-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_description:Ljava/lang/String;
const-string v1, "packUrl"
.line 637
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
iput-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_metaDataUrl:Ljava/lang/String;
const-string v1, "free"
.line 638
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
iput-boolean v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_isFree:Z
iget-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_additionalInfo:Ljava/util/Map;
.line 640
invoke-interface {v1, p1}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
const-string v1, "binaryPack"
.line 642
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
.line 644
invoke-static {p1}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_4
iget-object v1, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_additionalInfo:Ljava/util/Map;
const-string v2, "binaryData"
.line 646
invoke-static {p1, v4}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
move-result-object p1
invoke-interface {v1, v2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_4
return-object v0
.end method
.method private downloadContent(Ljava/lang/String;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
.locals 2
const/4 v0, 0x0
.line 565
:try_start_0
new-instance v1, Ljava/net/URL;
invoke-direct {v1, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
.line 573
invoke-static {}, Lcom/ea/nimble/Network;->getComponent()Lcom/ea/nimble/INetwork;
move-result-object p1
if-eqz p1, :cond_0
.line 576
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$13;
invoke-direct {v0, p0, p2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$13;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
const/4 p2, 0x0
invoke-interface {p1, v1, p2, v0}, Lcom/ea/nimble/INetwork;->sendGetRequest(Ljava/net/URL;Ljava/util/HashMap;Lcom/ea/nimble/NetworkConnectionCallback;)Lcom/ea/nimble/NetworkConnectionHandle;
goto :goto_0
:cond_0
const-string p1, "[downloadContent failed] Network component is null, unable to sendGetRequest to Url"
new-array p2, v0, [Ljava/lang/Object;
.line 592
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.line 569
:catch_0
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Invalid url: "
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-array p2, v0, [Ljava/lang/Object;
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method private getDownloadUrlForItem(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.locals 3
.line 491
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$11;
invoke-direct {v0, p0, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$11;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;)V
.line 518
new-instance p1, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;
invoke-direct {p1, p0, p2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$12;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.line 548
new-instance p2, Lcom/ea/nimble/SynergyRequest;
const-string v1, "/product/api/core/getDownloadItemUrl"
sget-object v2, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
invoke-direct {p2, v1, v2, v0}, Lcom/ea/nimble/SynergyRequest;-><init>(Ljava/lang/String;Lcom/ea/nimble/IHttpRequest$Method;Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;)V
.line 549
invoke-static {}, Lcom/ea/nimble/SynergyNetwork;->getComponent()Lcom/ea/nimble/ISynergyNetwork;
move-result-object v0
if-eqz v0, :cond_0
.line 552
invoke-interface {v0, p2, p1}, Lcom/ea/nimble/ISynergyNetwork;->sendRequest(Lcom/ea/nimble/SynergyRequest;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string p2, "[getDownloadUrlForItem failed] Synergy network is null, unable to send request"
.line 556
invoke-static {p0, p2, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
# virtual methods
.method public downloadItem(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
.locals 1
.line 337
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;
invoke-direct {v0, p0, p2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$6;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$DataCallback;)V
invoke-direct {p0, p1, v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getDownloadUrlForItem(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
return-void
.end method
.method public getCategories(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;)V
.locals 4
.line 420
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$9;
invoke-direct {v0, p0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$9;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.line 445
new-instance v1, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$10;
invoke-direct {v1, p0, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$10;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CategoryCallback;)V
.line 477
new-instance p1, Lcom/ea/nimble/SynergyRequest;
const-string v2, "/product/api/core/getMTXGameCategories"
sget-object v3, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
invoke-direct {p1, v2, v3, v0}, Lcom/ea/nimble/SynergyRequest;-><init>(Ljava/lang/String;Lcom/ea/nimble/IHttpRequest$Method;Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;)V
.line 478
invoke-static {}, Lcom/ea/nimble/SynergyNetwork;->getComponent()Lcom/ea/nimble/ISynergyNetwork;
move-result-object v0
if-eqz v0, :cond_0
.line 481
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/ISynergyNetwork;->sendRequest(Lcom/ea/nimble/SynergyRequest;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getCategories failed] Synergy network is null, unable to send request"
.line 485
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public getItemCatalog(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;)V
.locals 4
.line 128
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$1;
invoke-direct {v0, p0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$1;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.line 158
new-instance v1, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;
invoke-direct {v1, p0, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$2;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;)V
.line 188
new-instance p1, Lcom/ea/nimble/SynergyRequest;
const-string v2, "/product/api/core/getAvailableItems"
sget-object v3, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
invoke-direct {p1, v2, v3, v0}, Lcom/ea/nimble/SynergyRequest;-><init>(Ljava/lang/String;Lcom/ea/nimble/IHttpRequest$Method;Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;)V
.line 189
invoke-static {}, Lcom/ea/nimble/SynergyNetwork;->getComponent()Lcom/ea/nimble/ISynergyNetwork;
move-result-object v0
if-eqz v0, :cond_0
.line 192
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/ISynergyNetwork;->sendRequest(Lcom/ea/nimble/SynergyRequest;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getItemCatalog failed] Synergy Network is null, unable to send request"
.line 196
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public getItemSkuPrefix()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
return-object v0
.end method
.method public getLogSourceTitle()Ljava/lang/String;
.locals 1
const-string v0, "SynergyCatalog"
return-object v0
.end method
.method public getNonce(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.locals 4
.line 276
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$4;
invoke-direct {v0, p0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$4;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.line 300
new-instance v1, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$5;
invoke-direct {v1, p0, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$5;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;)V
.line 323
new-instance p1, Lcom/ea/nimble/SynergyRequest;
const-string v2, "/drm/api/core/getNonce"
sget-object v3, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
invoke-direct {p1, v2, v3, v0}, Lcom/ea/nimble/SynergyRequest;-><init>(Ljava/lang/String;Lcom/ea/nimble/IHttpRequest$Method;Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;)V
.line 324
invoke-static {}, Lcom/ea/nimble/SynergyNetwork;->getComponent()Lcom/ea/nimble/ISynergyNetwork;
move-result-object v0
if-eqz v0, :cond_0
.line 327
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/ISynergyNetwork;->sendRequest(Lcom/ea/nimble/SynergyRequest;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getNonce failed] Synergy network is null, unable to send request"
.line 331
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public getPurchasedItems(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;)V
.locals 4
.line 356
new-instance v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$7;
invoke-direct {v0, p0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$7;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;)V
.line 380
new-instance v1, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;
invoke-direct {v1, p0, p1}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$8;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemSkuCallback;)V
.line 406
new-instance p1, Lcom/ea/nimble/SynergyRequest;
const-string v2, "/drm/api/core/getPurchasedItems"
sget-object v3, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
invoke-direct {p1, v2, v3, v0}, Lcom/ea/nimble/SynergyRequest;-><init>(Ljava/lang/String;Lcom/ea/nimble/IHttpRequest$Method;Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;)V
.line 407
invoke-static {}, Lcom/ea/nimble/SynergyNetwork;->getComponent()Lcom/ea/nimble/ISynergyNetwork;
move-result-object v0
if-eqz v0, :cond_0
.line 410
invoke-interface {v0, p1, v1}, Lcom/ea/nimble/ISynergyNetwork;->sendRequest(Lcom/ea/nimble/SynergyRequest;Lcom/ea/nimble/SynergyNetworkConnectionCallback;)V
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "[getPurchasedItems failed] Synergy network is null, unable to send request"
.line 414
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public getSellIdFromSku(Ljava/lang/String;)Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
.line 119
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
if-eqz p1, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemSkuPrefix:Ljava/lang/String;
.line 121
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p1
.line 123
:cond_0
invoke-static {p1}, Lcom/ea/nimble/Utility;->isOnlyDecimalCharacters(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1
goto :goto_0
:cond_1
const/4 p1, 0x0
:goto_0
return-object p1
.end method
.method public loadBinaryDataForItems(Ljava/util/Collection;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;",
">;",
"Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;",
")V"
}
.end annotation
iget v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemsLoadingBinaryData:I
const/4 v1, 0x0
if-eqz v0, :cond_0
const-string p1, "Error: items already loading binary data"
new-array p2, v1, [Ljava/lang/Object;
.line 206
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.line 209
:cond_0
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_3
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.line 211
iget-object v2, v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_additionalInfo:Ljava/util/Map;
const-string v3, "binaryData"
invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
if-nez v2, :cond_1
.line 213
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getMetaDataUrl()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_1
.line 219
:try_start_0
new-instance v3, Ljava/net/URL;
invoke-direct {v3, v2}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
iget v2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemsLoadingBinaryData:I
add-int/lit8 v2, v2, 0x1
iput v2, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->m_itemsLoadingBinaryData:I
.line 227
invoke-static {}, Lcom/ea/nimble/Network;->getComponent()Lcom/ea/nimble/INetwork;
move-result-object v2
if-eqz v2, :cond_2
.line 230
new-instance v4, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;
invoke-direct {v4, p0, v0, p2}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$3;-><init>(Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$CompletionCallback;)V
const/4 v0, 0x0
invoke-interface {v2, v3, v0, v4}, Lcom/ea/nimble/INetwork;->sendGetRequest(Ljava/net/URL;Ljava/util/HashMap;Lcom/ea/nimble/NetworkConnectionCallback;)Lcom/ea/nimble/NetworkConnectionHandle;
goto :goto_0
:cond_2
const-string v0, "Synergy loadBinaryDataForItems failed! Network component was null, unable to send get request"
new-array v2, v1, [Ljava/lang/Object;
.line 267
invoke-static {p0, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 223
:catch_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Error: Malformed item url: "
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
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
new-array v2, v1, [Ljava/lang/Object;
invoke-static {p0, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:cond_3
return-void
.end method

View File

@@ -0,0 +1,216 @@
.class public Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.super Lcom/ea/nimble/mtx/NimbleCatalogItem;
.source "SourceFile"
# interfaces
.implements Ljava/io/Serializable;
# static fields
.field private static final serialVersionUID:J = 0x1L
# instance fields
.field m_additionalInfo:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field m_description:Ljava/lang/String;
.field m_formattedPrice:Ljava/lang/String;
.field m_isFree:Z
.field m_metaDataUrl:Ljava/lang/String;
.field m_price:F
.field m_sku:Ljava/lang/String;
.field m_title:Ljava/lang/String;
.field m_type:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
# direct methods
.method public constructor <init>()V
.locals 1
.line 25
invoke-direct {p0}, Lcom/ea/nimble/mtx/NimbleCatalogItem;-><init>()V
.line 26
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_additionalInfo:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 31
invoke-direct {p0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;-><init>()V
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_sku:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public getAdditionalInfo()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_additionalInfo:Ljava/util/Map;
return-object v0
.end method
.method public getDescription()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_description:Ljava/lang/String;
return-object v0
.end method
.method public getItemType()Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_type:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
return-object v0
.end method
.method public getMetaDataUrl()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_metaDataUrl:Ljava/lang/String;
return-object v0
.end method
.method public getPriceDecimal()F
.locals 1
iget v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_price:F
return v0
.end method
.method public getPriceWithCurrencyAndFormat()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_formattedPrice:Ljava/lang/String;
return-object v0
.end method
.method public getSellId()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_additionalInfo:Ljava/util/Map;
const-string v1, "sellId"
.line 44
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_additionalInfo:Ljava/util/Map;
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public getSku()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_sku:Ljava/lang/String;
return-object v0
.end method
.method public getTitle()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_title:Ljava/lang/String;
return-object v0
.end method
.method public isFree()Z
.locals 1
iget-boolean v0, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_isFree:Z
return v0
.end method
.method public setDescription(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_description:Ljava/lang/String;
return-void
.end method
.method public setPriceDecimal(F)V
.locals 0
iput p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_price:F
return-void
.end method
.method public setPriceWithCurrencyAndFormat(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_formattedPrice:Ljava/lang/String;
return-void
.end method
.method public setTitle(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->m_title:Ljava/lang/String;
return-void
.end method

View File

@@ -0,0 +1,136 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/billingclient/api/BillingClientStateListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->createBillingHelper()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 289
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onBillingServiceDisconnected()V
.locals 2
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 305
invoke-static {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$600(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->dispose()V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const/4 v1, 0x0
.line 306
invoke-static {v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$602(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;)Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, "Billing Service Disconnected"
.line 307
invoke-static {p0, v1, v0}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public onBillingSetupFinished(Lcom/android/billingclient/api/BillingResult;)V
.locals 3
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const/4 v1, 0x0
.line 293
invoke-static {v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$402(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)Z
.line 294
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v0
if-eqz v0, :cond_0
.line 296
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Error setting up the billing helper: "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v2, " "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getDebugMessage()Ljava/lang/String;
move-result-object p1
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 p1
new-array v0, v1, [Ljava/lang/Object;
invoke-static {p0, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 299
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$500(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;
move-result-object p1
invoke-virtual {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->restoreItems()V
return-void
.end method

View File

@@ -0,0 +1,277 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$10;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/billingclient/api/ConsumeResponseListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->googlePlayConsumeItem(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$10;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2569
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onConsumeResponse(Lcom/android/billingclient/api/BillingResult;Ljava/lang/String;)V
.locals 6
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 2573
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$10;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2575
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$10;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2577
iget-object v1, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mPendingTransactions:Ljava/util/HashMap;
invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v1
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v1
const/4 v2, 0x0
:cond_0
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2579
iget-object v4, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
sget-object v5, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->GOOGLEPLAY_ADDITIONALINFO_KEY_TOKEN:Ljava/lang/String;
invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/io/Serializable;
invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v4
if-ne v4, p2, :cond_0
move-object v2, v3
goto :goto_0
:catchall_0
move-exception p1
goto/16 :goto_2
.line 2584
:cond_1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 2585
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result p2
const/4 v0, 0x0
if-eqz p2, :cond_3
if-eqz v2, :cond_6
.line 2592
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "GooglePlay consume item failed, item SKU: "
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getItemSku()Ljava/lang/String;
move-result-object v1
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
new-array v1, v0, [Ljava/lang/Object;
invoke-static {p0, p2, v1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$10;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2593
invoke-static {p2, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/android/billingclient/api/BillingResult;)Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
move-result-object p1
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$10;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v1, "GooglePlay item consumption error."
.line 2594
invoke-static {p2, p1, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1200(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayError;Ljava/lang/String;)Lcom/ea/nimble/mtx/NimbleMTXError;
move-result-object p1
.line 2595
iput-object p1, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
.line 2596
iget-object p1, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object p1, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$10;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2606
sget-object p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {p1, v2, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
.line 2609
iget-object p1, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemGrantedCallback:Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;
if-eqz p1, :cond_2
.line 2611
invoke-interface {p1, v2}, Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;->itemGrantedComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
goto :goto_1
:cond_2
const-string p1, "Transaction does not have a consume callback to notify game of the finalize error."
new-array p2, v0, [Ljava/lang/Object;
.line 2615
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_1
:cond_3
if-eqz v2, :cond_5
.line 2625
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "GooglePlay consume item success, item SKU: "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getItemSku()Ljava/lang/String;
move-result-object p2
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, v0, [Ljava/lang/Object;
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/mtx/googleplay/GooglePlay$10;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2627
sget-object p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {p1, v2, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
.line 2630
iget-object p1, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemGrantedCallback:Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;
if-eqz p1, :cond_4
.line 2632
invoke-interface {p1, v2}, Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;->itemGrantedComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
goto :goto_1
:cond_4
const-string p1, "Transaction does not have a consume callback to notify game."
new-array p2, v0, [Ljava/lang/Object;
.line 2636
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_1
:cond_5
const-string p1, "Unable to find consumed transaction to remove."
new-array p2, v0, [Ljava/lang/Object;
.line 2643
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_6
:goto_1
return-void
.line 2584
:goto_2
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method

View File

@@ -0,0 +1,121 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/billingclient/api/AcknowledgePurchaseResponseListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->googlePlayAcknowledgePurchase(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.field final synthetic val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 3019
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onAcknowledgePurchaseResponse(Lcom/android/billingclient/api/BillingResult;)V
.locals 2
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 3025
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3027
invoke-static {v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/android/billingclient/api/BillingResult;)Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
move-result-object p1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v1, "GooglePlay item consumption error."
.line 3028
invoke-static {v0, p1, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1200(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayError;Ljava/lang/String;)Lcom/ea/nimble/mtx/NimbleMTXError;
move-result-object p1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 3029
iput-object p1, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
.line 3030
iget-object p1, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object p1, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
:cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 3033
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {p1, v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$11;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 3035
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemGrantedCallback:Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;
if-eqz v0, :cond_1
.line 3037
invoke-interface {v0, p1}, Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;->itemGrantedComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
goto :goto_0
:cond_1
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "Transaction does not have a consume callback to notify game of the finalize error."
.line 3041
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,79 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$1SkuComparator;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->getAvailableCatalogItems()Ljava/util/List;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "SkuComparator"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Comparator<",
"Lcom/ea/nimble/mtx/NimbleCatalogItem;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$1SkuComparator;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1763
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public compare(Lcom/ea/nimble/mtx/NimbleCatalogItem;Lcom/ea/nimble/mtx/NimbleCatalogItem;)I
.locals 0
.line 1768
invoke-virtual {p1}, Lcom/ea/nimble/mtx/NimbleCatalogItem;->getSku()Ljava/lang/String;
move-result-object p1
invoke-virtual {p2}, Lcom/ea/nimble/mtx/NimbleCatalogItem;->getSku()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I
move-result p1
return p1
.end method
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 0
.line 1763
check-cast p1, Lcom/ea/nimble/mtx/NimbleCatalogItem;
check-cast p2, Lcom/ea/nimble/mtx/NimbleCatalogItem;
invoke-virtual {p0, p1, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$1SkuComparator;->compare(Lcom/ea/nimble/mtx/NimbleCatalogItem;Lcom/ea/nimble/mtx/NimbleCatalogItem;)I
move-result p1
return p1
.end method

View File

@@ -0,0 +1,53 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$2;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->restore()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$2;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 409
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
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string p2, "refreshing catalog items after language change"
.line 412
invoke-static {p0, p2, p1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$2;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 413
invoke-virtual {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->refreshAvailableCatalogItems()V
return-void
.end method

View File

@@ -0,0 +1,375 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/billingclient/api/ProductDetailsResponseListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->purchaseItem(Ljava/lang/String;Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;Ljava/lang/String;)Lcom/ea/nimble/Error;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.field final synthetic val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.field final synthetic val$sku:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/String;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$sku:Ljava/lang/String;
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 673
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onProductDetailsResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 5
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/billingclient/api/BillingResult;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/ProductDetails;",
">;)V"
}
.end annotation
.line 678
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_3
invoke-interface {p2}, Ljava/util/List;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto/16 :goto_2
.line 705
:cond_0
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/android/billingclient/api/ProductDetails;
.line 708
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
move-result-object p2
const-string v0, "subs"
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
const v0, 0x49742400 # 1000000.0f
if-eqz p2, :cond_1
.line 710
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
move-result-object p2
.line 711
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
.line 712
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
move-result-object p2
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
move-result-object p2
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 713
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceAmountMicros()J
move-result-wide v3
long-to-float v3, v3
div-float/2addr v3, v0
iput v3, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
.line 714
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceCurrencyCode()Ljava/lang/String;
move-result-object p2
goto :goto_0
:cond_1
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 718
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
move-result-object v2
invoke-virtual {v2}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceAmountMicros()J
move-result-wide v2
long-to-float v2, v2
div-float/2addr v2, v0
iput v2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
.line 719
invoke-virtual {p1}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
move-result-object p2
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceCurrencyCode()Ljava/lang/String;
move-result-object p2
:goto_0
const-string v0, "localCurrency"
if-eqz p2, :cond_2
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 724
iget-object v1, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-interface {v1, v0, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
:cond_2
const-string p2, "Currency information not currently available; using local currency instead."
new-array v1, v1, [Ljava/lang/Object;
.line 728
invoke-static {p0, p2, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 729
iget-object p2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v1
invoke-interface {v1}, Lcom/ea/nimble/IApplicationEnvironment;->getCurrencyCode()Ljava/lang/String;
move-result-object v1
invoke-interface {p2, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:goto_1
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 734
invoke-static {v0, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1000(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)Ljava/lang/String;
move-result-object v0
iput-object v0, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mDeveloperPayload:Ljava/lang/String;
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 737
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_ACTIVITY_RESPONSE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {p2, v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 738
invoke-static {p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$600(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;
move-result-object p2
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getCurrentActivity()Landroid/app/Activity;
move-result-object v0
invoke-virtual {p2, v0, p1}, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->launchPurchaseFlow(Landroid/app/Activity;Lcom/android/billingclient/api/ProductDetails;)V
return-void
.line 680
:cond_3
:goto_2
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Query inventory error: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getDebugMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
new-array v0, v1, [Ljava/lang/Object;
invoke-static {p0, p2, v0}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 682
invoke-static {p2, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/android/billingclient/api/BillingResult;)Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
.line 683
new-instance p1, Lcom/ea/nimble/mtx/NimbleMTXError;
sget-object p2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->ERROR_GETTING_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Failed to get prepurchase info for item "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$sku:Ljava/lang/String;
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
invoke-direct {p1, p2, v0}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 686
iput-object p1, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
.line 687
iget-object p1, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object p1, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 689
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {p1, p2, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$3;->val$newTransaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 690
iget-object p2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPurchaseCallback:Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
if-eqz p2, :cond_4
.line 695
:try_start_0
invoke-interface {p2, p1}, Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;->purchaseComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_3
:catch_0
move-exception p1
.line 699
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "MTX_GOOGLE: Unhandled exception in mPurchaseCallback: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
new-array v0, v1, [Ljava/lang/Object;
invoke-static {p0, p2, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 700
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
:cond_4
:goto_3
return-void
.end method

View File

@@ -0,0 +1,183 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/billingclient/api/ProductDetailsResponseListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->onQueryPurchasesResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;
.field final synthetic val$list:Ljava/util/List;
.field final synthetic val$skuCurrencyCodeMap:Ljava/util/HashMap;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;Ljava/util/HashMap;Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->val$skuCurrencyCodeMap:Ljava/util/HashMap;
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->val$list:Ljava/util/List;
.line 1241
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onProductDetailsResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 3
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/billingclient/api/BillingResult;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/ProductDetails;",
">;)V"
}
.end annotation
.line 1245
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result p1
if-nez p1, :cond_1
.line 1247
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p2
if-eqz p2, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/android/billingclient/api/ProductDetails;
.line 1249
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
move-result-object v0
const-string v1, "subs"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->val$skuCurrencyCodeMap:Ljava/util/HashMap;
.line 1251
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails;->getProductId()Ljava/lang/String;
move-result-object v1
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
move-result-object p2
const/4 v2, 0x0
invoke-interface {p2, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
move-result-object p2
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
move-result-object p2
invoke-interface {p2, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceCurrencyCode()Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, v1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->val$skuCurrencyCodeMap:Ljava/util/HashMap;
.line 1255
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails;->getProductId()Ljava/lang/String;
move-result-object v1
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
move-result-object p2
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceCurrencyCode()Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, v1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;
.line 1259
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->val$list:Ljava/util/List;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;->val$skuCurrencyCodeMap:Ljava/util/HashMap;
invoke-static {p1, p2, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1100(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;Ljava/util/HashMap;)V
return-void
.end method

View File

@@ -0,0 +1,332 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/billingclient/api/PurchasesResponseListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->restorePurchasedTransactionsImpl(Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1200
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onQueryPurchasesResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 10
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/billingclient/api/BillingResult;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/Purchase;",
">;)V"
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/Object;
const-string v3, "restorePurchasedTransactions onQueryPurchasesResponse"
.line 1204
invoke-static {v0, v3, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 1207
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v0
const/4 v2, 0x0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1209
invoke-static {v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/android/billingclient/api/BillingResult;)Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
move-result-object p1
.line 1210
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
const-string v3, "Error with GooglePlay purchased item query. %s"
invoke-static {p0, v3, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:cond_0
move-object p1, v2
.line 1217
:goto_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 1218
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
.line 1219
new-instance v4, Ljava/util/HashMap;
invoke-direct {v4}, Ljava/util/HashMap;-><init>()V
.line 1221
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v5
if-lez v5, :cond_4
.line 1223
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v5
:goto_1
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v6
if-eqz v6, :cond_2
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/android/billingclient/api/Purchase;
.line 1225
invoke-virtual {v6}, Lcom/android/billingclient/api/Purchase;->getProducts()Ljava/util/List;
move-result-object v6
invoke-interface {v6, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/String;
iget-object v7, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1226
iget-object v7, v7, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mCatalogItems:Ljava/util/HashMap;
invoke-virtual {v7, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
if-eqz v7, :cond_1
.line 1227
iget-object v8, v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
const-string v9, "localCurrency"
invoke-interface {v8, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v8
invoke-virtual {v8}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v8
invoke-static {v8}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
move-result v8
if-eqz v8, :cond_1
.line 1229
iget-object v7, v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
invoke-interface {v7, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v7
invoke-virtual {v4, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1
.line 1233
:cond_1
invoke-static {}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product;->newBuilder()Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
move-result-object v7
invoke-virtual {v7, v6}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductId(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
move-result-object v7
const-string v8, "subs"
invoke-virtual {v7, v8}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductType(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
move-result-object v7
invoke-virtual {v7}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->build()Lcom/android/billingclient/api/QueryProductDetailsParams$Product;
move-result-object v7
invoke-interface {v0, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 1234
invoke-static {}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product;->newBuilder()Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
move-result-object v7
invoke-virtual {v7, v6}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductId(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
move-result-object v6
const-string v7, "inapp"
invoke-virtual {v6, v7}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->setProductType(Ljava/lang/String;)Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;
move-result-object v6
invoke-virtual {v6}, Lcom/android/billingclient/api/QueryProductDetailsParams$Product$Builder;->build()Lcom/android/billingclient/api/QueryProductDetailsParams$Product;
move-result-object v6
invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
.line 1238
:cond_2
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v5
if-nez v5, :cond_3
invoke-interface {v3}, Ljava/util/List;->isEmpty()Z
move-result v5
if-nez v5, :cond_3
iget-object v5, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1240
invoke-static {v5}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$600(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;
move-result-object v5
new-instance v6, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;
invoke-direct {v6, p0, v4, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;Ljava/util/HashMap;Ljava/util/List;)V
invoke-virtual {v5, v0, v3, v6}, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->queryProductDetailsAsync(Ljava/util/List;Ljava/util/List;Lcom/android/billingclient/api/ProductDetailsResponseListener;)V
goto :goto_2
:cond_3
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1265
invoke-static {v0, p2, v4}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1100(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;Ljava/util/HashMap;)V
:cond_4
:goto_2
if-nez p1, :cond_5
.line 1269
invoke-interface {p2}, Ljava/util/List;->isEmpty()Z
move-result p2
if-eqz p2, :cond_7
:cond_5
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1271
iget-object p2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mPurchasedTransactions:Ljava/util/HashMap;
invoke-virtual {p2}, Ljava/util/HashMap;->clear()V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1272
invoke-static {p2, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$202(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)Z
if-eqz p1, :cond_6
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v0, "Error with GooglePlay purchased item query"
.line 1277
invoke-static {p2, p1, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1200(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayError;Ljava/lang/String;)Lcom/ea/nimble/mtx/NimbleMTXError;
move-result-object p1
goto :goto_3
:cond_6
move-object p1, v2
:goto_3
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$4;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v0, "nimble.notification.mtx.restorepurchasedtransactionsfinished"
.line 1279
invoke-static {p2, v0, p1, v2, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1300(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/String;Lcom/ea/nimble/Error;Ljava/lang/String;Landroid/os/Bundle;)V
:cond_7
return-void
.end method

View File

@@ -0,0 +1,59 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$5$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;->callback(Ljava/util/List;Ljava/lang/Exception;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;
.line 1721
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCatalogItemsRetrieved(Ljava/util/List;Ljava/lang/Exception;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;",
">;",
"Ljava/lang/Exception;",
")V"
}
.end annotation
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;
.line 1726
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-static {v0, p1, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1500(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;Ljava/lang/Exception;)V
return-void
.end method

View File

@@ -0,0 +1,305 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$ItemCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->networkCallGetAvailableItems()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1658
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Ljava/util/List;Ljava/lang/Exception;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;",
">;",
"Ljava/lang/Exception;",
")V"
}
.end annotation
.line 1662
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
if-nez p2, :cond_2
.line 1668
new-instance p2, Ljava/util/LinkedList;
invoke-direct {p2}, Ljava/util/LinkedList;-><init>()V
.line 1669
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;
.line 1671
new-instance v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
invoke-direct {v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;-><init>()V
.line 1672
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getItemType()Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
move-result-object v2
iput-object v2, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 1673
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getAdditionalInfo()Ljava/util/Map;
move-result-object v2
iput-object v2, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
.line 1674
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getDescription()Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
.line 1675
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getSku()Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
.line 1676
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getTitle()Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
.line 1677
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->getMetaDataUrl()Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
.line 1678
invoke-virtual {v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalogItem;->isFree()Z
move-result v0
iput-boolean v0, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mIsFree:Z
.line 1680
invoke-interface {p2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 1684
:cond_0
invoke-static {}, Lcom/ea/nimble/Base;->getConfiguration()Lcom/ea/nimble/NimbleConfiguration;
move-result-object p1
sget-object v0, Lcom/ea/nimble/NimbleConfiguration;->LIVE:Lcom/ea/nimble/NimbleConfiguration;
if-eq p1, v0, :cond_1
.line 1686
new-instance p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
invoke-direct {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;-><init>()V
const-string v0, "android.test.purchased"
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
const-string v0, "GP Purchased"
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
const-string v0, "GP Purchased Desc"
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
const-string v0, ""
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
.line 1691
sget-object v1, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->NONCONSUMABLE:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
iput-object v1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 1692
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 1694
new-instance p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
invoke-direct {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;-><init>()V
const-string v2, "android.test.canceled"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
const-string v2, "GP Canceled"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
const-string v2, "GP Canceled Desc"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
iput-object v1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 1700
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 1702
new-instance p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
invoke-direct {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;-><init>()V
const-string v2, "android.test.refunded"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
const-string v2, "GP Refunded"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
const-string v2, "GP Refunded Desc"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
iput-object v1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 1708
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 1710
new-instance p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
invoke-direct {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;-><init>()V
const-string v2, "android.test.item_unavailable"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
const-string v2, "GP Unavailable"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
const-string v2, "GP Unavailable Desc"
iput-object v2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
iput-object v1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 1716
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1720
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5$1;
invoke-direct {v0, p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;)V
invoke-static {p1, p2, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1600(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;)V
goto :goto_1
.line 1732
:cond_2
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "GetAvailableItems error: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
invoke-static {p0, p1, v0}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 1733
new-instance p1, Lcom/ea/nimble/Error;
sget-object v0, Lcom/ea/nimble/Error$Code;->UNKNOWN:Lcom/ea/nimble/Error$Code;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {p1, v0, v1, p2}, Lcom/ea/nimble/Error;-><init>(Lcom/ea/nimble/Error$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$5;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v0, "nimble.notification.mtx.refreshcatalogfinished"
const/4 v1, 0x0
.line 1734
invoke-static {p2, v0, p1, v1, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1300(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/String;Lcom/ea/nimble/Error;Ljava/lang/String;Landroid/os/Bundle;)V
:goto_1
return-void
.end method

View File

@@ -0,0 +1,490 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/android/billingclient/api/ProductDetailsResponseListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->getGooglePlayPricingForPendingCatalogItems(Ljava/util/List;Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
.field final synthetic val$itemList:Ljava/util/List;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$itemList:Ljava/util/List;
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
.line 1813
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onProductDetailsResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 11
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/billingclient/api/BillingResult;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/ProductDetails;",
">;)V"
}
.end annotation
.line 1817
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "GooglePlaySkuDetailsResponseListener onSkuDetailsResponse: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/Object;
invoke-static {p0, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 1818
new-instance v0, Ljava/util/ArrayList;
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$itemList:Ljava/util/List;
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 1820
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v2
if-eqz v2, :cond_0
.line 1822
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Query inventory error: "
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getDebugMessage()Ljava/lang/String;
move-result-object v2
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
new-array v1, v1, [Ljava/lang/Object;
invoke-static {p0, p2, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 1824
invoke-static {p2, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/android/billingclient/api/BillingResult;)Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
move-result-object p1
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v1, "GooglePlay catalog query error"
.line 1825
invoke-static {p2, p1, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1200(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayError;Ljava/lang/String;)Lcom/ea/nimble/mtx/NimbleMTXError;
move-result-object p1
goto/16 :goto_3
.line 1829
:cond_0
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
.line 1830
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p2
:goto_0
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/android/billingclient/api/ProductDetails;
.line 1832
invoke-virtual {v2}, Lcom/android/billingclient/api/ProductDetails;->getProductId()Ljava/lang/String;
move-result-object v3
invoke-virtual {p1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
.line 1836
:cond_1
new-instance p2, Ljava/util/HashSet;
invoke-direct {p2}, Ljava/util/HashSet;-><init>()V
.line 1837
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_2
:goto_1
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_5
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
.line 1839
invoke-virtual {v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->getSku()Ljava/lang/String;
move-result-object v4
invoke-virtual {p1, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/android/billingclient/api/ProductDetails;
if-eqz v4, :cond_4
.line 1846
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getTitle()Ljava/lang/String;
move-result-object v5
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
.line 1847
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getDescription()Ljava/lang/String;
move-result-object v5
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
.line 1848
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
move-result-object v5
const-string v6, "subs"
invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v5
const-string v7, "localCurrency"
const v8, 0x49742400 # 1000000.0f
if-eqz v5, :cond_3
.line 1850
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
move-result-object v5
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
move-result-object v5
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
move-result-object v5
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getFormattedPrice()Ljava/lang/String;
move-result-object v5
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
.line 1852
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
move-result-object v5
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
move-result-object v5
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
move-result-object v5
invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceAmountMicros()J
move-result-wide v9
long-to-float v5, v9
div-float/2addr v5, v8
iput v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
.line 1853
iget-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
move-result-object v8
invoke-interface {v8, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v8
check-cast v8, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getPricingPhases()Lcom/android/billingclient/api/ProductDetails$PricingPhases;
move-result-object v8
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->getPricingPhaseList()Ljava/util/List;
move-result-object v8
invoke-interface {v8, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v8
check-cast v8, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;->getPriceCurrencyCode()Ljava/lang/String;
move-result-object v8
invoke-interface {v5, v7, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_2
.line 1857
:cond_3
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
move-result-object v5
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getFormattedPrice()Ljava/lang/String;
move-result-object v5
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
.line 1858
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
move-result-object v5
invoke-virtual {v5}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceAmountMicros()J
move-result-wide v9
long-to-float v5, v9
div-float/2addr v5, v8
iput v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
.line 1859
iget-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getOneTimePurchaseOfferDetails()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;
move-result-object v8
invoke-virtual {v8}, Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;->getPriceCurrencyCode()Ljava/lang/String;
move-result-object v8
invoke-interface {v5, v7, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1863
:goto_2
invoke-virtual {v4}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
move-result-object v4
invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_2
iget-object v4, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
sget-object v5, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->SUBSCRIPTION:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
if-eq v4, v5, :cond_2
.line 1865
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v6, "EA Catalog failed to recognize "
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->getSku()Ljava/lang/String;
move-result-object v6
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v6, " as subscription. Updating item type based on First Party response."
invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
new-array v6, v1, [Ljava/lang/Object;
invoke-static {p0, v4, v6}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 1866
iput-object v5, v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
goto/16 :goto_1
.line 1871
:cond_4
invoke-interface {p2, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto/16 :goto_1
.line 1876
:cond_5
invoke-interface {p2}, Ljava/util/Set;->size()I
move-result p1
if-lez p1, :cond_6
.line 1878
invoke-interface {v0, p2}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z
.line 1880
:cond_6
invoke-interface {v0}, Ljava/util/List;->size()I
move-result p1
if-nez p1, :cond_7
.line 1882
new-instance p1, Lcom/ea/nimble/mtx/NimbleMTXError;
sget-object p2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->EMPTY_BILLING_CATALOG:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const-string v1, "Billing platform returned no matching items"
invoke-direct {p1, p2, v1}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;)V
goto :goto_3
:cond_7
const/4 p1, 0x0
:goto_3
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$6;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
.line 1887
invoke-interface {p2, v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;->onCatalogItemsRetrieved(Ljava/util/List;Ljava/lang/Exception;)V
return-void
.end method

View File

@@ -0,0 +1,89 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog$StringCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->networkCallGetNonceFromSynergy(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;
.field final synthetic val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 1971
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public callback(Ljava/lang/String;Ljava/lang/Exception;)V
.locals 3
.line 1975
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
const/4 v0, 0x0
if-nez p2, :cond_0
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 1978
invoke-interface {p2, v1, p1, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;->onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
goto :goto_0
.line 1982
:cond_0
new-instance p1, Lcom/ea/nimble/mtx/NimbleMTXError;
sget-object v1, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->GET_NONCE_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const-string v2, "Synergy getNonce request error."
invoke-direct {p1, v1, v2, p2}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$7;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 1984
invoke-interface {p2, v1, v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;->onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,683 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/IApplicationEnvironment$AdvertisingIdCalback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.field final synthetic val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
.field final synthetic val$request:Lcom/ea/nimble/SynergyRequest;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;Lcom/ea/nimble/IApplicationEnvironment;Lcom/ea/nimble/SynergyRequest;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$request:Lcom/ea/nimble/SynergyRequest;
.line 2372
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCallback(Ljava/lang/String;Z)V
.locals 10
const-string v0, "receipt"
const-string v1, ""
.line 2376
invoke-static {}, Lcom/ea/nimble/SynergyEnvironment;->getComponent()Lcom/ea/nimble/ISynergyEnvironment;
move-result-object v2
.line 2377
invoke-static {}, Lcom/ea/nimble/SynergyIdManager;->getComponent()Lcom/ea/nimble/ISynergyIdManager;
move-result-object v3
.line 2379
new-instance v4, Ljava/util/HashMap;
invoke-direct {v4}, Ljava/util/HashMap;-><init>()V
iget-object v5, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2382
iget-object v5, v5, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v5}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getCatalogItem()Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
move-result-object v5
const/4 v6, 0x1
const/4 v7, 0x0
if-eqz v5, :cond_0
iget-object v5, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
iget-object v5, v5, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v5}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getCatalogItem()Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
move-result-object v5
invoke-virtual {v5}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->isFree()Z
move-result v5
if-eqz v5, :cond_0
move v5, v6
goto :goto_0
:cond_0
move v5, v7
:goto_0
iget-object v8, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2383
iget-object v8, v8, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v8}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getAdditionalInfo()Ljava/util/Map;
move-result-object v8
sget-object v9, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->GOOGLEPLAY_ADDITIONALINFO_KEY_ORDERID:Ljava/lang/String;
invoke-interface {v8, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v8
const-string v9, "transactionId"
invoke-virtual {v4, v9, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v8, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2384
iget-object v8, v8, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v8}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getPriceDecimal()F
move-result v8
const/high16 v9, 0x42c80000 # 100.0f
mul-float/2addr v8, v9
float-to-int v8, v8
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v8
const-string v9, "price"
invoke-virtual {v4, v9, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v8, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2385
iget-object v8, v8, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v8}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getAdditionalInfo()Ljava/util/Map;
move-result-object v8
const-string v9, "localCurrency"
invoke-interface {v8, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v8
const-string v9, "currency"
invoke-virtual {v4, v9, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v8, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2386
iget-object v8, v8, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v8}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getTransactionType()Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
move-result-object v8
sget-object v9, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->RESTORE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
if-ne v8, v9, :cond_1
goto :goto_1
:cond_1
move v6, v7
:goto_1
invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v6
const-string v8, "restore"
invoke-virtual {v4, v8, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_start_0
iget-object v6, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2390
iget-object v6, v6, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v6}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getAdditionalInfo()Ljava/util/Map;
move-result-object v6
sget-object v8, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->GOOGLEPLAY_ADDITIONALINFO_KEY_PURCHASEDATA:Ljava/lang/String;
invoke-interface {v6, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v6
invoke-virtual {v4, v0, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:catch_0
const-string v6, "Exception creating JSON body for /recordPurchase"
new-array v7, v7, [Ljava/lang/Object;
.line 2394
invoke-static {p0, v6, v7}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 2395
invoke-virtual {v4, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:goto_2
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2400
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getItemSku()Ljava/lang/String;
move-result-object v0
iget-object v6, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2401
iget-object v6, v6, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object v6, v6, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->m_synergyCatalog:Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;
invoke-virtual {v6, v0}, Lcom/ea/nimble/mtx/catalog/synergy/SynergyCatalog;->getSellIdFromSku(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
const-string v7, "itemSellId"
if-eqz v6, :cond_2
.line 2405
invoke-virtual {v4, v7, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_3
:cond_2
const-string v6, "skuAlias"
.line 2410
invoke-virtual {v4, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v6, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2411
iget-object v6, v6, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object v6, v6, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mCatalogItems:Ljava/util/HashMap;
invoke-virtual {v6, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
if-eqz v0, :cond_3
.line 2414
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->getSellId()Ljava/lang/String;
move-result-object v0
invoke-virtual {v4, v7, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2418
:cond_3
:goto_3
invoke-interface {v2}, Lcom/ea/nimble/ISynergyEnvironment;->getSellId()Ljava/lang/String;
move-result-object v0
const-string v6, "masterSellId"
invoke-virtual {v4, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "hwId"
.line 2419
invoke-interface {v2}, Lcom/ea/nimble/ISynergyEnvironment;->getEAHardwareId()Ljava/lang/String;
move-result-object v6
invoke-virtual {v4, v0, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2420
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getReceipt()Ljava/lang/String;
move-result-object v0
const-string v6, "signature"
invoke-virtual {v4, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2421
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getNonce()Ljava/lang/String;
move-result-object v0
const-string v6, "nonce"
invoke-virtual {v4, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "isFree"
.line 2422
invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v5
invoke-virtual {v4, v0, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2425
invoke-interface {v3}, Lcom/ea/nimble/ISynergyIdManager;->getSynergyId()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_4
if-eq v0, v1, :cond_4
const-string v3, "synergyUid"
.line 2428
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v4, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2430
:cond_4
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 2433
invoke-static {p2}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;
move-result-object p2
.line 2436
invoke-interface {v2}, Lcom/ea/nimble/ISynergyEnvironment;->getEADeviceId()Ljava/lang/String;
move-result-object v3
invoke-static {v3}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
const-string v5, "eaDeviceId"
invoke-virtual {v0, v5, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
.line 2437
invoke-interface {v3}, Lcom/ea/nimble/IApplicationEnvironment;->getAndroidId()Ljava/lang/String;
move-result-object v3
const-string v5, "androidId"
invoke-virtual {v0, v5, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v3, "advertiserId"
.line 2438
invoke-static {p1}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, v3, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2439
invoke-static {p2}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v3, "limitAdTracking"
invoke-virtual {v0, v3, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p1, "aut"
.line 2440
invoke-static {v1}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, p1, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p1, "didMap"
.line 2441
invoke-static {v0}, Lcom/ea/nimble/Utility;->convertObjectToJSONString(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v4, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
if-eqz p1, :cond_5
.line 2450
invoke-interface {p1}, Lcom/ea/nimble/IApplicationEnvironment;->getPlayerIdMap()Ljava/util/Map;
move-result-object p1
if-eqz p1, :cond_5
.line 2451
invoke-interface {p1}, Ljava/util/Map;->size()I
move-result v0
if-lez v0, :cond_5
const-string v0, "pidMap"
.line 2453
invoke-static {p1}, Lcom/ea/nimble/Utility;->convertObjectToJSONString(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v4, v0, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2458
:cond_5
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.line 2459
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getTimeStamp()Ljava/util/Date;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->getUTCDateStringFormat(Ljava/util/Date;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "timestamp"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
.line 2460
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationBundleId()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "bundleId"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
.line 2461
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationName()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "appName"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
.line 2462
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getApplicationVersion()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "appVersion"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2463
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/IApplicationEnvironment;->getShortApplicationLanguageCode()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "appLanguage"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2464
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "countryCode"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "com.facebook.sdk.ApplicationId"
.line 2465
invoke-static {v0}, Lcom/ea/nimble/NimbleApplicationConfiguration;->getConfigValueAsString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 2467
invoke-static {v0}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_6
const-string v1, "fbAppId"
.line 2469
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_6
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$appEnv:Lcom/ea/nimble/IApplicationEnvironment;
const-string v1, "fbAttrId"
.line 2472
invoke-interface {v0, v1}, Lcom/ea/nimble/IApplicationEnvironment;->getParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 2473
invoke-static {v0}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_7
.line 2475
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_7
const-string v0, "appInfo"
.line 2478
invoke-static {p1}, Lcom/ea/nimble/Utility;->convertObjectToJSONString(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v4, v0, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2481
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
const-string v0, "systemName"
const-string v1, "Android"
.line 2482
invoke-virtual {p1, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2483
invoke-virtual {p1, v3, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p2, "deviceInfo"
.line 2484
invoke-static {p1}, Lcom/ea/nimble/Utility;->convertObjectToJSONString(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v4, p2, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p1, "schemaVer"
const-string p2, "2"
.line 2487
invoke-virtual {v4, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string p1, "clientApiVersion"
const-string p2, "2.0.0"
.line 2488
invoke-virtual {v4, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$request:Lcom/ea/nimble/SynergyRequest;
.line 2491
new-instance p2, Lcom/ea/nimble/mtx/googleplay/GooglePlay$JsonData;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-direct {p2, v0, v4}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$JsonData;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/HashMap;)V
iput-object p2, p1, Lcom/ea/nimble/SynergyRequest;->jsonData:Lcom/ea/nimble/ISynergyRequest$IJsonData;
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$request:Lcom/ea/nimble/SynergyRequest;
const-string p2, "synergy.drm"
.line 2492
invoke-interface {v2, p2}, Lcom/ea/nimble/ISynergyEnvironment;->getServerUrlWithKey(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
iput-object p2, p1, Lcom/ea/nimble/SynergyRequest;->baseUrl:Ljava/lang/String;
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;->val$request:Lcom/ea/nimble/SynergyRequest;
.line 2494
invoke-virtual {p1}, Lcom/ea/nimble/SynergyRequest;->send()V
return-void
.end method

View File

@@ -0,0 +1,66 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyRequest$SynergyRequestPreparingCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->networkCallRecordPurchase(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.field final synthetic val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2365
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public prepareRequest(Lcom/ea/nimble/SynergyRequest;)V
.locals 2
.line 2369
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 2370
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->getComponent()Lcom/ea/nimble/IApplicationEnvironment;
move-result-object v0
.line 2371
new-instance v1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;
invoke-direct {v1, p0, v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$8$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$8;Lcom/ea/nimble/IApplicationEnvironment;Lcom/ea/nimble/SynergyRequest;)V
invoke-interface {v0, v1}, Lcom/ea/nimble/IApplicationEnvironment;->retrieveAdvertisingId(Lcom/ea/nimble/IApplicationEnvironment$AdvertisingIdCalback;)V
return-void
.end method

View File

@@ -0,0 +1,212 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/SynergyNetworkConnectionCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;->networkCallRecordPurchase(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.field final synthetic val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;
.field final synthetic val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;
.line 2501
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 2505
invoke-interface {p1}, Lcom/ea/nimble/SynergyNetworkConnectionHandle;->getResponse()Lcom/ea/nimble/ISynergyResponse;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/ISynergyResponse;->getError()Ljava/lang/Exception;
move-result-object v0
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_0
.line 2508
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
.line 2509
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "recordPurchase response: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-array v2, v2, [Ljava/lang/Object;
invoke-static {p0, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2510
iput-boolean v1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mIsRecorded:Z
goto :goto_0
.line 2512
:cond_0
instance-of p1, v0, Lcom/ea/nimble/Error;
if-eqz p1, :cond_1
.line 2514
move-object p1, v0
check-cast p1, Lcom/ea/nimble/Error;
.line 2517
invoke-virtual {p1}, Lcom/ea/nimble/Error;->getDomain()Ljava/lang/String;
move-result-object v3
const-string v4, "SynergyServerError"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1
invoke-virtual {p1}, Lcom/ea/nimble/Error;->getCode()I
move-result v3
sget-object v4, Lcom/ea/nimble/SynergyServerError$Code;->AMAZON_SERVER_CONNECTION_ERROR:Lcom/ea/nimble/SynergyServerError$Code;
invoke-virtual {v4}, Lcom/ea/nimble/SynergyServerError$Code;->intValue()I
move-result v4
if-eq v3, v4, :cond_1
invoke-virtual {p1}, Lcom/ea/nimble/Error;->getCode()I
move-result v3
sget-object v4, Lcom/ea/nimble/SynergyServerError$Code;->APPLE_SERVER_CONNECTION_ERROR:Lcom/ea/nimble/SynergyServerError$Code;
invoke-virtual {v4}, Lcom/ea/nimble/SynergyServerError$Code;->intValue()I
move-result v4
if-eq v3, v4, :cond_1
iget-object v3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2519
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "Transaction "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v5, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
iget-object v5, v5, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionId:Ljava/lang/String;
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v5, " failed to record with error: "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-array v2, v2, [Ljava/lang/Object;
invoke-static {v3, p1, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2520
iput-boolean v1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mIsRecorded:Z
:cond_1
:goto_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;
if-eqz p1, :cond_2
.line 2524
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->isMainApplicationActive()Z
move-result p1
if-eqz p1, :cond_2
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$9;->val$callback:Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;
.line 2526
invoke-interface {p1, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;->onVerificationComplete(Ljava/lang/Exception;)V
:cond_2
return-void
.end method

View File

@@ -0,0 +1,29 @@
.class interface abstract Lcom/ea/nimble/mtx/googleplay/GooglePlay$CatalogItemCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "CatalogItemCallback"
.end annotation
# virtual methods
.method public abstract onCatalogItemsRetrieved(Ljava/util/List;Ljava/lang/Exception;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;",
">;",
"Ljava/lang/Exception;",
")V"
}
.end annotation
.end method

View File

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

View File

@@ -0,0 +1,372 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "ItemRestorer"
.end annotation
# instance fields
.field private m_requestRetryDelay:D
.field private m_retryCount:I
.field private final m_timer:Lcom/ea/nimble/Timer;
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 2
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 184
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
.line 186
new-instance p1, Lcom/ea/nimble/Timer;
invoke-direct {p1, p0}, Lcom/ea/nimble/Timer;-><init>(Ljava/lang/Runnable;)V
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_timer:Lcom/ea/nimble/Timer;
const-wide/high16 v0, 0x3ff0000000000000L # 1.0
iput-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_requestRetryDelay:D
const/4 p1, 0x0
iput p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_retryCount:I
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;)V
.locals 0
.line 184
invoke-direct {p0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
return-void
.end method
# virtual methods
.method public cancel()V
.locals 2
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const/4 v1, 0x0
.line 267
invoke-static {v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$202(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)Z
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_timer:Lcom/ea/nimble/Timer;
.line 268
invoke-virtual {v0}, Lcom/ea/nimble/Timer;->cancel()V
const-wide/high16 v0, 0x3ff0000000000000L # 1.0
iput-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_requestRetryDelay:D
.line 270
invoke-static {p0}, Lcom/ea/nimble/Utility;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
return-void
.end method
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 3
.line 217
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p1
const/4 p2, 0x0
if-eqz p1, :cond_3
const-string v0, "result"
.line 218
invoke-virtual {p1, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "0"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_3
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x21
const-string v2, "error"
if-lt v0, v1, :cond_0
const-class v0, Lcom/ea/nimble/Error;
.line 224
invoke-static {p1, v2, v0}, Lcom/ea/eadp/pushnotification/forwarding/PushBroadcastForwarder$$ExternalSyntheticApiModelOutline0;->m(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/ea/nimble/Error;
goto :goto_0
.line 229
:cond_0
invoke-virtual {p1, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object p1
check-cast p1, Lcom/ea/nimble/Error;
:goto_0
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_retryCount:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_retryCount:I
.line 235
invoke-virtual {p1}, Lcom/ea/nimble/Error;->getDomain()Ljava/lang/String;
move-result-object p1
const-string v0, "SynergyServerError"
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_2
iget p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_retryCount:I
const/4 v0, 0x5
if-ge p1, v0, :cond_2
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 237
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Catalog refresh failed with restore pending. Retrying in "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_requestRetryDelay:D
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
const-string v1, " seconds."
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
new-array v1, p2, [Ljava/lang/Object;
invoke-static {p1, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_timer:Lcom/ea/nimble/Timer;
.line 238
invoke-virtual {p1}, Lcom/ea/nimble/Timer;->isRunning()Z
move-result p1
if-nez p1, :cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_timer:Lcom/ea/nimble/Timer;
iget-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_requestRetryDelay:D
.line 240
invoke-virtual {p1, v0, v1, p2}, Lcom/ea/nimble/Timer;->schedule(DZ)V
:cond_1
return-void
:cond_2
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v0, "Catalog refresh failed with restore pending. Skip."
new-array v1, p2, [Ljava/lang/Object;
.line 248
invoke-static {p1, v0, v1}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:cond_3
iput p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_retryCount:I
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_timer:Lcom/ea/nimble/Timer;
.line 252
invoke-virtual {p1}, Lcom/ea/nimble/Timer;->cancel()V
.line 253
invoke-static {p0}, Lcom/ea/nimble/Utility;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 254
invoke-static {p1, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$202(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)Z
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 255
invoke-static {p1, p2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$300(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)V
return-void
.end method
.method public restoreItems()V
.locals 5
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 192
invoke-static {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$200(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 196
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 198
iget-object v1, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mCatalogItems:Ljava/util/HashMap;
const/4 v2, 0x0
if-eqz v1, :cond_2
invoke-virtual {v1}, Ljava/util/HashMap;->isEmpty()Z
move-result v1
if-eqz v1, :cond_1
goto :goto_0
:cond_1
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 209
invoke-static {v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$300(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)V
goto :goto_1
:catchall_0
move-exception v1
goto :goto_2
:cond_2
:goto_0
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const/4 v3, 0x1
.line 200
invoke-static {v1, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$202(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Z)Z
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v3, "Restore pending but catalog is unavailable. Initiating refresh now."
new-array v4, v2, [Ljava/lang/Object;
.line 201
invoke-static {v1, v3, v4}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
const-string v1, "nimble.notification.mtx.refreshcatalogfinished"
.line 202
invoke-static {v1, p0}, Lcom/ea/nimble/Utility;->registerReceiver(Ljava/lang/String;Landroid/content/BroadcastReceiver;)V
iput v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_retryCount:I
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 205
invoke-virtual {v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->refreshAvailableCatalogItems()V
.line 211
:goto_1
monitor-exit v0
return-void
:goto_2
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public run()V
.locals 4
iget-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_requestRetryDelay:D
const-wide/high16 v2, 0x4000000000000000L # 2.0
mul-double/2addr v0, v2
const-wide v2, 0x4072c00000000000L # 300.0
.line 261
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(DD)D
move-result-wide v0
iput-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->m_requestRetryDelay:D
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$ItemRestorer;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 262
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->refreshAvailableCatalogItems()V
return-void
.end method

View File

@@ -0,0 +1,79 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$JsonData;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/ISynergyRequest$IJsonData;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "JsonData"
.end annotation
# instance fields
.field private final data:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/HashMap;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$JsonData;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 169
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$JsonData;->data:Ljava/util/HashMap;
return-void
.end method
# virtual methods
.method public getData()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$JsonData;->data:Ljava/util/HashMap;
return-object v0
.end method
.method public size()I
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$JsonData;->data:Ljava/util/HashMap;
.line 175
invoke-virtual {v0}, Ljava/util/HashMap;->size()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,148 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;->onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;
.field final synthetic val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2067
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onVerificationComplete(Ljava/lang/Exception;)V
.locals 4
.line 2071
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2072
iget-object v1, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_SYNERGY_VERIFICATION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
if-eq v1, v2, :cond_0
return-void
:cond_0
if-eqz p1, :cond_1
.line 2081
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Error making recordPurchase call to Synergy: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object 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/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2083
new-instance v1, Lcom/ea/nimble/mtx/NimbleMTXError;
sget-object v2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->VERIFICATION_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const-string v3, "Synergy verification error"
invoke-direct {v1, v2, v3, p1}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
iput-object v1, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2084
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;
.line 2085
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {v0, p1, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
goto :goto_0
:cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;
.line 2089
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {p1, v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
:goto_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
if-eqz p1, :cond_2
.line 2093
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPurchaseCallback:Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
if-eqz v0, :cond_2
.line 2095
invoke-interface {v0, p1}, Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;->purchaseComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
:cond_2
return-void
.end method

View File

@@ -0,0 +1,90 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->verifyTransaction(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;
.line 2050
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
.locals 2
.line 2054
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 2055
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_NONCE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
if-eq v0, v1, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;
.line 2062
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-static {v0, p1, p2, p3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1700(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)Z
move-result p2
if-eqz p2, :cond_1
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;
.line 2066
iget-object p2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
new-instance p3, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;
invoke-direct {p3, p0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
invoke-static {p2, p1, p3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;)V
goto :goto_0
.line 2104
:cond_1
iget-object p2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPurchaseCallback:Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
if-eqz p2, :cond_2
.line 2106
invoke-interface {p2, p1}, Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;->purchaseComplete(Lcom/ea/nimble/mtx/NimbleMTXTransaction;)V
:cond_2
:goto_0
return-void
.end method

View File

@@ -0,0 +1,67 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "PurchaseTransactionVerifier"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2043
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;)V
.locals 0
.line 2043
invoke-direct {p0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
return-void
.end method
# virtual methods
.method public verifyTransaction(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 2
.line 2047
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2048
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_NONCE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {v0, p1, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2049
new-instance v1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;
invoke-direct {v1, p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$PurchaseTransactionVerifier;)V
invoke-static {v0, p1, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;)V
return-void
.end method

View File

@@ -0,0 +1,109 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;
.field final synthetic val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;->this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2151
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onVerificationComplete(Ljava/lang/Exception;)V
.locals 4
if-eqz p1, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 2157
new-instance v1, Lcom/ea/nimble/mtx/NimbleMTXError;
sget-object v2, Lcom/ea/nimble/mtx/NimbleMTXError$Code;->VERIFICATION_ERROR:Lcom/ea/nimble/mtx/NimbleMTXError$Code;
const-string v3, "Synergy verification error"
invoke-direct {v1, v2, v3, p1}, Lcom/ea/nimble/mtx/NimbleMTXError;-><init>(Lcom/ea/nimble/mtx/NimbleMTXError$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
iput-object v1, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
:cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;->this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;
.line 2159
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->access$2100(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)Ljava/util/ArrayList;
move-result-object p1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;->this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;
.line 2160
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->access$2200(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)Ljava/util/concurrent/atomic/AtomicInteger;
move-result-object p1
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
move-result p1
if-nez p1, :cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;->this$2:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;
.line 2162
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->access$2100(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)Ljava/util/ArrayList;
move-result-object p1
invoke-static {v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$2000(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;)V
:cond_1
return-void
.end method

View File

@@ -0,0 +1,130 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->verifyTransactions(Ljava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.line 2141
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.line 2147
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-static {v0, p1, p2, p3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1700(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)Z
move-result p2
if-eqz p2, :cond_0
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.line 2150
iget-object p2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
new-instance p3, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;
invoke-direct {p3, p0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
invoke-static {p2, p1, p3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;)V
goto :goto_0
:cond_0
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.line 2170
iget-object p2, p2, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
monitor-enter p2
:try_start_0
iget-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.line 2172
iget-object p3, p3, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object p3, p3, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mPendingTransactions:Ljava/util/HashMap;
invoke-virtual {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getTransactionId()Ljava/lang/String;
move-result-object p1
invoke-virtual {p3, p1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 2173
monitor-exit p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.line 2176
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->access$2200(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)Ljava/util/concurrent/atomic/AtomicInteger;
move-result-object p1
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
move-result p1
if-nez p1, :cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.line 2178
iget-object p2, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->access$2100(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)Ljava/util/ArrayList;
move-result-object p1
invoke-static {p2, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$2000(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;)V
:cond_1
:goto_0
return-void
:catchall_0
move-exception p1
.line 2173
:try_start_1
monitor-exit p2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method

View File

@@ -0,0 +1,198 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "RestoreTransactionVerifier"
.end annotation
# instance fields
.field private m_transactionsVerifying:Ljava/util/concurrent/atomic/AtomicInteger;
.field private m_verifiedTransactions:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;",
">;"
}
.end annotation
.end field
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2114
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;)V
.locals 0
.line 2114
invoke-direct {p0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
return-void
.end method
.method public static synthetic access$2100(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)Ljava/util/ArrayList;
.locals 0
.line 2114
iget-object p0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->m_verifiedTransactions:Ljava/util/ArrayList;
return-object p0
.end method
.method public static synthetic access$2200(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)Ljava/util/concurrent/atomic/AtomicInteger;
.locals 0
.line 2114
iget-object p0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->m_transactionsVerifying:Ljava/util/concurrent/atomic/AtomicInteger;
return-object p0
.end method
# virtual methods
.method public verifyTransactions(Ljava/util/List;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;",
">;)V"
}
.end annotation
.line 2121
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 2122
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->m_transactionsVerifying:Ljava/util/concurrent/atomic/AtomicInteger;
.line 2123
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->m_verifiedTransactions:Ljava/util/ArrayList;
.line 2125
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->m_verifiedTransactions:Ljava/util/ArrayList;
.line 2127
invoke-static {p1, v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$2000(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/util/List;)V
goto :goto_1
.line 2131
:cond_0
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->m_transactionsVerifying:Ljava/util/concurrent/atomic/AtomicInteger;
.line 2133
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2135
monitor-enter v1
:try_start_0
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2137
iget-object v2, v2, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mPendingTransactions:Ljava/util/HashMap;
invoke-virtual {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getTransactionId()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 2138
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2139
sget-object v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_NONCE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-static {v1, v0, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;)V
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 2140
new-instance v2, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;
invoke-direct {v2, p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$RestoreTransactionVerifier;)V
invoke-static {v1, v0, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;)V
goto :goto_0
:catchall_0
move-exception p1
.line 2138
:try_start_1
monitor-exit v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
:cond_1
:goto_1
return-void
.end method

View File

@@ -0,0 +1,159 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.field final synthetic val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 3208
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onVerificationComplete(Ljava/lang/Exception;)V
.locals 3
.line 3212
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.line 3213
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-static {v0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$2300(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/Throwable;)Z
move-result p1
if-eqz p1, :cond_0
return-void
:cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.line 3218
iget-boolean p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mIsRecorded:Z
if-nez p1, :cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.line 3221
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->access$2400(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;)Lcom/ea/nimble/Timer;
move-result-object p1
invoke-virtual {p1}, Lcom/ea/nimble/Timer;->isRunning()Z
move-result p1
if-nez p1, :cond_2
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.line 3223
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->access$2400(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;)Lcom/ea/nimble/Timer;
move-result-object p1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
invoke-static {v0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->access$2500(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;)D
move-result-wide v0
const/4 v2, 0x0
invoke-virtual {p1, v0, v1, v2}, Lcom/ea/nimble/Timer;->schedule(DZ)V
goto :goto_0
:cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.line 3228
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
monitor-enter p1
:try_start_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.line 3230
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mUnrecordedTransactions:Ljava/util/ArrayList;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->val$transaction:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
.line 3231
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.line 3232
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
invoke-static {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$2600(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;->this$1:Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
const-wide/high16 v0, 0x3ff0000000000000L # 1.0
.line 3233
invoke-static {p1, v0, v1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->access$2502(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;D)D
:cond_2
:goto_0
return-void
:catchall_0
move-exception v0
.line 3231
:try_start_1
monitor-exit p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method

View File

@@ -0,0 +1,427 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
.implements Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "TransactionRecorder"
.end annotation
# instance fields
.field private m_requestRetryDelay:D
.field private final m_timer:Lcom/ea/nimble/Timer;
.field final synthetic this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
.locals 2
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3158
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
const-wide/high16 v0, 0x3ff0000000000000L # 1.0
iput-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_requestRetryDelay:D
.line 3161
new-instance p1, Lcom/ea/nimble/Timer;
invoke-direct {p1, p0}, Lcom/ea/nimble/Timer;-><init>(Ljava/lang/Runnable;)V
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_timer:Lcom/ea/nimble/Timer;
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlay$1;)V
.locals 0
.line 3158
invoke-direct {p0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;)V
return-void
.end method
.method public static synthetic access$2400(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;)Lcom/ea/nimble/Timer;
.locals 0
.line 3158
iget-object p0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_timer:Lcom/ea/nimble/Timer;
return-object p0
.end method
.method public static synthetic access$2500(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;)D
.locals 2
.line 3158
iget-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_requestRetryDelay:D
return-wide v0
.end method
.method public static synthetic access$2502(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;D)D
.locals 0
.line 3158
iput-wide p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_requestRetryDelay:D
return-wide p1
.end method
# virtual methods
.method public cancel()V
.locals 2
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_timer:Lcom/ea/nimble/Timer;
.line 3274
invoke-virtual {v0}, Lcom/ea/nimble/Timer;->cancel()V
const-wide/high16 v0, 0x3ff0000000000000L # 1.0
iput-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_requestRetryDelay:D
.line 3276
invoke-static {p0}, Lcom/ea/nimble/Utility;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
return-void
.end method
.method public onGetNonceComplete(Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)V
.locals 1
.line 3198
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3199
invoke-static {v0, p3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$2300(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/Throwable;)Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3204
invoke-static {v0, p1, p2, p3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1700(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Ljava/lang/String;Lcom/ea/nimble/Error;)Z
move-result p2
if-eqz p2, :cond_1
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3207
new-instance p3, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;
invoke-direct {p3, p0, p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder$1;-><init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;)V
invoke-static {p2, p1, p3}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1800(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$VerifyCallback;)V
goto :goto_0
:cond_1
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_timer:Lcom/ea/nimble/Timer;
.line 3241
invoke-virtual {p1}, Lcom/ea/nimble/Timer;->isRunning()Z
move-result p1
if-nez p1, :cond_2
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_timer:Lcom/ea/nimble/Timer;
iget-wide p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_requestRetryDelay:D
const/4 v0, 0x0
.line 3243
invoke-virtual {p1, p2, p3, v0}, Lcom/ea/nimble/Timer;->schedule(DZ)V
:cond_2
:goto_0
return-void
.end method
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 2
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const/4 p2, 0x0
new-array v0, p2, [Ljava/lang/Object;
const-string v1, "Received network notification"
.line 3258
invoke-static {p1, v1, v0}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 3259
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 v0, Lcom/ea/nimble/Network$Status;->OK:Lcom/ea/nimble/Network$Status;
if-ne p1, v0, :cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v0, "Network status is OK, unregistering receiver and attempting to record transactions"
new-array p2, p2, [Ljava/lang/Object;
.line 3261
invoke-static {p1, v0, p2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 3262
invoke-static {p0}, Lcom/ea/nimble/Utility;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
.line 3264
invoke-virtual {p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->recordTransactions()V
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v0, "Attempted to recordTransaction but network state was not OK. Aborting and eating my transaction."
new-array p2, p2, [Ljava/lang/Object;
.line 3268
invoke-static {p1, v0, p2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public recordTransactions()V
.locals 4
.line 3165
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3166
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3168
iget-object v1, v1, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mUnrecordedTransactions:Ljava/util/ArrayList;
const/4 v2, 0x0
if-eqz v1, :cond_4
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-nez v1, :cond_0
goto :goto_2
.line 3173
:cond_0
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v1, "Attempting to record transactions"
new-array v3, v2, [Ljava/lang/Object;
.line 3174
invoke-static {v0, v1, v3}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 3175
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->isMainApplicationActive()Z
move-result v0
if-nez v0, :cond_1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v1, "Main application not running, ignoring record"
new-array v2, v2, [Ljava/lang/Object;
.line 3177
invoke-static {v0, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.line 3180
:cond_1
invoke-static {}, Lcom/ea/nimble/Network;->getComponent()Lcom/ea/nimble/INetwork;
move-result-object v0
invoke-interface {v0}, Lcom/ea/nimble/INetwork;->getStatus()Lcom/ea/nimble/Network$Status;
move-result-object v0
sget-object v1, Lcom/ea/nimble/Network$Status;->OK:Lcom/ea/nimble/Network$Status;
if-eq v0, v1, :cond_2
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v1, "Waiting for Network connectivity"
new-array v2, v2, [Ljava/lang/Object;
.line 3182
invoke-static {v0, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
const-string v0, "nimble.notification.networkStatusChange"
.line 3183
invoke-static {v0, p0}, Lcom/ea/nimble/Utility;->registerReceiver(Ljava/lang/String;Landroid/content/BroadcastReceiver;)V
return-void
:cond_2
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3186
monitor-enter v1
:try_start_1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3188
iget-object v0, v0, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->mUnrecordedTransactions:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
iget-object v3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.line 3190
invoke-static {v3, v2, p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay;->access$1900(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;Lcom/ea/nimble/mtx/googleplay/GooglePlay$GetNonceCallback;)V
goto :goto_0
:catchall_0
move-exception v0
goto :goto_1
.line 3192
:cond_3
monitor-exit v1
return-void
:goto_1
monitor-exit v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
:catchall_1
move-exception v1
goto :goto_3
:cond_4
:goto_2
:try_start_2
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->this$0:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
const-string v3, "No transactions to record"
new-array v2, v2, [Ljava/lang/Object;
.line 3170
invoke-static {v1, v3, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 3171
monitor-exit v0
return-void
.line 3173
:goto_3
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw v1
.end method
.method public run()V
.locals 4
iget-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_requestRetryDelay:D
const-wide/high16 v2, 0x4000000000000000L # 2.0
mul-double/2addr v0, v2
const-wide v2, 0x4072c00000000000L # 300.0
.line 3251
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(DD)D
move-result-wide v0
iput-wide v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->m_requestRetryDelay:D
.line 3252
invoke-virtual {p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlay$TransactionRecorder;->recordTransactions()V
return-void
.end method

View File

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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,490 @@
.class public Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
.super Lcom/ea/nimble/mtx/NimbleCatalogItem;
.source "SourceFile"
# interfaces
.implements Ljava/io/Externalizable;
# instance fields
.field mAdditionalInfo:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field mDescription:Ljava/lang/String;
.field mIsFree:Z
.field mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.field mPriceDecimal:F
.field mPriceWithCurrencyAndFormat:Ljava/lang/String;
.field mSku:Ljava/lang/String;
.field mTitle:Ljava/lang/String;
.field mUrl:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.locals 2
.line 29
invoke-direct {p0}, Lcom/ea/nimble/mtx/NimbleCatalogItem;-><init>()V
.line 30
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
const-string v0, ""
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
const/4 v1, 0x0
iput v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
.line 37
sget-object v1, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;->UNKNOWN:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mIsFree:Z
.line 40
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;)V
.locals 1
.line 44
invoke-direct {p0}, Lcom/ea/nimble/mtx/NimbleCatalogItem;-><init>()V
.line 45
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
.line 46
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
.line 47
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
.line 48
iget v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
.line 50
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
.line 51
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 52
iget-object v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
.line 53
iget-boolean v0, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mIsFree:Z
iput-boolean v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mIsFree:Z
.line 54
new-instance v0, Ljava/util/HashMap;
iget-object p1, p1, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
invoke-direct {v0, p1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
return-void
.end method
# virtual methods
.method public getAdditionalInfo()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.line 131
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
return-object v0
.end method
.method public getDescription()Ljava/lang/String;
.locals 1
.line 81
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
return-object v0
.end method
.method public getItemType()Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.locals 1
.line 111
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
return-object v0
.end method
.method public getMetaDataUrl()Ljava/lang/String;
.locals 1
.line 118
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mUrl:Ljava/lang/String;
return-object v0
.end method
.method public getPriceDecimal()F
.locals 1
.line 88
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
return v0
.end method
.method public getPriceWithCurrencyAndFormat()Ljava/lang/String;
.locals 1
.line 104
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
return-object v0
.end method
.method public getSellId()Ljava/lang/String;
.locals 2
.line 67
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
const-string v1, "sellId"
.line 68
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public getSku()Ljava/lang/String;
.locals 1
.line 60
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
return-object v0
.end method
.method public getTitle()Ljava/lang/String;
.locals 1
.line 74
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
return-object v0
.end method
.method public isFree()Z
.locals 1
.line 124
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-boolean v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mIsFree:Z
return v0
.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 160
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
.line 161
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
.line 162
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
.line 163
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
.line 164
invoke-interface {p1}, Ljava/io/DataInput;->readFloat()F
move-result v0
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
.line 166
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
.line 167
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 168
invoke-interface {p1}, Ljava/io/DataInput;->readBoolean()Z
move-result v0
iput-boolean v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mIsFree:Z
.line 169
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Map;
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 137
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
.line 138
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "SKU("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ") Title("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ") Price("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
const-string v1, ") Currency("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
const-string v2, "localCurrency"
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ") PriceStr("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ") ItemType("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string 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
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
.line 145
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mSku:Ljava/lang/String;
.line 146
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mTitle:Ljava/lang/String;
.line 147
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mDescription:Ljava/lang/String;
.line 148
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceDecimal:F
.line 149
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeFloat(F)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mPriceWithCurrencyAndFormat:Ljava/lang/String;
.line 151
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mItemType:Lcom/ea/nimble/mtx/NimbleCatalogItem$ItemType;
.line 152
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget-boolean v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mIsFree:Z
.line 153
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeBoolean(Z)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;->mAdditionalInfo:Ljava/util/Map;
.line 154
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,312 @@
.class public final enum Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
.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/mtx/googleplay/GooglePlayError$Code;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_DEVELOPER_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_FEATURE_NOT_SUPPORTED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_NETWORK_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_OK:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_SERVICE_DISCONNECTED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum BILLING_RESPONSE_RESULT_USER_CANCELED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.field public static final enum UNKNOWN:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
# instance fields
.field private m_value:I
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.locals 13
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_OK:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_USER_CANCELED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v4, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_DEVELOPER_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v5, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v6, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_FEATURE_NOT_SUPPORTED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v8, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v9, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_SERVICE_DISCONNECTED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v10, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v11, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_NETWORK_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
sget-object v12, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->UNKNOWN:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
filled-new-array/range {v0 .. v12}, [Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 5
.line 9
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_OK"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_OK:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 10
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_USER_CANCELED"
const/4 v2, 0x1
invoke-direct {v0, v1, v2, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_USER_CANCELED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 11
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE"
const/4 v2, 0x2
const/4 v3, 0x3
invoke-direct {v0, v1, v2, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 12
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE"
const/4 v4, 0x4
invoke-direct {v0, v1, v3, v4}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 13
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_DEVELOPER_ERROR"
const/4 v3, 0x5
invoke-direct {v0, v1, v4, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_DEVELOPER_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 14
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_ERROR"
const/4 v4, 0x6
invoke-direct {v0, v1, v3, v4}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 15
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_FEATURE_NOT_SUPPORTED"
const/4 v3, -0x2
invoke-direct {v0, v1, v4, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_FEATURE_NOT_SUPPORTED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 16
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED"
const/4 v3, 0x7
invoke-direct {v0, v1, v3, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 17
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED"
const/16 v3, 0x8
invoke-direct {v0, v1, v3, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 18
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const/16 v1, 0x9
const/4 v3, -0x1
const-string v4, "BILLING_RESPONSE_RESULT_SERVICE_DISCONNECTED"
invoke-direct {v0, v4, v1, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_SERVICE_DISCONNECTED:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 19
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE"
const/16 v3, 0xa
invoke-direct {v0, v1, v3, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 20
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "BILLING_RESPONSE_RESULT_NETWORK_ERROR"
const/16 v2, 0xb
const/16 v3, 0xc
invoke-direct {v0, v1, v2, v3}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->BILLING_RESPONSE_RESULT_NETWORK_ERROR:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 21
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
const-string v1, "UNKNOWN"
const/16 v2, 0x2713
invoke-direct {v0, v1, v3, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->UNKNOWN:Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 7
invoke-static {}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->$values()[Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
move-result-object v0
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->$VALUES:[Lcom/ea/nimble/mtx/googleplay/GooglePlayError$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 24
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->m_value:I
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.locals 1
const-class v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 7
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/mtx/googleplay/GooglePlayError$Code;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.locals 1
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->$VALUES:[Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
.line 7
invoke-virtual {v0}, [Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
return-object v0
.end method
# virtual methods
.method public intValue()I
.locals 1
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->m_value:I
return v0
.end method

View File

@@ -0,0 +1,58 @@
.class Lcom/ea/nimble/mtx/googleplay/GooglePlayError;
.super Lcom/ea/nimble/Error;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;
}
.end annotation
# static fields
.field public static final ERROR_DOMAIN:Ljava/lang/String; = "GooglePlayError"
.field private static final serialVersionUID:J = 0x1L
# direct methods
.method public constructor <init>()V
.locals 0
.line 40
invoke-direct {p0}, Lcom/ea/nimble/Error;-><init>()V
return-void
.end method
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;Ljava/lang/String;)V
.locals 1
const-string v0, "GooglePlayError"
.line 52
invoke-virtual {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;->intValue()I
move-result p1
invoke-direct {p0, v0, p1, p2}, Lcom/ea/nimble/Error;-><init>(Ljava/lang/String;ILjava/lang/String;)V
return-void
.end method
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlayError$Code;Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 1
const-string v0, "GooglePlayError"
.line 47
invoke-virtual {p1}, Lcom/ea/nimble/mtx/googleplay/GooglePlayError$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

View File

@@ -0,0 +1,36 @@
.class public abstract Lcom/ea/nimble/mtx/googleplay/GooglePlayNetworkConnectionCallback;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/NetworkConnectionCallback;
# instance fields
.field mParameter:Ljava/lang/String;
.field mParentGooglePlay:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
.field mTransactionId:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/mtx/googleplay/GooglePlay;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayNetworkConnectionCallback;->mParentGooglePlay:Lcom/ea/nimble/mtx/googleplay/GooglePlay;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayNetworkConnectionCallback;->mTransactionId:Ljava/lang/String;
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayNetworkConnectionCallback;->mParameter:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public abstract callback(Lcom/ea/nimble/NetworkConnectionHandle;)V
.end method

View File

@@ -0,0 +1,163 @@
.class synthetic Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 99
invoke-static {}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->values()[Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
:try_start_0
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_ACTIVITY_RESPONSE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_NONCE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_SYNERGY_VERIFICATION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_CONSUMPTION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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
:try_start_7
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/16 v2, 0x8
aput v2, v0, v1
:try_end_7
.catch Ljava/lang/NoSuchFieldError; {:try_start_7 .. :try_end_7} :catch_7
:catch_7
return-void
.end method

View File

@@ -0,0 +1,215 @@
.class public final enum Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "GooglePlayTransactionState"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum UNDEFINED:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum WAITING_FOR_GOOGLEPLAY_ACTIVITY_RESPONSE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum WAITING_FOR_GOOGLEPLAY_CONSUMPTION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum WAITING_FOR_NONCE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field public static final enum WAITING_FOR_SYNERGY_VERIFICATION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
# direct methods
.method private static synthetic $values()[Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.locals 8
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v1, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_NONCE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v3, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_ACTIVITY_RESPONSE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v4, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_SYNERGY_VERIFICATION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v5, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v6, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_CONSUMPTION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
sget-object v7, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
filled-new-array/range {v0 .. v7}, [Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 28
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "UNDEFINED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 29
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "WAITING_FOR_PREPURCHASE_INFO"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 30
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "WAITING_FOR_NONCE"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_NONCE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 31
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "WAITING_FOR_GOOGLEPLAY_ACTIVITY_RESPONSE"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_ACTIVITY_RESPONSE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 32
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "WAITING_FOR_SYNERGY_VERIFICATION"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_SYNERGY_VERIFICATION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 33
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 34
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "WAITING_FOR_GOOGLEPLAY_CONSUMPTION"
const/4 v2, 0x6
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->WAITING_FOR_GOOGLEPLAY_CONSUMPTION:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 35
new-instance v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
const-string v1, "COMPLETE"
const/4 v2, 0x7
invoke-direct {v0, v1, v2}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->COMPLETE:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 26
invoke-static {}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->$values()[Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
move-result-object v0
sput-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->$VALUES:[Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
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 26
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/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.locals 1
const-class v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 26
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/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
return-object p0
.end method
.method public static values()[Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.locals 1
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->$VALUES:[Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 26
invoke-virtual {v0}, [Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
return-object v0
.end method

View File

@@ -0,0 +1,773 @@
.class public Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/mtx/NimbleMTXTransaction;
.implements Ljava/io/Externalizable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
}
.end annotation
# instance fields
.field mAdditionalInfo:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/io/Serializable;",
">;"
}
.end annotation
.end field
.field mCatalogItem:Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
.field mDeveloperPayload:Ljava/lang/String;
.field mError:Ljava/lang/Exception;
.field mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field mFinalizeCallback:Lcom/ea/nimble/mtx/INimbleMTX$FinalizeTransactionCallback;
.field mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.field mIsRecorded:Z
.field mItemGrantedCallback:Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;
.field mItemSku:Ljava/lang/String;
.field mNonce:Ljava/lang/String;
.field mPriceDecimal:F
.field mPurchaseCallback:Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
.field mReceipt:Ljava/lang/String;
.field mTimeStamp:Ljava/util/Date;
.field mTransactionId:Ljava/lang/String;
.field mTransactionType:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
# direct methods
.method public constructor <init>()V
.locals 3
.line 59
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, ""
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionId:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mReceipt:Ljava/lang/String;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemSku:Ljava/lang/String;
const/4 v1, 0x0
iput v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
const/4 v1, 0x0
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTimeStamp:Ljava/util/Date;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mNonce:Ljava/lang/String;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mCatalogItem:Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
.line 69
sget-object v2, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object v2, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPurchaseCallback:Lcom/ea/nimble/mtx/INimbleMTX$PurchaseTransactionCallback;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFinalizeCallback:Lcom/ea/nimble/mtx/INimbleMTX$FinalizeTransactionCallback;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemGrantedCallback:Lcom/ea/nimble/mtx/INimbleMTX$ItemGrantedCallback;
.line 74
sget-object v1, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->PURCHASE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
iput-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionType:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mDeveloperPayload:Ljava/lang/String;
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mIsRecorded:Z
.line 78
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
return-void
.end method
# virtual methods
.method public getAdditionalInfo()Ljava/util/Map;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.line 196
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
.line 197
new-instance v0, Ljava/util/HashMap;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
return-object v0
.end method
.method public getCatalogItem()Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
.locals 1
.line 221
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mCatalogItem:Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
return-object v0
.end method
.method public getDeveloperPayload()Ljava/lang/String;
.locals 1
.line 208
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mDeveloperPayload:Ljava/lang/String;
return-object v0
.end method
.method public getError()Ljava/lang/Exception;
.locals 1
.line 215
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
return-object v0
.end method
.method public getItemSellId()Ljava/lang/String;
.locals 4
.line 151
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
.line 152
invoke-static {}, Lcom/ea/nimble/mtx/NimbleMTX;->getComponent()Lcom/ea/nimble/mtx/INimbleMTX;
move-result-object v0
.line 153
invoke-interface {v0}, Lcom/ea/nimble/mtx/INimbleMTX;->getAvailableCatalogItems()Ljava/util/List;
move-result-object v0
.line 154
invoke-virtual {p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getItemSku()Ljava/lang/String;
move-result-object v1
if-eqz v0, :cond_1
.line 157
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/ea/nimble/mtx/NimbleCatalogItem;
.line 159
invoke-virtual {v2}, Lcom/ea/nimble/mtx/NimbleCatalogItem;->getSku()Ljava/lang/String;
move-result-object v3
invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_0
.line 161
invoke-virtual {v2}, Lcom/ea/nimble/mtx/NimbleCatalogItem;->getSellId()Ljava/lang/String;
move-result-object v2
.line 162
invoke-static {v2}, Lcom/ea/nimble/Utility;->validString(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_0
return-object v2
:cond_1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
const-string v2, "sellId"
.line 170
invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
.line 172
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/io/Serializable;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.line 175
:cond_2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "getItemSellId(): Unable to acquire sell id for transaction with SKU: "
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;
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;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
const-string v0, ""
return-object v0
.end method
.method public getItemSku()Ljava/lang/String;
.locals 1
.line 91
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemSku:Ljava/lang/String;
return-object v0
.end method
.method public getNonce()Ljava/lang/String;
.locals 1
.line 202
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mNonce:Ljava/lang/String;
return-object v0
.end method
.method public getPriceDecimal()F
.locals 1
.line 135
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
return v0
.end method
.method public getReceipt()Ljava/lang/String;
.locals 1
.line 189
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mReceipt:Ljava/lang/String;
return-object v0
.end method
.method public getTimeStamp()Ljava/util/Date;
.locals 1
.line 182
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTimeStamp:Ljava/util/Date;
return-object v0
.end method
.method public getTransactionId()Ljava/lang/String;
.locals 1
.line 84
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionId:Ljava/lang/String;
return-object v0
.end method
.method public getTransactionState()Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
.locals 2
.line 98
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
.line 99
sget-object v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$1;->$SwitchMap$com$ea$nimble$mtx$googleplay$GooglePlayTransaction$GooglePlayTransactionState:[I
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
aget v0, v0, v1
packed-switch v0, :pswitch_data_0
.line 118
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.line 115
:pswitch_0
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->UNDEFINED:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.line 113
:pswitch_1
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->COMPLETE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.line 111
:pswitch_2
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PLATFORM_CONSUMPTION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.line 109
:pswitch_3
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_GAME_TO_CONFIRM_ITEM_GRANT:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.line 107
:pswitch_4
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_VERIFICATION:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.line 104
:pswitch_5
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PLATFORM_RESPONSE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
.line 102
:pswitch_6
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;->WAITING_FOR_PREPURCHASE_INFO:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionState;
return-object v0
:pswitch_data_0
.packed-switch 0x1
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public getTransactionType()Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.locals 1
.line 124
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionType:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
if-nez v0, :cond_0
.line 127
sget-object v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;->PURCHASE:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
:cond_0
return-object v0
.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 257
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
.line 258
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionId:Ljava/lang/String;
.line 259
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemSku:Ljava/lang/String;
.line 260
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 261
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionType:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.line 262
invoke-interface {p1}, Ljava/io/DataInput;->readFloat()F
move-result v0
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
.line 264
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Date;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTimeStamp:Ljava/util/Date;
.line 265
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mReceipt:Ljava/lang/String;
.line 266
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mNonce:Ljava/lang/String;
.line 267
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/Error;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
.line 268
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mCatalogItem:Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
.line 269
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
.line 270
invoke-interface {p1}, Ljava/io/DataInput;->readUTF()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mDeveloperPayload:Ljava/lang/String;
.line 274
:try_start_0
invoke-interface {p1}, Ljava/io/ObjectInput;->readObject()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 275
invoke-interface {p1}, Ljava/io/DataInput;->readBoolean()Z
move-result p1
iput-boolean p1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mIsRecorded:Z
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 227
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "GooglePlayTransaction: SKU("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getItemSku()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ") State("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
if-nez v1, :cond_0
const-string v1, "null"
goto :goto_0
.line 228
:cond_0
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ") Receipt("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 229
invoke-virtual {p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getReceipt()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ") TimeStamp("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 230
invoke-virtual {p0}, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->getTimeStamp()Ljava/util/Date;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string 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
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
.line 236
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionId:Ljava/lang/String;
.line 237
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mItemSku:Ljava/lang/String;
.line 238
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mGooglePlayTransactionState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 239
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTransactionType:Lcom/ea/nimble/mtx/NimbleMTXTransaction$TransactionType;
.line 240
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mPriceDecimal:F
.line 241
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeFloat(F)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mTimeStamp:Ljava/util/Date;
.line 243
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mReceipt:Ljava/lang/String;
.line 244
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mNonce:Ljava/lang/String;
.line 245
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mError:Ljava/lang/Exception;
.line 246
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mCatalogItem:Lcom/ea/nimble/mtx/googleplay/GooglePlayCatalogItem;
.line 247
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mAdditionalInfo:Ljava/util/Map;
.line 248
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mDeveloperPayload:Ljava/lang/String;
.line 249
invoke-static {v0}, Lcom/ea/nimble/Utility;->safeString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeUTF(Ljava/lang/String;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mFailedState:Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction$GooglePlayTransactionState;
.line 250
invoke-interface {p1, v0}, Ljava/io/ObjectOutput;->writeObject(Ljava/lang/Object;)V
iget-boolean v0, p0, Lcom/ea/nimble/mtx/googleplay/GooglePlayTransaction;->mIsRecorded:Z
.line 251
invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeBoolean(Z)V
return-void
.end method

View File

@@ -0,0 +1,13 @@
.class public final Lcom/ea/nimble/mtx/googleplay/R;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,906 @@
.class public Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/LogSource;
.implements Lcom/android/billingclient/api/PurchasesUpdatedListener;
.implements Lcom/android/billingclient/api/ProductDetailsResponseListener;
.implements Lcom/android/billingclient/api/PurchasesResponseListener;
# instance fields
.field m_CatalogItemsList:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/android/billingclient/api/ProductDetails;",
">;"
}
.end annotation
.end field
.field m_PurchasesList:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/android/billingclient/api/Purchase;",
">;"
}
.end annotation
.end field
.field private m_base64PublicKey:Ljava/lang/String;
.field private m_billingClient:Lcom/android/billingclient/api/BillingClient;
.field private m_catalogQueryRequests:I
.field m_productDetailsClientListener:Lcom/android/billingclient/api/ProductDetailsResponseListener;
.field private m_purchaseHistoryRequests:I
.field m_purchaseResponseListener:Lcom/android/billingclient/api/PurchasesResponseListener;
.field m_purchasesUpdatedListener:Lcom/android/billingclient/api/PurchasesUpdatedListener;
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 1
.line 48
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
.line 44
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_CatalogItemsList:Ljava/util/List;
.line 45
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_PurchasesList:Ljava/util/List;
.line 50
invoke-static {p1}, Lcom/android/billingclient/api/BillingClient;->newBuilder(Landroid/content/Context;)Lcom/android/billingclient/api/BillingClient$Builder;
move-result-object p1
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingClient$Builder;->enablePendingPurchases()Lcom/android/billingclient/api/BillingClient$Builder;
move-result-object p1
invoke-virtual {p1, p0}, Lcom/android/billingclient/api/BillingClient$Builder;->setListener(Lcom/android/billingclient/api/PurchasesUpdatedListener;)Lcom/android/billingclient/api/BillingClient$Builder;
move-result-object p1
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingClient$Builder;->build()Lcom/android/billingclient/api/BillingClient;
move-result-object p1
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_base64PublicKey:Ljava/lang/String;
return-void
.end method
.method private isSignatureValid(Lcom/android/billingclient/api/Purchase;)Z
.locals 2
.param p1 # Lcom/android/billingclient/api/Purchase;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_base64PublicKey:Ljava/lang/String;
if-eqz v0, :cond_0
.line 243
invoke-virtual {p1}, Lcom/android/billingclient/api/Purchase;->getOriginalJson()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1}, Lcom/android/billingclient/api/Purchase;->getSignature()Ljava/lang/String;
move-result-object p1
invoke-static {v0, v1, p1}, Lcom/ea/nimble/mtx/googleplay/billing/Security;->verifyPurchase(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x1
return p1
.end method
# virtual methods
.method public acknowledgeAsync(Ljava/lang/String;Lcom/android/billingclient/api/AcknowledgePurchaseResponseListener;)V
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lcom/android/billingclient/api/AcknowledgePurchaseResponseListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 227
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 228
invoke-static {}, Lcom/android/billingclient/api/AcknowledgePurchaseParams;->newBuilder()Lcom/android/billingclient/api/AcknowledgePurchaseParams$Builder;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/android/billingclient/api/AcknowledgePurchaseParams$Builder;->setPurchaseToken(Ljava/lang/String;)Lcom/android/billingclient/api/AcknowledgePurchaseParams$Builder;
move-result-object p1
invoke-virtual {p1}, Lcom/android/billingclient/api/AcknowledgePurchaseParams$Builder;->build()Lcom/android/billingclient/api/AcknowledgePurchaseParams;
move-result-object p1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 229
invoke-virtual {v0, p1, p2}, Lcom/android/billingclient/api/BillingClient;->acknowledgePurchase(Lcom/android/billingclient/api/AcknowledgePurchaseParams;Lcom/android/billingclient/api/AcknowledgePurchaseResponseListener;)V
return-void
.end method
.method public consumeAsync(Ljava/lang/String;Lcom/android/billingclient/api/ConsumeResponseListener;)V
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lcom/android/billingclient/api/ConsumeResponseListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 220
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 221
invoke-static {}, Lcom/android/billingclient/api/ConsumeParams;->newBuilder()Lcom/android/billingclient/api/ConsumeParams$Builder;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/android/billingclient/api/ConsumeParams$Builder;->setPurchaseToken(Ljava/lang/String;)Lcom/android/billingclient/api/ConsumeParams$Builder;
move-result-object p1
invoke-virtual {p1}, Lcom/android/billingclient/api/ConsumeParams$Builder;->build()Lcom/android/billingclient/api/ConsumeParams;
move-result-object p1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 222
invoke-virtual {v0, p1, p2}, Lcom/android/billingclient/api/BillingClient;->consumeAsync(Lcom/android/billingclient/api/ConsumeParams;Lcom/android/billingclient/api/ConsumeResponseListener;)V
return-void
.end method
.method public dispose()V
.locals 2
.line 86
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, "Disposing Billing Client Service"
.line 87
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/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
if-eqz v0, :cond_0
.line 90
invoke-virtual {v0}, Lcom/android/billingclient/api/BillingClient;->endConnection()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
:cond_0
return-void
.end method
.method public getLogSourceTitle()Ljava/lang/String;
.locals 1
const-string v0, "MTX Google BillingHelper"
return-object v0
.end method
.method public isBillingAvailable()Z
.locals 1
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 61
invoke-virtual {v0}, Lcom/android/billingclient/api/BillingClient;->isReady()Z
move-result v0
return v0
.end method
.method public launchPurchaseFlow(Landroid/app/Activity;Lcom/android/billingclient/api/ProductDetails;)V
.locals 3
.param p1 # Landroid/app/Activity;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lcom/android/billingclient/api/ProductDetails;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 192
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 193
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 194
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails;->getProductType()Ljava/lang/String;
move-result-object v1
const-string v2, "subs"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 196
invoke-static {}, Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams;->newBuilder()Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;
move-result-object v1
invoke-virtual {v1, p2}, Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;->setProductDetails(Lcom/android/billingclient/api/ProductDetails;)Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;
move-result-object v1
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails;->getSubscriptionOfferDetails()Ljava/util/List;
move-result-object p2
const/4 v2, 0x0
invoke-interface {p2, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;
invoke-virtual {p2}, Lcom/android/billingclient/api/ProductDetails$SubscriptionOfferDetails;->getOfferToken()Ljava/lang/String;
move-result-object p2
invoke-virtual {v1, p2}, Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;->setOfferToken(Ljava/lang/String;)Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;
move-result-object p2
invoke-virtual {p2}, Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;->build()Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams;
move-result-object p2
invoke-interface {v0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 200
:cond_0
invoke-static {}, Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams;->newBuilder()Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;
move-result-object v1
invoke-virtual {v1, p2}, Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;->setProductDetails(Lcom/android/billingclient/api/ProductDetails;)Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;
move-result-object p2
invoke-virtual {p2}, Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams$Builder;->build()Lcom/android/billingclient/api/BillingFlowParams$ProductDetailsParams;
move-result-object p2
invoke-interface {v0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 203
:goto_0
invoke-static {}, Lcom/android/billingclient/api/BillingFlowParams;->newBuilder()Lcom/android/billingclient/api/BillingFlowParams$Builder;
move-result-object p2
invoke-virtual {p2, v0}, Lcom/android/billingclient/api/BillingFlowParams$Builder;->setProductDetailsParamsList(Ljava/util/List;)Lcom/android/billingclient/api/BillingFlowParams$Builder;
move-result-object p2
invoke-virtual {p2}, Lcom/android/billingclient/api/BillingFlowParams$Builder;->build()Lcom/android/billingclient/api/BillingFlowParams;
move-result-object p2
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 205
invoke-virtual {v0, p1, p2}, Lcom/android/billingclient/api/BillingClient;->launchBillingFlow(Landroid/app/Activity;Lcom/android/billingclient/api/BillingFlowParams;)Lcom/android/billingclient/api/BillingResult;
return-void
.end method
.method public onProductDetailsResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 3
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/billingclient/api/BillingResult;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/ProductDetails;",
">;)V"
}
.end annotation
.line 173
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
.line 175
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v0
if-nez v0, :cond_0
.line 177
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p2
:goto_0
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/android/billingclient/api/ProductDetails;
.line 179
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "onProductDetailsResponse: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {p0, v1, v2}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_CatalogItemsList:Ljava/util/List;
.line 180
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
iget p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
if-nez p2, :cond_1
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_productDetailsClientListener:Lcom/android/billingclient/api/ProductDetailsResponseListener;
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_CatalogItemsList:Ljava/util/List;
.line 186
invoke-interface {p2, p1, v0}, Lcom/android/billingclient/api/ProductDetailsResponseListener;->onProductDetailsResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
:cond_1
return-void
.end method
.method public onPurchasesUpdated(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 1
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/billingclient/api/BillingResult;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/Purchase;",
">;)V"
}
.end annotation
.line 214
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchasesUpdatedListener:Lcom/android/billingclient/api/PurchasesUpdatedListener;
.line 215
invoke-interface {v0, p1, p2}, Lcom/android/billingclient/api/PurchasesUpdatedListener;->onPurchasesUpdated(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
return-void
.end method
.method public onQueryPurchasesResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 4
.param p1 # Lcom/android/billingclient/api/BillingResult;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/android/billingclient/api/BillingResult;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/Purchase;",
">;)V"
}
.end annotation
.line 137
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
.line 139
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_1
.line 141
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p2
:goto_0
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/android/billingclient/api/Purchase;
.line 143
invoke-direct {p0, v0}, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->isSignatureValid(Lcom/android/billingclient/api/Purchase;)Z
move-result v2
if-eqz v2, :cond_0
iget-object v2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_PurchasesList:Ljava/util/List;
.line 145
invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const-string v2, "Purchase signature verification **FAILED**. Not adding item."
new-array v3, v1, [Ljava/lang/Object;
.line 149
invoke-static {p0, v2, v3}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 150
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, " Purchase data: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Lcom/android/billingclient/api/Purchase;->getOriginalJson()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, 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 v3, v1, [Ljava/lang/Object;
invoke-static {p0, v2, v3}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 151
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, " Signature: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Lcom/android/billingclient/api/Purchase;->getSignature()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
new-array v2, v1, [Ljava/lang/Object;
invoke-static {p0, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 157
:cond_1
invoke-virtual {p1}, Lcom/android/billingclient/api/BillingResult;->getResponseCode()I
move-result p2
if-nez p2, :cond_2
iget p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
if-nez p2, :cond_3
:cond_2
iput v1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseResponseListener:Lcom/android/billingclient/api/PurchasesResponseListener;
if-eqz p2, :cond_3
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_PurchasesList:Ljava/util/List;
.line 162
invoke-interface {p2, p1, v0}, Lcom/android/billingclient/api/PurchasesResponseListener;->onQueryPurchasesResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
const/4 p1, 0x0
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseResponseListener:Lcom/android/billingclient/api/PurchasesResponseListener;
:cond_3
return-void
.end method
.method public queryProductDetailsAsync(Ljava/util/List;Ljava/util/List;Lcom/android/billingclient/api/ProductDetailsResponseListener;)V
.locals 1
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Lcom/android/billingclient/api/ProductDetailsResponseListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/android/billingclient/api/QueryProductDetailsParams$Product;",
">;",
"Ljava/util/List<",
"Lcom/android/billingclient/api/QueryProductDetailsParams$Product;",
">;",
"Lcom/android/billingclient/api/ProductDetailsResponseListener;",
")V"
}
.end annotation
.line 97
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_CatalogItemsList:Ljava/util/List;
.line 98
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 99
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_0
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string p2, "Empty Product List passed to queryProductDetails"
.line 101
invoke-static {p0, p2, p1}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_0
iput-object p3, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_productDetailsClientListener:Lcom/android/billingclient/api/ProductDetailsResponseListener;
iget-object p3, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 105
invoke-static {}, Lcom/android/billingclient/api/QueryProductDetailsParams;->newBuilder()Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;
move-result-object v0
.line 106
invoke-virtual {v0, p1}, Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;->setProductList(Ljava/util/List;)Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;
move-result-object p1
.line 107
invoke-virtual {p1}, Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;->build()Lcom/android/billingclient/api/QueryProductDetailsParams;
move-result-object p1
.line 105
invoke-virtual {p3, p1, p0}, Lcom/android/billingclient/api/BillingClient;->queryProductDetailsAsync(Lcom/android/billingclient/api/QueryProductDetailsParams;Lcom/android/billingclient/api/ProductDetailsResponseListener;)V
iget p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 110
invoke-static {}, Lcom/android/billingclient/api/QueryProductDetailsParams;->newBuilder()Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;
move-result-object p3
.line 111
invoke-virtual {p3, p2}, Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;->setProductList(Ljava/util/List;)Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;
move-result-object p2
.line 112
invoke-virtual {p2}, Lcom/android/billingclient/api/QueryProductDetailsParams$Builder;->build()Lcom/android/billingclient/api/QueryProductDetailsParams;
move-result-object p2
.line 110
invoke-virtual {p1, p2, p0}, Lcom/android/billingclient/api/BillingClient;->queryProductDetailsAsync(Lcom/android/billingclient/api/QueryProductDetailsParams;Lcom/android/billingclient/api/ProductDetailsResponseListener;)V
iget p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_catalogQueryRequests:I
return-void
.end method
.method public queryPurchasesAsync(Lcom/android/billingclient/api/PurchasesResponseListener;)V
.locals 2
.param p1 # Lcom/android/billingclient/api/PurchasesResponseListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 118
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_PurchasesList:Ljava/util/List;
.line 119
invoke-interface {v0}, Ljava/util/List;->clear()V
iput-object p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseResponseListener:Lcom/android/billingclient/api/PurchasesResponseListener;
.line 121
invoke-virtual {p0}, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->isBillingAvailable()Z
move-result p1
if-eqz p1, :cond_0
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 123
invoke-static {}, Lcom/android/billingclient/api/QueryPurchasesParams;->newBuilder()Lcom/android/billingclient/api/QueryPurchasesParams$Builder;
move-result-object v0
const-string v1, "subs"
invoke-virtual {v0, v1}, Lcom/android/billingclient/api/QueryPurchasesParams$Builder;->setProductType(Ljava/lang/String;)Lcom/android/billingclient/api/QueryPurchasesParams$Builder;
move-result-object v0
invoke-virtual {v0}, Lcom/android/billingclient/api/QueryPurchasesParams$Builder;->build()Lcom/android/billingclient/api/QueryPurchasesParams;
move-result-object v0
invoke-virtual {p1, v0, p0}, Lcom/android/billingclient/api/BillingClient;->queryPurchasesAsync(Lcom/android/billingclient/api/QueryPurchasesParams;Lcom/android/billingclient/api/PurchasesResponseListener;)V
iget p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
iget-object p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 125
invoke-static {}, Lcom/android/billingclient/api/QueryPurchasesParams;->newBuilder()Lcom/android/billingclient/api/QueryPurchasesParams$Builder;
move-result-object v0
const-string v1, "inapp"
invoke-virtual {v0, v1}, Lcom/android/billingclient/api/QueryPurchasesParams$Builder;->setProductType(Ljava/lang/String;)Lcom/android/billingclient/api/QueryPurchasesParams$Builder;
move-result-object v0
invoke-virtual {v0}, Lcom/android/billingclient/api/QueryPurchasesParams$Builder;->build()Lcom/android/billingclient/api/QueryPurchasesParams;
move-result-object v0
invoke-virtual {p1, v0, p0}, Lcom/android/billingclient/api/BillingClient;->queryPurchasesAsync(Lcom/android/billingclient/api/QueryPurchasesParams;Lcom/android/billingclient/api/PurchasesResponseListener;)V
iget p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchaseHistoryRequests:I
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "Billing not available"
.line 130
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public startSetup(Lcom/android/billingclient/api/BillingClientStateListener;Lcom/android/billingclient/api/PurchasesUpdatedListener;)V
.locals 1
.param p1 # Lcom/android/billingclient/api/BillingClientStateListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lcom/android/billingclient/api/PurchasesUpdatedListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iput-object p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_purchasesUpdatedListener:Lcom/android/billingclient/api/PurchasesUpdatedListener;
.line 67
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 68
invoke-virtual {p2}, Lcom/android/billingclient/api/BillingClient;->isReady()Z
move-result p2
if-nez p2, :cond_0
const/4 p2, 0x0
new-array p2, p2, [Ljava/lang/Object;
const-string v0, "Starting Billing Setup"
.line 72
invoke-static {p0, v0, p2}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p2, p0, Lcom/ea/nimble/mtx/googleplay/billing/BillingHelper;->m_billingClient:Lcom/android/billingclient/api/BillingClient;
.line 75
invoke-virtual {p2, p1}, Lcom/android/billingclient/api/BillingClient;->startConnection(Lcom/android/billingclient/api/BillingClientStateListener;)V
return-void
.line 70
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Billing Client is already setup"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,292 @@
.class Lcom/ea/nimble/mtx/googleplay/billing/Security;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final KEY_FACTORY_ALGORITHM:Ljava/lang/String; = "RSA"
.field private static final SIGNATURE_ALGORITHM:Ljava/lang/String; = "SHA1withRSA"
.field private static final TAG:Ljava/lang/String; = "IABUtil/Security"
# direct methods
.method public constructor <init>()V
.locals 0
.line 30
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static generatePublicKey(Ljava/lang/String;)Ljava/security/PublicKey;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 66
:try_start_0
invoke-static {p0, v0}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
move-result-object p0
const-string v0, "RSA"
.line 67
invoke-static {v0}, Ljava/security/KeyFactory;->getInstance(Ljava/lang/String;)Ljava/security/KeyFactory;
move-result-object v0
.line 68
new-instance v1, Ljava/security/spec/X509EncodedKeySpec;
invoke-direct {v1, p0}, Ljava/security/spec/X509EncodedKeySpec;-><init>([B)V
invoke-virtual {v0, v1}, Ljava/security/KeyFactory;->generatePublic(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
move-result-object p0
:try_end_0
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/security/spec/InvalidKeySpecException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
goto :goto_0
:catch_1
move-exception p0
goto :goto_1
.line 73
:goto_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Invalid key specification: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string v0, "IABUtil/Security"
.line 74
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 75
new-instance v0, Ljava/io/IOException;
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.line 71
:goto_1
new-instance v0, Ljava/lang/RuntimeException;
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v0
.end method
.method private static verify(Ljava/security/PublicKey;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Boolean;
.locals 2
const-string v0, "IABUtil/Security"
const/4 v1, 0x0
.line 91
:try_start_0
invoke-static {p2, v1}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
move-result-object p2
:try_end_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_3
:try_start_1
const-string v1, "SHA1withRSA"
.line 97
invoke-static {v1}, Ljava/security/Signature;->getInstance(Ljava/lang/String;)Ljava/security/Signature;
move-result-object v1
.line 98
invoke-virtual {v1, p0}, Ljava/security/Signature;->initVerify(Ljava/security/PublicKey;)V
.line 99
invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B
move-result-object p0
invoke-virtual {v1, p0}, Ljava/security/Signature;->update([B)V
.line 100
invoke-virtual {v1, p2}, Ljava/security/Signature;->verify([B)Z
move-result p0
if-nez p0, :cond_0
const-string p0, "Signature verification failed..."
.line 101
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
sget-object p0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
return-object p0
:catch_0
move-exception p0
goto :goto_1
:cond_0
sget-object p0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
:try_end_1
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_1 .. :try_end_1} :catch_0
.catch Ljava/security/InvalidKeyException; {:try_start_1 .. :try_end_1} :catch_2
.catch Ljava/security/SignatureException; {:try_start_1 .. :try_end_1} :catch_1
return-object p0
:catch_1
const-string p0, "Signature exception."
.line 111
invoke-static {v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
:catch_2
const-string p0, "Invalid key specification."
.line 109
invoke-static {v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:goto_0
sget-object p0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
return-object p0
.line 107
:goto_1
new-instance p1, Ljava/lang/RuntimeException;
invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw p1
:catch_3
const-string p0, "Base64 decoding failed."
.line 93
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
sget-object p0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
return-object p0
.end method
.method public static verifyPurchase(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
.locals 3
.line 42
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
const/4 v1, 0x0
const-string v2, "IABUtil/Security"
if-nez v0, :cond_1
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_1
.line 43
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 49
:cond_0
:try_start_0
invoke-static {p0}, Lcom/ea/nimble/mtx/googleplay/billing/Security;->generatePublicKey(Ljava/lang/String;)Ljava/security/PublicKey;
move-result-object p0
.line 50
invoke-static {p0, p1, p2}, Lcom/ea/nimble/mtx/googleplay/billing/Security;->verify(Ljava/security/PublicKey;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Boolean;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
move-result p0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return p0
:catch_0
move-exception p0
.line 52
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "Error generating PublicKey from encoded key: "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return v1
:cond_1
:goto_0
const-string p0, "Purchase verification failed: missing data."
.line 45
invoke-static {v2, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v1
.end method