TV: Enable Firebase Analytics on tvOS#4691
Conversation
The launch argument had a stray leading space that would prevent the flag from being recognized at launch. Match the formatting of the other scheme arguments. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Generated by 🚫 Danger |
There was a problem hiding this comment.
Pull request overview
This PR enables Firebase Analytics for the Pocket Casts tvOS app by reusing the existing analytics plumbing that was previously compiled out on tvOS, and by wiring the tvOS target up with the correct Firebase Analytics SPM product.
Changes:
- Enable Firebase imports and
Firebase.Analytics.logEventcalls on tvOS by removing the!os(tvOS)compilation guards inAnalyticsHelper. - Add
FirebaseAnalyticsWithoutAdIdSupportto the Pocket Casts TV App’s SwiftPM dependencies. - Add the
-FIRAnalyticsDebugEnabledlaunch argument to the shared Pocket Casts TV App Xcode scheme for local analytics debugging.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| podcasts/AnalyticsHelper.swift | Removes tvOS compile guards so the existing Firebase event logging path can run on tvOS. |
| podcasts.xcodeproj/xcshareddata/xcschemes/Pocket Casts TV App.xcscheme | Adds a Firebase analytics debug launch argument for the TV app scheme. |
| Modules/Package.swift | Adds FirebaseAnalyticsWithoutAdIdSupport to the TV app Xcode-support target dependencies. |
Enables Firebase Analytics on the tvOS (Pocket Casts TV) app, which was previously excluded from analytics tracking.
FirebaseAnalyticsWithoutAdIdSupportproduct to the module dependencies.!os(tvOS)guards inAnalyticsHelperso the existing analytics path is reused on tvOS instead of being compiled out.-FIRAnalyticsDebugEnabledlaunch argument to the TV app scheme for local debugging of analytics events.To test
-FIRAnalyticsDebugEnabledlaunch arg surfaces Firebase debug logging in the console).Checklist
CHANGELOG.mdif necessary.