Skip to content

Commit e061b99

Browse files
committed
Declare Apple platform requirements to match dependencies
1 parent 27e3747 commit e061b99

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Package.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ let sdkVersionDefine = SwiftSetting.define("ANDROID_SDK_VERSION_" + sdkVersion.d
1717
let package = Package(
1818
name: "AndroidBluetooth",
1919
platforms: [
20-
.macOS(.v15)
20+
.macOS(.v15),
21+
// Declared to match the Bluetooth/GATT/Socket dependencies. This package only ever builds
22+
// for Android, but SwiftPM validates platform requirements across the whole graph, and
23+
// leaving these unspecified defaults them to iOS 12 — which conflicts with dependencies
24+
// that require iOS 13 and breaks any Apple-platform resolve of a package that includes it.
25+
.iOS(.v13),
26+
.watchOS(.v6),
27+
.tvOS(.v13)
2128
],
2229
products: [
2330
.library(

0 commit comments

Comments
 (0)