Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, 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
View
3  build_templates/blackberry/builder.py
@@ -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)
View
4 build_templates/blackberry/templates/bar-descriptor.xml
@@ -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.