Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package com.unity3d.services.store.gpbl.bridges;
import androidx.annotation.NonNull;
import com.unity3d.services.core.reflection.GenericBridge;
import com.unity3d.services.store.gpbl.BillingResultResponseCode;
import java.util.HashMap;
/* loaded from: classes4.dex */
public class BillingResultBridge extends GenericBridge {
private static final String getResponseCodeMethodName = "getResponseCode";
private final Object _billingResult;
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.BillingResult";
}
public BillingResultBridge(Object obj) {
super(new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.BillingResultBridge.1
{
put(BillingResultBridge.getResponseCodeMethodName, new Class[0]);
}
});
this._billingResult = obj;
}
@NonNull
public BillingResultResponseCode getResponseCode() {
return BillingResultResponseCode.fromResponseCode(((Integer) callNonVoidMethod(getResponseCodeMethodName, this._billingResult, new Object[0])).intValue());
}
}

View File

@@ -0,0 +1,49 @@
package com.unity3d.services.store.gpbl.bridges;
import com.unity3d.services.core.log.DeviceLog;
import com.unity3d.services.core.reflection.GenericBridge;
import com.unity3d.services.store.JsonSerializable;
import com.unity3d.services.store.gpbl.IBillingResponse;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public abstract class CommonJsonResponseBridge extends GenericBridge implements IBillingResponse, JsonSerializable {
private static final String getOriginalJsonMethodName = "getOriginalJson";
private final Object _internalBridgeRef;
public CommonJsonResponseBridge(Object obj) {
this(obj, new HashMap());
}
public CommonJsonResponseBridge(Object obj, Map<String, Class<?>[]> map) {
super(appendCommonResponseMethods(map));
this._internalBridgeRef = obj;
}
private static Map<String, Class<?>[]> appendCommonResponseMethods(Map<String, Class<?>[]> map) {
map.putAll(new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.CommonJsonResponseBridge.1
{
put(CommonJsonResponseBridge.getOriginalJsonMethodName, new Class[0]);
}
});
return map;
}
@Override // com.unity3d.services.store.gpbl.IBillingResponse
public JSONObject getOriginalJson() {
try {
return new JSONObject((String) callNonVoidMethod(getOriginalJsonMethodName, this._internalBridgeRef, new Object[0]));
} catch (JSONException e) {
DeviceLog.error("Couldn't parse BillingResponse JSON : %s", e.getMessage());
return null;
}
}
@Override // com.unity3d.services.store.JsonSerializable
public JSONObject toJson() {
return getOriginalJson();
}
}

View File

@@ -0,0 +1,43 @@
package com.unity3d.services.store.gpbl.bridges;
import com.unity3d.ads.metadata.InAppPurchaseMetaData;
import com.unity3d.services.core.log.DeviceLog;
import java.util.HashMap;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class PurchaseBridge extends CommonJsonResponseBridge {
private static final String getSignatureMethodName = "getSignature";
private final Object _purchase;
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.Purchase";
}
public PurchaseBridge(Object obj) {
super(obj, new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.PurchaseBridge.1
{
put(PurchaseBridge.getSignatureMethodName, new Class[0]);
}
});
this._purchase = obj;
}
public String getSignature() {
return (String) callNonVoidMethod(getSignatureMethodName, this._purchase, new Object[0]);
}
@Override // com.unity3d.services.store.gpbl.bridges.CommonJsonResponseBridge, com.unity3d.services.store.JsonSerializable
public JSONObject toJson() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("purchaseData", getOriginalJson());
jSONObject.put(InAppPurchaseMetaData.KEY_SIGNATURE, getSignature());
} catch (JSONException e) {
DeviceLog.warning("Could not build Purchase result Json: ", e.getMessage());
}
return jSONObject;
}
}

View File

@@ -0,0 +1,13 @@
package com.unity3d.services.store.gpbl.bridges;
/* loaded from: classes4.dex */
public class PurchaseHistoryRecordBridge extends CommonJsonResponseBridge {
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.PurchaseHistoryRecord";
}
public PurchaseHistoryRecordBridge(Object obj) {
super(obj);
}
}

View File

