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,70 @@
package csdk.glucustomersupport.unity;
import android.app.Activity;
import android.text.TextUtils;
import com.unity3d.player.UnityPlayer;
import csdk.glucustomersupport.GluCustomerSupportSessionEndedEvent;
import csdk.glucustomersupport.GluCustomerSupportSessionStartedEvent;
import csdk.glucustomersupport.GluFactory;
import csdk.glucustomersupport.IGluCustomerSupport;
import csdk.glucustomersupport.IGluCustomerSupportListener;
import csdk.glucustomersupport.NotificationCountEvent;
import csdk.glucustomersupport.util.GluUtil;
import csdk.glucustomersupport.util.JsonUtil;
import java.util.Map;
import java.util.concurrent.Callable;
import org.json.JSONException;
/* loaded from: classes4.dex */
public class UnityCustomerSupportFactory {
public static class UnityCustomerSupportListener implements IGluCustomerSupportListener {
private final String gameObject;
public UnityCustomerSupportListener(String str) {
this.gameObject = str;
}
@Override // csdk.glucustomersupport.IGluCustomerSupportListener
public void onQueryNotificationCount(NotificationCountEvent notificationCountEvent) {
UnityPlayer.UnitySendMessage(this.gameObject, "AndroidCustomerSupportOnQueryNotificationCount", JsonUtil.toJson(notificationCountEvent));
}
@Override // csdk.glucustomersupport.IGluCustomerSupportListener
public void onHelpshiftSessionStarted(GluCustomerSupportSessionStartedEvent gluCustomerSupportSessionStartedEvent) {
UnityPlayer.UnitySendMessage(this.gameObject, "AndroidCustomerSupportOnHelpshiftSessionStarted", JsonUtil.toJson(gluCustomerSupportSessionStartedEvent));
}
@Override // csdk.glucustomersupport.IGluCustomerSupportListener
public void onHelpshiftSessionEnded(GluCustomerSupportSessionEndedEvent gluCustomerSupportSessionEndedEvent) {
UnityPlayer.UnitySendMessage(this.gameObject, "AndroidCustomerSupportOnHelpshiftSessionEnded", JsonUtil.toJson(gluCustomerSupportSessionEndedEvent));
}
}
public IGluCustomerSupport createCustomerSupport(String str, String str2, String str3) {
Map<String, Object> parseJsonObject;
Callable<Activity> callable = new Callable<Activity>() { // from class: csdk.glucustomersupport.unity.UnityCustomerSupportFactory.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // java.util.concurrent.Callable
public Activity call() throws Exception {
Activity activity = UnityPlayer.currentActivity;
if (activity != null) {
return activity;
}
throw new Error("Current activity is null.");
}
};
if (TextUtils.isEmpty(str3)) {
parseJsonObject = null;
} else {
try {
parseJsonObject = JsonUtil.parseJsonObject(str3);
} catch (JSONException e) {
throw GluUtil.propagate(e);
}
}
IGluCustomerSupport createCustomerSupport = new GluFactory().createCustomerSupport(callable, GluUtil.emptyToNull(str2), parseJsonObject);
createCustomerSupport.setListener(new UnityCustomerSupportListener(str));
return createCustomerSupport;
}
}

View File

@@ -0,0 +1,78 @@
package csdk.glucustomersupport.unity;
import com.facebook.internal.security.CertificateUtil;
import csdk.glucustomersupport.Consts;
import csdk.glucustomersupport.IGluCustomerSupport;
import csdk.glucustomersupport.util.GluUtil;
import csdk.glucustomersupport.util.JsonUtil;
import java.util.Map;
/* loaded from: classes4.dex */
public class UnityMarshallingUtil {
public static void clearUserActions(IGluCustomerSupport iGluCustomerSupport) {
}
public static void logUserAction(IGluCustomerSupport iGluCustomerSupport, String str) {
}
public static void login(IGluCustomerSupport iGluCustomerSupport, String str) {
iGluCustomerSupport.login(JsonUtil.toMap(str));
}
public static void logout(IGluCustomerSupport iGluCustomerSupport) {
iGluCustomerSupport.logout();
}
public static void queryNotificationCount(IGluCustomerSupport iGluCustomerSupport) {
iGluCustomerSupport.queryNotificationCount();
}
public static void showDefault(IGluCustomerSupport iGluCustomerSupport, String str) {
iGluCustomerSupport.show(Consts.SHOW_TYPE_DEFAULT, JsonUtil.toMap(str));
}
public static void showFAQs(IGluCustomerSupport iGluCustomerSupport, String str) {
iGluCustomerSupport.show(Consts.SHOW_TYPE_FAQ, JsonUtil.toMap(str));
}
public static void showSingleFAQ(IGluCustomerSupport iGluCustomerSupport, String str, String str2) {
Map<String, Object> map = JsonUtil.toMap(str2);
map.put(Consts.SHOW_OPTION_FAQ_ID, str);
iGluCustomerSupport.show(Consts.SHOW_TYPE_FAQ, map);
}
public static void showFAQSection(IGluCustomerSupport iGluCustomerSupport, String str, String str2) {
Map<String, Object> map = JsonUtil.toMap(str2);
map.put(Consts.SHOW_OPTION_FAQ_SECTION, str);
iGluCustomerSupport.show(Consts.SHOW_TYPE_FAQ, map);
}
public static void showConversation(IGluCustomerSupport iGluCustomerSupport, String str) {
iGluCustomerSupport.show(Consts.SHOW_TYPE_CHAT, JsonUtil.toMap(str));
}
public static void close(IGluCustomerSupport iGluCustomerSupport) {
iGluCustomerSupport.close();
}
public static void setMetadata(IGluCustomerSupport iGluCustomerSupport, String str, String str2, String str3) {
Map<String, Object> map = JsonUtil.toMap(str3);
Map<String, Object> createMap = GluUtil.createMap();
for (Map.Entry<String, Object> entry : map.entrySet()) {
Map createMap2 = GluUtil.createMap();
String[] split = ((String) entry.getValue()).split(CertificateUtil.DELIMITER, 2);
if (2 == split.length) {
String str4 = split[0];
String str5 = split[1];
createMap2.put("type", str4);
createMap2.put("value", str5);
createMap.put(entry.getKey(), createMap2);
}
}
iGluCustomerSupport.setMetadata(JsonUtil.toMap(str), JsonUtil.toList(str2), createMap);
}
public static void setLanguageCode(IGluCustomerSupport iGluCustomerSupport, String str) {
iGluCustomerSupport.setLanguageCode(str);
}
}