Commit Graph
8 Commits
Author SHA1 Message Date
Paul Beusterien fe2af5abe8 Post rebase updates for #10805 and #10441 2023-07-11 16:09:32 -07:00
Nick Cooke 025ef90376 [FirebaseAuth] Expose non-public headers to Swift and build on iOS (#10755)
* Private header exposed to internal Swift impl via private module

* Include all non-public headers in private module map

* Add TODO and #if out import

* Prefer <...> imports and fix API visibility. See more...

- The private module map enables us to selectively expose non-public
  headers to Swift. Now, the internal APIs that were made public for the
  sake of exposing to Swift can be made internal again. Swift files that
  need access to non-public API should do the following:

    @_implementationOnly import FirebaseAuth_Private

- Additionally, any public header imported into a non-public header
  needs to use <...> syntax because the header is technically coming
  from a different module (FirebaseAuth rather than FirebaseAuth_Private).

* Fix import typo

* Style

* More progress. Building for CocoaPods. Not for SPM

* Remove 'MyPrivateClass.h'

* Generate private module map

* Generate private module map followup

* Re-enable testing spec

* Style

* Remove unneeded module.modulemap

* Revert "Remove unneeded module.modulemap"

This reverts commit 3ac44c3570.

* Adjust header import since FIRAuthBackend was moved

* Get library building on iOS

* Builds on iOS

* Revert private module map and update gitignore

* Add TODO

* Wrap FirebaseAuth_Private import with #if COCOAPODS

* Modularize script with arg[0] for podspec name

* Generalize script more and remove private module map

* Revert unintentionally checked in changes

* re-style @objc(...) qualifier

* Fix check

* Fix SPM build

* Change API back to what it was originally

* Fix copyright

* Better error handling in script
2023-07-11 16:09:03 -07:00
chuanr 0216c1a2bf Multi-app fix (#10805) 2023-02-10 14:01:39 -08:00
Paul Beusterien 4356c91e06 FirebaseAuth public headers for SPM (#6135) 2020-07-27 15:21:19 -07:00
Paul Beusterien d33b8b3ae1 SPM - Auth unit tests (#6011) 2020-07-09 13:31:53 -07:00
Paul Beusterien fb9e788086 Auth: Repo-relative headers and SPM (#5856) 2020-06-19 10:38:31 -07:00
Paul Beusterien 42655733d5 Auth repo-relative headers (#5332) 2020-04-10 11:54:51 -07:00
Paul Beusterien df75e500b0 Migrate Auth to canonical directory structure (#5318) 2020-04-08 17:52:56 -07:00