From 9ab5468d1fa13bb7a48b40f28db887c25779eee1 Mon Sep 17 00:00:00 2001 From: Ashwin Phatak Date: Tue, 22 Aug 2017 15:49:32 +0530 Subject: [PATCH] Revert "Check if the supported version (10e) of Android NDK is installed" This reverts commit a3795fdfb052258492b80c76ec9572e263c322fb. --- scripts/check-environment.js | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/scripts/check-environment.js b/scripts/check-environment.js index f01ff449..b41a4cfa 100644 --- a/scripts/check-environment.js +++ b/scripts/check-environment.js @@ -54,29 +54,6 @@ exec('npm --version', (err, stdout) => { validateEnvPath('REALM_CORE_PREFIX'); validateEnvPath('REALM_SYNC_PREFIX'); - // Check ANDROID_NDK version - exec('which ndk-build', (err, stdout) => { - if(err) { - console.error("Android NDK (ndk-build) not found"); - console.error(err.message); - process.exit(-1); - } + // TODO: Check ANDROID_NDK and SDK for Android, and XCode for iOS. - const ndkBuildPath = stdout.trim(); - const ndkDirPath = path.dirname(ndkBuildPath); - const releaseTxtPath = path.join(ndkDirPath, "RELEASE.TXT"); - - exec(`grep ^r10e ${releaseTxtPath}`, (err, stdout) => { - if(err) { - // RELEASE.TXT doesn't exist or version mismatch - console.error("Incompatible Android NDK version found. NDK 10e is required.") - process.exit(-1); - } - - successLog('Android NDK 10e found'); - }); - }); - - // TODO: Check SDK for Android, and XCode for iOS. - });