Files
buzz/mobile/ios/Podfile.lock
Tom Brow 148585c804 build(mobile): link iOS plugins through Swift Package Manager (#9597)
## Summary

The iOS app stops opting out of Flutter's Swift Package Manager
integration. The 19 iOS plugins that ship a Swift package are now linked
through it. The three that don't (`google_mlkit_commons`,
`google_mlkit_selfie_segmentation` and `open_filex`) keep installing
through CocoaPods, which Flutter supports side by side.

Why now:

- CocoaPods is winding down: its spec repo [becomes read-only on
December 2, 2026](https://blog.cocoapods.org/CocoaPods-Specs-Repo/), and
plugin releases have started to ship as Swift packages only. Staying
opted out pins those plugins at their last CocoaPods release.
- The opt-out dates from the Flutter 3.47 upgrade (#8419), which kept
the existing CocoaPods integration. With it removed, the app builds and
runs as before.

What is in the diff:

- `pubspec.yaml`: the opt-out is removed.
- `project.pbxproj` and `Runner.xcscheme`: the edits Flutter's own tool
makes on the first build with the integration on (a local reference to
its generated plugin package, and a scheme pre-action that prepares the
Flutter framework). They are committed so a build does not dirty the
tree.
- `Podfile.lock`: only the three CocoaPods plugins and their
dependencies remain.

No Dart code, plugin version or remote Swift package changes. All 19
packages resolve to local paths in the pub cache, so `Package.resolved`
is untouched and builds fetch nothing new.

### Related issue

N/A. No existing issue or PR for this was found.

### Regressions

- **App behavior:** the same plugin code at the same versions. The 19
plugins are linked statically into the app binary instead of embedded as
dynamic frameworks, which leaves fewer libraries to load at launch and a
slightly smaller app (numbers below). One resource bundle is lost; see
the second accepted tradeoff.
- **Extensions:** the notification service extension links no plugins,
so it is unchanged.
- **Build and release:** CocoaPods is still required for the three
remaining plugins, so the Podfile, its post-install steps and the
release tooling are unchanged. The first build after this change spends
about 17 extra seconds adding the integration.
- **Accepted tradeoff, build warning:** Flutter now prints a warning
naming the three plugins without Swift packages. It goes away when those
plugins add support or are replaced.
- **Accepted tradeoff, one privacy manifest dropped:** the app no longer
bundles `app_badge_plus`'s privacy manifest, and Xcode prints `Invalid
Resource 'Resources': File not found` for it. Version 1.2.10's Swift
package looks for `Resources` under its source directory, but the
manifest sits at the package root, so the Swift package bundles nothing
where the podspec bundled it. This is harmless: that manifest declares
only UserDefaults access, and the plugin's single source file never
touches UserDefaults. The other 16 plugin privacy manifests are still in
the release app. Fixing it means a plugin bump, which is left out of
this PR.
- **Android:** unaffected.

### Validation

Unsigned release build, this branch against unmodified `main`:

| | `main` | This branch |
| --- | --- | --- |
| App size | 87.0 MB | 85.6 MB |
| Embedded frameworks | 31 | 12 |

Focused existing validation: the three iOS steps CI runs (simulator
debug build, the 116 native `RunnerTests`, and the unsigned release
build) pass locally.

Full-app run on an iOS 27 simulator (iPhone 17 Pro), driven by an agent,
with the debug build from this branch installed over an existing
signed-in install:

- The app stayed signed in and loaded its channel list and message
history (keychain, preferences and local storage plugins).
- Photo library picker, attaching a photo, and sending a video, which
uploaded and played back.
- Image viewer, the share sheet, and saving an image to Photos.
- The file picker, and the camera and microphone permission prompts.
- A link in a message opened in the browser, and a `buzz://` deep link
reached the app.

Two failures showed up and both reproduce identically on unmodified
`main` on the same simulator, so neither comes from this change: a
recorded voice note is empty because the host Mac has no microphone, and
saving an image adds it to Photos but then reports "Could not save
image".

Limits: no physical device run. Camera capture, QR scanning, selfie
segmentation and biometric prompts cannot be exercised on a simulator.
Voice note playback was not exercised.

Human testing is waived for this PR under the author's standing policy
for mobile changes; the agent-driven run above stands in for it.

Signed-off-by: Tom Brow <tomb@squareup.com>
Co-authored-by: Tom Brow <tomb@squareup.com>
Co-authored-by: judge <7615ec4b7ddf99f0bb48e913297f99f8f772d289a1c9ef54e1d906dd55a93ba8@buzz.block.builderlab.xyz>
2026-11-17 10:11:28 -07:00

118 lines
4.0 KiB
Plaintext

PODS:
- Flutter (1.0.0)
- google_mlkit_commons (0.12.0):
- Flutter
- MLKitVision (~> 10.0.0)
- google_mlkit_selfie_segmentation (0.11.0):
- Flutter
- google_mlkit_commons
- GoogleMLKit/SegmentationSelfie (~> 9.0.0)
- GoogleDataTransport (10.1.0):
- nanopb (~> 3.30910.0)
- PromisesObjC (~> 2.4)
- GoogleMLKit/MLKitCore (9.0.0):
- MLKitCommon (~> 14.0.0)
- GoogleMLKit/SegmentationSelfie (9.0.0):
- GoogleMLKit/MLKitCore
- MLKitSegmentationSelfie (~> 1.0.0-beta14)
- GoogleToolboxForMac/Defines (4.2.1)
- GoogleToolboxForMac/Logger (4.2.1):
- GoogleToolboxForMac/Defines (= 4.2.1)
- "GoogleToolboxForMac/NSData+zlib (4.2.1)":
- GoogleToolboxForMac/Defines (= 4.2.1)
- GoogleUtilities/Environment (8.0.2):
- GoogleUtilities/Privacy
- GoogleUtilities/Logger (8.0.2):
- GoogleUtilities/Environment
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (8.0.2)
- GoogleUtilities/UserDefaults (8.0.2):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- GTMSessionFetcher/Core (3.5.0)
- MLImage (1.0.0-beta8)
- MLKitCommon (14.0.0):
- GoogleDataTransport (~> 10.0)
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
- GoogleUtilities/Logger (~> 8.0)
- GoogleUtilities/UserDefaults (~> 8.0)
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
- MLKitSegmentationCommon (1.0.0-beta14):
- MLKitCommon (~> 14.0)
- MLKitXenoCommon (= 1.0.0-beta16)
- MLKitSegmentationSelfie (1.0.0-beta14):
- MLKitSegmentationCommon (= 1.0.0-beta14)
- MLKitVision (10.0.0):
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
- MLImage (= 1.0.0-beta8)
- MLKitCommon (~> 14.0)
- MLKitXenoCommon (1.0.0-beta16):
- MLKitCommon (~> 14.0)
- MLKitVision (~> 10.0)
- nanopb (3.30910.0):
- nanopb/decode (= 3.30910.0)
- nanopb/encode (= 3.30910.0)
- nanopb/decode (3.30910.0)
- nanopb/encode (3.30910.0)
- open_filex (0.0.2):
- Flutter
- PromisesObjC (2.4.0)
DEPENDENCIES:
- Flutter (from `Flutter`)
- google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`)
- google_mlkit_selfie_segmentation (from `.symlinks/plugins/google_mlkit_selfie_segmentation/ios`)
- open_filex (from `.symlinks/plugins/open_filex/ios`)
SPEC REPOS:
trunk:
- GoogleDataTransport
- GoogleMLKit
- GoogleToolboxForMac
- GoogleUtilities
- GTMSessionFetcher
- MLImage
- MLKitCommon
- MLKitSegmentationCommon
- MLKitSegmentationSelfie
- MLKitVision
- MLKitXenoCommon
- nanopb
- PromisesObjC
EXTERNAL SOURCES:
Flutter:
:path: Flutter
google_mlkit_commons:
:path: ".symlinks/plugins/google_mlkit_commons/ios"
google_mlkit_selfie_segmentation:
:path: ".symlinks/plugins/google_mlkit_selfie_segmentation/ios"
open_filex:
:path: ".symlinks/plugins/open_filex/ios"
SPEC CHECKSUMS:
Flutter: 71a624a5bc0c04062bf19101d501e466baf2fb47
google_mlkit_commons: b4dfe2f6ae4cbf24010dc6640a28984d01343c86
google_mlkit_selfie_segmentation: 7fc41b3ef8ba238abf8dc76724da50e44de8aaf0
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
GoogleMLKit: b1eee21a41c57704fe72483b15c85cb2c0cd7444
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
GoogleUtilities: 26a3abef001b6533cf678d3eb38fd3f614b7872d
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
MLImage: 0de5c6c2bf9e93b80ef752e2797f0836f03b58c0
MLKitCommon: 47d47b50a031d00db62f1b0efe5a1d8b09a3b2e6
MLKitSegmentationCommon: f634fb3c20c1d8bace22a2c026bdaa0ca17613d9
MLKitSegmentationSelfie: 62371f35c33d49c3e7474443677b6a0c7ac9c98b
MLKitVision: 39a5a812db83c4a0794445088e567f3631c11961
MLKitXenoCommon: 1a4268c1222a6043047af5bb9435028206c63287
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
open_filex: 432f3cd11432da3e39f47fcc0df2b1603854eff1
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PODFILE CHECKSUM: ed10001903303a0ae660957e1d727012a3136046
COCOAPODS: 1.17.0