Skip to content

chore(example): build the example app without CocoaPods - #756

Merged
turnipdabeets merged 7 commits into
mainfrom
chore/example-spm-only
Dec 2, 2026
Merged

turnipdabeets merged 7 commits into
mainfrom
chore/example-spm-only

Conversation

@turnipdabeets

@turnipdabeets turnipdabeets commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

💡 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: google_maps_flutter goes from ^2.18.1 to ^2.20.0. Version 2.20.0 replaced its CocoaPods-only iOS implementation with google_maps_flutter_ios_sdk9, a Swift package that keeps iOS 15 support.
  • iOS and macOS: both projects drop CocoaPods. pod deintegrate ran, the Podfiles and lockfiles are deleted, and the Pods references are gone from the xcconfigs and workspaces.
  • dSYM line: the commented-out upload line pointed at ${PODS_ROOT}/PostHog/..., which no longer exists. It now uses the Swift Package Manager checkout path.
  • CodeQL: the Swift build turns on Swift Package Manager and no longer runs 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-codesign builds, and Flutter no longer generates a Podfile.
  • flutter build macos --debug builds.

I didn't run the app or the integration tests on a device. CI covers the iOS plugin tests.

📝 Checklist

  • All commits are signed (see Commit signing)
  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Claude Code, following up on the CocoaPods trunk cleanup. The first attempt added google_maps_flutter_ios_sdk9 directly. Flutter still generated an iOS Podfile with that change, because google_maps_flutter 2.19 kept the CocoaPods-only google_maps_flutter_ios in the dependency graph. Bumping to 2.20 removes that package.

🤖 Generated with Claude Code

@turnipdabeets
turnipdabeets requested a review from a team as a code owner December 1, 2026 22:56
@turnipdabeets turnipdabeets self-assigned this Dec 1, 2026
@veria-ai

veria-ai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

posthog-flutter Compliance Report

Date: 2026-12-02T01:17:40.941131+00:00
Duration: 371857ms

✅ All Tests Passed!

232/232 tests passed


Capture_V1 Tests

✅ 105/105 tests passed

