Skip to content

Commit 6f7ade1

Browse files
jr-kFacebook Github Bot 5
authored andcommitted
Add checkAndroid back
Summary: `checkAndroid` has been lost from my last PR. Finally... [Reminder: facebook#9190 and facebook#9448] I've created a new PR from this fresh new cloned repository. I think we're done with this one ! Closes facebook#9457 Differential Revision: D3731997 fbshipit-source-id: 4ec3285bc43093b23517a36fd952e9cfae832e37
1 parent 28768a7 commit 6f7ade1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

local-cli/runAndroid/runAndroid.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ const isPackagerRunning = require('../util/isPackagerRunning');
1616
const Promise = require('promise');
1717
const adb = require('./adb');
1818

19+
// Verifies this is an Android project
20+
function checkAndroid(root) {
21+
return fs.existsSync(path.join(root, 'android/gradlew'));
22+
}
23+
1924
/**
2025
* Starts the app on a connected Android emulator or device.
2126
*/

0 commit comments

Comments
 (0)