fix: raise Apple platform minimums in SPM manifests to match FlutterFramework#3917
Open
radomir9720 wants to merge 1 commit into
Open
fix: raise Apple platform minimums in SPM manifests to match FlutterFramework#3917radomir9720 wants to merge 1 commit into
radomir9720 wants to merge 1 commit into
Conversation
…ramework battery_plus, connectivity_plus, network_info_plus, package_info_plus and share_plus declare a Swift Package Manager dependency on FlutterFramework (which requires iOS 13.0 / macOS 10.15) but still declare lower platform minimums (iOS 12.0 / macOS 10.14) in their Package.swift. SPM refuses to resolve this, because a package cannot support a lower platform version than a package it depends on, failing the build with: The package product 'FlutterFramework' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0 Raise the SPM platform minimums to iOS 13.0 / macOS 10.15 and bump the affected example apps' deployment targets accordingly. This mirrors the fix already applied to device_info_plus in fluttercommunity#3891. Podspecs are left unchanged, matching that precedent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
battery_plus,connectivity_plus,network_info_plus,package_info_plusandshare_plusdeclare a Swift Package Manager dependency onFlutterFramework(which requires iOS 13.0 / macOS 10.15), but theirPackage.swiftfiles still declare lower platform minimums (iOS 12.0 / macOS 10.14).SwiftPM refuses to resolve this, because a package cannot support a lower platform version than a package it depends on. Building an app that consumes one of these plugins via SPM fails with:
This PR raises the SPM platform minimums to iOS 13.0 / macOS 10.15 for the affected packages, and bumps the corresponding example apps' deployment targets so they keep building against the raised minimums.
This mirrors the fix already applied to
device_info_plusin #3891. Podspecs are intentionally left unchanged, matching that precedent (SwiftPM enforces the cross-package platform constraint; CocoaPods does not).Changes
Package.swiftplatform minimums (iOS12.0→13.0, macOS10.14→10.15):battery_plusconnectivity_plusnetwork_info_pluspackage_info_plusshare_plusExample app deployment targets bumped to match:
connectivity_plusexample iOS (IPHONEOS_DEPLOYMENT_TARGET12.0→13.0)MACOSX_DEPLOYMENT_TARGET10.14→10.15)Checklist
device_info_plus.