View Details
Test Status Duration
Endpoint And Method.Targets V1 Endpoint ✅ 244ms
Endpoint And Method.Does Not Use Legacy Endpoints ✅ 139ms
Required Headers.Has Authorization Bearer Header ✅ 130ms
Required Headers.Has Content Type Json ✅ 130ms
Required Headers.Has Posthog Sdk Info Format ✅ 124ms
Required Headers.Has Posthog Attempt Header ✅ 128ms
Required Headers.Has Posthog Request Id ✅ 123ms
Required Headers.Has Posthog Request Timestamp ✅ 127ms
Required Headers.Has User Agent ✅ 126ms
Body Format.Body Has Created At And Batch ✅ 134ms
Body Format.No Api Key In Body ✅ 123ms
Body Format.No Sent At In Body ✅ 123ms
Event Format.Event Has Required Root Fields ✅ 123ms
Event Format.Event Uuid Is Valid ✅ 123ms
Event Format.Event Timestamp Is Rfc3339 ✅ 123ms
Event Format.Non Utc Event Timestamp Is Converted To Utc ✅ 123ms
Event Format.Distinct Id Is String ✅ 125ms
Event Format.Distinct Id At Root Not Properties ✅ 122ms
Event Format.Custom Properties Preserved ✅ 126ms
Event Format.Set Properties Preserved ✅ 127ms
Event Format.Set Once Properties Preserved ✅ 122ms
Event Format.Groups Properties Preserved ✅ 123ms
Event Format.Sdk Generates Uuid If Not Provided ✅ 120ms
Event Format.Event Has Required Root Fields Batch ✅ 126ms
Event Format.Event Uuid Is Valid Batch ✅ 128ms
Event Format.Event Timestamp Is Rfc3339 Batch ✅ 128ms
Event Format.Distinct Id Is String Batch ✅ 128ms
Event Format.Distinct Id At Root Not Properties Batch ✅ 126ms
Event Format.Custom Properties Preserved Batch ✅ 133ms
Event Format.Set Properties Preserved Batch ✅ 136ms
Event Format.Set Once Properties Preserved Batch ✅ 126ms
Event Format.Groups Properties Preserved Batch ✅ 126ms
Event Format.Sdk Generates Uuid If Not Provided Batch ✅ 138ms
Batch Behavior.Multiple Events In Single Batch ✅ 135ms
Batch Behavior.Batch Envelope Smoke ✅ 137ms
Batch Behavior.Flush With No Events Sends Nothing ✅ 113ms
Batch Behavior.Flush At Triggers Batch ✅ 1018ms
Batch Behavior.Created At Reflects Batch Creation Time ✅ 121ms
Deduplication.Generates Unique Uuids ✅ 132ms
Deduplication.Different Events Same Content Different Uuids ✅ 128ms
Deduplication.Preserves Uuid On Retry ✅ 5129ms
Deduplication.Preserves Timestamp On Retry ✅ 5128ms
Deduplication.Preserves Uuid And Timestamp On Batch Retry ✅ 5133ms
Deduplication.No Duplicate Events In Batch ✅ 137ms
Header Behavior On Retry.Attempt Header Starts At One ✅ 118ms
Header Behavior On Retry.Attempt Header Increments On Retry ✅ 10131ms
Header Behavior On Retry.Request Id Preserved On Retry ✅ 5129ms
Header Behavior On Retry.Different Requests Have Different Request Ids ✅ 2236ms
Header Behavior On Retry.Request Timestamp Changes On Retry ✅ 5129ms
Response Format Validation.Success Response Has Uuid Keyed Results ✅ 122ms
Response Format Validation.Success Response Has Ok For Each Event ✅ 127ms
Response Format Validation.Success No Retry After When All Ok ✅ 123ms
Response Format Validation.Success Retry After Present When Retry Events ✅ 132ms
Response Format Validation.Success No Retry After When Drop Only ✅ 130ms
Response Format Validation.Response Echoes Request Id ✅ 118ms
Retry Behavior.Retries On 408 ✅ 5125ms
Retry Behavior.Retries On 500 ✅ 5125ms
Retry Behavior.Retries On 503 ✅ 5127ms
Retry Behavior.Retries On 504 ✅ 5126ms
Retry Behavior.Retries On 404 ✅ 5127ms
Retry Behavior.Retries On 429 ✅ 5124ms
Retry Behavior.Retries On 502 ✅ 5128ms
Retry Behavior.Retryable Errors Have Retry After ✅ 2125ms
Retry Behavior.Respects Retry After On Retryable Error ✅ 8133ms
Retry Behavior.Does Not Retry On 400 ✅ 2122ms
Retry Behavior.Does Not Retry On 401 ✅ 2125ms
Retry Behavior.Does Not Retry On 402 ✅ 2123ms
Retry Behavior.Does Not Retry On 413 ✅ 2124ms
Retry Behavior.Does Not Retry On 415 ✅ 2123ms
Retry Behavior.Non Retryable Errors Have No Retry After ✅ 2123ms
Retry Behavior.Implements Backoff ✅ 12136ms
Partial Batch Handling.Handles 200 Full Success ✅ 2120ms
Partial Batch Handling.Handles 200 With All Ok ✅ 3129ms
Partial Batch Handling.Does Not Retry Dropped Events ✅ 3129ms
Partial Batch Handling.Does Not Retry Warning Events ✅ 3131ms
Partial Batch Handling.Prunes Ok Events On Partial Retry ✅ 5128ms
Partial Batch Handling.Prunes Dropped Events On Partial Retry ✅ 5130ms
Partial Batch Handling.Retries Only Retry Events From Partial ✅ 5133ms
Partial Batch Handling.Partial Retry Preserves Uuids ✅ 5128ms
Partial Batch Handling.Partial Retry Attempt Header Increments ✅ 5128ms
Partial Batch Handling.Partial Retry Request Id Preserved ✅ 5128ms
Partial Batch Handling.Respects Retry After On Partial ✅ 5128ms
Partial Batch Handling.Unknown Result Treated As Terminal ✅ 3127ms
Partial Batch Handling.Mixed Ok Drop Warning No Retry ✅ 3131ms
Compression.Sends Gzip Content Encoding ✅ 122ms
Compression.No Content Encoding When Disabled ✅ 119ms
Compression.Compressed Body Is Decompressible ✅ 118ms
Error Handling.Does Not Retry On Unknown 4Xx ✅ 2121ms
Event Options.Cookieless Mode Override ✅ 120ms
Event Options.Disable Skew Correction Override ✅ 121ms
Event Options.Process Person Profile Override ✅ 120ms
Event Options.Product Tour Id Override ✅ 121ms
Event Options.Unset Options Omitted ✅ 128ms
Event Options.Options Override In Batch ✅ 127ms
Event Options.Unknown Option Passes Through ✅ 122ms
Event Options.Option Value Is Not Converted ✅ 120ms
Event Options.Lenient Bool Option Values Are Not Converted ✅ 122ms
Event Options.Option Wins Over Legacy Property ✅ 124ms
Event Options.Legacy Property Fills Unset Option ✅ 119ms
Event Options.Null Option Falls Back To Legacy Property ✅ 120ms
Property Layers.Caller Property Beats Registered Property ✅ 122ms
Property Layers.Before Send Runs Last ✅ 122ms
Fail Open.Empty Api Key Sends Nothing ✅ 1115ms
Fail Open.Personal Api Key Sends Nothing ✅ 1116ms
Geoip And Historical Migration.Historical Migration Absent By Default ✅ 122ms

