From 2549437ff58a94852770ee3c1972c3dec56a5a96 Mon Sep 17 00:00:00 2001 From: Nate Hunzaker Date: Wed, 27 Feb 2019 10:06:56 -0800 Subject: [PATCH] Update ReactNative build.gradle to use new dev server port property --- ReactAndroid/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 296627ffbd4170..2ad90f27b0acfa 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -203,8 +203,8 @@ def findNdkBuildFullPath() { return null } -def debugHostPort(String defaultValue){ - def value = project.getProperties().get("debugHostPort") +def reactNativeDevServerPort(String defaultValue) { + def value = project.getProperties().get("reactNativeDevServerPort") return value != null ? value : defaultValue } @@ -292,7 +292,7 @@ android { buildConfigField("boolean", "IS_INTERNAL_BUILD", "false") buildConfigField("int", "EXOPACKAGE_FLAGS", "0") - resValue "integer", "react_native_dev_server_port", "8081" + resValue "integer", "react_native_dev_server_port", reactNativeDevServerPort("8081") testApplicationId("com.facebook.react.tests.gradle") testInstrumentationRunner("android.support.test.runner.AndroidJUnitRunner")