Skip to content

Feat/swiftpm manifest - #768

Open
chrfalch wants to merge 4 commits into
appandflow:mainfrom
chrfalch:feat/swiftpm-manifest
Open

Feat/swiftpm manifest#768
chrfalch wants to merge 4 commits into
appandflow:mainfrom
chrfalch:feat/swiftpm-manifest

Conversation

@chrfalch

@chrfalch chrfalch commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a Package.swift so React Native >= 0.87 apps that use SwiftPM autolinking consume the library as a self-managed package instead of scaffolding one with react-native spm scaffold + patch-package. CocoaPods integration is unchanged.

Test-plan

✅ Unit tests - added running the swift tests in the iOS.yml script so that it is run on a macos runner.

chrfalch and others added 4 commits September 2, 2026 17:01
Adds a Package.swift so React Native >= 0.87 apps that use SwiftPM
autolinking consume the library as a self-managed package instead of
scaffolding one with `react-native spm scaffold` + patch-package.
CocoaPods integration is unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Evaluates Package.swift with swift package dump-package and asserts the
contract React Native's SwiftPM autolinker relies on, plus that the manifest
ships in the npm tarball. The manifest block skips without a Swift toolchain.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Runs the manifest test in the new-architecture job, where a Swift toolchain is
available, and triggers the workflow on manifest and packaging changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
npm 10 (bundled with the Node 22 CI pin) runs the `prepare` script even
with --ignore-scripts, and bob's progress lines land in front of the JSON
on stdout. Running scripts in the background keeps stdout clean.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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