fcamblor opened a new issue #560:
URL: https://github.com/apache/cordova-cli/issues/560


   # Feature Request
   
   ## Motivation Behind Feature
   On my project, a `cordova prepare` step can take a lot of time (mainly 
because of cocoapods which takes minutes to install all required dependencies 
for some of my plugins)
   
   At the same time, I have the need to generate multiple flavours of the same 
app id (see it as a white-labelled app) based on exactly the same source code.
   
   Currently, I am updating app id in `config.xml` and generating my whole 
build (`cordova prepare` then `cordova run android --device --release`) but it 
takes *a lot* of time only for a simple key change.
   
   I was wondering if a CLI command allowing to perform this, either after we 
ran `cordova prepare` or, still better, to update and re-sign the generated 
artefacts (ipa, apk, aab and so on) after their generation would be a feature 
worth to consider in the CLI ?
   
   I know there was some other issues on the same topic in the past here : #463 
and #528 (and I looked at @dpogue 's 
[seymour](https://www.npmjs.com/package/seymour)) but for me, this is a 
different feature here (but I'm aware this won't be something easier than the 
other issues... I suppose this may require a lot of changes from platforms to 
take care of this CLI change)
   
   
   
   ## Feature Description
   
   A CLI allowing to change app id on either the workspace, or an artefact : 
   ```
   cordova update-appid android --to=my-new-app-id
   cordova update-artefact-appid android --packageType=apk-release 
--artefact=./platforms/android/app/build/outputs/apk/app-release.apk 
--to=my-new-app-id
   ```
   
   I don't see this breaking things as this would be a new command.
   However, this new command would have to be taken into consideration in the 
Platforms CLI API as every platform (and potentially, plugins) may use the app 
id in their files generation (even file names may be considered so ... 
potentially a lot of side effects to take into consideration)
   
   
   ## Alternatives or Workarounds
   
   Current workaround is to `sed` into `config.xml`, then `cordova clean && 
cordova prepare && cordova run` again (which takes a looooot of time in my CI.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to