Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating app id on an already cordova-prepare-d workspace #560

Open
fcamblor opened this issue Jul 1, 2021 · 0 comments
Open

Updating app id on an already cordova-prepare-d workspace #560

fcamblor opened this issue Jul 1, 2021 · 0 comments

Comments

@fcamblor
Copy link

fcamblor commented Jul 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant