Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

Replaces the Obj-C example app with Swift. Rather than attempt to modify the example in place, I started clean from the Swift template:

  • deleted the ios/ directory.
  • ran flutter create --platforms=ios . using current stable (3.38.9).
  • re-did the RunnerUITest setup process, and swapped in the existing test files for that and RunnerTest.
  • ran native tests and the example app to capture the auto-migration steps for CocoaPods.

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@stuartmorgan-g stuartmorgan-g added the override: no versioning needed Override the check requiring version bumps for most changes label Feb 5, 2026
@stuartmorgan-g stuartmorgan-g added the override: no changelog needed Override the check requiring CHANGELOG updates for most changes label Feb 5, 2026
@stuartmorgan-g
Copy link
Collaborator Author

Changelog/version override: only affects example app config that's not relevant to clients.

BlueprintIdentifier = "686BE82C25E58CCF00862533"
BuildableName = "RunnerUITests.xctest"
BlueprintName = "RunnerUITests"
BlueprintIdentifier = "331C8080294A63A400263BE5"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because I remade things, there is a fair amount of thrashing in the diffs around Xcode-generated identifiers, order of entries in the project file, etc. I didn't try to smooth those out since they don't really matter.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the iOS example application for the quick_actions package from Objective-C to Swift. The ios directory has been regenerated using a modern Swift-based Flutter project template. Changes include updating the Xcode project file (.pbxproj), configuration files (.xcconfig, .plist), and build schemes (.xcscheme) to reflect the new project structure and settings. The Objective-C AppDelegate has been replaced with a Swift equivalent. Existing native test files have been re-integrated into the new project. This is a valuable maintenance update that modernizes the example.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same here; we could keep the old icons, but we already have copies of the new icons in the repo so in terms of repo size this is basically a no-op, and helps us standardize on current state.

didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
Copy link
Contributor

Choose a reason for hiding this comment

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

The objc implementation returns NO here. Is the change intended?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, I missed that it wasn't quite a stock AppDelegate.m. Great catch! I tracked this back to flutter/plugins#3811

I'll change it, and add a comment so that it's more obvious to the next person looking at this code :)

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 7, 2026
@auto-submit auto-submit bot merged commit ebacd56 into flutter:main Feb 7, 2026
81 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 9, 2026
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Feb 9, 2026
flutter/packages@7805d3e...3d5eaa5

2026-02-08 engine-flutter-autoroll@skia.org Roll Flutter from
f916dd6 to e8f9dc5 (34 revisions) (flutter/packages#10979)
2026-02-07 stuartmorgan@google.com [quick_actions] Convert example to
Swift (flutter/packages#10970)
2026-02-07 robert.odrowaz@leancode.pl [camera_avfoundation] Pigeon swift
migration - part 1 (flutter/packages#10939)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: quick_actions platform-ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants