From 17e1d1fa7ac620a03b0d6ceb75efc24215dc2f69 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sun, 19 Jul 2026 20:16:46 -0400 Subject: [PATCH] Declare Apple platforms and align swift-android-native source with skip-android-bridge --- Package.swift | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 83b6e28..8df64b4 100644 --- a/Package.swift +++ b/Package.swift @@ -21,7 +21,14 @@ let ndkBinder = sdkVersion >= 29 // binder_ndk Requires API 29 var package = Package( name: "SwiftAndroid", platforms: [ - .macOS(.v15) + .macOS(.v15), + // Declared to match the Socket/Bluetooth 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 requiring + // iOS 13 and breaks any Apple-platform resolve of a package that includes it. + .iOS(.v13), + .watchOS(.v6), + .tvOS(.v13) ], products: [ .library( @@ -92,9 +99,12 @@ var package = Package( url: "https://github.com/PureSwift/Kotlin.git", branch: "master" ), + // Must match the source skip-android-bridge uses: SwiftPM resolves by package identity, so + // pointing at the upstream URL here while skip-android-bridge points at the fork makes the + // identity `swift-android-native` unresolvable ("two different revision-based requirements"). .package( - url: "https://github.com/swift-android-sdk/swift-android-native.git", - branch: "main" + url: "https://github.com/MillerTechnologyPeru/swift-android-native.git", + branch: "feature/pureswift" ), ], targets: [