Skip to content

refactor: extract FigmaAPI into standalone package#71

Merged
alexey1312 merged 2 commits intomainfrom
extract-figma-api-package
Mar 16, 2026
Merged

refactor: extract FigmaAPI into standalone package#71
alexey1312 merged 2 commits intomainfrom
extract-figma-api-package

Conversation

@alexey1312
Copy link
Collaborator

Summary

  • Extract FigmaAPI module into standalone Swift package swift-figma-api (0.1.0)
  • Replace import ExFigCore with direct import YYJSON in the new package (only 2 files used JSONCodec)
  • Add Error.bestDescription extension locally in new package (was previously from ExFigCore)
  • Update #if os(Linux)#if canImport(FoundationNetworking) for cross-platform compatibility
  • Remove local Sources/FigmaAPI/ and Tests/FigmaAPITests/ (24 source + 23 test files)
  • Update CLAUDE.md: 13→12 modules, add swift-figma-api to dependencies table

Test plan

  • swift-figma-api: swift build && swift test passes (86 tests)
  • swift-figma-api: GitHub Actions CI green (macOS + Linux)
  • ExFig: swift build passes
  • ExFig: swift test passes (1828 tests, minus FigmaAPI tests now in separate repo)
  • ExFig: GitHub Actions CI green (macOS + Linux)
  • extension Component in ImageLoaderBase.swift compiles with external FigmaAPI
  • swift package resolve — no version conflicts for swift-yyjson

@alexey1312 alexey1312 closed this Mar 16, 2026
@alexey1312 alexey1312 reopened this Mar 16, 2026
Replace local FigmaAPI module with external dependency from
github.com/DesignPipe/swift-figma-api (0.1.0).

Changes:
- Remove Sources/FigmaAPI/ and Tests/FigmaAPITests/ (now in swift-figma-api)
- Add swift-figma-api 0.1.0 dependency to Package.swift
- Update ExFigCLI and ExFigTests to use .product(name:package:)
- Update CLAUDE.md: 13→12 modules, add swift-figma-api to dependencies
- Update testing-workflow.md: remove FigmaAPITests target
@alexey1312 alexey1312 force-pushed the extract-figma-api-package branch from 0af66e0 to 7aaaa64 Compare March 16, 2026 14:53
@alexey1312 alexey1312 merged commit ff3bafc into main Mar 16, 2026
3 checks passed
@alexey1312 alexey1312 deleted the extract-figma-api-package branch March 16, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant