Реализовал поддержку команд выставления множественных значений в Info.Plist
This commit is contained in:
parent
810ab396d7
commit
298e0a41bd
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue