Skip to content

Commit

Permalink
Merge pull request #4594 from ayeung/timob-14922-3_1_X
Browse files Browse the repository at this point in the history
TIMOB-14922-3_1_X: Reverted fix to omit tiapp.xml from bin/assets which caused full rebuilds every time
  • Loading branch information
pingwang2011 committed Aug 21, 2013
2 parents 8d7e12e + 56ace8e commit 652bacd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion support/android/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,14 @@ def render(self, template_dir, template_file, dest, dest_file, **kwargs):

def build_app_info(self, project_dir):
tiapp = ElementTree()
assets_tiappxml = os.path.join(project_dir, 'build', 'android', 'bin', 'assets', 'tiapp.xml')

self.app_info = {'fullscreen':'false','navbar-hidden':'false'}
self.app_properties = {}
if not os.path.exists(assets_tiappxml):
shutil.copy(os.path.join(project_dir, 'tiapp.xml'), assets_tiappxml)

tiapp.parse(open(os.path.join(project_dir, 'tiapp.xml'), 'r'))
tiapp.parse(open(assets_tiappxml, 'r'))
for key in ['id', 'name', 'version', 'publisher', 'url', 'copyright',
'description', 'icon', 'analytics', 'guid', 'navbar-hidden', 'fullscreen']:
el = tiapp.find(key)
Expand Down
4 changes: 3 additions & 1 deletion support/android/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,9 @@ def build_and_run(self, install, avd_id, keystore=None, keystore_pass='tirocks',
if not os.path.exists(self.assets_resources_dir):
os.makedirs(self.assets_resources_dir)

self.tiapp = TiAppXML(self.project_tiappxml)
shutil.copy(self.project_tiappxml, self.assets_dir)
finalxml = os.path.join(self.assets_dir,'tiapp.xml')
self.tiapp = TiAppXML(finalxml)
self.tiapp.setDeployType(deploy_type)
self.sdcard_copy = False
sdcard_property = "ti.android.loadfromsdcard"
Expand Down

0 comments on commit 652bacd

Please sign in to comment.