dbankier / JAST

JAST is a boilerplate with a mash of tools for rapid Alloy development
91 stars 15 forks source link

Added possibility to add multiple targets (e.g. one for ipad2, one for iphone5, one for iphone6 etc) in ti_args #13

Closed emiloberg closed 8 years ago

emiloberg commented 9 years ago

This small patch adds the possibility to add multiple targets in ti_args (e.g one for ipad2, one for iphone5, one for iphone6 etc).

Currently, the property names (ios and android) doubles as the platform names:

var ti_args= {
  ios: ['-p','ios','-T', 'simulator', '--device-id','F2B9C750-6BCC-4BC0-8CE8-A5D1FA30A036'],
  android: ['-p','android', '-T','device'],
  default: ['-p','ios'] 
};

This pull request changes this so that the platform names are fetched from the second value in the value array. This makes it possible to define targets such as:

var ti_args= {
  iphone5: ['-p','ios','-T', 'simulator', '--device-id','AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE'],
  iphone6: ['-p','ios','-T', 'simulator', '--device-id','FFFFFFFF-GGGG-HHHH-IIII-JJJJJJJJJJJJ'],
  ipad2: ['-p','ios','-T', 'simulator', '--device-id','KKKKKKKK-LLLL-MMMM-NNNN-OOOOOOOOOOOO'],
  android: ['-p','android', '-T','device'],
  default: ['-p','ios'] 
};

and then use it as

grunt dev -p iphone6
dbankier commented 8 years ago

Sorry for the loooong delay. Ignored this project for a bit. Thanks.