Revert "Check if the supported version (10e) of Android NDK is installed"

This reverts commit a3795fdfb0.
This commit is contained in:
Ashwin Phatak 2017-08-22 15:49:32 +05:30
parent e6c2bdee6e
commit 9ab5468d1f
1 changed files with 1 additions and 24 deletions

View File

@ -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.
});