Feat/swiftpm manifest - #768
Open
chrfalch wants to merge 4 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlscript so that it is run on amacosrunner.