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,77 @@
package com.amazon.device.iap.internal.b.c;
import android.os.RemoteException;
import com.amazon.android.framework.exception.KiwiException;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.model.ProductBuilder;
import com.amazon.device.iap.internal.model.ProductDataResponseBuilder;
import com.amazon.device.iap.internal.util.MetricsHelper;
import com.amazon.device.iap.model.Product;
import com.amazon.device.iap.model.ProductDataResponse;
import com.amazon.device.iap.model.ProductType;
import com.amazon.venezia.command.SuccessResult;
import java.math.BigDecimal;
import java.util.Currency;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class a extends c {
private static final String b = a.class.getSimpleName();
public a(e eVar, Set<String> set) {
super(eVar, "2.0", set);
}
@Override // com.amazon.device.iap.internal.b.i
public boolean a(SuccessResult successResult) throws RemoteException, KiwiException {
Map data = successResult.getData();
com.amazon.device.iap.internal.util.e.a(b, "data: " + data);
LinkedHashSet linkedHashSet = new LinkedHashSet();
HashMap hashMap = new HashMap();
for (String str : this.a) {
if (!data.containsKey(str)) {
linkedHashSet.add(str);
} else {
try {
hashMap.put(str, a(str, data));
} catch (IllegalArgumentException e) {
linkedHashSet.add(str);
String str2 = (String) data.get(str);
String c = c();
StringBuilder sb = new StringBuilder();
String str3 = b;
sb.append(str3);
sb.append(".onResult()");
MetricsHelper.submitJsonParsingExceptionMetrics(c, str2, sb.toString());
com.amazon.device.iap.internal.util.e.b(str3, "Error parsing JSON for SKU " + str + ": " + e.getMessage());
}
}
}
e b2 = b();
b2.d().a(new ProductDataResponseBuilder().setRequestId(b2.c()).setRequestStatus(ProductDataResponse.RequestStatus.SUCCESSFUL).setUnavailableSkus(linkedHashSet).setProductData(hashMap).build());
return true;
}
private Product a(String str, Map map) throws IllegalArgumentException {
JSONObject optJSONObject;
String str2 = (String) map.get(str);
try {
JSONObject jSONObject = new JSONObject(str2);
ProductType valueOf = ProductType.valueOf(jSONObject.getString("itemType").toUpperCase());
String string = jSONObject.getString("description");
String optString = jSONObject.optString("price", null);
if (com.amazon.device.iap.internal.util.d.a(optString) && (optJSONObject = jSONObject.optJSONObject("priceJson")) != null) {
Currency currency = Currency.getInstance(optJSONObject.getString("currency"));
optString = currency.getSymbol() + new BigDecimal(optJSONObject.getString("value"));
}
return new ProductBuilder().setSku(str).setProductType(valueOf).setDescription(string).setPrice(optString).setSmallIconUrl(jSONObject.getString("iconUrl")).setTitle(jSONObject.getString("title")).build();
} catch (JSONException unused) {
throw new IllegalArgumentException("error in parsing json string" + str2);
}
}
}

View File

@@ -0,0 +1,61 @@
package com.amazon.device.iap.internal.b.c;
import android.os.RemoteException;
import com.amazon.android.framework.exception.KiwiException;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.model.ProductBuilder;
import com.amazon.device.iap.internal.model.ProductDataResponseBuilder;
import com.amazon.device.iap.model.Product;
import com.amazon.device.iap.model.ProductDataResponse;
import com.amazon.device.iap.model.ProductType;
import com.amazon.venezia.command.SuccessResult;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class b extends c {
private static final String b = b.class.getSimpleName();
public b(e eVar, Set<String> set) {
super(eVar, "1.0", set);
}
@Override // com.amazon.device.iap.internal.b.i
public boolean a(SuccessResult successResult) throws RemoteException, KiwiException {
Map data = successResult.getData();
com.amazon.device.iap.internal.util.e.a(b, "data: " + data);
LinkedHashSet linkedHashSet = new LinkedHashSet();
HashMap hashMap = new HashMap();
for (String str : this.a) {
if (!data.containsKey(str)) {
linkedHashSet.add(str);
} else {
try {
hashMap.put(str, a(str, data));
} catch (IllegalArgumentException e) {
linkedHashSet.add(str);
com.amazon.device.iap.internal.util.e.b(b, "Error parsing JSON for SKU " + str + ": " + e.getMessage());
}
}
}
e b2 = b();
b2.d().a(new ProductDataResponseBuilder().setRequestId(b2.c()).setRequestStatus(ProductDataResponse.RequestStatus.SUCCESSFUL).setUnavailableSkus(linkedHashSet).setProductData(hashMap).build());
return true;
}
private Product a(String str, Map map) throws IllegalArgumentException {
String str2 = (String) map.get(str);
try {
JSONObject jSONObject = new JSONObject(str2);
ProductType valueOf = ProductType.valueOf(jSONObject.getString("itemType").toUpperCase());
String string = jSONObject.getString("description");
return new ProductBuilder().setSku(str).setProductType(valueOf).setDescription(string).setPrice(jSONObject.optString("price")).setSmallIconUrl(jSONObject.getString("iconUrl")).setTitle(jSONObject.getString("title")).build();
} catch (JSONException unused) {
throw new IllegalArgumentException("error in parsing json string" + str2);
}
}
}

View File

@@ -0,0 +1,16 @@
package com.amazon.device.iap.internal.b.c;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.b.i;
import java.util.Set;
/* loaded from: classes.dex */
abstract class c extends i {
protected final Set<String> a;
public c(e eVar, String str, Set<String> set) {
super(eVar, "getItem_data", str);
this.a = set;
a("skus", set);
}
}

View File

@@ -0,0 +1,32 @@
package com.amazon.device.iap.internal.b.c;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.b.i;
import com.amazon.device.iap.internal.model.ProductDataResponseBuilder;
import com.amazon.device.iap.model.ProductDataResponse;
import com.amazon.device.iap.model.RequestId;
import java.util.Set;
/* loaded from: classes.dex */
public final class d extends e {
public d(RequestId requestId, Set<String> set) {
super(requestId);
a aVar = new a(this, set);
aVar.b(new b(this, set));
a((i) aVar);
}
@Override // com.amazon.device.iap.internal.b.e
public void a() {
a((ProductDataResponse) d().a());
}
@Override // com.amazon.device.iap.internal.b.e
public void b() {
ProductDataResponse productDataResponse = (ProductDataResponse) d().a();
if (productDataResponse == null) {
productDataResponse = new ProductDataResponseBuilder().setRequestId(c()).setRequestStatus(ProductDataResponse.RequestStatus.FAILED).build();
}
a(productDataResponse);
}
}