Github user filmaj commented on a diff in the pull request:

    https://github.com/apache/cordova-android/pull/384#discussion_r123835148
  
    --- 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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to