Skip to content

fix(dashpay): remove unused Firebase Dynamic Links SDK - #1056

Merged
QuantumExplorer merged 2 commits into
developfrom
fix/remove-unused-firebase-dynamic-links
Aug 25, 2026
Merged

QuantumExplorer merged 2 commits into
developfrom
fix/remove-unused-firebase-dynamic-links

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

What

Removes the Firebase/DynamicLinks pod and its leftover configuration. Nothing in the app used it, and its only observable effect was sending Google a device fingerprint on first launch.

Why

This came out of a community question in the Russian Telegram group asking whether analytics/tracking are enabled in the new iOS build. There is no analytics SDK in the iOS app — no FirebaseAnalytics, GoogleAppMeasurement, Crashlytics, Mixpanel, Amplitude, Sentry or AppsFlyer is linked, there are zero logEvent/trackEvent call sites, and there is no IDFA/ATT surface. But the audit turned up outbound calls that a privacy-focused user would reasonably call tracking, and this was one of them.

The SDK self-starts and fingerprints the device

[FIRApp configure] runs unconditionally at DashWallet/AppDelegate.m:113. Dynamic Links registers its component with FIRInstantiationTimingEagerInDefaultApp, so configure instantiates it immediately, and the creation block ends with:

if ([FIRDynamicLinks isAutomaticRetrievalEnabled]) {
  [dynamicLinks checkForPendingDynamicLink];
}

isAutomaticRetrievalEnabled returns YES unless FirebaseDeepLinkAutomaticRetrievalEnabled is set in the Info.plist, and neither plist set it. So on the first run after install, the SDK POSTs to firebasedynamiclinks.googleapis.com/v1/installAttribution with a request body containing screen resolution, locale, timezone, device model, iOS version and app installation time — which, combined with the source IP Google observes, is probabilistic install-attribution fingerprinting.

Nothing uses it

There is not a single reference to DynamicLinks, FIRDynamicLinks or handleUniversalLink anywhere outside Pods/. Universal links are already routed directly, and AppDelegate.m says so in continueUserActivity::

Firebase Dynamic Links previously unwrapped these; the service was shut down in 2025, so the invitation URL is now routed directly — normalization/validation happens in the redeem flow (DWInvitationLinkNormalizer + ClaimInvitationScreen).

Google shut Dynamic Links down in August 2025, so the endpoint it fingerprints against is a dead product.

Changes

  • Podfile — replace pod 'Firebase/DynamicLinks' with pod 'Firebase/CoreOnly' in both the dashwallet and dashpay targets.

    The swap matters: CoreOnly is what ships Firebase.h and its module map, which is what @import Firebase; (AppDelegate) and import Firebase (ExploreDatabaseSyncManager) resolve against. It previously arrived implicitly as a dependency of the DynamicLinks subspec, so removing that subspec outright breaks both imports. There is no FirebaseStorage Swift module to fall back on — CocoaPods generates no module map for it, since the pod is not built with modular_headers. Firebase.h reaches Storage through #if __has_include(<FirebaseStorage/FirebaseStorage.h>), and its DynamicLinks branch is guarded the same way, so it simply compiles out. No source imports change.

  • Podfile.lock — regenerated with pod _1.15.2_ install, the version CI pins. The diff is exactly the DynamicLinks removal, Firebase/CoreOnly moving into DEPENDENCIES, and the Podfile checksum. FirebaseCore stays at 8.15.0.

  • DashPay/dashpay-info.plist — remove FirebaseDynamicLinksCustomDomains and FirebaseDeepLinkPasteboardRetrievalEnabled, both of which only configured the removed SDK.

  • DWURLParser.shouldIgnoreURL: — removed, along with its call site in AppDelegate.m. It existed solely to swallow the google://…?match_message=No pre-install link matched for this device. URL that Dynamic Links handed back on first run (commit e5c6011e2, "Ignore dynamic link that comes from Firebase on first run"). With the SDK gone nothing can produce that URL.

Not affected

Invitation handling. invitations.dashpay.io remains in com.apple.developer.associated-domains, continueUserActivity: still routes the universal link straight into DWInvitationLinkNormalizer, and the dashpay://invite scheme path is unchanged. The removed plist key was Dynamic Links' own custom-domain list, not the associated-domains entitlement.

Firebase Storage — the Explore Dash merchant database download from gs://dash-wallet-firebase.appspot.com — is untouched.

