导航菜单

页面标题

页面副标题

Housing v14.7.8 - h.java 源代码

正在查看: Housing v14.7.8 应用的 h.java JAVA 源代码文件

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


package com.chuckerteam.chucker.api;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.widget.Toast;
import androidx.browser.customtabs.CustomTabsIntent;
import androidx.browser.customtabs.a;
import androidx.core.content.ContextCompat;
import com.locon.core.utils.k;
import java.util.concurrent.TimeUnit;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.enums.EnumEntries;
import kotlin.jvm.JvmOverloads;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.jvm.internal.r;
import org.jetbrains.annotations.NotNull;
import zp.j0;
import zp.m;
import zp.q;

@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u0000 \u00152\u00020\u0001:\u0002\u0016\u0017B\u001b\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0006\u0010\u0007R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\nR\u0014\u0010\u000b\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\nR\u001b\u0010\u0011\u001a\u00020\f8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0013\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014¨\u0006\u0018"}, d2 = {"Lcom/chuckerteam/chucker/api/h;", "", "Landroid/content/Context;", "context", "Lcom/chuckerteam/chucker/api/h$b;", "retentionPeriod", "<init>", "(Landroid/content/Context;Lcom/chuckerteam/chucker/api/h$b;)V", "", "period", "J", "cleanupFrequency", "Landroid/content/SharedPreferences;", "prefs$delegate", "Lkotlin/Lazy;", "getPrefs", "()Landroid/content/SharedPreferences;", "prefs", "Lkotlinx/coroutines/sync/a;", "maintenanceMutex", "Lkotlinx/coroutines/sync/a;", "Companion", "b", "a", "com.github.ChuckerTeam.Chucker.library"}, k = 1, mv = {2, 0, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nRetentionManager.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RetentionManager.kt\ncom/chuckerteam/chucker/api/RetentionManager\n+ 2 Mutex.kt\nkotlinx/coroutines/sync/MutexKt\n+ 3 SharedPreferences.kt\nandroidx/core/content/SharedPreferencesKt\n*L\n1#1,110:1\n116#2,11:111\n39#3,12:122\n*S KotlinDebug\n*F\n+ 1 RetentionManager.kt\ncom/chuckerteam/chucker/api/RetentionManager\n*L\n50#1:111,11\n70#1:122,12\n*E\n"})
public final class h {

    @NotNull
    private static final a Companion = new a(null);

    @NotNull
    private static final String KEY_LAST_CLEANUP = "last_cleanup";

    @NotNull
    private static final String PREFS_NAME = "chucker_preferences";
    public static final int a = 0;
    private static long lastCleanup;
    private final long cleanupFrequency;

    @NotNull
    private final kotlinx.coroutines.sync.a maintenanceMutex;
    private final long period;

    @NotNull
    private final Lazy prefs;

    @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0003\b\u0082\u0003\u0018\u00002\u00020\u0001R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0016\u0010\u0007\u001a\u00020\u00068\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Lcom/chuckerteam/chucker/api/h$a;", "", "", "PREFS_NAME", "Ljava/lang/String;", "KEY_LAST_CLEANUP", "", "lastCleanup", "J", "com.github.ChuckerTeam.Chucker.library"}, k = 1, mv = {2, 0, 0}, xi = 48)
    public static final class a {
        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0005\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001j\u0002\b\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005¨\u0006\u0006"}, d2 = {"Lcom/chuckerteam/chucker/api/h$b;", "", "ONE_HOUR", "ONE_DAY", "ONE_WEEK", "FOREVER", "com.github.ChuckerTeam.Chucker.library"}, k = 1, mv = {2, 0, 0}, xi = 48)
    public static final class b {
        private static final EnumEntries $ENTRIES;
        private static final b[] $VALUES;
        public static final b FOREVER;
        public static final b ONE_DAY;
        public static final b ONE_HOUR;
        public static final b ONE_WEEK;

