Skip to content

Commit c9dfb1c

Browse files
committed
Improve generate_xcframework.py indentation.
1 parent 7f053b7 commit c9dfb1c

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/scripts/generate_xcframework.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,11 @@ def run(config: ScriptConfig):
7070
'xcodebuild',
7171
'archive',
7272
'-verbose',
73-
'-project',
74-
xcode_project_path,
75-
'-scheme',
76-
'LDKFramework',
77-
'-destination',
78-
f'generic/platform={current_destination}',
79-
'-derivedDataPath',
80-
derived_data_directory,
81-
'-archivePath',
82-
xcarchive_output_path,
73+
'-project', xcode_project_path,
74+
'-scheme', 'LDKFramework',
75+
'-destination', f'generic/platform={current_destination}',
76+
'-derivedDataPath', derived_data_directory,
77+
'-archivePath', xcarchive_output_path,
8378
'ENABLE_BITCODE=NO',
8479
'EXCLUDED_ARCHS="i386 armv7"',
8580
'SKIP_INSTALL=NO',
@@ -94,12 +89,18 @@ def run(config: ScriptConfig):
9489
shutil.rmtree(derived_data_directory)
9590

9691
# XCFRAMEWORK_INPUT_FLAGS="${XCFRAMEWORK_INPUT_FLAGS}-framework ${CURRENT_ARCHIVE_PATH}.xcarchive/Products/Library/Frameworks/LDKFramework.framework "
97-
framework_input_flags += ['-framework', f'{xcarchive_output_path}.xcarchive/Products/Library/Frameworks/LDKFramework.framework']
92+
framework_input_flags += [
93+
'-framework',
94+
f'{xcarchive_output_path}.xcarchive/Products/Library/Frameworks/LDKFramework.framework'
95+
]
9896

9997
# xcodebuild -create-xcframework ${XCFRAMEWORK_INPUT_FLAGS} -output ${XCFRAMEWORK_OUTPUT_PATH}"
10098
if os.path.exists(xcframework_output_path):
10199
shutil.rmtree(xcframework_output_path)
102-
subprocess.check_call(['xcodebuild', '-create-xcframework', *framework_input_flags, '-output', xcframework_output_path])
100+
101+
subprocess.check_call(
102+
['xcodebuild', '-create-xcframework', *framework_input_flags, '-output', xcframework_output_path]
103+
)
103104

104105

105106
if __name__ == '__main__':

0 commit comments

Comments
 (0)