Skip to content

Commit

Permalink
Remove unneeded files from shim layer
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlocke committed Oct 2, 2024
1 parent d8d54d7 commit 8329a14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stone/backends/swift_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def generate(self, api):

self._generate_client(api)
self._generate_request_boxes(api)
if not self.args.objc:
if not self.args.objc and not self.args.objc_shim:
self._generate_reconnection_helpers(api)

# Argument cast when mapping a legacy objc route to an objc route
Expand Down
2 changes: 1 addition & 1 deletion stone/backends/swift_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class SwiftTypesBackend(SwiftBaseBackend):
cmdline_parser = _cmdline_parser
def generate(self, api):
rsrc_folder = os.path.join(os.path.dirname(__file__), 'swift_rsrc')
if not self.args.objc:
if not self.args.objc and not self.args.objc_shim:
self.logger.info('Copying StoneValidators.swift to output folder')
shutil.copy(os.path.join(rsrc_folder, 'StoneValidators.swift'),
self.target_folder_path)
Expand Down

0 comments on commit 8329a14

Please sign in to comment.