导航菜单

页面标题

页面副标题

CityMall v1.42.1 - ReactNativeFirebaseCrashlyticsInitProvider.java 源代码

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

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


package io.invertase.firebase.crashlytics;

import H6.h;
import H6.i;
import H6.j;
import H6.k;
import android.util.Log;
import com.google.firebase.crashlytics.FirebaseCrashlytics;

public class ReactNativeFirebaseCrashlyticsInitProvider extends h {
    static boolean a() {
        boolean b;
        i h = i.h();
        j d = j.d();
        k f = k.f();
        if (f.b("crashlytics_auto_collection_enabled")) {
            b = f.d("crashlytics_auto_collection_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isCrashlyticsCollectionEnabled via RNFBPreferences: " + b);
        } else if (h.a("crashlytics_auto_collection_enabled")) {
            b = h.d("crashlytics_auto_collection_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isCrashlyticsCollectionEnabled via RNFBJSON: " + b);
        } else {
            b = d.b("crashlytics_auto_collection_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isCrashlyticsCollectionEnabled via RNFBMeta: " + b);
        }
        Log.d("RNFBCrashlyticsInit", "isCrashlyticsCollectionEnabled final value: " + b);
        return b;
    }

    static boolean b() {
        boolean b;
        i h = i.h();
        j d = j.d();
        k f = k.f();
        if (f.b("crashlytics_javascript_exception_handler_chaining_enabled")) {
            b = f.d("crashlytics_javascript_exception_handler_chaining_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isCrashlyticsJavascriptExceptionHandlerChainingEnabled via RNFBPreferences: " + b);
        } else if (h.a("crashlytics_javascript_exception_handler_chaining_enabled")) {
            b = h.d("crashlytics_javascript_exception_handler_chaining_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isCrashlyticsJavascriptExceptionHandlerChainingEnabled via RNFBJSON: " + b);
        } else {
            b = d.b("crashlytics_javascript_exception_handler_chaining_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isCrashlyticsJavascriptExceptionHandlerChainingEnabled via RNFBMeta: " + b);
        }
        Log.d("RNFBCrashlyticsInit", "isCrashlyticsJavascriptExceptionHandlerChainingEnabled final value: " + b);
        return b;
    }

    static boolean c() {
        boolean b;
        i h = i.h();
        j d = j.d();
        k f = k.f();
        if (f.b("crashlytics_is_error_generation_on_js_crash_enabled")) {
            b = f.d("crashlytics_is_error_generation_on_js_crash_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isErrorGenerationOnJSCrashEnabled via RNFBPreferences: " + b);
        } else if (h.a("crashlytics_is_error_generation_on_js_crash_enabled")) {
            b = h.d("crashlytics_is_error_generation_on_js_crash_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isErrorGenerationOnJSCrashEnabled via RNFBJSON: " + b);
        } else {
            b = d.b("crashlytics_is_error_generation_on_js_crash_enabled", true);
            Log.d("RNFBCrashlyticsInit", "isErrorGenerationOnJSCrashEnabled via RNFBMeta: " + b);
        }
        Log.d("RNFBCrashlyticsInit", "isErrorGenerationOnJSCrashEnabled final value: " + b);
        return b;
    }

    @Override
    public boolean onCreate() {
        super.onCreate();
        try {
            FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(a());
            Log.i("RNFBCrashlyticsInit", "initialization successful");
            return true;
        } catch (Exception e) {
            Log.e("RNFBCrashlyticsInit", "initialization failed", e);
            return false;
        }
    }
}