Capture_Ai_V1 Tests

✅ 110/110 tests passed

View Details
Test Status Duration
Endpoint And Method.Targets V1 Endpoint ✅ 121ms
Endpoint And Method.Does Not Use Legacy Endpoints ✅ 123ms
Endpoint And Method.Capture Does Not Reroute Ai Named Events ✅ 120ms
Endpoint And Method.Capture Ai Does Not Reroute Non Ai Events ✅ 119ms
Lane Isolation.Failing Ai Lane Does Not Delay Analytics ✅ 5135ms
Required Headers.Has Authorization Bearer Header ✅ 118ms
Required Headers.Has Content Type Json ✅ 118ms
Required Headers.Has Posthog Sdk Info Format ✅ 118ms
Required Headers.Has Posthog Attempt Header ✅ 121ms
Required Headers.Has Posthog Request Id ✅ 117ms
Required Headers.Has Posthog Request Timestamp ✅ 117ms
Required Headers.Has User Agent ✅ 118ms
Body Format.Body Has Created At And Batch ✅ 118ms
Body Format.No Api Key In Body ✅ 121ms
Body Format.No Sent At In Body ✅ 118ms
Event Format.Event Has Required Root Fields ✅ 117ms
Event Format.Event Uuid Is Valid ✅ 118ms
Event Format.Event Timestamp Is Rfc3339 ✅ 118ms
Event Format.Non Utc Event Timestamp Is Converted To Utc ✅ 120ms
Event Format.Distinct Id Is String ✅ 121ms
Event Format.Distinct Id At Root Not Properties ✅ 120ms
Event Format.Custom Properties Preserved ✅ 118ms
Event Format.Set Properties Preserved ✅ 118ms
Event Format.Set Once Properties Preserved ✅ 121ms
Event Format.Groups Properties Preserved ✅ 117ms
Event Format.Sdk Generates Uuid If Not Provided ✅ 119ms
Event Format.Event Has Required Root Fields Batch ✅ 125ms
Event Format.Event Uuid Is Valid Batch ✅ 124ms
Event Format.Event Timestamp Is Rfc3339 Batch ✅ 126ms
Event Format.Distinct Id Is String Batch ✅ 128ms
Event Format.Distinct Id At Root Not Properties Batch ✅ 123ms
Event Format.Custom Properties Preserved Batch ✅ 124ms
Event Format.Set Properties Preserved Batch ✅ 123ms
Event Format.Set Once Properties Preserved Batch ✅ 123ms
Event Format.Groups Properties Preserved Batch ✅ 124ms
Event Format.Sdk Generates Uuid If Not Provided Batch ✅ 123ms
Batch Behavior.Multiple Events In Single Batch ✅ 129ms
Batch Behavior.Batch Envelope Smoke ✅ 127ms
Batch Behavior.Flush At Triggers Batch ✅ 1018ms
Batch Behavior.Created At Reflects Batch Creation Time ✅ 119ms
Deduplication.Generates Unique Uuids ✅ 131ms
Deduplication.Different Events Same Content Different Uuids ✅ 123ms
Deduplication.Preserves Uuid On Retry ✅ 5127ms
Deduplication.Preserves Timestamp On Retry ✅ 5128ms
Deduplication.Preserves Uuid And Timestamp On Batch Retry ✅ 5135ms
Deduplication.No Duplicate Events In Batch ✅ 130ms
Header Behavior On Retry.Attempt Header Starts At One ✅ 119ms
Header Behavior On Retry.Attempt Header Increments On Retry ✅ 10130ms
Header Behavior On Retry.Request Id Preserved On Retry ✅ 5133ms
Header Behavior On Retry.Different Requests Have Different Request Ids ✅ 2233ms
Header Behavior On Retry.Request Timestamp Changes On Retry ✅ 5125ms
Response Format Validation.Success Response Has Uuid Keyed Results ✅ 118ms
Response Format Validation.Success Response Has Ok For Each Event ✅ 125ms
Response Format Validation.Success No Retry After When All Ok ✅ 121ms
Response Format Validation.Success Retry After Present When Retry Events ✅ 121ms
Response Format Validation.Success No Retry After When Drop Only ✅ 122ms
Response Format Validation.Response Echoes Request Id ✅ 116ms
Retry Behavior.Retries On 408 ✅ 5126ms
Retry Behavior.Retries On 500 ✅ 5125ms
Retry Behavior.Retries On 503 ✅ 5134ms
Retry Behavior.Retries On 504 ✅ 5129ms
Retry Behavior.Retries On 404 ✅ 5124ms
Retry Behavior.Retries On 429 ✅ 5121ms
Retry Behavior.Retries On 502 ✅ 5123ms
Retry Behavior.Retryable Errors Have Retry After ✅ 2120ms
Retry Behavior.Respects Retry After On Retryable Error ✅ 8128ms
Retry Behavior.Does Not Retry On 400 ✅ 2120ms
Retry Behavior.Does Not Retry On 401 ✅ 2125ms
Retry Behavior.Does Not Retry On 402 ✅ 2121ms
Retry Behavior.Does Not Retry On 413 ✅ 2121ms
Retry Behavior.Does Not Retry On 415 ✅ 2121ms
Retry Behavior.Non Retryable Errors Have No Retry After ✅ 2125ms
Retry Behavior.Implements Backoff ✅ 12122ms
Partial Batch Handling.Handles 200 Full Success ✅ 2122ms
Partial Batch Handling.Handles 200 With All Ok ✅ 3132ms
Partial Batch Handling.Does Not Retry Dropped Events ✅ 3124ms
Partial Batch Handling.Does Not Retry Warning Events ✅ 3124ms
Partial Batch Handling.Prunes Ok Events On Partial Retry ✅ 5127ms
Partial Batch Handling.Prunes Dropped Events On Partial Retry ✅ 5129ms
Partial Batch Handling.Retries Only Retry Events From Partial ✅ 5129ms
Partial Batch Handling.Partial Retry Preserves Uuids ✅ 5126ms
Partial Batch Handling.Partial Retry Attempt Header Increments ✅ 5129ms
Partial Batch Handling.Partial Retry Request Id Preserved ✅ 5128ms
Partial Batch Handling.Respects Retry After On Partial ✅ 5128ms
Partial Batch Handling.Unknown Result Treated As Terminal ✅ 3126ms
Partial Batch Handling.Mixed Ok Drop Warning No Retry ✅ 3132ms
Compression.Sends Gzip Content Encoding ✅ 119ms
Compression.No Content Encoding When Disabled ✅ 118ms
Compression.Compressed Body Is Decompressible ✅ 118ms
Error Handling.Does Not Retry On Unknown 4Xx ✅ 2120ms
Event Options.Cookieless Mode Override ✅ 119ms
Event Options.Disable Skew Correction Override ✅ 120ms
Event Options.Process Person Profile Override ✅ 118ms
Event Options.Product Tour Id Override ✅ 118ms
Event Options.Unset Options Omitted ✅ 121ms
Event Options.Options Override In Batch ✅ 129ms
Event Options.Unknown Option Passes Through ✅ 119ms
Event Options.Option Value Is Not Converted ✅ 118ms
Event Options.Lenient Bool Option Values Are Not Converted ✅ 121ms
Event Options.Option Wins Over Legacy Property ✅ 119ms
Event Options.Legacy Property Fills Unset Option ✅ 117ms
Event Options.Null Option Falls Back To Legacy Property ✅ 119ms
Event Size.Event Over Ceiling Is Not Sent ✅ 4203ms
Event Size.Over Ceiling Drop Is Reported Or Logged Without Content ✅ 2217ms
Event Size.Batches Close Before Byte Target ✅ 6304ms
Geoip And Historical Migration.Historical Migration Absent By Default ✅ 122ms
Property Layers.Caller Property Beats Registered Property ✅ 117ms
Property Layers.Before Send Runs Last ✅ 119ms
Fail Open.Empty Api Key Sends Nothing ✅ 1114ms
Fail Open.Personal Api Key Sends Nothing ✅ 1112ms

