导航菜单

页面标题

页面副标题

CityMall v1.42.1 - c.java 源代码

正在查看: CityMall v1.42.1 应用的 c.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package Z2;

import android.net.Uri;
import com.adster.sdk.mediation.analytics.AnalyticsConstants;
import java.util.List;
import java.util.ListIterator;
import kotlin.collections.i;
import kotlin.collections.p;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.j;
import kotlin.text.k;
import org.json.JSONException;
import org.json.JSONObject;

public final class c extends RuntimeException {

    public static final a f2955b = new a(null);

    private static final String f2956c = "\n\nTry the following to fix the issue:\n\\u2022 Ensure that Metro is running\n\\u2022 Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices\n\\u2022 Ensure Airplane Mode is disabled\n\\u2022 If you're on a physical device connected to the same machine, run 'adb reverse tcp:<PORT> tcp:<PORT> to forward requests from your device\n\\u2022 If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:<PORT>\n\n";

    private final String f2957a;

    public static final class a {
        public a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private final String d(String str) {
            List k5;
            List h5 = new kotlin.text.h("/").h(str, 0);
            if (!h5.isEmpty()) {
                ListIterator listIterator = h5.listIterator(h5.size());
                while (listIterator.hasPrevious()) {
                    if (((String) listIterator.previous()).length() != 0) {
                        k5 = p.A0(h5, listIterator.nextIndex() + 1);
                        break;
                    }
                }
            }
            k5 = p.k();
            return (String) i.I((String[]) k5.toArray(new String[0]));
        }

        public final c a(String str, String str2, String str3, Throwable th) {
            j.i(str, "url");
            j.i(str2, "reason");
            j.i(str3, "extra");
            return new c(str2 + k.A(c.f2956c, "<PORT>", String.valueOf(Uri.parse(str).getPort()), false, 4, (Object) null) + str3, th);
        }

        public final c b(String str, String str2, Throwable th) {
            j.i(str, "url");
            j.i(str2, "reason");
            return a(str, str2, "", th);
        }

        public final c c(String str, String str2) {
            if (str2 != null && str2.length() != 0) {
                try {
                    JSONObject jSONObject = new JSONObject(str2);
                    String string = jSONObject.getString("filename");
                    String string2 = jSONObject.getString(AnalyticsConstants.PARAM_EXCEPTION_MESSAGE);
                    j.h(string2, "getString(...)");
                    j.f(string);
                    return new c(string2, d(string), jSONObject.getInt("lineNumber"), jSONObject.getInt("column"), null);
                } catch (JSONException e5) {
                    L1.a.K("ReactNative", "Could not parse DebugServerException from: " + str2, e5);
                }
            }
            return null;
        }

        private a() {
        }
    }

    public c(String str, String str2, int i5, int i6, DefaultConstructorMarker defaultConstructorMarker) {
        this(str, str2, i5, i6);
    }

    public static final c b(String str, String str2, String str3, Throwable th) {
        return f2955b.a(str, str2, str3, th);
    }

    public static final c c(String str, String str2, Throwable th) {
        return f2955b.b(str, str2, th);
    }

    public static final c d(String str, String str2) {
        return f2955b.c(str, str2);
    }

    private c(String str, String str2, int i5, int i6) {
        super(str + "\n  at " + str2 + ":" + i5 + ":" + i6);
        this.f2957a = str;
    }

    public c(String str) {
        super(str);
        j.i(str, "description");
        this.f2957a = str;
    }

    public c(String str, Throwable th) {
        super(str, th);
        j.i(str, "detailMessage");
        this.f2957a = str;
    }
}