Skip to content

update iOS/macOS deployment targets to 15.0 and fix isiOSAppOnVision detection #3812#3815

Closed
Melsaeed276 wants to merge 13 commits into
fluttercommunity:mainfrom
Melsaeed276:main
Closed

update iOS/macOS deployment targets to 15.0 and fix isiOSAppOnVision detection #3812#3815
Melsaeed276 wants to merge 13 commits into
fluttercommunity:mainfrom
Melsaeed276:main

Conversation

@Melsaeed276
Copy link
Copy Markdown

@Melsaeed276 Melsaeed276 commented Apr 29, 2026

Description

This PR updates the minimum deployment targets and improves the isiOSAppOnVision detection:

  • iOS: Updated minimum deployment target from 12.0 to 15.0
  • iOS App on Vision detection: Changed from compile-time @available(iOS 26.1, *) to runtime detection using @available(iOS 15.0, *) + @available(iOS 26.1, *) + respondsToSelector:. This ensures the isiOSAppOnVision property is correctly detected at runtime without causing compile-time warnings on older SDKs.

Related Issues

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

Copilot AI review requested due to automatic review settings April 29, 2026 10:14
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

No release type found in pull request title "update iOS/macOS deployment targets to 15.0 and fix isiOSAppOnVision detection #3812". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates device_info_plus Apple platform deployment targets and adjusts the iOS “App on Vision” detection to avoid compile-time API availability issues by switching to runtime selector checks.

Changes:

  • Bumped CocoaPods deployment targets (iOS to 15.0, macOS to 15.0) and aligned example Xcode projects accordingly.
  • Updated isiOSAppOnVision detection to use respondsToSelector: with runtime invocation instead of directly calling the property.
  • Added/stopped-ignoring example Podfiles to force platform versions.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/device_info_plus/device_info_plus/macos/device_info_plus.podspec Raises macOS pod deployment target to 15.0.
packages/device_info_plus/device_info_plus/ios/device_info_plus/Sources/device_info_plus/FPPDeviceInfoPlusPlugin.m Switches isiOSAppOnVision detection to runtime selector-based invocation.
packages/device_info_plus/device_info_plus/ios/device_info_plus.podspec Raises iOS pod deployment target to 15.0.
packages/device_info_plus/device_info_plus/example/macos/Runner.xcodeproj/project.pbxproj Raises example macOS deployment target to 15.0 in build configs.
packages/device_info_plus/device_info_plus/example/macos/Podfile Adds a (currently minimal) macOS Podfile declaring platform 15.0.
packages/device_info_plus/device_info_plus/example/ios/Runner.xcodeproj/project.pbxproj Raises example iOS deployment target to 15.0 in build configs.
packages/device_info_plus/device_info_plus/example/ios/Podfile Adds a (currently minimal) iOS Podfile declaring platform 15.0.
packages/device_info_plus/device_info_plus/.gitignore Un-ignores the example Podfiles so they are tracked.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/device_info_plus/device_info_plus/example/ios/Podfile Outdated
Comment thread packages/device_info_plus/device_info_plus/example/macos/Podfile Outdated
Comment thread packages/device_info_plus/device_info_plus/.gitignore Outdated
Comment thread packages/device_info_plus/device_info_plus/macos/device_info_plus.podspec Outdated
Melsaeed276 and others added 7 commits April 29, 2026 13:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…r.xcodeproj/project.pbxproj

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…r.xcodeproj/project.pbxproj

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…lus.podspec

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…r.xcodeproj/project.pbxproj

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vbuberen
Copy link
Copy Markdown
Collaborator

vbuberen commented Apr 30, 2026

@Melsaeed276 I already closed another PR of you #3812 - don't spam the repo.

@vbuberen vbuberen closed this Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants