Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter/packages
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0411f1deabb4
Choose a base ref
...
head repository: flutter/packages
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 92552b16bcc1
Choose a head ref
  • 1 commit
  • 49 files changed
  • 1 contributor

Commits on May 7, 2026

  1. [video_player] Convert top-level classes to Swift (#11658)

    Converts the top-level plugin class, along with the native view factory that is used for platform view management, from Objective-C to Swift. The Pigeon interface for the plugin class has been split out into a separate definition file so that it can use the Swift Pigeon generator while the player-instance-level API can continue to use Obj-C for now.
    
    Since this is the first use of Swift in the plugin, this includes separating the Swift Package into more modules; now instead of:
    video_player_avfoundation (Obj-C) -> video_player_avfoundation_ios and _macos (both Obj-C)
    it's
    video_player_avfoundation (Swift) -> video_player_avfoundation_objc (Obj-C) -> video_player_avfoundation_ios and _macos (both Obj-C)
    
    The Swift conversions were done via Gemini as a starting point, but I did a side-by-side comparison to the Obj-C to ensure that everything was actually preserved, and fixed issues in its conversion manually.
    
    The PR also includes adding some NONNULL region annotations to Obj-C headers that were accidentally missing it, since I ran into one of the omissions once I was calling the API from Swift, and then I audited all of the headers.
    
    Part of flutter/flutter#119105
    
    ## 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 authored May 7, 2026
    Configuration menu
    Copy the full SHA
    92552b1 View commit details
    Browse the repository at this point in the history
Loading