I'm trying to manage my React Native app project (CRNA ejected) using different package names so I can release/test different flavors:
com.mydomain.internal
com.mydomain.alpha
com.mydomain.beta
Ideally, I want to develop & test com.mydomain.internal
app package on my git master branch, and push the change to alpha
branch (this branch should build com.mydomain.alpha
package), and then push the change to beta
branch where it should build com.mydomain.beta
app package.
I want to avoid manually change the package names for every release because it touches a lot of files and could easily break things. I'm wondering if there's a good way to help me maintain/update multiple app flavors/versions like above. If icons can be changed too, please also point that out, so that I can create different icons for different flavors.
(I was thinking about config the manifests and read the package name from a static file, but doesn't seem to work)
Thanks!