Реализовал поддержку команд выставления множественных значений в Info.Plist

This commit is contained in:
rzaitov 2013-11-13 13:34:04 +04:00
parent 810ab396d7
commit 298e0a41bd
3 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class PatchInfoPlistArrayCommandBuilder:
path = result[0]
key = result[1]
value = result[2]
value = parser.values
command = PatchInfoPlistCommand(path, key, value)
return command

View File

@ -1,6 +1,6 @@
from CommandBuilders.PatchInfoPlistArrayCommandBuilder import PatchInfoPlistArrayCommandBuilder
line = "inside 'BuildSample/BuildSample/Info.plist' set UISupportedInterfaceOrientations to 'value1:value2:value3'"
line = "inside 'BuildSample/BuildSample/Info.plist' set UISupportedInterfaceOrientations with values 'value1:value2:value3'"
cmdBuilder = PatchInfoPlistArrayCommandBuilder()
command = cmdBuilder.getCommandFor(line)

View File

@ -61,7 +61,8 @@ class InfoPlistPatcher():
arrayElement = dict_element[valuesIndex]
children = arrayElement.findall('string')
arrayElement.remove(children)
for ch in children:
arrayElement.remove(ch)
self.fillArrayElementWithValues(arrayElement, valueArr)