Skip to content

Commit

Permalink
Update ReactNative build.gradle to use new dev server port property
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Feb 27, 2019
1 parent 729d671 commit 2549437
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ReactAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 2549437

Please sign in to comment.