You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/03/25 07:28:09 UTC

[GitHub] [cordova-cli] sagrawal31 commented on issue #551: Add name of the project in .idea/.name for Android Studio

sagrawal31 commented on issue #551:
URL: https://github.com/apache/cordova-cli/issues/551#issuecomment-806427589


   We do it by adding this snippet in our hooks-
   
   ```javascript
   /**
    * Write the name of the app in "platforms/android/.idea/.name" so that Android Studio can show that name in the project listing.
    * This is just for a quick look in the Android Studio if we have so many projects in Android Studio.
    * @param partner
    */
   function addNameForAndroidStudio(partner, name) {
       const path = 'platforms/android/.idea/';
   
       fs.mkdirSync(path)
       fs.writeFileSync(path + '.name', name);
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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