From 7794f07c618a300d045d92793bee60be26104789 Mon Sep 17 00:00:00 2001 From: grabbou Date: Thu, 13 Feb 2020 23:40:38 +0100 Subject: [PATCH 1/3] fix: machines where shebang doesnt work --- packages/platform-android/native_modules.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/platform-android/native_modules.gradle b/packages/platform-android/native_modules.gradle index 73c3f2344..72d83e388 100644 --- a/packages/platform-android/native_modules.gradle +++ b/packages/platform-android/native_modules.gradle @@ -195,7 +195,7 @@ class ReactNativeModules { def cliResolveScript = "console.log(require('@react-native-community/cli').bin);" def cliPath = this.getCommandOutput("node -e ${cliResolveScript}") - def reactNativeConfigCommand = "${cliPath} config" + def reactNativeConfigCommand = "node ${cliPath} config" def reactNativeConfigOutput = this.getCommandOutput(reactNativeConfigCommand) From 6cfc351981b3652100f3c957006bdbd584df635f Mon Sep 17 00:00:00 2001 From: grabbou Date: Thu, 13 Feb 2020 23:46:39 +0100 Subject: [PATCH 2/3] fix: update --- packages/platform-android/native_modules.gradle | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/platform-android/native_modules.gradle b/packages/platform-android/native_modules.gradle index 72d83e388..08a2159ba 100644 --- a/packages/platform-android/native_modules.gradle +++ b/packages/platform-android/native_modules.gradle @@ -195,9 +195,7 @@ class ReactNativeModules { def cliResolveScript = "console.log(require('@react-native-community/cli').bin);" def cliPath = this.getCommandOutput("node -e ${cliResolveScript}") - def reactNativeConfigCommand = "node ${cliPath} config" - - def reactNativeConfigOutput = this.getCommandOutput(reactNativeConfigCommand) + def reactNativeConfigOutput = this.getCommandOutput("node ${cliPath} config") def json try { From 584b67f76a3677873922189e9e751826a8b996e0 Mon Sep 17 00:00:00 2001 From: grabbou Date: Thu, 13 Feb 2020 23:48:29 +0100 Subject: [PATCH 3/3] fix: revert that change --- packages/platform-android/native_modules.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/platform-android/native_modules.gradle b/packages/platform-android/native_modules.gradle index 08a2159ba..72d83e388 100644 --- a/packages/platform-android/native_modules.gradle +++ b/packages/platform-android/native_modules.gradle @@ -195,7 +195,9 @@ class ReactNativeModules { def cliResolveScript = "console.log(require('@react-native-community/cli').bin);" def cliPath = this.getCommandOutput("node -e ${cliResolveScript}") - def reactNativeConfigOutput = this.getCommandOutput("node ${cliPath} config") + def reactNativeConfigCommand = "node ${cliPath} config" + + def reactNativeConfigOutput = this.getCommandOutput(reactNativeConfigCommand) def json try {