cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From infil00p <...@git.apache.org>
Subject [GitHub] cordova-lib pull request #469: CB-8320: We look for a build.gradle to make s...
Date Thu, 28 Jul 2016 19:43:29 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message