Appcelerator - multiple apps same codebase -
i create ios app using appcelerator, , create multiple forks, each fork having few differences, colors, logos, etc. config file can sort out differences, , different results come api.
but can have same codebase multiple apps? in native android, you'd use gradle , product flavours? options there in appcelerator?
down line, these apps need updated. ideally, "core" app should updated , forks pickup differences. how done?
you can have 1 app multiple alloy themes, , set theme want before build version of app, set theme, add line "theme":"yourtheme3" @ "global" property of app/config.json
your themes placed in e.g. app/themes/yourtheme7
each theme have config.json set specific properties, can have specific assets, controllers, views, etc...
you can value of property of config.json this:
alloy.cfg.yourproperty
there things have manually:
change id or name of app (tiapp.xml) or use this: tich(ange)- change tiapp.xml properties via cli building multiple apps 1 codebase
check out page of documentation alloy themes: http://docs.appcelerator.com/platform/latest/#!/guide/alloy_styles_and_themes
Comments
Post a Comment