Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ internal object AgpConfiguratorUtils {
}

fun configureDevServerLocation(project: Project) {
val devServerIp =
project.properties["reactNativeDevServerIp"]?.toString() ?: getHostIpAddress()
val devServerPort =
project.properties["reactNativeDevServerPort"]?.toString() ?: DEFAULT_DEV_SERVER_PORT

Expand All @@ -100,7 +102,7 @@ internal object AgpConfiguratorUtils {
ext.defaultConfig.resValue(
"string",
"react_native_dev_server_ip",
getHostIpAddress(),
devServerIp,
)
ext.defaultConfig.resValue("integer", "react_native_dev_server_port", devServerPort)
}
Expand Down
Loading