Permalink
Browse files

Add `checkAndroid` back

Summary:
`checkAndroid` has been lost from my last PR. Finally...

[Reminder: #9190 and #9448]

I've created a new PR from this fresh new cloned repository. I think we're done with this one !
Closes #9457

Differential Revision: D3731997

fbshipit-source-id: 4ec3285bc43093b23517a36fd952e9cfae832e37
  • Loading branch information...
1 parent 28768a7 commit 6f7ade1b0f9ee65ce258207fbeeed32fa0e23e69 @jr-k jr-k committed with Facebook Github Bot 5 Aug 18, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 local-cli/runAndroid/runAndroid.js
@@ -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.
*/

0 comments on commit 6f7ade1

Please sign in to comment.