Skip to content

[camera_avfoundation] Remove unused Objective-C testing files#11240

Closed
cdeil wants to merge 1 commit intoflutter:mainfrom
cdeil:rm-old-camera-avfoundation-objc-files
Closed

[camera_avfoundation] Remove unused Objective-C testing files#11240
cdeil wants to merge 1 commit intoflutter:mainfrom
cdeil:rm-old-camera-avfoundation-objc-files

Conversation

@cdeil
Copy link
Contributor

@cdeil cdeil commented Mar 13, 2026

Cleanup for flutter/flutter#119109 removing old unused files.

I ran into Pod-related error with the tests and saw that #11237 will resolve that, so this is just a draft that should wait for #11237 to land.

Pre-Review Checklist

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 removes unused Objective-C testing files (ExceptionCatcher.h, ExceptionCatcher.m, and RunnerTests-Bridging-Header.h) from the camera_avfoundation example. As part of this cleanup, references to these files are removed from the Xcode project file (project.pbxproj). Additionally, import Foundation statements are added to three Swift mock files that required it after the removal of the bridging header.

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM

@stuartmorgan-g stuartmorgan-g added CICD Run CI/CD triage-ios Should be looked at in iOS triage labels Mar 13, 2026
@cdeil cdeil force-pushed the rm-old-camera-avfoundation-objc-files branch from 0a2943e to 2465e4a Compare March 15, 2026 13:48
@cdeil
Copy link
Contributor Author

cdeil commented Mar 15, 2026

I wasn't sure if it's needed, but just in case I rebased against main to get #11237 into this branch.

All tests are now green and I think this is ready.

It just removes old test files, so doesn't require a CHANGELOG entry or version bump.

@stuartmorgan-g stuartmorgan-g added CICD Run CI/CD and removed CICD Run CI/CD labels Mar 16, 2026
Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@vashworth vashworth removed the request for review from hellohuanlin March 19, 2026 21:55
@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 19, 2026
auto-submit bot pushed a commit that referenced this pull request Mar 25, 2026
Updates the iOS example app for `camera_avfoundation` to a Swift app. Rather than edit in place, this replaces the example app with a fresh copy to minimize drift from current template:
- The existing ios/ directory was deleted
- A new copy was created with `flutter create --platforms=ios --org=dev.flutter .`
- The RunnerTest code was restored (other than unused files; see #11240), and the placeholder file removed.
- The important Info.plist entries were restored.
- The special logic to bypass app launch plugin registration during unit tests was moved from main.m, which no longer exists, to the delegate callback where registration would be done.

I also did some minor test file cleanup I noticed while validating everything in Xcode again:
- Remove some stale references to and usage of the `FLT` prefix (missed during Swift migrations).
- Added some missing headers that local compilation complained about.

This is part of an overall modernization of the example apps; most packages have already been converted to Swift examples.

## Pre-Review Checklist

[^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.
@stuartmorgan-g
Copy link
Collaborator

This removal ended up being incorporated into #11283; I was regenerating the project anyway in that PR, so I didn't re-include these files. Thanks for noticing this!

@stuartmorgan-g stuartmorgan-g removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD p: camera platform-ios platform-macos triage-ios Should be looked at in iOS triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants