Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 06, 2013
Joshua Roesslein Support setting orientation via tiapp.xml.
Expose a BlackBerry specific property to allow developers
to set the orientation property in the generated bar-descriptor file.
This allows for locking the orientation or allow "auto" orient behavior.

[TIMOB-12815]
4ea2b37
Joshua Roesslein Merge branch 'TIMOB-12815' fff9f5e
3  build_templates/blackberry/builder.py
View
@@ -94,7 +94,8 @@ def run(self, ipAddress = None, password = None, debugToken = None, storePass =
'author':(self.tiappxml.properties['publisher'] or 'not specified'),
'category':'core.games',
'icon':'assets/%s' %(self.tiappxml.properties['icon'] or 'appicon.png'),
- 'splashScreens':splashScreens
+ 'splashScreens':splashScreens,
+ 'orientation': self.tiappxml.blackberry.get('orientation', 'default')
}
try:
Blackberry.renderTemplate(os.path.join(self.buildDir,'bar-descriptor.xml'), newConfig)
4 build_templates/blackberry/templates/bar-descriptor.xml
View
@@ -44,7 +44,11 @@
<!-- <authorId>ABC1234YjsnUk235h</authorId> -->
<initialWindow>
+ % if config['orientation'] == 'auto':
<autoOrients>true</autoOrients>
+ % elif config['orientation'] != 'default':
+ <aspectRatio>${config['orientation']}</aspectRatio>
+ % endif
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>

No commit comments for this range

Something went wrong with that request. Please try again.