        static {
            b bVar = new b("ONE_HOUR", 0);
            ONE_HOUR = bVar;
            b bVar2 = new b("ONE_DAY", 1);
            ONE_DAY = bVar2;
            b bVar3 = new b("ONE_WEEK", 2);
            ONE_WEEK = bVar3;
            b bVar4 = new b("FOREVER", 3);
            FOREVER = bVar4;
            b[] bVarArr = {bVar, bVar2, bVar3, bVar4};
            $VALUES = bVarArr;
            $ENTRIES = fq.a.a(bVarArr);
        }

        @NotNull
        public static EnumEntries<b> getEntries() {
            return $ENTRIES;
        }

        public static b valueOf(String str) {
            return (b) Enum.valueOf(b.class, str);
        }

        public static b[] values() {
            return (b[]) $VALUES.clone();
        }
    }

    @Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
    public class c {
        public static final int[] $EnumSwitchMapping$0;

        static {
            int[] iArr = new int[b.values().length];
            try {
                iArr[b.ONE_HOUR.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[b.ONE_DAY.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[b.ONE_WEEK.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                iArr[b.FOREVER.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            $EnumSwitchMapping$0 = iArr;
        }
    }

    @kotlin.jvm.JvmOverloads
    public h(@org.jetbrains.annotations.NotNull android.content.Context r3) {
        throw new UnsupportedOperationException("Method not decompiled: com.chuckerteam.chucker.api.h.<init>(android.content.Context):void");
    }

    public final java.lang.Object a(eq.d r19) {
        throw new UnsupportedOperationException("Method not decompiled: com.chuckerteam.chucker.api.h.a(eq.d):java.lang.Object");
    }

    @JvmOverloads
    public h(@NotNull final Context context, @NotNull b bVar) {
        long millis;
        r.k(context, "context");
        r.k(bVar, "retentionPeriod");
        int i = c.$EnumSwitchMapping$0[bVar.ordinal()];
        if (i == 1) {
            millis = TimeUnit.HOURS.toMillis(1L);
        } else if (i == 2) {
            millis = TimeUnit.DAYS.toMillis(1L);
        } else if (i == 3) {
            millis = TimeUnit.DAYS.toMillis(7L);
        } else {
            if (i != 4) {
                throw new q();
            }
            millis = 0;
        }
        this.period = millis;
        final int i2 = 0;
        this.prefs = m.a(new kq.a() {
            public final Object invoke() {
                Context context2 = context;
                switch (i2) {
                    case 0:
                        int i3 = h.a;
                        break;
                    case 1:
                        com.locon.crf.presentation.ui.util.e.INSTANCE.getClass();
                        r.k(context2, "context");
                        Intent intent = new Intent("android.intent.action.SENDTO");
                        intent.setData(Uri.parse("mailto:[email protected]"));
                        try {
                            context2.startActivity(intent);
                        } catch (Exception unused) {
                            Toast.makeText(context2, ed.i.something_went_wrong_message, 0).show();
                        }
                        break;
                    case 2:
                        r.k(context2, "<this>");
                        int i4 = za.c.purple_700;
                        CustomTabsIntent.b bVar2 = new CustomTabsIntent.b();
                        a.a aVar = new a.a();
                        aVar.d(ContextCompat.getColor(context2, i4));
                        aVar.b(ContextCompat.getColor(context2, i4));
                        aVar.c(ContextCompat.getColor(context2, i4));
                        bVar2.b(aVar.a());
                        bVar2.c();
                        bVar2.d();
                        CustomTabsIntent a2 = bVar2.a();
                        a2.intent.setPackage("com.android.chrome");
                        try {
                            a2.a(context2, Uri.parse("https://housing.com/fraudawareness"));
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                        break;
                    default:
                        k.b(context2, "com.locon.housing");
                        break;
                }
                return j0.INSTANCE;
            }
        });
        this.maintenanceMutex = kotlinx.coroutines.sync.e.a();
        this.cleanupFrequency = bVar == b.ONE_HOUR ? TimeUnit.MINUTES.toMillis(30L) : TimeUnit.HOURS.toMillis(2L);
    }

    public h(Context context, b bVar, int i, DefaultConstructorMarker defaultConstructorMarker) {
        this(context, (i & 2) != 0 ? b.ONE_WEEK : bVar);
    }
}