diff --git a/Sources/FigmaExport/Subcommands/ExportColors.swift b/Sources/FigmaExport/Subcommands/ExportColors.swift index d0e33cb1..56dd6864 100644 --- a/Sources/FigmaExport/Subcommands/ExportColors.swift +++ b/Sources/FigmaExport/Subcommands/ExportColors.swift @@ -102,6 +102,12 @@ extension FigmaExportCommand { try fileWriter.write(files: files) + guard iosParams.xcassetsInSwiftPackage == false else { + checkForUpdate(logger: logger) + logger.info("Done!") + return + } + do { let xcodeProject = try XcodeProjectWriter(xcodeProjPath: iosParams.xcodeprojPath, target: iosParams.target) try files.forEach { file in @@ -113,6 +119,8 @@ extension FigmaExportCommand { } catch { logger.error("Unable to add some file references to Xcode project") } + + logger.info("Done!") } private func exportAndroidColors(colorPairs: [AssetPair], androidParams: Params.Android) throws { diff --git a/Sources/FigmaExport/Subcommands/ExportIcons.swift b/Sources/FigmaExport/Subcommands/ExportIcons.swift index 463fb21c..8e24811b 100644 --- a/Sources/FigmaExport/Subcommands/ExportIcons.swift +++ b/Sources/FigmaExport/Subcommands/ExportIcons.swift @@ -89,6 +89,12 @@ extension FigmaExportCommand { logger.info("Writting files to Xcode project...") try fileWriter.write(files: localFiles) + guard params.ios?.xcassetsInSwiftPackage == false else { + checkForUpdate(logger: logger) + logger.info("Done!") + return + } + do { let xcodeProject = try XcodeProjectWriter(xcodeProjPath: ios.xcodeprojPath, target: ios.target) try localFiles.forEach { file in diff --git a/Sources/FigmaExport/Subcommands/ExportImages.swift b/Sources/FigmaExport/Subcommands/ExportImages.swift index 59d5f979..c323e03b 100644 --- a/Sources/FigmaExport/Subcommands/ExportImages.swift +++ b/Sources/FigmaExport/Subcommands/ExportImages.swift @@ -82,6 +82,12 @@ extension FigmaExportCommand { logger.info("Writting files to Xcode project...") try fileWriter.write(files: localFiles) + guard params.ios?.xcassetsInSwiftPackage == false else { + checkForUpdate(logger: logger) + logger.info("Done!") + return + } + do { let xcodeProject = try XcodeProjectWriter(xcodeProjPath: ios.xcodeprojPath, target: ios.target) try localFiles.forEach { file in diff --git a/Sources/FigmaExport/Subcommands/ExportTypography.swift b/Sources/FigmaExport/Subcommands/ExportTypography.swift index b284d877..26d8d360 100644 --- a/Sources/FigmaExport/Subcommands/ExportTypography.swift +++ b/Sources/FigmaExport/Subcommands/ExportTypography.swift @@ -84,6 +84,8 @@ extension FigmaExportCommand { try fileWriter.write(files: files) + guard iosParams.xcassetsInSwiftPackage == false else { return } + do { let xcodeProject = try XcodeProjectWriter(xcodeProjPath: iosParams.xcodeprojPath, target: iosParams.target) try files.forEach { file in