Dev Server Helper
Helper class for all things about the debug server running in the engineer's host machine.
One can use 'debug_http_host' shared preferences key to provide a host name for the debug server. If the setting is empty we support and detect two basic configuration that works well for android emulators connection to debug server running on emulator's host:
- Android stock emulator with standard non-configurable local loopback alias: 10.0.2.2
- Genymotion emulator with default settings: 10.0.3.2
Constructors
Link copied to clipboard
constructor(developerSettings: DeveloperSettings, applicationContext: Context, packagerConnectionSettings: PackagerConnectionSettings)
Types
Link copied to clipboard
interface PackagerCommandListener
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun downloadBundleFromURL(callback: DevBundleDownloadListener, outputFile: File, bundleURL: String, @Nullable bundleInfo: BundleDownloader.BundleInfo)
open fun downloadBundleFromURL(callback: DevBundleDownloadListener, outputFile: File, bundleURL: String, @Nullable bundleInfo: BundleDownloader.BundleInfo, requestBuilder: Request.Builder)
Link copied to clipboard
This is a debug-only utility to allow fetching a file via packager.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Attempt to open the JS debugger on the host machine (on-device CDP debugging).
Link copied to clipboard
Link copied to clipboard
open fun openPackagerConnection(clientId: String, commandListener: DevServerHelper.PackagerCommandListener)