Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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: [
Expand Down
Loading