Skip to content

Add Swift Package Manager manifest - #107

Open
serpixel wants to merge 1 commit into
dotintent:masterfrom
serpixel:swiftpm-manifest
Open

serpixel wants to merge 1 commit into
dotintent:masterfrom
serpixel:swiftpm-manifest

Conversation

@serpixel

@serpixel serpixel commented Oct 5, 2026

Copy link
Copy Markdown

What

Declares the iOS sources the CocoaPods podspec already ships (iOS/classes, iOS/RxBluetoothKit, iOS/RxSwift) as a two-target SwiftPM library: the pure-Swift body plus the single marker ObjC file. No source changes.

Why

react-native-ble-plx declares s.dependency "MultiplatformBleAdapter", "0.2.0". Under React Native 0.87's SwiftPM autolinking (RNRFC: pods without a manifest cannot join the package graph), a pod dependency with no manifest breaks the resolve. This manifest lets ble-plx (and any other consumer) depend on this adapter as a SwiftPM package, pinned by revision, while CocoaPods users are unaffected.

Validated with swift package dump-package (swift-tools-version 6.0, swiftLanguageModes: [.v5] for the vendored RxSwift/RxBluetoothKit sources).

Refs: React Native 0.87 SwiftPM migration (Medibunny#3218).

Declares the iOS sources the CocoaPods podspec already ships as a
two-target library (pure-Swift body + the single marker ObjC file).
Needed so react-native-ble-plx can consume this adapter under React
Native 0.87 SwiftPM autolinking, where pods without a manifest cannot
participate in the package graph.
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