@mendix/native 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -311,10 +311,10 @@ class MendixModules {
311
311
  * Runs a specified command using Runtime exec() in a specified directory.
312
312
  * Throws when the command result is empty.
313
313
  */
314
- String getCommandOutput(String[] command) {
314
+ String getCommandOutput(String[] command, File directory) {
315
315
  try {
316
316
  def output = ""
317
- def cmdProcess = Runtime.getRuntime().exec(command)
317
+ def cmdProcess = Runtime.getRuntime().exec(command, null, directory)
318
318
  def bufferedReader = new BufferedReader(new InputStreamReader(cmdProcess.getInputStream()))
319
319
  def buff = ""
320
320
  def readBuffer = new StringBuffer()
@@ -348,7 +348,7 @@ class MendixModules {
348
348
  ArrayList<HashMap<String, String>> reactNativeModules = new ArrayList<HashMap<String, String>>()
349
349
 
350
350
  String[] reactNativeConfigCommand = [this.cliBinPath, "config"]
351
- def reactNativeConfigOutput = this.getCommandOutput(reactNativeConfigCommand)
351
+ def reactNativeConfigOutput = this.getCommandOutput(reactNativeConfigCommand, new File(this.rootDir))
352
352
 
353
353
  def json
354
354
  try {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mendix/native",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "copyright": "© Mendix Technology BV. All rights reserved.",
5
5
  "files": [
6
6
  "android/",