mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Updated AndroidStudio to only look for the app directory to determine studio status
This commit is contained in:
parent
e621edfba7
commit
bd4ddcdedd
2
bin/templates/cordova/lib/AndroidStudio.js
vendored
2
bin/templates/cordova/lib/AndroidStudio.js
vendored
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user