How to build one Application for different branches and app bundles #2152
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceI have one configured application in codemagic. And I would like to start build of this application for my different branches and bundles. In nutshell, I have one codebase, but for every my customer I create new branch with his branded application. So I wanted to use codemagic to build my different branches for different bundles and publish application updates to App Store and Google Play. Is this possible? Expected resultsFor example, I want to have API like: In your documentation I didn't find 'bundle' parameter for /builds API call (https://docs.codemagic.io/rest-api/builds/) Thanks in advance Actual resultsno Build id (optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @bobandrew here's an example on how you would trigger multiple builds for multiple branches
is the bundleID essential in your case if the workflowId(or a branch name) is different for every customer? |
Beta Was this translation helpful? Give feedback.
-
I'm tentatively closing the discussion due to a lack of activity. You can open the discussion again by replying to this message or opening a new discussion. |
Beta Was this translation helpful? Give feedback.
Hi @bobandrew, sounds like you are white-labeling your app. In a nutshell, what you need is to store your client assets in a bucket, could be any of your preference (S3, GCP, Firebase etc.) then you will allow these assets to be downloaded during a build and by providing a client id, you will target a specific client assets to be downloaded. Then, they will replace the one that you have in your original repo by default. You will need to create environment variable groups that hold hold each client's specific env vars such as
BUNDLE_ID
: