Repository navigation
chore(example): build the example app without CocoaPods - #756
Merged
Merged
Conversation
Contributor
posthog-flutter Compliance ReportDate: 2026-12-02T01:17:40.941131+00:00 ✅ All Tests Passed!232/232 tests passed Capture_V1 Tests✅ 105/105 tests passed View Details
Capture_Ai_V1 Tests✅ 110/110 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
dustinbyrne
approved these changes
Dec 1, 2026
dustinbyrne
left a comment
Contributor
There was a problem hiding this comment.
Clean CocoaPods removal. The Pods phases, xcconfig includes, workspace refs and lockfiles are all gone. CI passes on 8378dee, including the iOS build with RunnerTests, the macOS build, the CodeQL Swift build without pod install, and SDK Compliance on Flutter 3.50.1. The googlemaps SPM pins match their upstream tags. A few optional suggestions are inline.
AI-assisted review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
CocoaPods trunk goes read-only on December 2, 2026. The plugin already installs only through Swift Package Manager (#697), but the example app still pulled Google Maps from CocoaPods trunk and kept Podfiles on iOS and macOS.
The example app now builds with no CocoaPods on either platform:
google_maps_fluttergoes from^2.18.1to^2.20.0. Version 2.20.0 replaced its CocoaPods-only iOS implementation withgoogle_maps_flutter_ios_sdk9, a Swift package that keeps iOS 15 support.pod deintegrateran, the Podfiles and lockfiles are deleted, and the Pods references are gone from the xcconfigs and workspaces.${PODS_ROOT}/PostHog/..., which no longer exists. It now uses the Swift Package Manager checkout path.pod install.💚 How did you test it?
Built locally with Flutter 3.50.1 stable and Swift Package Manager enabled:
flutter build ios --simulator --no-codesignbuilds, and Flutter no longer generates a Podfile.flutter build macos --debugbuilds.I didn't run the app or the integration tests on a device. CI covers the iOS plugin tests.
📝 Checklist
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Claude Code, following up on the CocoaPods trunk cleanup. The first attempt added
google_maps_flutter_ios_sdk9directly. Flutter still generated an iOS Podfile with that change, becausegoogle_maps_flutter2.19 kept the CocoaPods-onlygoogle_maps_flutter_iosin the dependency graph. Bumping to 2.20 removes that package.🤖 Generated with Claude Code