Feature_Flags Tests

✅ 17/17 tests passed

View Details
Test Status Duration
Request Payload.Request With Person Properties Device Id ✅ 25ms
Request Payload.Flags Request Uses V2 Query Param ✅ 16ms
Request Payload.Flags Request Hits Flags Path Not Decide ✅ 14ms
Request Payload.Flags Request Omits Authorization Header ✅ 12ms
Request Payload.Token In Flags Body Matches Init ✅ 12ms
Request Payload.Groups Round Trip ✅ 16ms
Request Payload.Groups Default To Empty Object ✅ 15ms
Request Payload.Disable Geoip False Propagates As Geoip Disable False ✅ 15ms
Request Payload.Disable Geoip Omitted Defaults To False ✅ 12ms
Request Payload.Flag Keys To Evaluate Contains Only Requested Key ✅ 13ms
Request Lifecycle.No Flags Request On Init Alone ✅ 6ms
Request Lifecycle.No Flags Request On Normal Capture ✅ 118ms
Request Lifecycle.Two Flag Calls Produce Two Remote Requests ✅ 23ms
Request Lifecycle.Mock Response Value Is Returned To Caller ✅ 15ms
Retry Behavior.Retries Flags On 502 ✅ 321ms
Retry Behavior.Retries Flags On 504 ✅ 327ms
Side Effect Events.Get Feature Flag Captures Feature Flag Called Event ✅ 126ms

@turnipdabeets turnipdabeets changed the title chore(example): install Google Maps and macOS dependencies without CocoaPods chore(example): build the example app without CocoaPods Dec 1, 2026

@dustinbyrne dustinbyrne left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread example/pubspec.yaml Resolved
@turnipdabeets
turnipdabeets enabled auto-merge (squash) December 2, 2026 01:12
@turnipdabeets
turnipdabeets merged commit 9e76202 into main Dec 2, 2026
29 checks passed
@turnipdabeets
turnipdabeets deleted the chore/example-spm-only branch December 2, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants