Skip to content

[Firestore] Add warning when building Firestore's binary SPM distro for visionOS - #12279

Merged
ncooke3 merged 8 commits into
mainfrom
nc/visionos-binary-warning
Jan 16, 2024
Merged

[Firestore] Add warning when building Firestore's binary SPM distro for visionOS#12279
ncooke3 merged 8 commits into
mainfrom
nc/visionos-binary-warning

Conversation

@ncooke3

@ncooke3 ncooke3 commented Jan 16, 2024

Copy link
Copy Markdown
Member

The proposed consists of two parts:

  1. Change the Package.swift to only build Firestore's binary targets on platforms that support the binary distribution (e.g. !visionOS)
    • This shifts the problem from the package loading phase to the compilation phase.
  2. Add a warning in the source wrapper target to issue a warning only on visionOS and only when it is detected that the client is using the binary distro*.
    • *: We can determine this by configuring the wrapper target in the binary distro code path to define a preprocessor directive.

Comment thread SwiftPM-PlatformExclude/FirebaseFirestoreWrap/dummy.m Outdated
@google-oss-bot

google-oss-bot commented Jan 16, 2024

Copy link
Copy Markdown
Collaborator

Coverage Report 1

Affected Products

  • FirebaseFirestore-iOS-FirebaseFirestoreInternal.framework

    Overall coverage changed from 88.10% (795c800) to 88.17% (a36fd8b) by +0.06%.

    FilenameBase (795c800)Merge (a36fd8b)Diff
    exception.cc23.68%84.21%+60.53%
    leveldb_key.cc98.82%98.33%-0.49%
    ordered_code.cc94.39%93.90%-0.49%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/0OlvLiNKHk.html

@andrewheard andrewheard 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.

Thanks, Nick!

Comment thread Firestore/CHANGELOG.md Outdated
@ncooke3
ncooke3 enabled auto-merge (squash) January 16, 2024 16:28
@ncooke3
ncooke3 disabled auto-merge January 16, 2024 18:43
@ncooke3
ncooke3 merged commit 756b5a4 into main Jan 16, 2024
@ncooke3
ncooke3 deleted the nc/visionos-binary-warning branch January 16, 2024 18:48
@firebase firebase locked and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants