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 in ti_args #12

Closed emiloberg closed 9 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
emiloberg commented 9 years ago

Mea culpa! I accidentally opened a pull request from my master instead of a branch. Closing this and opened a new PR; #13