cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From filmaj <>
Subject [GitHub] cordova-android pull request #384: CB-11244: Studio project cleanup
Date Fri, 23 Jun 2017 20:23:15 GMT
Github user filmaj commented on a diff in the pull request:
    --- Diff: bin/templates/cordova/Api.js ---
    @@ -81,10 +83,13 @@ function Api(platform, platformRootDir, events) {
         // XXX Override some locations for Android Studio projects
         if(AndroidStudio.isAndroidStudioProject(self.root) === true) {
           selfEvents.emit('log', 'Android Studio project detected');
    +      this.builder='studio';
           this.android_studio = true;
           this.locations.configXml = path.join(self.root, 'app/src/main/res/xml/config.xml');
    -      this.locations.strings = path.join(self.root, 'app/src/main/res/xml/strings.xml');
    +      this.locations.strings = path.join(self.root, 'app/src/main/res/values/strings.xml');
           this.locations.manifest = path.join(self.root, 'app/src/main/AndroidManifest.xml');
    +      //We could have Java Source, we could have other languages
    +      this.locations.javaSrc = path.join(self.root, 'app/src/main/java/');
    --- End diff --
    Same sort of deal, we could push the responsibility for figuring out the locations to
the builders, rather than have the Api function worry about each possible implementation of
a project structure.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message