@@ -0,0 +1,45 @@
package com.unity3d.services.store.gpbl.bridges;
import com.unity3d.services.core.reflection.GenericBridge;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes4.dex */
public class PurchasesResultBridge extends GenericBridge {
private static final String getBillingResultMethodName = "getBillingResult";
private static final String getPurchasesListMethodName = "getPurchasesList";
private final Object _purchasesResult;
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.Purchase$PurchasesResult";
}
public PurchasesResultBridge(Object obj) {
super(new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.PurchasesResultBridge.1
{
put(PurchasesResultBridge.getBillingResultMethodName, new Class[0]);
put(PurchasesResultBridge.getPurchasesListMethodName, new Class[0]);
}
});
this._purchasesResult = obj;
}
public BillingResultBridge getBillingResult() {
return new BillingResultBridge(callNonVoidMethod(getBillingResultMethodName, this._purchasesResult, new Object[0]));
}
public List<PurchaseBridge> getPurchasesList() {
List list = (List) callNonVoidMethod(getPurchasesListMethodName, this._purchasesResult, new Object[0]);
ArrayList arrayList = new ArrayList();
if (list != null) {
Iterator it = list.iterator();
while (it.hasNext()) {
arrayList.add(new PurchaseBridge(it.next()));
}
}
return arrayList;
}
}

View File

@@ -0,0 +1,13 @@
package com.unity3d.services.store.gpbl.bridges;
/* loaded from: classes4.dex */
public class SkuDetailsBridge extends CommonJsonResponseBridge {
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.SkuDetails";
}
public SkuDetailsBridge(Object obj) {
super(obj);
}
}

View File

@@ -0,0 +1,86 @@
package com.unity3d.services.store.gpbl.bridges;
import com.android.billingclient.api.SkuDetailsParams;
import com.unity3d.services.core.reflection.GenericBridge;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/* loaded from: classes4.dex */
public class SkuDetailsParamsBridge extends GenericBridge {
private static final String newBuilderMethodName = "newBuilder";
private static final Map<String, Class<?>[]> staticMethods = new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.SkuDetailsParamsBridge.1
{
put(SkuDetailsParamsBridge.newBuilderMethodName, new Class[0]);
}
};
private final Object _skuDetailsParamsInternalInstance;
public static Class<?> getClassForBridge() throws ClassNotFoundException {
return SkuDetailsParams.class;
}
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.SkuDetailsParams";
}
public Object getInternalInstance() {
return this._skuDetailsParamsInternalInstance;
}
public SkuDetailsParamsBridge(Object obj) {
super(new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.SkuDetailsParamsBridge.2
{
put(SkuDetailsParamsBridge.newBuilderMethodName, new Class[0]);
}
});
this._skuDetailsParamsInternalInstance = obj;
}
public static BuilderBridge newBuilder() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, ClassNotFoundException {
return new BuilderBridge(callNonVoidStaticMethod(newBuilderMethodName, new Object[0]));
}
public static Object callNonVoidStaticMethod(String str, Object... objArr) throws ClassNotFoundException, InvocationTargetException, IllegalAccessException, NoSuchMethodException {
return getClassForBridge().getMethod(str, staticMethods.get(str)).invoke(null, objArr);
}
public static class BuilderBridge extends GenericBridge {
private static final String buildMethodName = "build";
private static final String setSkusListMethodName = "setSkusList";
private static final String setTypeMethodName = "setType";
private Object _skuDetailsParamsBuilderInternalInstance;
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.SkuDetailsParams$Builder";
}
public BuilderBridge(Object obj) {
super(new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.SkuDetailsParamsBridge.BuilderBridge.1
{
put(BuilderBridge.buildMethodName, new Class[0]);
put(BuilderBridge.setSkusListMethodName, new Class[]{List.class});
put(BuilderBridge.setTypeMethodName, new Class[]{String.class});
}
});
this._skuDetailsParamsBuilderInternalInstance = obj;
}
public BuilderBridge setSkuList(List<String> list) {
this._skuDetailsParamsBuilderInternalInstance = callNonVoidMethod(setSkusListMethodName, this._skuDetailsParamsBuilderInternalInstance, list);
return this;
}
public BuilderBridge setType(String str) {
this._skuDetailsParamsBuilderInternalInstance = callNonVoidMethod(setTypeMethodName, this._skuDetailsParamsBuilderInternalInstance, str);
return this;
}
public SkuDetailsParamsBridge build() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, ClassNotFoundException {
return new SkuDetailsParamsBridge(callNonVoidMethod(buildMethodName, this._skuDetailsParamsBuilderInternalInstance, new Object[0]));
}
}
}

