mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
parent
011b57da54
commit
94e9bd5e26
3
bin/templates/cordova/lib/AndroidStudio.js
vendored
3
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', 'project.properties', 'platform_www'];
|
var eclipseFiles = ['AndroidManifest.xml', 'libs', 'res', 'project.properties', 'platform_www'];
|
||||||
var androidStudioFiles = ['app', 'gradle', 'build', 'app/src/main/res'];
|
var androidStudioFiles = ['app', 'gradle', 'app/src/main/res'];
|
||||||
|
|
||||||
// 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;
|
||||||
@ -33,6 +33,7 @@ module.exports.isAndroidStudioProject = function isAndroidStudioProject(root) {
|
|||||||
if(!isEclipse) {
|
if(!isEclipse) {
|
||||||
androidStudioFiles.forEach(function(file){
|
androidStudioFiles.forEach(function(file){
|
||||||
if(!fs.existsSync(path.join(root, file))) {
|
if(!fs.existsSync(path.join(root, file))) {
|
||||||
|
console.log('missing file :: ' + file);
|
||||||
isAS = false;
|
isAS = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user