Merge pull request #489 from r-map/master

close #452 as suggested by SpotlightKid
This commit is contained in:
Mathieu Virbel 2017-05-01 15:12:15 +02:00 committed by GitHub
commit 1d7fca59bf

View file

@ -819,10 +819,9 @@ class TargetAndroid(Target):
# recreate the project.properties
with io.open(project_fn, 'w', encoding='utf-8') as fd:
fd.writelines(content)
fd.writelines((line.encode('utf-8') for line in content))
for index, ref in enumerate(references):
fd.write(u'android.library.reference.{}={}\n'.format(index + 1,
ref))
fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))
self.buildozer.debug('project.properties updated')