Updated AndroidStudio to only look for the app directory to determine studio status

This commit is contained in:
Joe Bowser 2017-04-21 17:02:27 -07:00
parent e621edfba7
commit bd4ddcdedd

View File

@ -12,7 +12,7 @@ var CordovaError = require('cordova-common').CordovaError;
module.exports.isAndroidStudioProject = function isAndroidStudioProject(root) { module.exports.isAndroidStudioProject = function isAndroidStudioProject(root) {
var eclipseFiles = ['AndroidManifest.xml', 'libs', 'res']; var eclipseFiles = ['AndroidManifest.xml', 'libs', 'res'];
var androidStudioFiles = ['app', 'gradle', 'app/src/main/res']; var androidStudioFiles = ['app', 'app/src/main'];
// assume it is an AS project and not an Eclipse project // assume it is an AS project and not an Eclipse project
var isEclipse = false; var isEclipse = false;