theappbusiness / ConfigGenerator

Configuration file code generator for use in Xcode projects
MIT License
157 stars 19 forks source link

create plist helper #2

Open akaralar opened 8 years ago

akaralar commented 8 years ago

Hey,

Thanks for this nice tool, and the writeup in your blog is also detailed and wants me to use your configuration :) I was wondering if it would be possible to create the plist files as the mapping file already gives us the keys. Having to enter the keys once for each build config feels cumbersome, maybe a helper command could create the plist files with keys but empty values for valid configurations in the project, and the user only populates the plists with the appropriate values, without touching the keys? and then the main configen script would be run the prepare the .swift files.

samdods commented 7 years ago

It would be feasible to provide a tool that creates a single Plist with all the keys from the mapping file. for additional Plists for additional environments, it would be better to copy the contents of the generated Plist. I don't think it would be robust to create a separate Plist based on schemes, because people often have different schemes for which they wouldn't want a Plist generated.

An alternative would be to provide the output files required as so:

configen --autogen-plists DEV,TEST,UAT,PROD --hints-path AppConfig.map
KaneCheshire commented 7 years ago

Issue #2: create plist helper