preferences.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <PreferenceScreen
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. >
  5. <PreferenceCategory
  6. android:key="catalyst_perf"
  7. android:title="Performance"
  8. >
  9. <CheckBoxPreference
  10. android:key="js_dev_mode_debug"
  11. android:title="JS Dev Mode"
  12. android:summary="Load JavaScript bundle with __DEV__ = true for easier debugging. Disable for performance testing."
  13. android:defaultValue="true"
  14. />
  15. <CheckBoxPreference
  16. android:key="js_minify_debug"
  17. android:title="JS Minify"
  18. android:summary="Load JavaScript bundle with minify=true for debugging minification issues."
  19. android:defaultValue="false"
  20. />
  21. <CheckBoxPreference
  22. android:key="animations_debug"
  23. android:title="Animations FPS Summaries"
  24. 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)."
  25. android:defaultValue="false"
  26. />
  27. </PreferenceCategory>
  28. <PreferenceCategory
  29. android:key="pref_key_catalyst_debug"
  30. android:title="Debugging"
  31. >
  32. <EditTextPreference
  33. android:key="debug_http_host"
  34. android:title="Debug server host &amp; port for device"
  35. 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."
  36. android:defaultValue=""
  37. />
  38. <CheckBoxPreference
  39. android:key="start_sampling_profiler_on_init"
  40. android:title="Start Sampling Profiler on init"
  41. android:summary="If true the Sampling Profiler will start on initialization of JS. Useful for profiling startup of the app. Reload JS after setting."
  42. android:defaultValue="false"
  43. />
  44. <EditTextPreference
  45. android:key="sampling_profiler_sample_interval"
  46. android:title="Sample interval for Sampling Profiler"
  47. android:summary="Sample interval in microseconds for the Sampling Profiler (default: 1000). Reload JS after setting."
  48. android:defaultValue="1000"
  49. android:inputType="number"
  50. />
  51. </PreferenceCategory>
  52. </PreferenceScreen>