Verification

  • xcodebuild -scheme dashpay -sdk iphonesimulator ARCHS=arm64 compiles the two files that import Firebase with no module-resolution errors.
  • pod _1.15.2_ install --deployment — the exact invocation CI uses — reports "Verifying no changes" against the committed lockfile.
  • grep -rn "DynamicLink" over *.swift/*.m/*.h/*.plist outside Pods/ returns nothing.

Full disclosure on the build: it does not reach a successful link in my environment, but the remaining failure is pre-existing on develop and unrelated. It is four errors in EvonodeStatusViewModel.swift (value of type 'SDK' has no member 'getEvonodeStatus', cannot find type 'EvonodeStatus' in scope, 'PlatformMasternode' has no member 'platformDAPIAddress') caused by the local ../platform SwiftDashSDK checkout sitting on an unrelated feature branch that predates that API. I confirmed it by building untouched develop, which produces the identical four errors and nothing else. Since this PR does change what gets linked, please confirm a clean build on a correctly-pinned platform checkout before merging.

Related

Two companion PRs address the other outbound channels found in the same audit: #1053 disables the Firebase diagnostics heartbeat, and #1055 stops a per-foreground IP geolocation lookup to ip-api.com.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Updated invitation link handling to support direct routing through iOS universal links.
    • Improved URL processing by removing outdated filtering that could prevent valid links from being handled.
  • Documentation
    • Updated integration guidance to reflect the shutdown of Firebase Dynamic Links by Google in August 2025.
  • Chores
    • Removed obsolete Dynamic Links configuration and replaced it with the required Firebase core functionality.

Nothing in the app referenced Dynamic Links, but the SDK still ran: its
component registers as EagerInDefaultApp, so the unconditional
[FIRApp configure] instantiated it, and automatic retrieval defaults to
enabled because neither Info.plist set
FirebaseDeepLinkAutomaticRetrievalEnabled. On the first run after
install it POSTed to firebasedynamiclinks.googleapis.com/installAttribution
with screen resolution, locale, timezone, device model, iOS version and
app installation time — install-attribution fingerprinting, against a
product Google shut down in 2025.

Invitation universal links already bypass it; continueUserActivity
routes them straight into DWInvitationLinkNormalizer, and the
associated-domains entitlement is untouched.

Depend on Firebase/CoreOnly directly in place of the removed subspec.
CoreOnly ships Firebase.h and its module map, which is what
`@import Firebase` and `import Firebase` resolve against; it previously
arrived implicitly via Firebase/DynamicLinks. FirebaseStorage has no
module map of its own, so dropping the umbrella outright would break
both imports. Firebase.h reaches Storage through __has_include, and
guards its DynamicLinks include the same way, so that branch compiles
out and no source imports change.

Also drops the two Info.plist keys that only configured the removed SDK,
and DWURLParser.shouldIgnoreURL:, which existed solely to swallow the
"No pre-install link matched for this device." URL Dynamic Links handed
back on first run (e5c6011).

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ae3f7630-33d9-459e-b8fd-20c147c3a446

📥 Commits

Reviewing files that changed from the base of the PR and between 814aec4 and 1a31e5b.

⛔ Files ignored due to path filters (1)
  • Podfile.lock is excluded by !**/*.lock
📒 Files selected for processing (7)
  • .claude/agents/EXTERNAL-INTEGRATIONS.md
  • DashPay/dashpay-info.plist
  • DashWallet.xcodeproj/project.pbxproj
  • DashWallet/AppDelegate.m
  • DashWallet/Sources/Models/URL Handling/DWURLParser.h
  • DashWallet/Sources/Models/URL Handling/DWURLParser.m
  • Podfile
💤 Files with no reviewable changes (5)
  • DashWallet/Sources/Models/URL Handling/DWURLParser.h
  • DashPay/dashpay-info.plist
  • DashWallet/Sources/Models/URL Handling/DWURLParser.m
  • DashWallet.xcodeproj/project.pbxproj
  • DashWallet/AppDelegate.m

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The change removes Firebase Dynamic Links dependencies, configuration, linker settings, documentation, and obsolete URL filtering. Firebase CoreOnly remains for the Firebase umbrella module. Invitation universal links continue through AppDelegate continueUserActivity: and DWInvitationLinkNormalizer.

Changes

Firebase and URL handling cleanup

Layer / File(s) Summary
Replace Firebase Dynamic Links dependencies
.claude/agents/EXTERNAL-INTEGRATIONS.md, DashPay/dashpay-info.plist, DashWallet.xcodeproj/project.pbxproj, Podfile
Both targets replace Firebase/DynamicLinks with Firebase/CoreOnly. Dynamic Links configuration, linker flags, and the obsolete integration sample are removed.
Remove obsolete URL filtering
DashWallet/AppDelegate.m, DashWallet/Sources/Models/URL Handling/DWURLParser.h, DashWallet/Sources/Models/URL Handling/DWURLParser.m
shouldIgnoreURL: is removed from DWURLParser, and AppDelegate no longer calls the removed URL-filtering check.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 1a31e

