导航菜单

页面标题

页面副标题

Clash Legends v0.0.1 - b.java 源代码

正在查看: Clash Legends v0.0.1 应用的 b.java JAVA 源代码文件

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


package com.payu.crashlogger;

import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import com.payu.crashlogger.cache.a;
import java.util.concurrent.locks.ReentrantLock;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.Boxing;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.scheduling.WorkQueueKt;
import org.json.JSONArray;
import org.json.JSONObject;

@DebugMetadata(c = "com.payu.crashlogger.CrashManager$serverCallForCachedData$1", f = "CrashManager.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
public final class b extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
    public final JSONObject a;

    public b(JSONObject jSONObject, Continuation continuation) {
        super(2, continuation);
        this.a = jSONObject;
    }

    @Override
    public final Continuation<Unit> create(Object obj, Continuation<?> completion) {
        Intrinsics.checkNotNullParameter(completion, "completion");
        return new b(this.a, completion);
    }

    @Override
    public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
        return ((b) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
    }

    @Override
    public final Object invokeSuspend(Object obj) {
        String str;
        String str2 = "";
        String str3 = "https://sentry.payu.in/api/32/store/";
        IntrinsicsKt.getCOROUTINE_SUSPENDED();
        ResultKt.throwOnFailure(obj);
        a aVar = a.h;
        if (a.b != null) {
            com.payu.crashlogger.network.b bVar = com.payu.crashlogger.network.b.a;
            JSONObject request = this.a;
            Context context = a.b;
            Intrinsics.checkNotNull(context);
            Intrinsics.checkNotNullParameter(request, "request");
            Intrinsics.checkNotNullParameter(context, "context");
            Intrinsics.checkNotNullParameter(context, "context");
            try {
                ApplicationInfo applicationInfo = context.getPackageManager().getApplicationInfo(context.getPackageName(), WorkQueueKt.BUFFER_CAPACITY);
                Intrinsics.checkNotNull(applicationInfo);
                Bundle bundle = applicationInfo.metaData;
                str = bundle != null ? bundle.getString(context.getString(R.string.payu_sentry_url), "https://sentry.payu.in/api/32/store/") : "https://sentry.payu.in/api/32/store/";
            } catch (PackageManager.NameNotFoundException e) {
                e.printStackTrace();
                str = "";
            }
            if (str == null || str.length() == 0) {
                request = new JSONObject();
            } else {
                try {
                    Intrinsics.checkNotNullParameter(context, "context");
                    try {
                        ApplicationInfo applicationInfo2 = context.getPackageManager().getApplicationInfo(context.getPackageName(), WorkQueueKt.BUFFER_CAPACITY);
                        Intrinsics.checkNotNull(applicationInfo2);
                        Bundle bundle2 = applicationInfo2.metaData;
                        if (bundle2 != null) {
                            str3 = bundle2.getString(context.getString(R.string.payu_sentry_url), "https://sentry.payu.in/api/32/store/");
                        }
                    } catch (PackageManager.NameNotFoundException e2) {
                        e2.printStackTrace();
                        str3 = "";
                    }
                    Intrinsics.checkNotNull(str3);
                    Intrinsics.checkNotNullParameter(context, "context");
                    try {
                        ApplicationInfo applicationInfo3 = context.getPackageManager().getApplicationInfo(context.getPackageName(), WorkQueueKt.BUFFER_CAPACITY);
                        Intrinsics.checkNotNull(applicationInfo3);
                        Bundle bundle3 = applicationInfo3.metaData;
                        str2 = bundle3 != null ? bundle3.getString(context.getString(R.string.payu_sentry_key), "b5df90d6741a4136914f1f83a996409a") : "b5df90d6741a4136914f1f83a996409a";
                    } catch (PackageManager.NameNotFoundException e3) {
                        e3.printStackTrace();
                    }
                    Intrinsics.checkNotNull(str2);
                    request = bVar.a(str3, request, -1, str2);
                } catch (Exception e4) {
                }
            }
            a aVar2 = a.h;
            ReentrantLock reentrantLock = a.d;
            reentrantLock.lock();
            if (request != null) {
                try {
                    if (Boxing.boxBoolean(request.has("contexts")).booleanValue()) {
                        e eVar = e.a;
                        eVar.c("context---");
                        JSONArray jSONArray = a.g;
                        if (jSONArray != null) {
                            jSONArray.put(request);
                        }
                        StringBuilder append = new StringBuilder().append("SharedPreference  JSON Array Cache Size:");
                        JSONArray jSONArray2 = a.g;
                        eVar.c(append.append((jSONArray2 != null ? Boxing.boxInt(jSONArray2.length()) : null).intValue()).toString());
                        a.C0006a c0006a = com.payu.crashlogger.cache.a.e;
                        Context context2 = a.b;
                        Intrinsics.checkNotNull(context2);
                        com.payu.crashlogger.cache.a a = c0006a.a(context2);
                        JSONArray jSONArray3 = a.g;
                        Intrinsics.checkNotNull(jSONArray3);
                        a.a(jSONArray3);
                    }
                } finally {
                    reentrantLock.unlock();
                }
            }
        }
        return Unit.INSTANCE;
    }
}