Skip to content

Add Swift Package Manager manifest (React Native 0.87 SwiftPM) - #1096

Closed
serpixel wants to merge 1 commit into
margelo:mainfrom
serpixel:swiftpm-manifest
Closed

serpixel wants to merge 1 commit into
margelo:mainfrom
serpixel:swiftpm-manifest

Conversation

@serpixel

@serpixel serpixel commented Oct 5, 2026

Copy link
Copy Markdown

Adds Package.swift + the scaffold prefix header for react-native-mmkv 3.3.3, generated with RN 0.87.1's react-native spm scaffold (RN's documented path for community libraries) and validated with swift package dump-package (swift-tools-version 6.0).

The two React path dependencies (ReactNative, React-GeneratedCode) resolve through RN 0.87's autolinking alias (build/generated/autolinking/libs/...) at app resolve time — the same shape react-native-safe-area-context 5.10.0 ships — so they do not resolve in a bare clone. CocoaPods users are unaffected: the podspec stays the source of truth there.

Context: RN 0.87's SwiftPM autolinking hard-fails the package resolve for any autolinked library without a manifest (react-native-community/discussions-and-proposals RFC 0994 tracks the CocoaPods deprecation this feeds into).

Generated with RN 0.87.1's `react-native spm scaffold` from the podspec and
validated with `swift package dump-package` (swift-tools-version 6.0). The
two React path dependencies resolve through RN 0.87's autolinking alias at
app resolve time (same shape react-native-safe-area-context ships); they do
not resolve in a bare clone. CocoaPods users are unaffected.

Needed for React Native 0.87 SwiftPM autolinking, where autolinked native
libraries without a manifest fail the package resolve.
@serpixel serpixel closed this Oct 7, 2026
@serpixel
serpixel deleted the swiftpm-manifest branch October 7, 2026 16:50
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