nix: fix passing of env vars to release-android expression

This commit is contained in:
Pedro Pombeiro 2019-11-13 12:01:48 +01:00
parent 2ed62e53eb
commit a71500b312
No known key found for this signature in database
GPG Key ID: C4A24185B2AA48A1
2 changed files with 5 additions and 7 deletions

View File

@ -317,10 +317,10 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
String finalConfig = prepareDirAndUpdateConfig(config); String finalConfig = prepareDirAndUpdateConfig(config);
String result = Statusgo.saveAccountAndLogin(accountData, password, finalConfig, subAccountsData); String result = Statusgo.saveAccountAndLogin(accountData, password, finalConfig, subAccountsData);
if (result.startsWith("{\"error\":\"\"")) { if (result.startsWith("{\"error\":\"\"")) {
Log.d(TAG, "StartNode result: " + result); Log.d(TAG, "saveAccountAndLogin result: " + result);
Log.d(TAG, "Geth node started"); Log.d(TAG, "Geth node started");
} else { } else {
Log.e(TAG, "StartNode failed: " + result); Log.e(TAG, "saveAccountAndLogin failed: " + result);
} }
} }
@ -330,10 +330,10 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
String finalConfig = prepareDirAndUpdateConfig(config); String finalConfig = prepareDirAndUpdateConfig(config);
String result = Statusgo.saveAccountAndLoginWithKeycard(accountData, password, finalConfig, chatKey); String result = Statusgo.saveAccountAndLoginWithKeycard(accountData, password, finalConfig, chatKey);
if (result.startsWith("{\"error\":\"\"")) { if (result.startsWith("{\"error\":\"\"")) {
Log.d(TAG, "StartNode result: " + result); Log.d(TAG, "saveAccountAndLoginWithKeycard result: " + result);
Log.d(TAG, "Geth node started"); Log.d(TAG, "Geth node started");
} else { } else {
Log.e(TAG, "StartNode failed: " + result); Log.e(TAG, "saveAccountAndLoginWithKeycard failed: " + result);
} }
} }

View File

@ -7,9 +7,7 @@ source "$_current_dir/lib/setup/path-support.sh"
source_lib "platform.sh" source_lib "platform.sh"
nixOpts=( nixOpts=(
"--arg env {BUILD_ENV=\"${BUILD_ENV}\";}" "--arg env {BUILD_ENV=\"${BUILD_ENV}\";ANDROID_ABI_SPLIT=\"${ANDROID_ABI_SPLIT}\";ANDROID_ABI_INCLUDE=\"${ANDROID_ABI_INCLUDE}\";}"
"--arg env {ANDROID_ABI_SPLIT=\"${ANDROID_ABI_SPLIT}\";}"
"--arg env {ANDROID_ABI_INCLUDE=\"${ANDROID_ABI_INCLUDE}\";}"
"--argstr build-type ${BUILD_TYPE}" "--argstr build-type ${BUILD_TYPE}"
"--argstr build-number ${BUILD_NUMBER}" "--argstr build-number ${BUILD_NUMBER}"
"--argstr keystore-file ${STORE_FILE}" "--argstr keystore-file ${STORE_FILE}"