- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
215 lines
6.3 KiB
Smali
215 lines
6.3 KiB
Smali
.class public Lcsdk/glucustomersupport/GluFactory;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(Lcsdk/glucustomersupport/GluFactory;Ljava/util/concurrent/Callable;Ljava/util/Map;Ljava/util/Map;Z)Lcsdk/glucustomersupport/IGluCustomerSupport;
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0, p1, p2, p3, p4}, Lcsdk/glucustomersupport/GluFactory;->createInternal(Ljava/util/concurrent/Callable;Ljava/util/Map;Ljava/util/Map;Z)Lcsdk/glucustomersupport/IGluCustomerSupport;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private createInternal(Ljava/util/concurrent/Callable;Ljava/util/Map;Ljava/util/Map;Z)Lcsdk/glucustomersupport/IGluCustomerSupport;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"Landroid/app/Activity;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;Z)",
|
|
"Lcsdk/glucustomersupport/IGluCustomerSupport;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "v"
|
|
|
|
const-string v1, "3.2.0-f80367e"
|
|
|
|
const-string v2, "n"
|
|
|
|
const-string v3, "gluCustomerSupport"
|
|
|
|
filled-new-array {v2, v3, v0, v1}, [Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "SDK.VERSION"
|
|
|
|
.line 55
|
|
invoke-static {p4, v1, v0}, Lcsdk/glucustomersupport/util/GluUtil;->log(ZLjava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const-string p4, "csdk.disabled.gluCustomerSupport"
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 57
|
|
invoke-static {p2, p4, v0}, Lcsdk/glucustomersupport/util/ConfigUtil;->getBoolean(Ljava/lang/Object;Ljava/lang/String;Z)Z
|
|
|
|
move-result p4
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
.line 59
|
|
new-instance p1, Lcsdk/glucustomersupport/impl/GluDummyImpl;
|
|
|
|
invoke-direct {p1}, Lcsdk/glucustomersupport/impl/GluDummyImpl;-><init>()V
|
|
|
|
return-object p1
|
|
|
|
.line 62
|
|
:cond_0
|
|
invoke-static {}, Lcsdk/glucustomersupport/util/StringStore;->init()V
|
|
|
|
const-string p4, "csdk.gluCustomerSupport.provider"
|
|
|
|
const-string v1, "helpshift"
|
|
|
|
.line 64
|
|
invoke-static {p2, p4, v1}, Lcsdk/glucustomersupport/util/ConfigUtil;->getString(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p4
|
|
|
|
const-string v1, "kustomer"
|
|
|
|
.line 67
|
|
invoke-virtual {p4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p4
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 70
|
|
:cond_1
|
|
new-instance p4, Lcsdk/glucustomersupport/impl/GluHelpshift;
|
|
|
|
invoke-direct {p4, p1, p2, p3}, Lcsdk/glucustomersupport/impl/GluHelpshift;-><init>(Ljava/util/concurrent/Callable;Ljava/util/Map;Ljava/util/Map;)V
|
|
|
|
move-object p1, p4
|
|
|
|
:goto_0
|
|
if-nez p1, :cond_2
|
|
|
|
.line 74
|
|
new-instance p1, Lcsdk/glucustomersupport/impl/GluDummyImpl;
|
|
|
|
invoke-direct {p1}, Lcsdk/glucustomersupport/impl/GluDummyImpl;-><init>()V
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
const-string p3, "csdk.gluCustomerSupport.disabled.eventBus"
|
|
|
|
.line 76
|
|
invoke-static {p2, p3, v0}, Lcsdk/glucustomersupport/util/ConfigUtil;->getBoolean(Ljava/lang/Object;Ljava/lang/String;Z)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 77
|
|
sget-object p2, Lcsdk/glucustomersupport/eventbus/GluEventBus;->DISCONNECTED:Lcsdk/glucustomersupport/eventbus/GluEventBus;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
sget-object p2, Lcsdk/glucustomersupport/eventbus/GluEventBus;->SHARED:Lcsdk/glucustomersupport/eventbus/GluEventBus;
|
|
|
|
.line 78
|
|
:goto_1
|
|
sget-object p3, Lcsdk/glucustomersupport/eventbus/GluEventBus;->GLOBAL_TOKEN:Ljava/lang/Object;
|
|
|
|
invoke-static {p2, p3, p1}, Lcsdk/glucustomersupport/eventbus/GluEventHandler;->subscribe(Lcsdk/glucustomersupport/eventbus/GluEventBus;Ljava/lang/Object;Lcsdk/glucustomersupport/IGluCustomerSupport;)Lcsdk/glucustomersupport/eventbus/GluEventHandler;
|
|
|
|
move-result-object p2
|
|
|
|
.line 80
|
|
invoke-interface {p1, p2}, Lcsdk/glucustomersupport/IGluCustomerSupport;->init(Lcsdk/glucustomersupport/eventbus/GluEventHandler;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createCustomerSupport(Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/util/Map;)Lcsdk/glucustomersupport/IGluCustomerSupport;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"Landroid/app/Activity;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Lcsdk/glucustomersupport/IGluCustomerSupport;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 26
|
|
new-instance v0, Lcsdk/glucustomersupport/impl/GluImplWrapper;
|
|
|
|
invoke-direct {v0}, Lcsdk/glucustomersupport/impl/GluImplWrapper;-><init>()V
|
|
|
|
.line 28
|
|
invoke-static {p3}, Lcsdk/glucustomersupport/util/GluUtil;->shallowClone(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object p3
|
|
|
|
.line 29
|
|
new-instance v1, Lcsdk/glucustomersupport/GluFactory$1;
|
|
|
|
invoke-direct {v1, p0, v0, p1, p3}, Lcsdk/glucustomersupport/GluFactory$1;-><init>(Lcsdk/glucustomersupport/GluFactory;Lcsdk/glucustomersupport/impl/GluImplWrapper;Ljava/util/concurrent/Callable;Ljava/util/Map;)V
|
|
|
|
.line 46
|
|
:try_start_0
|
|
invoke-static {p2}, Lcsdk/glucustomersupport/util/JsonUtil;->parseJsonObject(Ljava/lang/String;)Ljava/util/Map;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 50
|
|
invoke-static {p2, p1, v1}, Lcsdk/glucustomersupport/eventbus/GluConfigEventHandler;->request(Ljava/lang/String;Ljava/util/Map;Lcsdk/glucustomersupport/util/IAction2;)V
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 48
|
|
invoke-static {p1}, Lcsdk/glucustomersupport/util/GluUtil;->propagate(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|