/** @return the host to use when connecting to the bundle server. */
  private String getDebugServerHost() {
    // Check debug server host setting first. If empty try to detect emulator type and use default
    // hostname for those
    String hostFromSettings = mSettings.getDebugServerHost();

    if (!TextUtils.isEmpty(hostFromSettings)) {
      return Assertions.assertNotNull(hostFromSettings);
    }

    String host = AndroidInfoHelpers.getServerHost();

    if (host.equals(AndroidInfoHelpers.DEVICE_LOCALHOST)) {
      FLog.w(
          ReactConstants.TAG,
          "You seem to be running on device. Run 'adb reverse tcp:8081 tcp:8081' "
              + "to forward the debug server's port to the device.");
    }

    return host;
  }
 /** @return whether we should request minified JS bundles. */
 private boolean getJSMinifyMode() {
   return mSettings.isJSMinifyEnabled();
 }
 /** @return whether we should enabled HMR when requesting JS bundles. */
 private boolean getHMR() {
   return mSettings.isHotModuleReplacementEnabled();
 }
 /** @return whether we should enable dev mode when requesting JS bundles. */
 private boolean getDevMode() {
   return mSettings.isJSDevModeEnabled();
 }