Add `checkAndroid` back
Summary: `checkAndroid` has been lost from my last PR. Finally... [Reminder: https://github.com/facebook/react-native/pull/9190 and https://github.com/facebook/react-native/pull/9448] I've created a new PR from this fresh new cloned repository. I think we're done with this one ! Closes https://github.com/facebook/react-native/pull/9457 Differential Revision: D3731997 fbshipit-source-id: 4ec3285bc43093b23517a36fd952e9cfae832e37
This commit is contained in:
parent
28768a715f
commit
6f7ade1b0f
|
@ -16,6 +16,11 @@ const isPackagerRunning = require('../util/isPackagerRunning');
|
|||
const Promise = require('promise');
|
||||
const adb = require('./adb');
|
||||
|
||||
// Verifies this is an Android project
|
||||
function checkAndroid(root) {
|
||||
return fs.existsSync(path.join(root, 'android/gradlew'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts the app on a connected Android emulator or device.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue