fixes library.references missing new line on newer project.properties

This commit is contained in:
Mathieu Virbel 2017-05-05 18:31:11 +02:00
parent 1d7fca59bf
commit 1c469abb46

View file

@ -820,6 +820,8 @@ class TargetAndroid(Target):
# recreate the project.properties
with io.open(project_fn, 'w', encoding='utf-8') as fd:
fd.writelines((line.encode('utf-8') for line in content))
if not content[-1].endswith(u'\n'):
fd.write(u'\n')
for index, ref in enumerate(references):
fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))