Closed emiloberg closed 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:
ios
android
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
Mea culpa! I accidentally opened a pull request from my master instead of a branch. Closing this and opened a new PR; #13
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
andandroid
) doubles as the platform names: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:
and then use it as