InAppPurchaseUtils.smali
.class public final Lcom/facebook/appevents/iap/InAppPurchaseUtils;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final INSTANCE:Lcom/facebook/appevents/iap/InAppPurchaseUtils;
# direct methods
.method public static constructor <clinit>()V
.registers 1
new-instance v0, Lcom/facebook/appevents/iap/InAppPurchaseUtils;
invoke-direct {v0}, Lcom/facebook/appevents/iap/InAppPurchaseUtils;-><init>()V
sput-object v0, Lcom/facebook/appevents/iap/InAppPurchaseUtils;->INSTANCE:Lcom/facebook/appevents/iap/InAppPurchaseUtils;
return-void
.end method
.method private constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final getClass(Ljava/lang/String;)Ljava/lang/Class;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
const-class v0, Lcom/facebook/appevents/iap/InAppPurchaseUtils;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_a
return-object v2
:cond_a
:try_start_a
const-string v1, "className"
invoke-static {p0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_f
.catchall {:try_start_a .. :try_end_f} :catchall_14
.line 1
:try_start_f
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v2
:try_end_13
.catch Ljava/lang/ClassNotFoundException; {:try_start_f .. :try_end_13} :catch_13
.catchall {:try_start_f .. :try_end_13} :catchall_14
:catch_13
return-object v2
:catchall_14
move-exception p0
.line 2
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v2
.end method
.method public static final getClassFromContext$facebook_core_release(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/Class;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
")",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
const-class v0, Lcom/facebook/appevents/iap/InAppPurchaseUtils;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_a
return-object v2
:cond_a
:try_start_a
const-string v1, "context"
invoke-static {p0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "className"
invoke-static {p1, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_14
.catchall {:try_start_a .. :try_end_14} :catchall_1e
.line 1
:try_start_14
invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object p0
invoke-virtual {p0, p1}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
move-result-object p0
:try_end_1c
.catch Ljava/lang/ClassNotFoundException; {:try_start_14 .. :try_end_1c} :catch_1d
.catchall {:try_start_14 .. :try_end_1c} :catchall_1e
return-object p0
:catch_1d
return-object v2
:catchall_1e
move-exception p0
.line 2
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v2
.end method
.method public static final varargs getDeclaredMethod$facebook_core_release(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;)",
"Ljava/lang/reflect/Method;"
}
.end annotation
const-class v0, Lcom/facebook/appevents/iap/InAppPurchaseUtils;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_a
return-object v2
:cond_a
:try_start_a
const-string v1, "clazz"
invoke-static {p0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "methodName"
invoke-static {p1, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "args"
invoke-static {p2, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_19
.catchall {:try_start_a .. :try_end_19} :catchall_25
.line 1
:try_start_19
array-length v1, p2
invoke-static {p2, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/lang/Class;
invoke-virtual {p0, p1, p2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v2
:try_end_24
.catch Ljava/lang/NoSuchMethodException; {:try_start_19 .. :try_end_24} :catch_24
.catchall {:try_start_19 .. :try_end_24} :catchall_25
:catch_24
return-object v2
:catchall_25
move-exception p0
.line 2
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v2
.end method
.method public static final varargs getMethod(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/String;",
"[",
"Ljava/lang/Class<",
"*>;)",
"Ljava/lang/reflect/Method;"
}
.end annotation
const-class v0, Lcom/facebook/appevents/iap/InAppPurchaseUtils;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_a
return-object v2
:cond_a
:try_start_a
const-string v1, "clazz"
invoke-static {p0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "methodName"
invoke-static {p1, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "args"
invoke-static {p2, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_19
.catchall {:try_start_a .. :try_end_19} :catchall_25
.line 1
:try_start_19
array-length v1, p2
invoke-static {p2, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/lang/Class;
invoke-virtual {p0, p1, p2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v2
:try_end_24
.catch Ljava/lang/NoSuchMethodException; {:try_start_19 .. :try_end_24} :catch_24
.catchall {:try_start_19 .. :try_end_24} :catchall_25
:catch_24
return-object v2
:catchall_25
move-exception p0
.line 2
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v2
.end method
.method public static final varargs invokeMethod(Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/reflect/Method;",
"Ljava/lang/Object;",
"[",
"Ljava/lang/Object;",
")",
"Ljava/lang/Object;"
}
.end annotation
const-class v0, Lcom/facebook/appevents/iap/InAppPurchaseUtils;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_a
return-object v2
:cond_a
:try_start_a
const-string v1, "clazz"
invoke-static {p0, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "method"
invoke-static {p1, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "args"
invoke-static {p3, v1}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz p2, :cond_1f
.line 1
invoke-virtual {p0, p2}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
:try_end_1f
.catchall {:try_start_a .. :try_end_1f} :catchall_2a
.line 2
:cond_1f
:try_start_1f
array-length p0, p3
invoke-static {p3, p0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, p2, p0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
:try_end_28
.catch Ljava/lang/IllegalAccessException; {:try_start_1f .. :try_end_28} :catch_29
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_1f .. :try_end_28} :catch_29
.catchall {:try_start_1f .. :try_end_28} :catchall_2a
return-object p0
:catch_29
return-object v2
:catchall_2a
move-exception p0
.line 3
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v2
.end method