View File

@@ -0,0 +1,12 @@
package com.unity3d.services.store.gpbl.bridges.billingclient;
import android.content.Context;
import com.unity3d.services.store.gpbl.bridges.billingclient.v4.BillingClientBridge;
import java.lang.reflect.InvocationTargetException;
/* loaded from: classes4.dex */
public class BillingClientBuilderFactory {
public static IBillingClientBuilderBridge getBillingClientBuilder(Context context) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
return BillingClientBridge.newBuilder(context);
}
}

View File

@@ -0,0 +1,23 @@
package com.unity3d.services.store.gpbl.bridges.billingclient;
import com.unity3d.services.store.gpbl.BillingResultResponseCode;
import com.unity3d.services.store.gpbl.bridges.SkuDetailsParamsBridge;
import com.unity3d.services.store.gpbl.proxies.BillingClientStateListenerProxy;
import com.unity3d.services.store.gpbl.proxies.PurchaseHistoryResponseListenerProxy;
import com.unity3d.services.store.gpbl.proxies.PurchasesResponseListenerProxy;
import com.unity3d.services.store.gpbl.proxies.SkuDetailsResponseListenerProxy;
/* loaded from: classes4.dex */
public interface IBillingClient {
BillingResultResponseCode isFeatureSupported(String str);
boolean isReady();
void queryPurchaseHistoryAsync(String str, PurchaseHistoryResponseListenerProxy purchaseHistoryResponseListenerProxy) throws ClassNotFoundException;
void queryPurchasesAsync(String str, PurchasesResponseListenerProxy purchasesResponseListenerProxy) throws ClassNotFoundException;
void querySkuDetailsAsync(SkuDetailsParamsBridge skuDetailsParamsBridge, SkuDetailsResponseListenerProxy skuDetailsResponseListenerProxy) throws ClassNotFoundException;
void startConnection(BillingClientStateListenerProxy billingClientStateListenerProxy) throws ClassNotFoundException;
}

View File

@@ -0,0 +1,13 @@
package com.unity3d.services.store.gpbl.bridges.billingclient;
import com.unity3d.services.store.gpbl.proxies.PurchaseUpdatedListenerProxy;
import java.lang.reflect.InvocationTargetException;
/* loaded from: classes4.dex */
public interface IBillingClientBuilderBridge {
IBillingClient build() throws ClassNotFoundException;
IBillingClientBuilderBridge enablePendingPurchases();
IBillingClientBuilderBridge setListener(PurchaseUpdatedListenerProxy purchaseUpdatedListenerProxy) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException;
}

View File

