导航菜单

页面标题

页面副标题

Oolka v2.4.42 - ReactNativeFirebaseCrashlyticsInitProvider.java 源代码

正在查看: Oolka v2.4.42 应用的 ReactNativeFirebaseCrashlyticsInitProvider.java JAVA 源代码文件

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


package io.invertase.firebase.crashlytics;

import com.google.firebase.crashlytics.FirebaseCrashlytics;
import io.invertase.firebase.common.ReactNativeFirebaseInitProvider;
import io.invertase.firebase.common.ReactNativeFirebaseMeta;
import io.invertase.firebase.common.ReactNativeFirebasePreferences;
import io.invertase.firebase.common.f;

public class ReactNativeFirebaseCrashlyticsInitProvider extends ReactNativeFirebaseInitProvider {
    public static boolean a() {
        boolean b;
        f h = f.h();
        ReactNativeFirebaseMeta d = ReactNativeFirebaseMeta.d();
        ReactNativeFirebasePreferences f = ReactNativeFirebasePreferences.f();
        if (f.b("crashlytics_auto_collection_enabled")) {
            b = f.d("crashlytics_auto_collection_enabled", true);
            StringBuilder sb = new StringBuilder();
            sb.append("isCrashlyticsCollectionEnabled via RNFBPreferences: ");
            sb.append(b);
        } else if (h.a("crashlytics_auto_collection_enabled")) {
            b = h.d("crashlytics_auto_collection_enabled", true);
            StringBuilder sb2 = new StringBuilder();
            sb2.append("isCrashlyticsCollectionEnabled via RNFBJSON: ");
            sb2.append(b);
        } else {
            b = d.b("crashlytics_auto_collection_enabled", true);
            StringBuilder sb3 = new StringBuilder();
            sb3.append("isCrashlyticsCollectionEnabled via RNFBMeta: ");
            sb3.append(b);
        }
        StringBuilder sb4 = new StringBuilder();
        sb4.append("isCrashlyticsCollectionEnabled final value: ");
        sb4.append(b);
        return b;
    }

    public static boolean b() {
        boolean b;
        f h = f.h();
        ReactNativeFirebaseMeta d = ReactNativeFirebaseMeta.d();
        ReactNativeFirebasePreferences f = ReactNativeFirebasePreferences.f();
        if (f.b("crashlytics_javascript_exception_handler_chaining_enabled")) {
            b = f.d("crashlytics_javascript_exception_handler_chaining_enabled", true);
            StringBuilder sb = new StringBuilder();
            sb.append("isCrashlyticsJavascriptExceptionHandlerChainingEnabled via RNFBPreferences: ");
            sb.append(b);
        } else if (h.a("crashlytics_javascript_exception_handler_chaining_enabled")) {
            b = h.d("crashlytics_javascript_exception_handler_chaining_enabled", true);
            StringBuilder sb2 = new StringBuilder();
            sb2.append("isCrashlyticsJavascriptExceptionHandlerChainingEnabled via RNFBJSON: ");
            sb2.append(b);
        } else {
            b = d.b("crashlytics_javascript_exception_handler_chaining_enabled", true);
            StringBuilder sb3 = new StringBuilder();
            sb3.append("isCrashlyticsJavascriptExceptionHandlerChainingEnabled via RNFBMeta: ");
            sb3.append(b);
        }
        StringBuilder sb4 = new StringBuilder();
        sb4.append("isCrashlyticsJavascriptExceptionHandlerChainingEnabled final value: ");
        sb4.append(b);
        return b;
    }

    public static boolean c() {
        boolean b;
        f h = f.h();
        ReactNativeFirebaseMeta d = ReactNativeFirebaseMeta.d();
        ReactNativeFirebasePreferences f = ReactNativeFirebasePreferences.f();
        if (f.b("crashlytics_is_error_generation_on_js_crash_enabled")) {
            b = f.d("crashlytics_is_error_generation_on_js_crash_enabled", true);
            StringBuilder sb = new StringBuilder();
            sb.append("isErrorGenerationOnJSCrashEnabled via RNFBPreferences: ");
            sb.append(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);
            StringBuilder sb2 = new StringBuilder();
            sb2.append("isErrorGenerationOnJSCrashEnabled via RNFBJSON: ");
            sb2.append(b);
        } else {
            b = d.b("crashlytics_is_error_generation_on_js_crash_enabled", true);
            StringBuilder sb3 = new StringBuilder();
            sb3.append("isErrorGenerationOnJSCrashEnabled via RNFBMeta: ");
            sb3.append(b);
        }
        StringBuilder sb4 = new StringBuilder();
        sb4.append("isErrorGenerationOnJSCrashEnabled final value: ");
        sb4.append(b);
        return b;
    }

    @Override
    public boolean onCreate() {
        super.onCreate();
        try {
            FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(a());
            return true;
        } catch (Exception unused) {
            return false;
        }
    }
}