const fs = require('fs')
const path = require('path')

/**
 * Verifies this is an Android project
 * @param {String} root directory path
 */
function checkAndroid(cwd) {
  return fs.existsSync(path.join(cwd, 'android/bin/gradlew'))
}

module.exports = {
  checkAndroid,
}

@@ -232,41 +232,457 @@
 %0A%7D%0A%0A
-module.exports = %7B%0A  checkAndroid
+/**%0A * Check if current cli is running on Windows platform%0A */%0Afunction isOnWindows() %7B%0A  return /%5Ewin/.test(process.platform)%0A%7D%0A%0A/**%0A * Check if current cli is running on OSX platform%0A */%0Afunction isOnMac() %7B%0A  return process.platform === 'darwin'%0A%7D%0A%0A/**%0A * Check if current cli is running on Linux platform%0A */%0Afunction isOnLinux() %7B%0A  return process.platform === 'linux'%0A%7D%0A%0Amodule.exports = %7B%0A  checkAndroid,%0A  isOnWindows,%0A  isOnMac,%0A  isOnLinux
 ,%0A%7D%0A

add platform detection in utils