Skip to content

Commit

Permalink
Parse BlackBerry specific properties.
Browse files Browse the repository at this point in the history
[TIMOB-12815]
  • Loading branch information
Joshua Roesslein committed Mar 6, 2013
1 parent 9e8e7a8 commit 8608881
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions support/tiapp.py
Expand Up @@ -72,6 +72,7 @@ def __init__(self, file, parse_only=False):
self.app_properties = {}
self.android = {}
self.android_manifest = {}
self.blackberry = {}
self.iphone = {}
self.ios = {};

Expand Down Expand Up @@ -110,6 +111,8 @@ def __init__(self, file, parse_only=False):
self.properties['plugins'].append({'name':name,'version':ver})
elif child.nodeName == 'android':
self.parse_android(child)
elif child.nodeName == 'blackberry':
self.parse_blackberry(child)
elif child.nodeName == 'iphone':
self.parse_iphone(child)
elif child.nodeName == 'ios':
Expand Down Expand Up @@ -251,6 +254,10 @@ def parse_abi(node):
if child.nodeName in parse_tags:
local_objects['parse_'+child.nodeName.replace('-', '_')](child)

def parse_blackberry(self, node):
for child in node.childNodes:
self.blackberry[child.nodeName] = getText(child.childNodes)

def parse_iphone(self, node):
def translate_orientation(orientation):
info = orientation.split('.')
Expand Down

0 comments on commit 8608881

Please sign in to comment.