2018-08-24 18:09:42 +02:00

60 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
>
<PreferenceCategory
android:key="catalyst_perf"
android:title="Performance"
>
<CheckBoxPreference
android:key="js_dev_mode_debug"
android:title="JS Dev Mode"
android:summary="Load JavaScript bundle with __DEV__ = true for easier debugging. Disable for performance testing. Reload for the change to take effect."
android:defaultValue="true"
/>
<CheckBoxPreference
android:key="js_minify_debug"
android:title="JS Minify"
android:summary="Load JavaScript bundle with minify=true for debugging minification issues."
android:defaultValue="false"
/>
<CheckBoxPreference
android:key="js_bundle_deltas"
android:title="Use JS Deltas"
android:summary="Request delta bundles from metro to get faster reloads (Experimental)"
android:defaultValue="true"
/>
<CheckBoxPreference
android:key="animations_debug"
android:title="Animations FPS Summaries"
android:summary="At the end of animations, Toasts and logs to logcat debug information about the FPS during that transition. Currently only supported for transitions (animated navigations)."
android:defaultValue="false"
/>
</PreferenceCategory>
<PreferenceCategory
android:key="pref_key_catalyst_debug"
android:title="Debugging"
>
<EditTextPreference
android:key="debug_http_host"
android:title="Debug server host &amp; port for device"
android:summary="Debug server host &amp; port for downloading JS bundle or communicating with JS debugger. With this setting empty launcher should work fine when running on emulator (or genymotion) and connection to debug server running on emulator's host."
android:defaultValue=""
/>
<CheckBoxPreference
android:key="start_sampling_profiler_on_init"
android:title="Start Sampling Profiler on init"
android:summary="If true the Sampling Profiler will start on initialization of JS. Useful for profiling startup of the app. Reload JS after setting."
android:defaultValue="false"
/>
<EditTextPreference
android:key="sampling_profiler_sample_interval"
android:title="Sample interval for Sampling Profiler"
android:summary="Sample interval in microseconds for the Sampling Profiler (default: 1000). Reload JS after setting."
android:defaultValue="1000"
android:inputType="number"
/>
</PreferenceCategory>
</PreferenceScreen>