Github user infil00p commented on a diff in the pull request:
https://github.com/apache/cordova-lib/pull/469#discussion_r72688890
--- Diff: cordova-lib/src/cordova/metadata/android_parser.js ---
@@ -31,14 +31,20 @@ var fs = require('fs'),
function android_parser(project) {
- if (!fs.existsSync(path.join(project, 'AndroidManifest.xml'))) {
+ if (!fs.existsSync(path.join(project, 'build.gradle'))) {
throw new CordovaError('The provided path "' + project + '" is not
an Android project.');
}
// Call the base class constructor
Parser.call(this, 'android', project);
this.path = project;
+
+ //If we have a gradle file but not a manifest, this is an Android
Studio project
+ if(!fs.existsSync(path.join(project, "AndroidManifest.xml"))) {
--- End diff --
This just reminds me of how much I hate lint and Javascript.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]