I was wondering if there was an easy way to build different apps using the same sources.
I’d actually like to be able to build the app in “development mode” i.e. with a different name / id, so there would be two icons (app in devel and app in production).
It’s really not about the storage or the app configuration (like URLs and stuff), that can be handled dynamically or with a hook.
I just find it more convenient to keep the “production” app installed while I can keep developing another version aside.
I’ve tried to get this working by having a config.xml.tmpl and a before_prepare hook which replaces name and id, but it cannot work this way, the platform-dependent sources seems to be generated when the platform is added. Moreover the config.xml is copied even before the before_prepare hooks to run
Thanks but that’s not really what I’m looking for.
It generates a different application config depending on the environment, but at the end the config is embedded in the application just like an updated source file, and it builds the same app (same name and same bundle id).
I already use the same approach to handle a development / production mode.
Now, I’d just like to be able to build two different apps so I could launch one or the other, keeping a clean production version installed.