@@ -0,0 +1,94 @@
package com.unity3d.services.store.gpbl.bridges.billingclient.common;
import android.content.Context;
import com.android.billingclient.api.BillingClient;
import com.unity3d.services.core.reflection.GenericBridge;
import com.unity3d.services.store.gpbl.BillingResultResponseCode;
import com.unity3d.services.store.gpbl.bridges.BillingResultBridge;
import com.unity3d.services.store.gpbl.bridges.SkuDetailsParamsBridge;
import com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClient;
import com.unity3d.services.store.gpbl.proxies.BillingClientStateListenerProxy;
import com.unity3d.services.store.gpbl.proxies.PurchaseHistoryResponseListenerProxy;
import com.unity3d.services.store.gpbl.proxies.SkuDetailsResponseListenerProxy;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes4.dex */
public abstract class BillingClientBridgeCommon extends GenericBridge implements IBillingClient {
protected static final String endConnectionMethodName = "endConnection";
protected static final String isFeatureSupportedMethodName = "isFeatureSupported";
protected static final String isReadyMethodName = "isReady";
protected static final String newBuilderMethodName = "newBuilder";
protected static final String queryPurchaseHistoryAsyncMethodName = "queryPurchaseHistoryAsync";
protected static final String querySkuDetailsAsyncMethodName = "querySkuDetailsAsync";
protected static final String startConnectionMethodName = "startConnection";
private static final Map<String, Class<?>[]> staticMethods = new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.billingclient.common.BillingClientBridgeCommon.1
{
put(BillingClientBridgeCommon.newBuilderMethodName, new Class[]{Context.class});
}
};
protected final Object _billingClientInternalInstance;
public static Class<?> getClassForBridge() throws ClassNotFoundException {
return BillingClient.class;
}
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.BillingClient";
}
public BillingClientBridgeCommon(Object obj, Map<String, Class<?>[]> map) throws ClassNotFoundException {
super(appendFunctionAnParameters(map));
this._billingClientInternalInstance = obj;
}
private static Map<String, Class<?>[]> appendFunctionAnParameters(Map<String, Class<?>[]> map) throws ClassNotFoundException {
map.putAll(new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.billingclient.common.BillingClientBridgeCommon.2
{
put(BillingClientBridgeCommon.newBuilderMethodName, new Class[]{Context.class});
put(BillingClientBridgeCommon.startConnectionMethodName, new Class[]{BillingClientStateListenerProxy.getProxyListenerClass()});
put(BillingClientBridgeCommon.endConnectionMethodName, new Class[0]);
put(BillingClientBridgeCommon.querySkuDetailsAsyncMethodName, new Class[]{SkuDetailsParamsBridge.getClassForBridge(), SkuDetailsResponseListenerProxy.getProxyListenerClass()});
put(BillingClientBridgeCommon.queryPurchaseHistoryAsyncMethodName, new Class[]{String.class, PurchaseHistoryResponseListenerProxy.getProxyListenerClass()});
put(BillingClientBridgeCommon.isFeatureSupportedMethodName, new Class[]{String.class});
put(BillingClientBridgeCommon.isReadyMethodName, new Class[0]);
}
});
return map;
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClient
public void startConnection(BillingClientStateListenerProxy billingClientStateListenerProxy) throws ClassNotFoundException {
callVoidMethod(startConnectionMethodName, this._billingClientInternalInstance, billingClientStateListenerProxy.getProxyInstance());
}
public void endConnection() {
callVoidMethod(endConnectionMethodName, this._billingClientInternalInstance, new Object[0]);
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClient
public BillingResultResponseCode isFeatureSupported(String str) {
return new BillingResultBridge(callNonVoidMethod(isFeatureSupportedMethodName, this._billingClientInternalInstance, str)).getResponseCode();
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClient
public boolean isReady() {
return ((Boolean) callNonVoidMethod(isReadyMethodName, this._billingClientInternalInstance, new Object[0])).booleanValue();
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClient
public void querySkuDetailsAsync(SkuDetailsParamsBridge skuDetailsParamsBridge, SkuDetailsResponseListenerProxy skuDetailsResponseListenerProxy) throws ClassNotFoundException {
callVoidMethod(querySkuDetailsAsyncMethodName, this._billingClientInternalInstance, skuDetailsParamsBridge.getInternalInstance(), skuDetailsResponseListenerProxy.getProxyInstance());
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClient
public void queryPurchaseHistoryAsync(String str, PurchaseHistoryResponseListenerProxy purchaseHistoryResponseListenerProxy) throws ClassNotFoundException {
callVoidMethod(queryPurchaseHistoryAsyncMethodName, this._billingClientInternalInstance, str, purchaseHistoryResponseListenerProxy.getProxyInstance());
}
public static Object callNonVoidStaticMethod(String str, Object... objArr) throws ClassNotFoundException, InvocationTargetException, IllegalAccessException, NoSuchMethodException {
return getClassForBridge().getMethod(str, staticMethods.get(str)).invoke(null, objArr);
}
}

View File

@@ -0,0 +1,43 @@
package com.unity3d.services.store.gpbl.bridges.billingclient.common;
import com.unity3d.services.core.reflection.GenericBridge;
import com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClientBuilderBridge;
import com.unity3d.services.store.gpbl.proxies.PurchaseUpdatedListenerProxy;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
/* loaded from: classes4.dex */
public abstract class BillingClientBuilderBridgeCommon extends GenericBridge implements IBillingClientBuilderBridge {
protected static final String buildMethodName = "build";
private static final String enablePendingPurchasesMethodName = "enablePendingPurchases";
private static final String setListenerMethodName = "setListener";
protected Object _billingClientBuilderInternalInstance;
@Override // com.unity3d.services.core.reflection.GenericBridge
public String getClassName() {
return "com.android.billingclient.api.BillingClient$Builder";
}
public BillingClientBuilderBridgeCommon(Object obj) throws ClassNotFoundException {
super(new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.billingclient.common.BillingClientBuilderBridgeCommon.1
{
put(BillingClientBuilderBridgeCommon.setListenerMethodName, new Class[]{PurchaseUpdatedListenerProxy.getProxyListenerClass()});
put(BillingClientBuilderBridgeCommon.enablePendingPurchasesMethodName, new Class[0]);
put(BillingClientBuilderBridgeCommon.buildMethodName, new Class[0]);
}
});
this._billingClientBuilderInternalInstance = obj;
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClientBuilderBridge
public IBillingClientBuilderBridge setListener(PurchaseUpdatedListenerProxy purchaseUpdatedListenerProxy) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
this._billingClientBuilderInternalInstance = callNonVoidMethod(setListenerMethodName, this._billingClientBuilderInternalInstance, purchaseUpdatedListenerProxy.getProxyInstance());
return this;
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClientBuilderBridge
public IBillingClientBuilderBridge enablePendingPurchases() {
this._billingClientBuilderInternalInstance = callNonVoidMethod(enablePendingPurchasesMethodName, this._billingClientBuilderInternalInstance, new Object[0]);
return this;
}
}

View File

@@ -0,0 +1,50 @@
package com.unity3d.services.store.gpbl.bridges.billingclient.v4;
import android.content.Context;
import com.unity3d.services.store.gpbl.bridges.billingclient.common.BillingClientBridgeCommon;
import com.unity3d.services.store.gpbl.bridges.billingclient.common.BillingClientBuilderBridgeCommon;
import com.unity3d.services.store.gpbl.proxies.PurchasesResponseListenerProxy;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
/* loaded from: classes4.dex */
public class BillingClientBridge extends BillingClientBridgeCommon {
private static final String queryPurchasesAsyncMethodName = "queryPurchasesAsync";
public BillingClientBridge(Object obj) throws ClassNotFoundException {
super(obj, new HashMap<String, Class<?>[]>() { // from class: com.unity3d.services.store.gpbl.bridges.billingclient.v4.BillingClientBridge.1
{
put(BillingClientBridge.queryPurchasesAsyncMethodName, new Class[]{String.class, PurchasesResponseListenerProxy.getProxyListenerClass()});
}
});
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClient
public void queryPurchasesAsync(String str, PurchasesResponseListenerProxy purchasesResponseListenerProxy) throws ClassNotFoundException {
callVoidMethod(queryPurchasesAsyncMethodName, this._billingClientInternalInstance, str, purchasesResponseListenerProxy.getProxyInstance());
}
public static boolean isAvailable() {
try {
BillingClientBridgeCommon.getClassForBridge().getMethod(queryPurchasesAsyncMethodName, String.class, PurchasesResponseListenerProxy.getProxyListenerClass());
return true;
} catch (ClassNotFoundException | NoSuchMethodException unused) {
return false;
}
}
public static BuilderBridge newBuilder(Context context) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, ClassNotFoundException {
return new BuilderBridge(BillingClientBridgeCommon.callNonVoidStaticMethod("newBuilder", context));
}
public static class BuilderBridge extends BillingClientBuilderBridgeCommon {
public BuilderBridge(Object obj) throws ClassNotFoundException {
super(obj);
}
@Override // com.unity3d.services.store.gpbl.bridges.billingclient.IBillingClientBuilderBridge
public BillingClientBridgeCommon build() throws ClassNotFoundException {
return new BillingClientBridge(callNonVoidMethod("build", this._billingClientBuilderInternalInstance, new Object[0]));
}
}
}