From e061b993bac22b1cfe6a9ae5325edb2bcb0c7a9c Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sun, 19 Jul 2026 20:16:46 -0400 Subject: [PATCH 1/2] Declare Apple platform requirements to match dependencies --- Package.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 7a82761..0c8d0dd 100644 --- a/Package.swift +++ b/Package.swift @@ -17,7 +17,14 @@ let sdkVersionDefine = SwiftSetting.define("ANDROID_SDK_VERSION_" + sdkVersion.d let package = Package( name: "AndroidBluetooth", platforms: [ - .macOS(.v15) + .macOS(.v15), + // Declared to match the Bluetooth/GATT/Socket dependencies. This package only ever builds + // for Android, but SwiftPM validates platform requirements across the whole graph, and + // leaving these unspecified defaults them to iOS 12 — which conflicts with dependencies + // that require iOS 13 and breaks any Apple-platform resolve of a package that includes it. + .iOS(.v13), + .watchOS(.v6), + .tvOS(.v13) ], products: [ .library( From 6d5f5e1cb7bccb540a4e97d5459652bedcebf640 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sun, 19 Jul 2026 20:23:27 -0400 Subject: [PATCH 2/2] Source AndroidManifest from swift-android-native after the Android refactor --- Package.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 0c8d0dd..e98703f 100644 --- a/Package.swift +++ b/Package.swift @@ -43,6 +43,13 @@ let package = Package( .package( url: "https://github.com/PureSwift/Bluetooth.git", from: "7.2.0" + ), + // `AndroidManifest` moved out of PureSwift/Android into swift-android-native (Android PR + // #40); it must now be depended on directly. The URL and branch must match the ones + // PureSwift/Android and skip-android-bridge use, or the identity conflicts. + .package( + url: "https://github.com/MillerTechnologyPeru/swift-android-native.git", + branch: "feature/pureswift" ) ], targets: [ @@ -79,7 +86,7 @@ let package = Package( ), .product( name: "AndroidManifest", - package: "Android" + package: "swift-android-native" ) ], exclude: ["swift-java.config"],