First Upload

Just the APK
Force update disabled, will only work offline.
This commit is contained in:
supermegamestre
2026-01-26 00:26:29 -03:00
commit 4bbd74a497
44413 changed files with 11043538 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/unity3d/services/store/JsonSerializable;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract toJson()Lorg/json/JSONObject;
.end method

View File

@@ -0,0 +1,203 @@
.class public final enum Lcom/unity3d/services/store/StoreError;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/unity3d/services/store/StoreError;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/unity3d/services/store/StoreError;
.field public static final enum CLASS_NOT_FOUND:Lcom/unity3d/services/store/StoreError;
.field public static final enum ILLEGAL_ACCESS:Lcom/unity3d/services/store/StoreError;
.field public static final enum INVOCATION_TARGET:Lcom/unity3d/services/store/StoreError;
.field public static final enum JSON_ERROR:Lcom/unity3d/services/store/StoreError;
.field public static final enum NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
.field public static final enum NO_SUCH_METHOD:Lcom/unity3d/services/store/StoreError;
.field public static final enum STORE_ERROR:Lcom/unity3d/services/store/StoreError;
.field public static final enum UNKNOWN_ERROR:Lcom/unity3d/services/store/StoreError;
# direct methods
.method private static final synthetic $values()[Lcom/unity3d/services/store/StoreError;
.locals 8
sget-object v0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
sget-object v1, Lcom/unity3d/services/store/StoreError;->CLASS_NOT_FOUND:Lcom/unity3d/services/store/StoreError;
sget-object v2, Lcom/unity3d/services/store/StoreError;->NO_SUCH_METHOD:Lcom/unity3d/services/store/StoreError;
sget-object v3, Lcom/unity3d/services/store/StoreError;->INVOCATION_TARGET:Lcom/unity3d/services/store/StoreError;
sget-object v4, Lcom/unity3d/services/store/StoreError;->ILLEGAL_ACCESS:Lcom/unity3d/services/store/StoreError;
sget-object v5, Lcom/unity3d/services/store/StoreError;->JSON_ERROR:Lcom/unity3d/services/store/StoreError;
sget-object v6, Lcom/unity3d/services/store/StoreError;->STORE_ERROR:Lcom/unity3d/services/store/StoreError;
sget-object v7, Lcom/unity3d/services/store/StoreError;->UNKNOWN_ERROR:Lcom/unity3d/services/store/StoreError;
filled-new-array/range {v0 .. v7}, [Lcom/unity3d/services/store/StoreError;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 4
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "NOT_INITIALIZED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
.line 5
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "CLASS_NOT_FOUND"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->CLASS_NOT_FOUND:Lcom/unity3d/services/store/StoreError;
.line 6
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "NO_SUCH_METHOD"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->NO_SUCH_METHOD:Lcom/unity3d/services/store/StoreError;
.line 7
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "INVOCATION_TARGET"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->INVOCATION_TARGET:Lcom/unity3d/services/store/StoreError;
.line 8
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "ILLEGAL_ACCESS"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->ILLEGAL_ACCESS:Lcom/unity3d/services/store/StoreError;
.line 9
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "JSON_ERROR"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->JSON_ERROR:Lcom/unity3d/services/store/StoreError;
.line 10
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "STORE_ERROR"
const/4 v2, 0x6
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->STORE_ERROR:Lcom/unity3d/services/store/StoreError;
.line 11
new-instance v0, Lcom/unity3d/services/store/StoreError;
const-string v1, "UNKNOWN_ERROR"
const/4 v2, 0x7
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreError;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreError;->UNKNOWN_ERROR:Lcom/unity3d/services/store/StoreError;
invoke-static {}, Lcom/unity3d/services/store/StoreError;->$values()[Lcom/unity3d/services/store/StoreError;
move-result-object v0
sput-object v0, Lcom/unity3d/services/store/StoreError;->$VALUES:[Lcom/unity3d/services/store/StoreError;
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 3
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/unity3d/services/store/StoreError;
.locals 1
const-class v0, Lcom/unity3d/services/store/StoreError;
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/unity3d/services/store/StoreError;
return-object p0
.end method
.method public static values()[Lcom/unity3d/services/store/StoreError;
.locals 1
sget-object v0, Lcom/unity3d/services/store/StoreError;->$VALUES:[Lcom/unity3d/services/store/StoreError;
invoke-virtual {v0}, [Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/unity3d/services/store/StoreError;
return-object v0
.end method

View File

@@ -0,0 +1,308 @@
.class public final enum Lcom/unity3d/services/store/StoreEvent;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/unity3d/services/store/StoreEvent;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/unity3d/services/store/StoreEvent;
.field public static final enum DISCONNECTED_RESULT:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum INITIALIZATION_REQUEST_FAILED:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum INITIALIZATION_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum IS_FEATURE_SUPPORTED_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum IS_FEATURE_SUPPORTED_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASES_ON_RESUME_ERROR:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASES_ON_RESUME_RESULT:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASES_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASES_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASES_UPDATED_ERROR:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASES_UPDATED_RESULT:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASE_HISTORY_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum PURCHASE_HISTORY_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum SKU_DETAILS_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.field public static final enum SKU_DETAILS_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
# direct methods
.method private static final synthetic $values()[Lcom/unity3d/services/store/StoreEvent;
.locals 15
sget-object v0, Lcom/unity3d/services/store/StoreEvent;->INITIALIZATION_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->INITIALIZATION_REQUEST_FAILED:Lcom/unity3d/services/store/StoreEvent;
sget-object v2, Lcom/unity3d/services/store/StoreEvent;->DISCONNECTED_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v3, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_ON_RESUME_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v4, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_ON_RESUME_ERROR:Lcom/unity3d/services/store/StoreEvent;
sget-object v5, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_UPDATED_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v6, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_UPDATED_ERROR:Lcom/unity3d/services/store/StoreEvent;
sget-object v7, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v8, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
sget-object v9, Lcom/unity3d/services/store/StoreEvent;->PURCHASE_HISTORY_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v10, Lcom/unity3d/services/store/StoreEvent;->PURCHASE_HISTORY_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
sget-object v11, Lcom/unity3d/services/store/StoreEvent;->SKU_DETAILS_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v12, Lcom/unity3d/services/store/StoreEvent;->SKU_DETAILS_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
sget-object v13, Lcom/unity3d/services/store/StoreEvent;->IS_FEATURE_SUPPORTED_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
sget-object v14, Lcom/unity3d/services/store/StoreEvent;->IS_FEATURE_SUPPORTED_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
filled-new-array/range {v0 .. v14}, [Lcom/unity3d/services/store/StoreEvent;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 4
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "INITIALIZATION_REQUEST_RESULT"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->INITIALIZATION_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 5
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "INITIALIZATION_REQUEST_FAILED"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->INITIALIZATION_REQUEST_FAILED:Lcom/unity3d/services/store/StoreEvent;
.line 6
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "DISCONNECTED_RESULT"
const/4 v2, 0x2
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->DISCONNECTED_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 7
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASES_ON_RESUME_RESULT"
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_ON_RESUME_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 8
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASES_ON_RESUME_ERROR"
const/4 v2, 0x4
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_ON_RESUME_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 9
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASES_UPDATED_RESULT"
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_UPDATED_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 10
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASES_UPDATED_ERROR"
const/4 v2, 0x6
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_UPDATED_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 11
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASES_REQUEST_RESULT"
const/4 v2, 0x7
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 12
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASES_REQUEST_ERROR"
const/16 v2, 0x8
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 13
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASE_HISTORY_LIST_REQUEST_RESULT"
const/16 v2, 0x9
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASE_HISTORY_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 14
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "PURCHASE_HISTORY_LIST_REQUEST_ERROR"
const/16 v2, 0xa
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASE_HISTORY_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 15
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "SKU_DETAILS_LIST_REQUEST_RESULT"
const/16 v2, 0xb
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->SKU_DETAILS_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 16
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "SKU_DETAILS_LIST_REQUEST_ERROR"
const/16 v2, 0xc
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->SKU_DETAILS_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 17
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "IS_FEATURE_SUPPORTED_REQUEST_RESULT"
const/16 v2, 0xd
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->IS_FEATURE_SUPPORTED_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 18
new-instance v0, Lcom/unity3d/services/store/StoreEvent;
const-string v1, "IS_FEATURE_SUPPORTED_REQUEST_ERROR"
const/16 v2, 0xe
invoke-direct {v0, v1, v2}, Lcom/unity3d/services/store/StoreEvent;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->IS_FEATURE_SUPPORTED_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
invoke-static {}, Lcom/unity3d/services/store/StoreEvent;->$values()[Lcom/unity3d/services/store/StoreEvent;
move-result-object v0
sput-object v0, Lcom/unity3d/services/store/StoreEvent;->$VALUES:[Lcom/unity3d/services/store/StoreEvent;
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 3
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/unity3d/services/store/StoreEvent;
.locals 1
const-class v0, Lcom/unity3d/services/store/StoreEvent;
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/unity3d/services/store/StoreEvent;
return-object p0
.end method
.method public static values()[Lcom/unity3d/services/store/StoreEvent;
.locals 1
sget-object v0, Lcom/unity3d/services/store/StoreEvent;->$VALUES:[Lcom/unity3d/services/store/StoreEvent;
invoke-virtual {v0}, [Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/unity3d/services/store/StoreEvent;
return-object v0
.end method

View File

@@ -0,0 +1,377 @@
.class public final Lcom/unity3d/services/store/StoreMonitor;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final _isInitialized:Lkotlinx/coroutines/flow/MutableStateFlow;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlinx/coroutines/flow/MutableStateFlow;"
}
.end annotation
.end field
.field private storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
.field private final storeExceptionHandler:Lcom/unity3d/services/store/core/StoreExceptionHandler;
.field private storeLifecycleListener:Lcom/unity3d/services/store/core/StoreLifecycleListener;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/store/core/StoreExceptionHandler;)V
.locals 1
const-string v0, "storeExceptionHandler"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 18
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/StoreMonitor;->storeExceptionHandler:Lcom/unity3d/services/store/core/StoreExceptionHandler;
sget-object p1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
.line 24
invoke-static {p1}, Lkotlinx/coroutines/flow/StateFlowKt;->MutableStateFlow(Ljava/lang/Object;)Lkotlinx/coroutines/flow/MutableStateFlow;
move-result-object p1
iput-object p1, p0, Lcom/unity3d/services/store/StoreMonitor;->_isInitialized:Lkotlinx/coroutines/flow/MutableStateFlow;
return-void
.end method
# virtual methods
.method public final getPurchaseHistory(ILjava/lang/String;ILcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;)V
.locals 1
const-string v0, "purchaseHistoryResponseListener"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
iget-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
if-eqz v0, :cond_0
.line 79
invoke-virtual {v0, p2, p3, p4}, Lcom/unity3d/services/store/gpbl/StoreBilling;->getPurchaseHistory(Ljava/lang/String;ILcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p2
iget-object p3, p0, Lcom/unity3d/services/store/StoreMonitor;->storeExceptionHandler:Lcom/unity3d/services/store/core/StoreExceptionHandler;
.line 84
sget-object p4, Lcom/unity3d/services/store/StoreEvent;->PURCHASE_HISTORY_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 83
invoke-interface {p3, p4, p1, p2}, Lcom/unity3d/services/store/core/StoreExceptionHandler;->handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
:cond_0
:goto_0
return-void
.end method
.method public final getPurchases(ILjava/lang/String;Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;)V
.locals 1
const-string v0, "purchasesResponseListener"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
iget-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
if-eqz v0, :cond_0
if-eqz v0, :cond_1
.line 64
invoke-virtual {v0, p2, p3}, Lcom/unity3d/services/store/gpbl/StoreBilling;->getPurchases(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;)V
goto :goto_1
:catch_0
move-exception p2
goto :goto_0
:cond_0
const-string p2, "Required value was null."
.line 63
new-instance p3, Ljava/lang/IllegalStateException;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p3, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p3
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
:goto_0
iget-object p3, p0, Lcom/unity3d/services/store/StoreMonitor;->storeExceptionHandler:Lcom/unity3d/services/store/core/StoreExceptionHandler;
.line 70
sget-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 69
invoke-interface {p3, v0, p1, p2}, Lcom/unity3d/services/store/core/StoreExceptionHandler;->handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
:cond_1
:goto_1
return-void
.end method
.method public final getSkuDetails(ILjava/lang/String;Ljava/util/List;Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/lang/String;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;",
")V"
}
.end annotation
const-string v0, "skuDetailsResponseListener"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
iget-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
if-eqz v0, :cond_0
.line 93
invoke-virtual {v0, p2, p3, p4}, Lcom/unity3d/services/store/gpbl/StoreBilling;->getSkuDetails(Ljava/lang/String;Ljava/util/List;Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p2
iget-object p3, p0, Lcom/unity3d/services/store/StoreMonitor;->storeExceptionHandler:Lcom/unity3d/services/store/core/StoreExceptionHandler;
.line 96
sget-object p4, Lcom/unity3d/services/store/StoreEvent;->SKU_DETAILS_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 95
invoke-interface {p3, p4, p1, p2}, Lcom/unity3d/services/store/core/StoreExceptionHandler;->handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
:cond_0
:goto_0
return-void
.end method
.method public final initialize(Lcom/unity3d/services/store/gpbl/listeners/BillingInitializationListener;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/NoSuchMethodException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/reflect/InvocationTargetException;
}
.end annotation
const-string v0, "billingInitializationListener"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 35
invoke-virtual {p0}, Lcom/unity3d/services/store/StoreMonitor;->isInitialized()Z
move-result v0
if-eqz v0, :cond_0
.line 37
invoke-interface {p1}, Lcom/unity3d/services/store/gpbl/listeners/BillingInitializationListener;->onIsAlreadyInitialized()V
return-void
.line 40
:cond_0
new-instance v0, Lcom/unity3d/services/store/gpbl/StoreBilling;
invoke-static {}, Lcom/unity3d/services/core/properties/ClientProperties;->getApplicationContext()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/unity3d/services/store/gpbl/StoreBilling;-><init>(Landroid/content/Context;Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;)V
iput-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
.line 41
invoke-virtual {v0, p1}, Lcom/unity3d/services/store/gpbl/StoreBilling;->initialize(Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;)V
iget-object p1, p0, Lcom/unity3d/services/store/StoreMonitor;->_isInitialized:Lkotlinx/coroutines/flow/MutableStateFlow;
sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
.line 42
invoke-interface {p1, v0}, Lkotlinx/coroutines/flow/MutableStateFlow;->setValue(Ljava/lang/Object;)V
return-void
.end method
.method public final isFeatureSupported(ILjava/lang/String;Lcom/unity3d/services/store/gpbl/listeners/FeatureSupportedListener;)I
.locals 2
const-string v0, "featureSupportedListener"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, -0x1
:try_start_0
iget-object v1, p0, Lcom/unity3d/services/store/StoreMonitor;->storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
if-eqz v1, :cond_0
.line 48
invoke-virtual {v1, p2}, Lcom/unity3d/services/store/gpbl/StoreBilling;->isFeatureSupported(Ljava/lang/String;)I
move-result v0
goto :goto_0
:catch_0
move-exception p2
goto :goto_1
.line 49
:cond_0
:goto_0
invoke-interface {p3, v0}, Lcom/unity3d/services/store/gpbl/listeners/FeatureSupportedListener;->onFeatureSupported(I)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:goto_1
iget-object p3, p0, Lcom/unity3d/services/store/StoreMonitor;->storeExceptionHandler:Lcom/unity3d/services/store/core/StoreExceptionHandler;
.line 53
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->IS_FEATURE_SUPPORTED_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 52
invoke-interface {p3, v1, p1, p2}, Lcom/unity3d/services/store/core/StoreExceptionHandler;->handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
:goto_2
return v0
.end method
.method public final isInitialized()Z
.locals 1
iget-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->_isInitialized:Lkotlinx/coroutines/flow/MutableStateFlow;
.line 26
invoke-interface {v0}, Lkotlinx/coroutines/flow/MutableStateFlow;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
return v0
.end method
.method public final startPurchaseTracking(Ljava/util/ArrayList;Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;",
"Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;",
")V"
}
.end annotation
const-string v0, "purchaseTypes"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "storeEventListener"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeLifecycleListener:Lcom/unity3d/services/store/core/StoreLifecycleListener;
if-eqz v0, :cond_0
.line 105
invoke-virtual {p0}, Lcom/unity3d/services/store/StoreMonitor;->stopPurchaseTracking()V
.line 107
:cond_0
new-instance v0, Lcom/unity3d/services/store/core/StoreLifecycleListener;
iget-object v1, p0, Lcom/unity3d/services/store/StoreMonitor;->storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-direct {v0, p1, v1, p2}, Lcom/unity3d/services/store/core/StoreLifecycleListener;-><init>(Ljava/util/ArrayList;Lcom/unity3d/services/store/gpbl/StoreBilling;Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;)V
iput-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeLifecycleListener:Lcom/unity3d/services/store/core/StoreLifecycleListener;
.line 108
invoke-static {}, Lcom/unity3d/services/core/properties/ClientProperties;->getApplication()Landroid/app/Application;
move-result-object p1
iget-object p2, p0, Lcom/unity3d/services/store/StoreMonitor;->storeLifecycleListener:Lcom/unity3d/services/store/core/StoreLifecycleListener;
invoke-virtual {p1, p2}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
return-void
.end method
.method public final stopPurchaseTracking()V
.locals 2
iget-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeLifecycleListener:Lcom/unity3d/services/store/core/StoreLifecycleListener;
if-eqz v0, :cond_0
.line 113
invoke-static {}, Lcom/unity3d/services/core/properties/ClientProperties;->getApplication()Landroid/app/Application;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/store/StoreMonitor;->storeLifecycleListener:Lcom/unity3d/services/store/core/StoreLifecycleListener;
invoke-virtual {v0, v1}, Landroid/app/Application;->unregisterActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
const/4 v0, 0x0
iput-object v0, p0, Lcom/unity3d/services/store/StoreMonitor;->storeLifecycleListener:Lcom/unity3d/services/store/core/StoreLifecycleListener;
:cond_0
return-void
.end method

View File

@@ -0,0 +1,53 @@
.class public final Lcom/unity3d/services/store/StoreWebViewEventSender;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final eventSender:Lcom/unity3d/services/core/webview/bridge/IEventSender;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/core/webview/bridge/IEventSender;)V
.locals 1
const-string v0, "eventSender"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/StoreWebViewEventSender;->eventSender:Lcom/unity3d/services/core/webview/bridge/IEventSender;
return-void
.end method
# virtual methods
.method public final varargs send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
.locals 3
const-string v0, "event"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "params"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/unity3d/services/store/StoreWebViewEventSender;->eventSender:Lcom/unity3d/services/core/webview/bridge/IEventSender;
.line 8
sget-object v1, Lcom/unity3d/services/core/webview/WebViewEventCategory;->STORE:Lcom/unity3d/services/core/webview/WebViewEventCategory;
array-length v2, p2
invoke-static {p2, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
invoke-interface {v0, v1, p1, p2}, Lcom/unity3d/services/core/webview/bridge/IEventSender;->sendEvent(Ljava/lang/Enum;Ljava/lang/Enum;[Ljava/lang/Object;)Z
return-void
.end method

View File

@@ -0,0 +1,584 @@
.class public final Lcom/unity3d/services/store/WebViewStoreEventListener;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
# annotations
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nWebViewStoreEventListener.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WebViewStoreEventListener.kt\ncom/unity3d/services/store/WebViewStoreEventListener\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,110:1\n37#2,2:111\n37#2,2:113\n*S KotlinDebug\n*F\n+ 1 WebViewStoreEventListener.kt\ncom/unity3d/services/store/WebViewStoreEventListener\n*L\n85#1:111,2\n88#1:113,2\n*E\n"
}
.end annotation
# instance fields
.field private final isLifecycleListener:Z
.field private final operationId:I
.field private final storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
# direct methods
.method public constructor <init>(ILcom/unity3d/services/store/StoreWebViewEventSender;Z)V
.locals 1
const-string v0, "storeWebViewEventSender"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->operationId:I
iput-object p2, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
iput-boolean p3, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->isLifecycleListener:Z
return-void
.end method
.method public synthetic constructor <init>(ILcom/unity3d/services/store/StoreWebViewEventSender;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_0
const/4 p3, 0x0
.line 12
:cond_0
invoke-direct {p0, p1, p2, p3}, Lcom/unity3d/services/store/WebViewStoreEventListener;-><init>(ILcom/unity3d/services/store/StoreWebViewEventSender;Z)V
return-void
.end method
# virtual methods
.method public getOperationId()I
.locals 1
iget v0, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->operationId:I
return v0
.end method
.method public onBillingServiceDisconnected()V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 47
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->DISCONNECTED_RESULT:Lcom/unity3d/services/store/StoreEvent;
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-virtual {v0, v1, v2}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
return-void
.end method
.method public onBillingSetupFinished(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;)V
.locals 3
const-string v0, "billingResult"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 33
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object v0
sget-object v1, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v2, "billingResult.responseCode"
if-ne v0, v1, :cond_0
iget-object v0, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 35
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->INITIALIZATION_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 36
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object p1
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 34
invoke-virtual {v0, v1, p1}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 40
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->INITIALIZATION_REQUEST_FAILED:Lcom/unity3d/services/store/StoreEvent;
.line 41
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object p1
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 39
invoke-virtual {v0, v1, p1}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public onFeatureSupported(I)V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 26
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->IS_FEATURE_SUPPORTED_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 27
invoke-virtual {p0}, Lcom/unity3d/services/store/WebViewStoreEventListener;->getOperationId()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
.line 28
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
filled-new-array {v2, p1}, [Ljava/lang/Object;
move-result-object p1
.line 25
invoke-virtual {v0, v1, p1}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
return-void
.end method
.method public onIsAlreadyInitialized()V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 19
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->INITIALIZATION_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
.line 20
sget-object v2, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
invoke-virtual {v2}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->getResponseCode()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
filled-new-array {v2}, [Ljava/lang/Object;
move-result-object v2
.line 18
invoke-virtual {v0, v1, v2}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
return-void
.end method
.method public onPurchaseHistoryUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/PurchaseHistoryRecordBridge;",
">;)V"
}
.end annotation
const-string v0, "billingResult"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 55
sget-object v1, Lcom/unity3d/services/store/StoreEvent;->PURCHASE_HISTORY_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
const/4 v2, 0x3
new-array v2, v2, [Ljava/lang/Object;
.line 56
invoke-virtual {p0}, Lcom/unity3d/services/store/WebViewStoreEventListener;->getOperationId()I
move-result v3
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
const/4 v4, 0x0
aput-object v3, v2, v4
.line 57
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object p1
const-string v3, "billingResult.responseCode"
invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v3, 0x1
aput-object p1, v2, v3
if-eqz p2, :cond_0
.line 58
invoke-static {p2}, Lcom/unity3d/ads/core/extensions/JsonSerializableExtensionsKt;->toJsonArray(Ljava/util/List;)Lorg/json/JSONArray;
move-result-object p1
if-nez p1, :cond_1
:cond_0
new-instance p1, Lorg/json/JSONArray;
invoke-direct {p1}, Lorg/json/JSONArray;-><init>()V
:cond_1
const/4 p2, 0x2
aput-object p1, v2, p2
.line 54
invoke-virtual {v0, v1, v2}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
return-void
.end method
.method public onPurchaseResponse(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;",
">;)V"
}
.end annotation
const-string v0, "billingResult"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 77
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 78
invoke-virtual {p0}, Lcom/unity3d/services/store/WebViewStoreEventListener;->getOperationId()I
move-result v1
const/4 v2, -0x1
if-eq v1, v2, :cond_0
.line 80
invoke-virtual {p0}, Lcom/unity3d/services/store/WebViewStoreEventListener;->getOperationId()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 82
:cond_0
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object v1
sget-object v2, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const/4 v3, 0x0
if-ne v1, v2, :cond_4
if-eqz p2, :cond_1
.line 83
invoke-static {p2}, Lcom/unity3d/ads/core/extensions/JsonSerializableExtensionsKt;->toJsonArray(Ljava/util/List;)Lorg/json/JSONArray;
move-result-object p1
if-nez p1, :cond_2
:cond_1
new-instance p1, Lorg/json/JSONArray;
invoke-direct {p1}, Lorg/json/JSONArray;-><init>()V
.line 84
:cond_2
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget-object p1, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
iget-boolean p2, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->isLifecycleListener:Z
if-eqz p2, :cond_3
.line 85
sget-object p2, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_ON_RESUME_RESULT:Lcom/unity3d/services/store/StoreEvent;
goto :goto_0
:cond_3
sget-object p2, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
:goto_0
new-array v1, v3, [Ljava/lang/Object;
.line 38
invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
.line 85
array-length v1, v0
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v0
invoke-virtual {p1, p2, v0}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
goto :goto_2
.line 87
:cond_4
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget-object p1, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
iget-boolean p2, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->isLifecycleListener:Z
if-eqz p2, :cond_5
.line 88
sget-object p2, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_ON_RESUME_ERROR:Lcom/unity3d/services/store/StoreEvent;
goto :goto_1
:cond_5
sget-object p2, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
:goto_1
new-array v1, v3, [Ljava/lang/Object;
.line 38
invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
.line 88
array-length v1, v0
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v0
invoke-virtual {p1, p2, v0}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
:goto_2
return-void
.end method
.method public onPurchaseUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;",
">;)V"
}
.end annotation
const-string v0, "billingResult"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 96
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object v0
sget-object v1, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
if-ne v0, v1, :cond_2
iget-object p1, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 98
sget-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_UPDATED_RESULT:Lcom/unity3d/services/store/StoreEvent;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
if-eqz p2, :cond_0
.line 99
invoke-static {p2}, Lcom/unity3d/ads/core/extensions/JsonSerializableExtensionsKt;->toJsonArray(Ljava/util/List;)Lorg/json/JSONArray;
move-result-object p2
if-nez p2, :cond_1
:cond_0
new-instance p2, Lorg/json/JSONArray;
invoke-direct {p2}, Lorg/json/JSONArray;-><init>()V
:cond_1
const/4 v2, 0x0
aput-object p2, v1, v2
.line 97
invoke-virtual {p1, v0, v1}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
goto :goto_0
:cond_2
iget-object p2, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 103
sget-object v0, Lcom/unity3d/services/store/StoreEvent;->PURCHASES_UPDATED_ERROR:Lcom/unity3d/services/store/StoreEvent;
.line 104
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object p1
const-string v1, "billingResult.responseCode"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 102
invoke-virtual {p2, v0, p1}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public onSkuDetailsUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsBridge;",
">;)V"
}
.end annotation
const-string v0, "billingResult"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p1, p0, Lcom/unity3d/services/store/WebViewStoreEventListener;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
.line 67
sget-object v0, Lcom/unity3d/services/store/StoreEvent;->SKU_DETAILS_LIST_REQUEST_RESULT:Lcom/unity3d/services/store/StoreEvent;
const/4 v1, 0x2
new-array v1, v1, [Ljava/lang/Object;
.line 68
invoke-virtual {p0}, Lcom/unity3d/services/store/WebViewStoreEventListener;->getOperationId()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x0
aput-object v2, v1, v3
if-eqz p2, :cond_0
.line 69
invoke-static {p2}, Lcom/unity3d/ads/core/extensions/JsonSerializableExtensionsKt;->toJsonArray(Ljava/util/List;)Lorg/json/JSONArray;
move-result-object p2
if-nez p2, :cond_1
:cond_0
new-instance p2, Lorg/json/JSONArray;
invoke-direct {p2}, Lorg/json/JSONArray;-><init>()V
:cond_1
const/4 v2, 0x1
aput-object p2, v1, v2
.line 66
invoke-virtual {p1, v0, v1}, Lcom/unity3d/services/store/StoreWebViewEventSender;->send(Lcom/unity3d/services/store/StoreEvent;[Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,34 @@
.class public final Lcom/unity3d/services/store/core/GatewayStoreExceptionHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/core/StoreExceptionHandler;
# 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 handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
.locals 0
const-string p2, "storeEvent"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p1, "exception"
invoke-static {p3, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 14
throw p3
.end method

View File

@@ -0,0 +1,98 @@
.class public final Lcom/unity3d/services/store/core/StoreEventListenerFactory;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/store/StoreWebViewEventSender;)V
.locals 1
const-string v0, "storeWebViewEventSender"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
return-void
.end method
.method public static synthetic invoke$default(Lcom/unity3d/services/store/core/StoreEventListenerFactory;IZILjava/lang/Object;)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
.locals 0
and-int/lit8 p4, p3, 0x1
if-eqz p4, :cond_0
const/4 p1, -0x1
:cond_0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_1
const/4 p2, 0x0
.line 13
:cond_1
invoke-virtual {p0, p1, p2}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke(IZ)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final invoke()Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
.locals 3
.line 0
const/4 v0, 0x3
const/4 v1, 0x0
const/4 v2, 0x0
invoke-static {p0, v2, v2, v0, v1}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke$default(Lcom/unity3d/services/store/core/StoreEventListenerFactory;IZILjava/lang/Object;)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object v0
return-object v0
.end method
.method public final invoke(I)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
.locals 3
.line 0
const/4 v0, 0x2
const/4 v1, 0x0
const/4 v2, 0x0
invoke-static {p0, p1, v2, v0, v1}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke$default(Lcom/unity3d/services/store/core/StoreEventListenerFactory;IZILjava/lang/Object;)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object p1
return-object p1
.end method
.method public final invoke(IZ)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
.locals 2
.line 14
new-instance v0, Lcom/unity3d/services/store/WebViewStoreEventListener;
iget-object v1, p0, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->storeWebViewEventSender:Lcom/unity3d/services/store/StoreWebViewEventSender;
invoke-direct {v0, p1, v1, p2}, Lcom/unity3d/services/store/WebViewStoreEventListener;-><init>(ILcom/unity3d/services/store/StoreWebViewEventSender;Z)V
return-object v0
.end method

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/unity3d/services/store/core/StoreExceptionHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
.end method

View File

@@ -0,0 +1,195 @@
.class public final Lcom/unity3d/services/store/core/StoreLifecycleListener;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/app/Application$ActivityLifecycleCallbacks;
# instance fields
.field private final _purchaseTypes:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final _storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
.field private final _storeEventListener:Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
# direct methods
.method public constructor <init>(Ljava/util/ArrayList;Lcom/unity3d/services/store/gpbl/StoreBilling;Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;",
"Lcom/unity3d/services/store/gpbl/StoreBilling;",
"Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;",
")V"
}
.end annotation
const-string v0, "_purchaseTypes"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "_storeBilling"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "_storeEventListener"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 10
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/core/StoreLifecycleListener;->_purchaseTypes:Ljava/util/ArrayList;
iput-object p2, p0, Lcom/unity3d/services/store/core/StoreLifecycleListener;->_storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
iput-object p3, p0, Lcom/unity3d/services/store/core/StoreLifecycleListener;->_storeEventListener:Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
return-void
.end method
# virtual methods
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
const-string p2, "activity"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
return-void
.end method
.method public onActivityDestroyed(Landroid/app/Activity;)V
.locals 1
const-string v0, "activity"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
return-void
.end method
.method public onActivityPaused(Landroid/app/Activity;)V
.locals 1
const-string v0, "activity"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
return-void
.end method
.method public onActivityResumed(Landroid/app/Activity;)V
.locals 3
const-string v0, "activity"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
iget-object p1, p0, Lcom/unity3d/services/store/core/StoreLifecycleListener;->_purchaseTypes:Ljava/util/ArrayList;
.line 20
invoke-virtual {p1}, Ljava/util/ArrayList;->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, Ljava/lang/String;
iget-object v1, p0, Lcom/unity3d/services/store/core/StoreLifecycleListener;->_storeBilling:Lcom/unity3d/services/store/gpbl/StoreBilling;
iget-object v2, p0, Lcom/unity3d/services/store/core/StoreLifecycleListener;->_storeEventListener:Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
.line 21
invoke-virtual {v1, v0, v2}, Lcom/unity3d/services/store/gpbl/StoreBilling;->getPurchases(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;)V
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
.line 24
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Couldn\'t fetch purchases onActivityResumed. "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object 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
invoke-static {p1}, Lcom/unity3d/services/core/log/DeviceLog;->warning(Ljava/lang/String;)V
:cond_0
return-void
.end method
.method public onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 1
const-string v0, "activity"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p1, "outState"
invoke-static {p2, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
return-void
.end method
.method public onActivityStarted(Landroid/app/Activity;)V
.locals 1
const-string v0, "activity"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
return-void
.end method
.method public onActivityStopped(Landroid/app/Activity;)V
.locals 1
const-string v0, "activity"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,50 @@
.class public final Lcom/unity3d/services/store/core/StoreWebViewError;
.super Lcom/unity3d/scar/adapter/common/WebViewAdsError;
.source "SourceFile"
# direct methods
.method public varargs constructor <init>(Ljava/lang/Enum;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Enum<",
"*>;",
"Ljava/lang/String;",
"[",
"Ljava/lang/Object;",
")V"
}
.end annotation
const-string v0, "errorArguments"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 10
array-length v0, p3
invoke-static {p3, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p3
invoke-direct {p0, p1, p2, p3}, Lcom/unity3d/scar/adapter/common/WebViewAdsError;-><init>(Ljava/lang/Enum;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public getDomain()Ljava/lang/String;
.locals 1
.line 12
sget-object v0, Lcom/unity3d/services/core/webview/WebViewEventCategory;->STORE:Lcom/unity3d/services/core/webview/WebViewEventCategory;
invoke-virtual {v0}, Ljava/lang/Enum;->name()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,146 @@
.class public final Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/core/StoreExceptionHandler;
# instance fields
.field private final _webViewErrorHandler:Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;)V
.locals 1
const-string v0, "_webViewErrorHandler"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;->_webViewErrorHandler:Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;
return-void
.end method
.method private final getStoreError(Ljava/lang/Exception;)Lcom/unity3d/services/store/StoreError;
.locals 1
.line 33
instance-of v0, p1, Ljava/lang/NoSuchMethodException;
if-eqz v0, :cond_0
sget-object p1, Lcom/unity3d/services/store/StoreError;->NO_SUCH_METHOD:Lcom/unity3d/services/store/StoreError;
goto :goto_0
.line 34
:cond_0
instance-of v0, p1, Ljava/lang/IllegalAccessException;
if-eqz v0, :cond_1
sget-object p1, Lcom/unity3d/services/store/StoreError;->ILLEGAL_ACCESS:Lcom/unity3d/services/store/StoreError;
goto :goto_0
.line 35
:cond_1
instance-of v0, p1, Lorg/json/JSONException;
if-eqz v0, :cond_2
sget-object p1, Lcom/unity3d/services/store/StoreError;->JSON_ERROR:Lcom/unity3d/services/store/StoreError;
goto :goto_0
.line 36
:cond_2
instance-of v0, p1, Ljava/lang/reflect/InvocationTargetException;
if-eqz v0, :cond_3
sget-object p1, Lcom/unity3d/services/store/StoreError;->INVOCATION_TARGET:Lcom/unity3d/services/store/StoreError;
goto :goto_0
.line 37
:cond_3
instance-of p1, p1, Ljava/lang/ClassNotFoundException;
if-eqz p1, :cond_4
sget-object p1, Lcom/unity3d/services/store/StoreError;->CLASS_NOT_FOUND:Lcom/unity3d/services/store/StoreError;
goto :goto_0
.line 38
:cond_4
sget-object p1, Lcom/unity3d/services/store/StoreError;->UNKNOWN_ERROR:Lcom/unity3d/services/store/StoreError;
:goto_0
return-object p1
.end method
.method private final sendErrorToWebView(Lcom/unity3d/services/store/StoreEvent;Lcom/unity3d/services/store/StoreError;ILjava/lang/Exception;)V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;->_webViewErrorHandler:Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;
.line 21
new-instance v1, Lcom/unity3d/services/store/core/StoreWebViewError;
.line 23
invoke-virtual {p4}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v2
.line 24
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
.line 26
invoke-virtual {p4}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p4
filled-new-array {p3, p2, p4}, [Ljava/lang/Object;
move-result-object p2
.line 21
invoke-direct {v1, p1, v2, p2}, Lcom/unity3d/services/store/core/StoreWebViewError;-><init>(Ljava/lang/Enum;Ljava/lang/String;[Ljava/lang/Object;)V
.line 20
invoke-virtual {v0, v1}, Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;->handleError(Lcom/unity3d/scar/adapter/common/WebViewAdsError;)V
return-void
.end method
# virtual methods
.method public handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
.locals 1
const-string v0, "storeEvent"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "exception"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 11
invoke-direct {p0, p3}, Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;->getStoreError(Ljava/lang/Exception;)Lcom/unity3d/services/store/StoreError;
move-result-object v0
invoke-direct {p0, p1, v0, p2, p3}, Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;->sendErrorToWebView(Lcom/unity3d/services/store/StoreEvent;Lcom/unity3d/services/store/StoreError;ILjava/lang/Exception;)V
return-void
.end method

View File

@@ -0,0 +1,42 @@
.class public final synthetic Lcom/unity3d/services/store/core/api/Store$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic f$0:Ljava/lang/Integer;
.field public final synthetic f$1:Ljava/lang/String;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Integer;Ljava/lang/String;)V
.locals 0
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/core/api/Store$$ExternalSyntheticLambda0;->f$0:Ljava/lang/Integer;
iput-object p2, p0, Lcom/unity3d/services/store/core/api/Store$$ExternalSyntheticLambda0;->f$1:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
.line 0
iget-object v0, p0, Lcom/unity3d/services/store/core/api/Store$$ExternalSyntheticLambda0;->f$0:Ljava/lang/Integer;
iget-object v1, p0, Lcom/unity3d/services/store/core/api/Store$$ExternalSyntheticLambda0;->f$1:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/unity3d/services/store/core/api/Store;->$r8$lambda$Vh5TvGFd27Ds7YbWVcYEjQaSkSk(Ljava/lang/Integer;Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,538 @@
.class public Lcom/unity3d/services/store/core/api/Store;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final WEB_VIEW_STORE_EXCEPTION_HANDLER:Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;
.field private static final storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
.field private static final storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
# direct methods
.method public static synthetic $r8$lambda$Vh5TvGFd27Ds7YbWVcYEjQaSkSk(Ljava/lang/Integer;Ljava/lang/String;)V
.locals 0
.line 0
invoke-static {p0, p1}, Lcom/unity3d/services/store/core/api/Store;->lambda$isFeatureSupported$0(Ljava/lang/Integer;Ljava/lang/String;)V
return-void
.end method
.method static constructor <clinit>()V
.locals 2
.line 19
new-instance v0, Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;
new-instance v1, Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;
invoke-direct {v1}, Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;-><init>()V
invoke-direct {v0, v1}, Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;-><init>(Lcom/unity3d/services/ads/gmascar/handlers/WebViewErrorHandler;)V
sput-object v0, Lcom/unity3d/services/store/core/api/Store;->WEB_VIEW_STORE_EXCEPTION_HANDLER:Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;
const-class v1, Lcom/unity3d/services/store/core/StoreEventListenerFactory;
.line 20
invoke-static {v1}, Lcom/unity3d/services/core/misc/Utilities;->getService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/unity3d/services/store/core/StoreEventListenerFactory;
sput-object v1, Lcom/unity3d/services/store/core/api/Store;->storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
.line 21
new-instance v1, Lcom/unity3d/services/store/StoreMonitor;
invoke-direct {v1, v0}, Lcom/unity3d/services/store/StoreMonitor;-><init>(Lcom/unity3d/services/store/core/StoreExceptionHandler;)V
sput-object v1, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 18
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getPurchaseHistory(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 4
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 90
invoke-virtual {v0}, Lcom/unity3d/services/store/StoreMonitor;->isInitialized()Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_0
.line 91
sget-object p0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
new-array p1, v2, [Ljava/lang/Object;
invoke-virtual {p3, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 95
:cond_0
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
move-result p2
sget-object v3, Lcom/unity3d/services/store/core/api/Store;->storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
invoke-virtual {v3, p0}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke(I)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object p0
invoke-virtual {v0, v1, p1, p2, p0}, Lcom/unity3d/services/store/StoreMonitor;->getPurchaseHistory(ILjava/lang/String;ILcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;)V
new-array p0, v2, [Ljava/lang/Object;
.line 96
invoke-virtual {p3, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static getPurchases(Ljava/lang/Integer;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 4
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 80
invoke-virtual {v0}, Lcom/unity3d/services/store/StoreMonitor;->isInitialized()Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_0
.line 81
sget-object p0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
new-array p1, v2, [Ljava/lang/Object;
invoke-virtual {p2, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 84
:cond_0
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result v1
sget-object v3, Lcom/unity3d/services/store/core/api/Store;->storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
invoke-virtual {v3, p0}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke(I)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object p0
invoke-virtual {v0, v1, p1, p0}, Lcom/unity3d/services/store/StoreMonitor;->getPurchases(ILjava/lang/String;Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;)V
new-array p0, v2, [Ljava/lang/Object;
.line 85
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static getSkuDetails(Ljava/lang/Integer;Ljava/lang/String;Lorg/json/JSONArray;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 5
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 101
invoke-virtual {v0}, Lcom/unity3d/services/store/StoreMonitor;->isInitialized()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
.line 102
sget-object p0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
new-array p1, v1, [Ljava/lang/Object;
invoke-virtual {p3, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 107
:cond_0
:try_start_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
move v2, v1
.line 108
:goto_0
invoke-virtual {p2}, Lorg/json/JSONArray;->length()I
move-result v3
if-ge v2, v3, :cond_1
.line 109
invoke-virtual {p2, v2}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v2, v2, 0x1
goto :goto_0
:catch_0
move-exception p1
goto :goto_1
:cond_1
sget-object p2, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 111
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result v2
sget-object v3, Lcom/unity3d/services/store/core/api/Store;->storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result v4
invoke-virtual {v3, v4}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke(I)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object v3
invoke-virtual {p2, v2, p1, v0, v3}, Lcom/unity3d/services/store/StoreMonitor;->getSkuDetails(ILjava/lang/String;Ljava/util/List;Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
:goto_1
sget-object p2, Lcom/unity3d/services/store/core/api/Store;->WEB_VIEW_STORE_EXCEPTION_HANDLER:Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;
.line 113
sget-object v0, Lcom/unity3d/services/store/StoreEvent;->SKU_DETAILS_LIST_REQUEST_ERROR:Lcom/unity3d/services/store/StoreEvent;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
invoke-virtual {p2, v0, p0, p1}, Lcom/unity3d/services/store/core/WebViewStoreExceptionHandler;->handleStoreException(Lcom/unity3d/services/store/StoreEvent;ILjava/lang/Exception;)V
:goto_2
new-array p0, v1, [Ljava/lang/Object;
.line 116
invoke-virtual {p3, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static initialize(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
:try_start_0
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
sget-object v1, Lcom/unity3d/services/store/core/api/Store;->storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
.line 26
invoke-virtual {v1}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke()Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/unity3d/services/store/StoreMonitor;->initialize(Lcom/unity3d/services/store/gpbl/listeners/BillingInitializationListener;)V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 27
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
.line 29
sget-object v1, Lcom/unity3d/services/store/StoreError;->UNKNOWN_ERROR:Lcom/unity3d/services/store/StoreError;
invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
filled-new-array {v2, v0}, [Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v1, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static isFeatureSupported(Ljava/lang/Integer;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 68
invoke-virtual {v0}, Lcom/unity3d/services/store/StoreMonitor;->isInitialized()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
.line 69
sget-object p0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
new-array p1, v1, [Ljava/lang/Object;
invoke-virtual {p2, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 73
:cond_0
new-instance v0, Ljava/lang/Thread;
new-instance v2, Lcom/unity3d/services/store/core/api/Store$$ExternalSyntheticLambda0;
invoke-direct {v2, p0, p1}, Lcom/unity3d/services/store/core/api/Store$$ExternalSyntheticLambda0;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
invoke-direct {v0, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
new-array p0, v1, [Ljava/lang/Object;
.line 75
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method private static synthetic lambda$isFeatureSupported$0(Ljava/lang/Integer;Ljava/lang/String;)V
.locals 3
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 73
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result v1
sget-object v2, Lcom/unity3d/services/store/core/api/Store;->storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
invoke-virtual {v2, p0}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke(I)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object p0
invoke-virtual {v0, v1, p1, p0}, Lcom/unity3d/services/store/StoreMonitor;->isFeatureSupported(ILjava/lang/String;Lcom/unity3d/services/store/gpbl/listeners/FeatureSupportedListener;)I
return-void
.end method
.method public static startPurchaseTracking(Lorg/json/JSONArray;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 5
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 35
invoke-virtual {v0}, Lcom/unity3d/services/store/StoreMonitor;->isInitialized()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
.line 36
sget-object p0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 40
:cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
move v2, v1
.line 43
:goto_0
:try_start_0
invoke-virtual {p0}, Lorg/json/JSONArray;->length()I
move-result v3
if-ge v2, v3, :cond_1
.line 44
invoke-virtual {p0, v2}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:catch_0
move-exception p0
goto :goto_1
:cond_1
sget-object p0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
sget-object v2, Lcom/unity3d/services/store/core/api/Store;->storeEventListenerFactory:Lcom/unity3d/services/store/core/StoreEventListenerFactory;
const/4 v3, -0x1
const/4 v4, 0x1
.line 51
invoke-virtual {v2, v3, v4}, Lcom/unity3d/services/store/core/StoreEventListenerFactory;->invoke(IZ)Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
move-result-object v2
invoke-virtual {p0, v0, v2}, Lcom/unity3d/services/store/StoreMonitor;->startPurchaseTracking(Ljava/util/ArrayList;Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;)V
new-array p0, v1, [Ljava/lang/Object;
.line 52
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.line 47
:goto_1
sget-object v0, Lcom/unity3d/services/store/StoreError;->JSON_ERROR:Lcom/unity3d/services/store/StoreError;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, v0, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.end method
.method public static stopPurchaseTracking(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/store/core/api/Store;->storeMonitor:Lcom/unity3d/services/store/StoreMonitor;
.line 57
invoke-virtual {v0}, Lcom/unity3d/services/store/StoreMonitor;->isInitialized()Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_0
.line 58
sget-object v0, Lcom/unity3d/services/store/StoreError;->NOT_INITIALIZED:Lcom/unity3d/services/store/StoreError;
new-array v1, v2, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 62
:cond_0
invoke-virtual {v0}, Lcom/unity3d/services/store/StoreMonitor;->stopPurchaseTracking()V
new-array v0, v2, [Ljava/lang/Object;
.line 63
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,73 @@
.class public Lcom/unity3d/services/store/core/configuration/StoreModuleConfiguration;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/core/configuration/IModuleConfiguration;
# static fields
.field private static final WEB_APP_API_CLASS_LIST:[Ljava/lang/Class;
# direct methods
.method static constructor <clinit>()V
.locals 3
const/4 v0, 0x1
new-array v0, v0, [Ljava/lang/Class;
const/4 v1, 0x0
const-class v2, Lcom/unity3d/services/store/core/api/Store;
aput-object v2, v0, v1
sput-object v0, Lcom/unity3d/services/store/core/configuration/StoreModuleConfiguration;->WEB_APP_API_CLASS_LIST:[Ljava/lang/Class;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 8
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public getWebAppApiClassList()[Ljava/lang/Class;
.locals 1
sget-object v0, Lcom/unity3d/services/store/core/configuration/StoreModuleConfiguration;->WEB_APP_API_CLASS_LIST:[Ljava/lang/Class;
return-object v0
.end method
.method public initCompleteState(Lcom/unity3d/services/core/configuration/Configuration;)Z
.locals 0
const/4 p1, 0x1
return p1
.end method
.method public initErrorState(Lcom/unity3d/services/core/configuration/Configuration;Lcom/unity3d/services/core/configuration/ErrorState;Ljava/lang/String;)Z
.locals 0
const/4 p1, 0x1
return p1
.end method
.method public resetState(Lcom/unity3d/services/core/configuration/Configuration;)Z
.locals 0
const/4 p1, 0x1
return p1
.end method

View File

@@ -0,0 +1,359 @@
.class public final enum Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum BILLING_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum DEVELOPER_ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum FEATURE_NOT_SUPPORTED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum ITEM_ALREADY_OWNED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum ITEM_NOT_OWNED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum ITEM_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum NETWORK_ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum SERVICE_DISCONNECTED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum SERVICE_TIMEOUT:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum SERVICE_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum UNKNOWN:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.field public static final enum USER_CANCELED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
# instance fields
.field private final _responseCode:I
# direct methods
.method private static synthetic $values()[Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.locals 14
sget-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->UNKNOWN:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v1, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->SERVICE_TIMEOUT:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v2, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->FEATURE_NOT_SUPPORTED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v3, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->SERVICE_DISCONNECTED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v4, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v5, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->USER_CANCELED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v6, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->SERVICE_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v7, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->BILLING_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v8, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ITEM_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v9, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->DEVELOPER_ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v10, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v11, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ITEM_ALREADY_OWNED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v12, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ITEM_NOT_OWNED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
sget-object v13, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->NETWORK_ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
filled-new-array/range {v0 .. v13}, [Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 7
.line 6
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const/16 v1, -0x64
const-string v2, "UNKNOWN"
const/4 v3, 0x0
invoke-direct {v0, v2, v3, v1}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->UNKNOWN:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 7
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const/4 v1, -0x3
const-string v2, "SERVICE_TIMEOUT"
const/4 v4, 0x1
invoke-direct {v0, v2, v4, v1}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->SERVICE_TIMEOUT:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 8
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const/4 v1, -0x2
const-string v2, "FEATURE_NOT_SUPPORTED"
const/4 v5, 0x2
invoke-direct {v0, v2, v5, v1}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->FEATURE_NOT_SUPPORTED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 9
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const/4 v1, -0x1
const-string v2, "SERVICE_DISCONNECTED"
const/4 v6, 0x3
invoke-direct {v0, v2, v6, v1}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->SERVICE_DISCONNECTED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 10
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "OK"
const/4 v2, 0x4
invoke-direct {v0, v1, v2, v3}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 11
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "USER_CANCELED"
const/4 v3, 0x5
invoke-direct {v0, v1, v3, v4}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->USER_CANCELED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 12
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "SERVICE_UNAVAILABLE"
const/4 v4, 0x6
invoke-direct {v0, v1, v4, v5}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->SERVICE_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 13
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "BILLING_UNAVAILABLE"
const/4 v5, 0x7
invoke-direct {v0, v1, v5, v6}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->BILLING_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 14
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "ITEM_UNAVAILABLE"
const/16 v6, 0x8
invoke-direct {v0, v1, v6, v2}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ITEM_UNAVAILABLE:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 15
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "DEVELOPER_ERROR"
const/16 v2, 0x9
invoke-direct {v0, v1, v2, v3}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->DEVELOPER_ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 16
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "ERROR"
const/16 v2, 0xa
invoke-direct {v0, v1, v2, v4}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 17
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "ITEM_ALREADY_OWNED"
const/16 v2, 0xb
invoke-direct {v0, v1, v2, v5}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ITEM_ALREADY_OWNED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 18
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "ITEM_NOT_OWNED"
const/16 v2, 0xc
invoke-direct {v0, v1, v2, v6}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->ITEM_NOT_OWNED:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 19
new-instance v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
const-string v1, "NETWORK_ERROR"
const/16 v3, 0xd
invoke-direct {v0, v1, v3, v2}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->NETWORK_ERROR:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 5
invoke-static {}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->$values()[Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object v0
sput-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->$VALUES:[Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
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 23
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->_responseCode:I
return-void
.end method
.method public static fromResponseCode(I)Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 33
invoke-static {}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->values()[Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 34
invoke-virtual {v3}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->getResponseCode()I
move-result v4
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
sget-object p0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->UNKNOWN:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.locals 1
const-class v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 5
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
return-object p0
.end method
.method public static values()[Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.locals 1
sget-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->$VALUES:[Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.line 5
invoke-virtual {v0}, [Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
return-object v0
.end method
# virtual methods
.method public getResponseCode()I
.locals 1
iget v0, p0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->_responseCode:I
return v0
.end method

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/IBillingResponse;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract getOriginalJson()Lorg/json/JSONObject;
.end method

View File

@@ -0,0 +1,226 @@
.class public Lcom/unity3d/services/store/gpbl/StoreBilling;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final _billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/NoSuchMethodException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;
}
.end annotation
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 27
invoke-static {p1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/BillingClientBuilderFactory;->getBillingClientBuilder(Landroid/content/Context;)Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
move-result-object p1
.line 28
new-instance v0, Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;
invoke-direct {v0, p2}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;-><init>(Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;)V
invoke-interface {p1, v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;->setListener(Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;)Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
move-result-object p1
.line 29
invoke-interface {p1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;->enablePendingPurchases()Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
move-result-object p1
.line 30
invoke-interface {p1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;->build()Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
move-result-object p1
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/StoreBilling;->_billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
return-void
.end method
# virtual methods
.method public getPurchaseHistory(Ljava/lang/String;ILcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/StoreBilling;->_billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.line 68
new-instance v1, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;
invoke-direct {v1, p3, p2}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;-><init>(Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;I)V
invoke-interface {v0, p1, v1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;->queryPurchaseHistoryAsync(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;)V
return-void
.end method
.method public getPurchases(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/StoreBilling;->_billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.line 58
new-instance v1, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;
invoke-direct {v1, p2}, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;-><init>(Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;)V
invoke-interface {v0, p1, v1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;->queryPurchasesAsync(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;)V
return-void
.end method
.method public getSkuDetails(Ljava/lang/String;Ljava/util/List;Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;",
")V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/NoSuchMethodException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/reflect/InvocationTargetException;
}
.end annotation
.line 62
invoke-static {}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->newBuilder()Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
move-result-object v0
.line 63
invoke-virtual {v0, p2}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->setSkuList(Ljava/util/List;)Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
move-result-object p2
invoke-virtual {p2, p1}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->setType(Ljava/lang/String;)Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
move-result-object p1
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->build()Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;
move-result-object p1
iget-object p2, p0, Lcom/unity3d/services/store/gpbl/StoreBilling;->_billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.line 64
new-instance v0, Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;
invoke-direct {v0, p3}, Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;-><init>(Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;)V
invoke-interface {p2, p1, v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;->querySkuDetailsAsync(Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;)V
return-void
.end method
.method public initialize(Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/StoreBilling;->_billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.line 34
new-instance v1, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;
invoke-direct {v1, p1}, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;-><init>(Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;)V
invoke-interface {v0, v1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;->startConnection(Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;)V
return-void
.end method
.method public isFeatureSupported(Ljava/lang/String;)I
.locals 1
const-string v0, "inapp"
.line 45
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object p1, p0, Lcom/unity3d/services/store/gpbl/StoreBilling;->_billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.line 47
invoke-interface {p1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;->isReady()Z
move-result p1
if-eqz p1, :cond_2
goto :goto_0
:cond_0
const-string v0, "subs"
.line 49
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const-string p1, "subscriptions"
:cond_1
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/StoreBilling;->_billingClientBridge:Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.line 52
invoke-interface {v0, p1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;->isFeatureSupported(Ljava/lang/String;)Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object p1
sget-object v0, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->OK:Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
if-ne p1, v0, :cond_2
:goto_0
const/4 p1, 0x0
goto :goto_1
:cond_2
const/4 p1, -0x1
:goto_1
return p1
.end method

View File

@@ -0,0 +1,44 @@
.class Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 2
.line 15
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Class;
const-string v1, "getResponseCode"
.line 16
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,70 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
.super Lcom/unity3d/services/core/reflection/GenericBridge;
.source "SourceFile"
# static fields
.field private static final getResponseCodeMethodName:Ljava/lang/String; = "getResponseCode"
# instance fields
.field private final _billingResult:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.line 15
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge$1;-><init>()V
invoke-direct {p0, v0}, Lcom/unity3d/services/core/reflection/GenericBridge;-><init>(Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->_billingResult:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.BillingResult"
return-object v0
.end method
.method public getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->_billingResult:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "getResponseCode"
.line 28
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
.line 29
invoke-static {v0}, Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;->fromResponseCode(I)Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,44 @@
.class Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;->appendCommonResponseMethods(Ljava/util/Map;)Ljava/util/Map;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 2
.line 28
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Class;
const-string v1, "getOriginalJson"
.line 29
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,147 @@
.class public abstract Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;
.super Lcom/unity3d/services/core/reflection/GenericBridge;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/gpbl/IBillingResponse;
.implements Lcom/unity3d/services/store/JsonSerializable;
# static fields
.field private static final getOriginalJsonMethodName:Ljava/lang/String; = "getOriginalJson"
# instance fields
.field private final _internalBridgeRef:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.line 19
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
invoke-direct {p0, p1, v0}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;-><init>(Ljava/lang/Object;Ljava/util/Map;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/Object;Ljava/util/Map;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;)V"
}
.end annotation
.line 23
invoke-static {p2}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;->appendCommonResponseMethods(Ljava/util/Map;)Ljava/util/Map;
move-result-object p2
invoke-direct {p0, p2}, Lcom/unity3d/services/core/reflection/GenericBridge;-><init>(Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;->_internalBridgeRef:Ljava/lang/Object;
return-void
.end method
.method private static appendCommonResponseMethods(Ljava/util/Map;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;)",
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.line 28
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge$1;-><init>()V
invoke-interface {p0, v0}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
return-object p0
.end method
# virtual methods
.method public getOriginalJson()Lorg/json/JSONObject;
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;->_internalBridgeRef:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "getOriginalJson"
.line 36
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 39
:try_start_0
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
.line 41
invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "Couldn\'t parse BillingResponse JSON : %s"
invoke-static {v1, v0}, Lcom/unity3d/services/core/log/DeviceLog;->error(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v1, 0x0
:goto_0
return-object v1
.end method
.method public toJson()Lorg/json/JSONObject;
.locals 1
.line 48
invoke-virtual {p0}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;->getOriginalJson()Lorg/json/JSONObject;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,44 @@
.class Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;-><init>(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 2
.line 16
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Class;
const-string v1, "getSignature"
.line 17
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,110 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;
.super Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;
.source "SourceFile"
# static fields
.field private static final getSignatureMethodName:Ljava/lang/String; = "getSignature"
# instance fields
.field private final _purchase:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.line 16
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge$1;-><init>()V
invoke-direct {p0, p1, v0}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;-><init>(Ljava/lang/Object;Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;->_purchase:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.Purchase"
return-object v0
.end method
.method public getSignature()Ljava/lang/String;
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;->_purchase:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "getSignature"
.line 28
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
return-object v0
.end method
.method public toJson()Lorg/json/JSONObject;
.locals 3
.line 32
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
:try_start_0
const-string v1, "purchaseData"
.line 34
invoke-virtual {p0}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;->getOriginalJson()Lorg/json/JSONObject;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
const-string v1, "signature"
.line 35
invoke-virtual {p0}, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;->getSignature()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v1
.line 37
invoke-virtual {v1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "Could not build Purchase result Json: "
invoke-static {v2, v1}, Lcom/unity3d/services/core/log/DeviceLog;->warning(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-object v0
.end method

View File

@@ -0,0 +1,24 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/PurchaseHistoryRecordBridge;
.super Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 0
.line 6
invoke-direct {p0, p1}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;-><init>(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.PurchaseHistoryRecord"
return-object v0
.end method

View File

@@ -0,0 +1,51 @@
.class Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge;-><init>(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 3
.line 16
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x0
new-array v1, v0, [Ljava/lang/Class;
const-string v2, "getBillingResult"
.line 17
invoke-virtual {p0, v2, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "getPurchasesList"
new-array v0, v0, [Ljava/lang/Class;
.line 18
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,125 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge;
.super Lcom/unity3d/services/core/reflection/GenericBridge;
.source "SourceFile"
# static fields
.field private static final getBillingResultMethodName:Ljava/lang/String; = "getBillingResult"
.field private static final getPurchasesListMethodName:Ljava/lang/String; = "getPurchasesList"
# instance fields
.field private final _purchasesResult:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.line 16
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge$1;-><init>()V
invoke-direct {p0, v0}, Lcom/unity3d/services/core/reflection/GenericBridge;-><init>(Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge;->_purchasesResult:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public getBillingResult()Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
.locals 4
.line 29
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
iget-object v1, p0, Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge;->_purchasesResult:Ljava/lang/Object;
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
const-string v3, "getBillingResult"
invoke-virtual {p0, v3, v1, v2}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-direct {v0, v1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.Purchase$PurchasesResult"
return-object v0
.end method
.method public getPurchasesList()Ljava/util/List;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/PurchasesResultBridge;->_purchasesResult:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "getPurchasesList"
.line 33
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
.line 34
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
if-eqz v0, :cond_0
.line 36
invoke-interface {v0}, Ljava/util/List;->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_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
.line 37
new-instance v3, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;
invoke-direct {v3, v2}, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
return-object v1
.end method

View File

@@ -0,0 +1,24 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsBridge;
.super Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;
.source "SourceFile"
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 0
.line 6
invoke-direct {p0, p1}, Lcom/unity3d/services/store/gpbl/bridges/CommonJsonResponseBridge;-><init>(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.SkuDetails"
return-object v0
.end method

View File

@@ -0,0 +1,44 @@
.class Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 2
.line 15
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Class;
const-string v1, "newBuilder"
.line 16
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,44 @@
.class Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$2;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;-><init>(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 2
.line 25
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Class;
const-string v1, "newBuilder"
.line 26
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;-><init>(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 4
.line 57
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x0
new-array v1, v0, [Ljava/lang/Class;
const-string v2, "build"
.line 58
invoke-virtual {p0, v2, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
const-class v3, Ljava/util/List;
aput-object v3, v2, v0
const-string v3, "setSkusList"
.line 59
invoke-virtual {p0, v3, v2}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
new-array v1, v1, [Ljava/lang/Class;
const-class v2, Ljava/lang/String;
aput-object v2, v1, v0
const-string v0, "setType"
.line 60
invoke-virtual {p0, v0, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,135 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
.super Lcom/unity3d/services/core/reflection/GenericBridge;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "BuilderBridge"
.end annotation
# static fields
.field private static final buildMethodName:Ljava/lang/String; = "build"
.field private static final setSkusListMethodName:Ljava/lang/String; = "setSkusList"
.field private static final setTypeMethodName:Ljava/lang/String; = "setType"
# instance fields
.field private _skuDetailsParamsBuilderInternalInstance:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.line 57
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge$1;-><init>()V
invoke-direct {p0, v0}, Lcom/unity3d/services/core/reflection/GenericBridge;-><init>(Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->_skuDetailsParamsBuilderInternalInstance:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public build()Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NoSuchMethodException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 81
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;
iget-object v1, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->_skuDetailsParamsBuilderInternalInstance:Ljava/lang/Object;
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
const-string v3, "build"
invoke-virtual {p0, v3, v1, v2}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-direct {v0, v1}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.SkuDetailsParams$Builder"
return-object v0
.end method
.method public setSkuList(Ljava/util/List;)Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;"
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->_skuDetailsParamsBuilderInternalInstance:Ljava/lang/Object;
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v1, "setSkusList"
.line 71
invoke-virtual {p0, v1, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->_skuDetailsParamsBuilderInternalInstance:Ljava/lang/Object;
return-object p0
.end method
.method public setType(Ljava/lang/String;)Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
.locals 2
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->_skuDetailsParamsBuilderInternalInstance:Ljava/lang/Object;
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v1, "setType"
.line 76
invoke-virtual {p0, v1, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;->_skuDetailsParamsBuilderInternalInstance:Ljava/lang/Object;
return-object p0
.end method

View File

@@ -0,0 +1,168 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;
.super Lcom/unity3d/services/core/reflection/GenericBridge;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
}
.end annotation
# static fields
.field private static final newBuilderMethodName:Ljava/lang/String; = "newBuilder"
.field private static final staticMethods:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
# instance fields
.field private final _skuDetailsParamsInternalInstance:Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 15
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$1;-><init>()V
sput-object v0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->staticMethods:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.line 25
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$2;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$2;-><init>()V
invoke-direct {p0, v0}, Lcom/unity3d/services/core/reflection/GenericBridge;-><init>(Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->_skuDetailsParamsInternalInstance:Ljava/lang/Object;
return-void
.end method
.method public static varargs callNonVoidStaticMethod(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/NoSuchMethodException;
}
.end annotation
.line 41
invoke-static {}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->getClassForBridge()Ljava/lang/Class;
move-result-object v0
sget-object v1, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->staticMethods:Ljava/util/Map;
invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, [Ljava/lang/Class;
invoke-virtual {v0, p0, v1}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object p0
const/4 v0, 0x0
.line 42
invoke-virtual {p0, v0, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static getClassForBridge()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-class v0, Lcom/android/billingclient/api/SkuDetailsParams;
return-object v0
.end method
.method public static newBuilder()Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NoSuchMethodException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/ClassNotFoundException;
}
.end annotation
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, "newBuilder"
.line 36
invoke-static {v1, v0}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->callNonVoidStaticMethod(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 37
new-instance v1, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;
invoke-direct {v1, v0}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge$BuilderBridge;-><init>(Ljava/lang/Object;)V
return-object v1
.end method
# virtual methods
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.SkuDetailsParams"
return-object v0
.end method
.method public getInternalInstance()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->_skuDetailsParamsInternalInstance:Ljava/lang/Object;
return-object v0
.end method

View File

@@ -0,0 +1,33 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/billingclient/BillingClientBuilderFactory;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getBillingClientBuilder(Landroid/content/Context;)Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/NoSuchMethodException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/reflect/InvocationTargetException;
}
.end annotation
.line 9
invoke-static {p0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge;->newBuilder(Landroid/content/Context;)Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$BuilderBridge;
move-result-object p0
return-object p0
.end method

View File

@@ -0,0 +1,43 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract isFeatureSupported(Ljava/lang/String;)Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.end method
.method public abstract isReady()Z
.end method
.method public abstract queryPurchaseHistoryAsync(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.end method
.method public abstract queryPurchasesAsync(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.end method
.method public abstract querySkuDetailsAsync(Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.end method
.method public abstract startConnection(Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract build()Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.end method
.method public abstract enablePendingPurchases()Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
.end method
.method public abstract setListener(Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;)Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/NoSuchMethodException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;
}
.end annotation
.end method

View File

@@ -0,0 +1,50 @@
.class Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 3
.line 29
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x1
new-array v0, v0, [Ljava/lang/Class;
const/4 v1, 0x0
const-class v2, Landroid/content/Context;
aput-object v2, v0, v1
const-string v1, "newBuilder"
.line 30
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,129 @@
.class Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon$2;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->appendFunctionAnParameters(Ljava/util/Map;)Ljava/util/Map;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 39
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x1
new-array v1, v0, [Ljava/lang/Class;
const-class v2, Landroid/content/Context;
const/4 v3, 0x0
aput-object v2, v1, v3
const-string v2, "newBuilder"
.line 40
invoke-virtual {p0, v2, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
new-array v1, v0, [Ljava/lang/Class;
.line 41
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v2
aput-object v2, v1, v3
const-string v2, "startConnection"
invoke-virtual {p0, v2, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "endConnection"
new-array v2, v3, [Ljava/lang/Class;
.line 42
invoke-virtual {p0, v1, v2}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v1, 0x2
new-array v2, v1, [Ljava/lang/Class;
.line 43
invoke-static {}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->getClassForBridge()Ljava/lang/Class;
move-result-object v4
aput-object v4, v2, v3
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v4
aput-object v4, v2, v0
const-string v4, "querySkuDetailsAsync"
invoke-virtual {p0, v4, v2}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
new-array v1, v1, [Ljava/lang/Class;
const-class v2, Ljava/lang/String;
aput-object v2, v1, v3
.line 44
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v4
aput-object v4, v1, v0
const-string v4, "queryPurchaseHistoryAsync"
invoke-virtual {p0, v4, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
new-array v0, v0, [Ljava/lang/Class;
aput-object v2, v0, v3
const-string v1, "isFeatureSupported"
.line 45
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "isReady"
new-array v1, v3, [Ljava/lang/Class;
.line 46
invoke-virtual {p0, v0, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,341 @@
.class public abstract Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;
.super Lcom/unity3d/services/core/reflection/GenericBridge;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
# static fields
.field protected static final endConnectionMethodName:Ljava/lang/String; = "endConnection"
.field protected static final isFeatureSupportedMethodName:Ljava/lang/String; = "isFeatureSupported"
.field protected static final isReadyMethodName:Ljava/lang/String; = "isReady"
.field protected static final newBuilderMethodName:Ljava/lang/String; = "newBuilder"
.field protected static final queryPurchaseHistoryAsyncMethodName:Ljava/lang/String; = "queryPurchaseHistoryAsync"
.field protected static final querySkuDetailsAsyncMethodName:Ljava/lang/String; = "querySkuDetailsAsync"
.field protected static final startConnectionMethodName:Ljava/lang/String; = "startConnection"
.field private static final staticMethods:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.end field
# instance fields
.field protected final _billingClientInternalInstance:Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 29
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon$1;-><init>()V
sput-object v0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->staticMethods:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Ljava/lang/Object;Ljava/util/Map;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 34
invoke-static {p2}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->appendFunctionAnParameters(Ljava/util/Map;)Ljava/util/Map;
move-result-object p2
invoke-direct {p0, p2}, Lcom/unity3d/services/core/reflection/GenericBridge;-><init>(Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
return-void
.end method
.method private static appendFunctionAnParameters(Ljava/util/Map;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;)",
"Ljava/util/Map<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 39
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon$2;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon$2;-><init>()V
invoke-interface {p0, v0}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
return-object p0
.end method
.method public static varargs callNonVoidStaticMethod(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/NoSuchMethodException;
}
.end annotation
.line 92
invoke-static {}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->getClassForBridge()Ljava/lang/Class;
move-result-object v0
sget-object v1, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->staticMethods:Ljava/util/Map;
invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, [Ljava/lang/Class;
invoke-virtual {v0, p0, v1}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object p0
const/4 v0, 0x0
.line 93
invoke-virtual {p0, v0, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static getClassForBridge()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-class v0, Lcom/android/billingclient/api/BillingClient;
return-object v0
.end method
# virtual methods
.method public endConnection()V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "endConnection"
.line 66
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)V
return-void
.end method
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.BillingClient"
return-object v0
.end method
.method public isFeatureSupported(Ljava/lang/String;)Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
.locals 2
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v1, "isFeatureSupported"
.line 71
invoke-virtual {p0, v1, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
.line 72
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
invoke-direct {v0, p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
.line 73
invoke-virtual {v0}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;->getResponseCode()Lcom/unity3d/services/store/gpbl/BillingResultResponseCode;
move-result-object p1
return-object p1
.end method
.method public isReady()Z
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "isReady"
.line 78
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
return v0
.end method
.method public queryPurchaseHistoryAsync(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
.line 88
invoke-virtual {p2}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->getProxyInstance()Ljava/lang/Object;
move-result-object p2
filled-new-array {p1, p2}, [Ljava/lang/Object;
move-result-object p1
const-string p2, "queryPurchaseHistoryAsync"
invoke-virtual {p0, p2, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)V
return-void
.end method
.method public querySkuDetailsAsync(Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
.line 83
invoke-virtual {p1}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsParamsBridge;->getInternalInstance()Ljava/lang/Object;
move-result-object p1
invoke-virtual {p2}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->getProxyInstance()Ljava/lang/Object;
move-result-object p2
filled-new-array {p1, p2}, [Ljava/lang/Object;
move-result-object p1
const-string p2, "querySkuDetailsAsync"
invoke-virtual {p0, p2, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)V
return-void
.end method
.method public startConnection(Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
.line 62
invoke-virtual {p1}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->getProxyInstance()Ljava/lang/Object;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v1, "startConnection"
invoke-virtual {p0, v1, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,71 @@
.class Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;-><init>(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 18
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x1
new-array v0, v0, [Ljava/lang/Class;
.line 19
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v1
const/4 v2, 0x0
aput-object v1, v0, v2
const-string v1, "setListener"
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "enablePendingPurchases"
new-array v1, v2, [Ljava/lang/Class;
.line 20
invoke-virtual {p0, v0, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "build"
new-array v1, v2, [Ljava/lang/Class;
.line 21
invoke-virtual {p0, v0, v1}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,104 @@
.class public abstract Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;
.super Lcom/unity3d/services/core/reflection/GenericBridge;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
# static fields
.field protected static final buildMethodName:Ljava/lang/String; = "build"
.field private static final enablePendingPurchasesMethodName:Ljava/lang/String; = "enablePendingPurchases"
.field private static final setListenerMethodName:Ljava/lang/String; = "setListener"
# instance fields
.field protected _billingClientBuilderInternalInstance:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 18
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon$1;-><init>()V
invoke-direct {p0, v0}, Lcom/unity3d/services/core/reflection/GenericBridge;-><init>(Ljava/util/Map;)V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;->_billingClientBuilderInternalInstance:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public enablePendingPurchases()Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
.locals 3
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;->_billingClientBuilderInternalInstance:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "enablePendingPurchases"
.line 39
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;->_billingClientBuilderInternalInstance:Ljava/lang/Object;
return-object p0
.end method
.method public getClassName()Ljava/lang/String;
.locals 1
const-string v0, "com.android.billingclient.api.BillingClient$Builder"
return-object v0
.end method
.method public setListener(Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;)Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClientBuilderBridge;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/lang/NoSuchMethodException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;->_billingClientBuilderInternalInstance:Ljava/lang/Object;
.line 33
invoke-virtual {p1}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->getProxyInstance()Ljava/lang/Object;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v1, "setListener"
invoke-virtual {p0, v1, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;->_billingClientBuilderInternalInstance:Ljava/lang/Object;
return-object p0
.end method

View File

@@ -0,0 +1,63 @@
.class Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$1;
.super Ljava/util/HashMap;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge;-><init>(Ljava/lang/Object;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 17
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
const/4 v0, 0x2
new-array v0, v0, [Ljava/lang/Class;
const/4 v1, 0x0
const-class v2, Ljava/lang/String;
aput-object v2, v0, v1
const/4 v1, 0x1
.line 18
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v2
aput-object v2, v0, v1
const-string v1, "queryPurchasesAsync"
invoke-virtual {p0, v1, v0}, Ljava/util/AbstractMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,77 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$BuilderBridge;
.super Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "BuilderBridge"
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 47
invoke-direct {p0, p1}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;-><init>(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public bridge synthetic build()Lcom/unity3d/services/store/gpbl/bridges/billingclient/IBillingClient;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 44
invoke-virtual {p0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$BuilderBridge;->build()Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;
move-result-object v0
return-object v0
.end method
.method public build()Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBuilderBridgeCommon;->_billingClientBuilderInternalInstance:Ljava/lang/Object;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "build"
.line 51
invoke-virtual {p0, v2, v0, v1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callNonVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 52
new-instance v1, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge;
invoke-direct {v1, v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge;-><init>(Ljava/lang/Object;)V
return-object v1
.end method

View File

@@ -0,0 +1,134 @@
.class public Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge;
.super Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$BuilderBridge;
}
.end annotation
# static fields
.field private static final queryPurchasesAsyncMethodName:Ljava/lang/String; = "queryPurchasesAsync"
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 17
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$1;
invoke-direct {v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$1;-><init>()V
invoke-direct {p0, p1, v0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;-><init>(Ljava/lang/Object;Ljava/util/Map;)V
return-void
.end method
.method public static isAvailable()Z
.locals 6
const/4 v0, 0x0
.line 30
:try_start_0
invoke-static {}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->getClassForBridge()Ljava/lang/Class;
move-result-object v1
const-string v2, "queryPurchasesAsync"
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/Class;
const-class v4, Ljava/lang/String;
aput-object v4, v3, v0
.line 31
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v4
const/4 v5, 0x1
aput-object v4, v3, v5
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
move v0, v5
:catch_0
return v0
.end method
.method public static newBuilder(Landroid/content/Context;)Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$BuilderBridge;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NoSuchMethodException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-string v0, "newBuilder"
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 40
invoke-static {v0, p0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->callNonVoidStaticMethod(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 41
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$BuilderBridge;
invoke-direct {v0, p0}, Lcom/unity3d/services/store/gpbl/bridges/billingclient/v4/BillingClientBridge$BuilderBridge;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
# virtual methods
.method public queryPurchasesAsync(Ljava/lang/String;Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/bridges/billingclient/common/BillingClientBridgeCommon;->_billingClientInternalInstance:Ljava/lang/Object;
.line 24
invoke-virtual {p2}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->getProxyInstance()Ljava/lang/Object;
move-result-object p2
filled-new-array {p1, p2}, [Ljava/lang/Object;
move-result-object p1
const-string p2, "queryPurchasesAsync"
invoke-virtual {p0, p2, v0, p1}, Lcom/unity3d/services/core/reflection/GenericBridge;->callVoidMethod(Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,11 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract onBillingServiceDisconnected()V
.end method
.method public abstract onBillingSetupFinished(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;)V
.end method

View File

@@ -0,0 +1,12 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/BillingInitializationListener;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;
.implements Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;
# virtual methods
.method public abstract onIsAlreadyInitialized()V
.end method

View File

@@ -0,0 +1,8 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/FeatureSupportedListener;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract onFeatureSupported(I)V
.end method

View File

@@ -0,0 +1,18 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract onPurchaseHistoryUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/PurchaseHistoryRecordBridge;",
">;)V"
}
.end annotation
.end method

View File

@@ -0,0 +1,18 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract onPurchaseUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;",
">;)V"
}
.end annotation
.end method

View File

@@ -0,0 +1,18 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract onPurchaseResponse(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;",
">;)V"
}
.end annotation
.end method

View File

@@ -0,0 +1,18 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract onSkuDetailsUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;",
"Ljava/util/List<",
"+",
"Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsBridge;",
">;)V"
}
.end annotation
.end method

View File

@@ -0,0 +1,16 @@
.class public interface abstract Lcom/unity3d/services/store/gpbl/listeners/StoreEventListener;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;
.implements Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;
.implements Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;
.implements Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;
.implements Lcom/unity3d/services/store/gpbl/listeners/FeatureSupportedListener;
.implements Lcom/unity3d/services/store/gpbl/listeners/BillingInitializationListener;
# virtual methods
.method public abstract getOperationId()I
.end method

View File

@@ -0,0 +1,173 @@
.class public Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;
.super Lcom/unity3d/services/core/reflection/GenericListenerProxy;
.source "SourceFile"
# static fields
.field private static onBillingServiceDisconnectedMethodName:Ljava/lang/String; = "onBillingServiceDisconnected"
.field private static onBillingSetupFinishedMethodName:Ljava/lang/String; = "onBillingSetupFinished"
# instance fields
.field private billingClientStateListener:Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;)V
.locals 0
.line 15
invoke-direct {p0}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->billingClientStateListener:Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;
return-void
.end method
.method public static getProxyListenerClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-class v0, Lcom/android/billingclient/api/BillingClientStateListener;
return-object v0
.end method
.method private onBillingServiceDisconnected()V
.locals 1
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->billingClientStateListener:Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;
if-eqz v0, :cond_0
.line 49
invoke-interface {v0}, Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;->onBillingServiceDisconnected()V
:cond_0
return-void
.end method
.method private onBillingSetupFinished(Ljava/lang/Object;)V
.locals 2
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->billingClientStateListener:Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;
if-eqz v0, :cond_0
.line 43
new-instance v1, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
invoke-direct {v1, p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {v0, v1}, Lcom/unity3d/services/store/gpbl/listeners/BillingClientStateListener;->onBillingSetupFinished(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;)V
:cond_0
return-void
.end method
# virtual methods
.method public getProxyClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 21
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v0
return-object v0
.end method
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 31
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
sget-object v1, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->onBillingSetupFinishedMethodName:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
.line 32
aget-object p1, p3, p1
invoke-direct {p0, p1}, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->onBillingSetupFinished(Ljava/lang/Object;)V
goto :goto_0
.line 33
:cond_0
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
sget-object v1, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->onBillingServiceDisconnectedMethodName:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
.line 34
invoke-direct {p0}, Lcom/unity3d/services/store/gpbl/proxies/BillingClientStateListenerProxy;->onBillingServiceDisconnected()V
:goto_0
const/4 p1, 0x0
goto :goto_1
.line 36
:cond_1
invoke-super {p0, p1, p2, p3}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:goto_1
return-object p1
.end method

View File

@@ -0,0 +1,190 @@
.class public Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;
.super Lcom/unity3d/services/core/reflection/GenericListenerProxy;
.source "SourceFile"
# static fields
.field private static final onPurchaseHistoryResponseMethodName:Ljava/lang/String; = "onPurchaseHistoryResponse"
# instance fields
.field private _maxPurchases:I
.field private purchaseHistoryResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;I)V
.locals 0
.line 17
invoke-direct {p0}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;->purchaseHistoryResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;
iput p2, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;->_maxPurchases:I
return-void
.end method
.method public static getProxyListenerClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-class v0, Lcom/android/billingclient/api/PurchaseHistoryResponseListener;
return-object v0
.end method
# virtual methods
.method public getProxyClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 24
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v0
return-object v0
.end method
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 33
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "onPurchaseHistoryResponse"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
.line 34
aget-object p1, p3, p1
const/4 p2, 0x1
aget-object p2, p3, p2
check-cast p2, Ljava/util/List;
invoke-virtual {p0, p1, p2}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;->onPurchaseHistoryResponse(Ljava/lang/Object;Ljava/util/List;)V
const/4 p1, 0x0
goto :goto_0
.line 36
:cond_0
invoke-super {p0, p1, p2, p3}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:goto_0
return-object p1
.end method
.method public onPurchaseHistoryResponse(Ljava/lang/Object;Ljava/util/List;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/List<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
if-eqz p2, :cond_0
.line 45
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
const/4 v1, 0x0
:goto_0
iget v2, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;->_maxPurchases:I
if-ge v1, v2, :cond_1
.line 46
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v2
if-ge v1, v2, :cond_1
.line 47
new-instance v2, Lcom/unity3d/services/store/gpbl/bridges/PurchaseHistoryRecordBridge;
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
invoke-direct {v2, v3}, Lcom/unity3d/services/store/gpbl/bridges/PurchaseHistoryRecordBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:cond_1
iget-object p2, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchaseHistoryResponseListenerProxy;->purchaseHistoryResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;
if-eqz p2, :cond_2
.line 51
new-instance v1, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
invoke-direct {v1, p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {p2, v1, v0}, Lcom/unity3d/services/store/gpbl/listeners/PurchaseHistoryResponseListener;->onPurchaseHistoryUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
:cond_2
return-void
.end method

View File

@@ -0,0 +1,182 @@
.class public Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;
.super Lcom/unity3d/services/core/reflection/GenericListenerProxy;
.source "SourceFile"
# static fields
.field private static final onPurchasesUpdatedMethodName:Ljava/lang/String; = "onPurchasesUpdated"
# instance fields
.field private purchaseUpdatedResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;)V
.locals 0
.line 15
invoke-direct {p0}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;->purchaseUpdatedResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;
return-void
.end method
.method public static getProxyListenerClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-class v0, Lcom/android/billingclient/api/PurchasesUpdatedListener;
return-object v0
.end method
# virtual methods
.method public getProxyClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 21
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v0
return-object v0
.end method
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 31
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "onPurchasesUpdated"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
.line 32
aget-object p1, p3, p1
const/4 p2, 0x1
aget-object p2, p3, p2
check-cast p2, Ljava/util/List;
invoke-virtual {p0, p1, p2}, Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;->onPurchasesUpdated(Ljava/lang/Object;Ljava/util/List;)V
const/4 p1, 0x0
goto :goto_0
.line 34
:cond_0
invoke-super {p0, p1, p2, p3}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:goto_0
return-object p1
.end method
.method public onPurchasesUpdated(Ljava/lang/Object;Ljava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/List<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
if-eqz p2, :cond_0
.line 42
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 43
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 v1
if-eqz v1, :cond_1
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 44
new-instance v2, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;
invoke-direct {v2, v1}, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const/4 v0, 0x0
:cond_1
iget-object p2, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchaseUpdatedListenerProxy;->purchaseUpdatedResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;
if-eqz p2, :cond_2
.line 48
new-instance v1, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
invoke-direct {v1, p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {p2, v1, v0}, Lcom/unity3d/services/store/gpbl/listeners/PurchaseUpdatedResponseListener;->onPurchaseUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
:cond_2
return-void
.end method

View File

@@ -0,0 +1,191 @@
.class public Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;
.super Lcom/unity3d/services/core/reflection/GenericListenerProxy;
.source "SourceFile"
# static fields
.field private static final onQueryPurchasesResponseMethodName:Ljava/lang/String; = "onQueryPurchasesResponse"
# instance fields
.field private purchasesResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;)V
.locals 0
.line 15
invoke-direct {p0}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;->purchasesResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;
return-void
.end method
.method public static getProxyListenerClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-class v0, Lcom/android/billingclient/api/PurchasesResponseListener;
return-object v0
.end method
# virtual methods
.method public getProxyClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 21
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v0
return-object v0
.end method
.method public getPurchasesResponseListener()Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;
.locals 1
iget-object v0, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;->purchasesResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;
return-object v0
.end method
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 36
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "onQueryPurchasesResponse"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
.line 37
aget-object p1, p3, p1
const/4 p2, 0x1
aget-object p2, p3, p2
check-cast p2, Ljava/util/List;
invoke-virtual {p0, p1, p2}, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;->onQueryPurchasesResponse(Ljava/lang/Object;Ljava/util/List;)V
const/4 p1, 0x0
goto :goto_0
.line 39
:cond_0
invoke-super {p0, p1, p2, p3}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:goto_0
return-object p1
.end method
.method public onQueryPurchasesResponse(Ljava/lang/Object;Ljava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/List<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.line 46
new-instance v0, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
invoke-direct {v0, p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
if-eqz p2, :cond_0
.line 49
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
.line 50
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 v1
if-eqz v1, :cond_1
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 51
new-instance v2, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;
invoke-direct {v2, v1}, Lcom/unity3d/services/store/gpbl/bridges/PurchaseBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {p1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const/4 p1, 0x0
:cond_1
iget-object p2, p0, Lcom/unity3d/services/store/gpbl/proxies/PurchasesResponseListenerProxy;->purchasesResponseListener:Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;
if-eqz p2, :cond_2
.line 55
invoke-interface {p2, v0, p1}, Lcom/unity3d/services/store/gpbl/listeners/PurchasesResponseListener;->onPurchaseResponse(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
:cond_2
return-void
.end method

View File

@@ -0,0 +1,182 @@
.class public Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;
.super Lcom/unity3d/services/core/reflection/GenericListenerProxy;
.source "SourceFile"
# static fields
.field private static final onSkuDetailsResponseMethodName:Ljava/lang/String; = "onSkuDetailsResponse"
# instance fields
.field private skuDetailsResponseListener:Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;)V
.locals 0
.line 17
invoke-direct {p0}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;->skuDetailsResponseListener:Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;
return-void
.end method
.method public static getProxyListenerClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
const-class v0, Lcom/android/billingclient/api/SkuDetailsResponseListener;
return-object v0
.end method
# virtual methods
.method public getProxyClass()Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;
}
.end annotation
.line 23
invoke-static {}, Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;->getProxyListenerClass()Ljava/lang/Class;
move-result-object v0
return-object v0
.end method
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 34
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "onSkuDetailsResponse"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
.line 35
aget-object p1, p3, p1
const/4 p2, 0x1
aget-object p2, p3, p2
check-cast p2, Ljava/util/List;
invoke-virtual {p0, p1, p2}, Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;->onSkuDetailsResponse(Ljava/lang/Object;Ljava/util/List;)V
const/4 p1, 0x0
goto :goto_0
.line 37
:cond_0
invoke-super {p0, p1, p2, p3}, Lcom/unity3d/services/core/reflection/GenericListenerProxy;->invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:goto_0
return-object p1
.end method
.method public onSkuDetailsResponse(Ljava/lang/Object;Ljava/util/List;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/List<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
if-eqz p2, :cond_0
.line 46
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 47
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 v1
if-eqz v1, :cond_1
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 48
new-instance v2, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsBridge;
invoke-direct {v2, v1}, Lcom/unity3d/services/store/gpbl/bridges/SkuDetailsBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const/4 v0, 0x0
:cond_1
iget-object p2, p0, Lcom/unity3d/services/store/gpbl/proxies/SkuDetailsResponseListenerProxy;->skuDetailsResponseListener:Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;
if-eqz p2, :cond_2
.line 52
new-instance v1, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;
invoke-direct {v1, p1}, Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;-><init>(Ljava/lang/Object;)V
invoke-interface {p2, v1, v0}, Lcom/unity3d/services/store/gpbl/listeners/SkuDetailsResponseListener;->onSkuDetailsUpdated(Lcom/unity3d/services/store/gpbl/bridges/BillingResultBridge;Ljava/util/List;)V
:cond_2
return-void
.end method