Skip to content

Commit

Permalink
[gn + codesign] use join to concatenate (flutter#35474)
Browse files Browse the repository at this point in the history
  • Loading branch information
XilaiZhang authored Aug 18, 2022
1 parent 654f802 commit a77ead4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sky/tools/create_full_ios_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ def create_framework(

def embed_codesign_configuration(config_path, contents):
with open(config_path, 'w') as f:
f.writelines(contents)
f.write('\n'.join(contents) + '\n')


def zip_archive(dst):
ios_file_with_entitlements = ['gen_snapshot_arm64\n']
ios_file_with_entitlements = ['gen_snapshot_arm64']
ios_file_without_entitlements = [
'Flutter.xcframework/ios-arm64/Flutter.framework/Flutter\n',
'Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter\n'
'Flutter.xcframework/ios-arm64/Flutter.framework/Flutter',
'Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter'
]
embed_codesign_configuration(
os.path.join(dst, 'entitlements.txt'), ios_file_with_entitlements
Expand Down

0 comments on commit a77ead4

Please sign in to comment.