Repository navigation
chore: remove the podspec and CocoaPods CI - #697
Merged
Merged
Conversation
Contributor
posthog-flutter Compliance ReportDate: 2026-11-02 20:59:02 UTC ✅ All Tests Passed!45/45 tests passed Capture Tests✅ 29/29 tests passed View Details
Feature_Flags Tests✅ 16/16 tests passed View Details
|
turnipdabeets
changed the base branch from
feat/v6-desktop-capture-v1
to
chore/v6-posthog-ios-4
November 2, 2026 20:54
turnipdabeets
force-pushed
the
chore/v6-remove-podspec
branch
from
November 2, 2026 20:54
cda1257 to
92c5bcf
Compare
marandaneto
approved these changes
Nov 3, 2026
marandaneto
left a comment
Member
There was a problem hiding this comment.
The code looks good; no qualifying findings. Verdict: correct.
This was referenced Nov 3, 2026
4 of 13 tasks
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
Once #673 lands, the podspec needs
PostHog >= 4.0.0, which isn't on CocoaPods, and the 6.0 guide already says posthog_flutter has no podspec. This PR removes it, so that guide line is now true. It followseli-r-ph's review of #673, and the base is #637's branch. PRs on #673 conflict on the podspec until this lands: keep the delete.posthog_flutter/darwin/posthog_flutter.podspecand thebuild-appleCocoaPods jobs.RunnerTestsstep to the SPM job.Podfile.localfrom the example and fromCONTRIBUTING.md, which now describes the local override throughPackage.swift.Podfile.localcouldn't affect a Swift package.Podfileand CodeQL'spod install, because google_maps needs them.package_manager: [spm]stays in the matrix, so the requiredbuild-apple (ios, spm)andbuild-apple (macos, spm)names don't change.Required checks on
main(ruleset11273241) to remove:build-apple (ios, cocoapods)build-apple (macos, cocoapods)When: after this change reaches
chore/v6-posthog-ios-4through #673, and before #637 merges tomain. #637 can't pass those checks without this, because the jobs no longer report. The feature branches in this stack have no required checks, so nothing blocks earlier.💚 How did you test it?
Run on Flutter 3.41.9 with CocoaPods 1.15.2, in scratch copies. SPM builds used a local posthog-ios
feat/v4-capture-v1, because no 4.x tag exists yet.flutter build iosormacosPlugin posthog_flutter is only compatible with Swift Package Managerflutter build iosandmacosflutter pub publish --dry-runflutter build ios-frameworkUnable to find a specification for posthog_flutterand misleadingpod repo updateadvice (accepted)pod installflutter buildstill stops with the SPM error aboveRunnerTestsis not confirmed under SPM. The local runs never executed a test: the simulator failed with a device clone error, then a run on a fixed device timed out with the simulator unreachable. CI can't confirm it either until posthog-ios 4.x is tagged, because thebuild-applejobs already fail resolving that package. Check this step on the first greenbuild-apple (ios, spm)run.build-appleandbuild-androidwere already red on #673.🧪 How to test locally (for agents and reviewers)
CI's
build-androidandbuild-applejobs can't pass until posthog-ios and posthog-android 4.0 are released, because no 4.x version resolves yet. To test now, build against the nativefeat/v4-capture-v1branches. Don't commit these overrides.Android: check out
feat/v4-capture-v1of posthog-android, then:Add
mavenLocal()as the first repository inexample/android/build.gradle.kts. Use a new version for each republish, because Gradle can reuse a stale one.iOS/macOS: check out
feat/v4-capture-v1of posthog-ios and pointposthog_flutter/darwin/posthog_flutter/Package.swiftat it:Build: from
example/, with Swift Package Manager enabled (flutter config --enable-swift-package-manager), runflutter build apk --debugandflutter build ios --simulator --debug.Local server: set
config.hosttohttp://127.0.0.1:<port>.android:usesCleartextTraffic="true"to<application>and runadb reverse tcp:<port> tcp:<port>.NSAppTransportSecurity>NSAllowsArbitraryLoadsinRunner/Info.plist.{"hasFeatureFlags": true}from/array/<token>/config. Otherwise Android skips/flagsand reports empty flags.Run tests on a device with
flutter test integration_test/<file>.dart -d <device>.What to check on this PR: the example builds with SPM on the platforms above.
build-appleCocoaPods jobs are removed here, so only the SPM jobs apply.📝 Checklist
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Written with Claude Code at Anna's direction. Anna chose removal over a podspec that raises a message, and accepted the add-to-app error. No new changeset, because
v6-major-release.mdalready lists the CocoaPods removal.🤖 Generated with Claude Code