The PR removes an unused Firebase Dynamic Links dependency and related configuration without changing invitation routing or Firebase Storage behavior. No actionable merge-blocking risk remains beyond normal checks.

Suggested reviewers: pastapastapasta, llbartekll

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: removing the unused Firebase Dynamic Links SDK from DashPay.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/remove-unused-firebase-dynamic-links

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@romchornyi

Copy link
Copy Markdown
Contributor

This will not link: DashWallet.xcodeproj/project.pbxproj carries its own copy of OTHER_LDFLAGS on top of $(inherited), and it still hardcodes -l"FirebaseDynamicLinks" in 8 configurations — dashwallet and dashpay, each in Debug / Release / Testflight / Testnet.

I checked out the branch, ran pod install, and looked at the resolved settings for dashpay/Debug:

  • OTHER_LDFLAGS — the $(inherited) part from Pods-dashpay.debug.xcconfig is correct (DynamicLinks gone), but the pbxproj part that follows still passes -l"FirebaseDynamicLinks".
  • LIBRARY_SEARCH_PATHS — now only FirebaseCore, FirebaseCoreDiagnostics, FirebaseStorage. The FirebaseDynamicLinks directory is gone.

Linking against that combination gives ld: library 'FirebaseDynamicLinks' not found. A stale libFirebaseDynamicLinks.a left in DerivedData does not save it either — it sits in a directory that is no longer on the search path, so a warm local build fails the same way CI does.

This is very likely why your build never reached a successful link. The four EvonodeStatusViewModel.swift errors are compile errors, so the link error is simply masked behind them and has not surfaced yet.

Fix:

sed -i '' '/"-l\\"FirebaseDynamicLinks\\"",/d' DashWallet.xcodeproj/project.pbxproj

I applied that locally and re-checked: OTHER_LDFLAGS is clean for both schemes and every other flag is still supplied by $(inherited).

Two minor things:

  1. pod 'Firebase/CoreOnly' has no version constraint while FirebaseStorage is pinned to 8.15.0. Not a regression (DynamicLinks was unpinned too), but CoreOnly is now the direct source of Firebase.h, so a future pod update could drift the umbrella away from Storage 8.15.0. Worth pinning it to 8.15.0 in both targets.
  2. .claude/agents/EXTERNAL-INTEGRATIONS.md (lines 30, 40-41) still lists Firebase/DynamicLinks as a dependency and shows a DynamicLinks.dynamicLinks() example.

Everything else checks out. The CoreOnly reasoning is right — @import Firebase in AppDelegate.m:23 and import Firebase in ExploreDatabaseSyncManager.swift:18 both need it, FirebaseStorage depends on FirebaseCore rather than the umbrella pod, and Storage still comes through the __has_include guard in Firebase.h. The plist cleanup is complete — no Firebase* key is left in any non-Pods plist. And a fresh pod install here reproduced your Podfile.lock byte for byte apart from the COCOAPODS: version line.

Resolves the Podfile.lock conflict by regenerating with pod 1.15.2, and
addresses review feedback:
- drop the stale -l"FirebaseDynamicLinks" OTHER_LDFLAGS entries the
  pbxproj carried in all 8 configurations (the actual link failure)
- pin Firebase/CoreOnly to 8.15.0 to match FirebaseStorage
- update .claude/agents/EXTERNAL-INTEGRATIONS.md, which still described
  the removed Dynamic Links integration

Co-Authored-By: Claude Fable 5 <[email protected]>
@QuantumExplorer

Copy link
Copy Markdown
Member Author

Pushed 1a31e5b — removed the 8 stale -l"FirebaseDynamicLinks" flags from the pbxproj, pinned Firebase/CoreOnly to 8.15.0 in both targets, fixed the agents doc, and merged develop to resolve the Podfile.lock conflict (regenerated with pod 1.15.2, no PromisesObjC drift).

Verified the resolved settings for dashpay/Debug: OTHER_LDFLAGS and LIBRARY_SEARCH_PATHS no longer mention FirebaseDynamicLinks anywhere.

The "Missing package product 'SwiftDashSDK'" in your screenshot is a separate local-environment issue — the gitignored DashSDKFFI.xcframework in your ../platform checkout needs a rebuild: cd ../platform/packages/swift-sdk && ./build_ios.sh --target ios --target sim

@QuantumExplorer
QuantumExplorer merged commit 53bb20d into develop Aug 25, 2026
2 checks passed
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.

3 participants