Commit Graph
652 Commits
Author SHA1 Message Date
Nick Cooke 3a8e3a397a [auth-swift] Remove module.modulemap as it is unneeded (#10778) 2023-07-11 16:09:10 -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
Paul Beusterien 9ddd8fc117 Style auth-swift (#10723) 2023-07-11 16:08:06 -07:00
ae871b9dc1 Update to swiftformat 0.51.12 (#11531)
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Nick Cooke <nickcooke@google.com>
2023-07-11 15:54:51 -07:00
Andrew Heard a2230e26ba [App Check] Prefix test module names with Firebase (#11359)
Renamed AppCheckUnit to FirebaseAppCheckUnit and AppCheckUnitSwift to FirebaseAppCheckUnitSwift. This is in preparation for extracting core App Check functionality into a separate SDK.
2023-05-31 09:55:59 -04:00
Mou Sun 30c70f5ece fix diff report missing api (#11325) 2023-05-24 12:17:45 -07:00
Mou Sun 5504b40b0b Always print out class name as title (#11296) 2023-05-16 11:22:24 -07:00
Mark Duckworth 52ebbbf19d Sum and average (#11108)
This is implementation but not public release of sum and average. The sum/avg API is not made public. There are no API changes in this PR.
2023-05-12 13:56:16 -06:00
Jon SimantovandWu-Hui 34932ce9ec Patch LevelDB so Firestore can support international paths on Windows (#11276)
* Delete invalid move tests

* add some back

* Patch leveldb to support UTF-16 paths on Windows.

* Add patch for both 1.22 and 1.23, since C++ SDK patches to 1.23.

* Fix function name in patch.

* Remove extraneous override.

* Add patch files to whitespace script.

---------

Co-authored-by: Wu-Hui <wu.hui.github@gmail.com>
2023-05-11 14:13:20 -07:00
Mou Sun eb9c7d6c65 Create API Diff Report only when the first commit in PR has an API change (#11275) 2023-05-11 11:06:38 -07:00
Mou Sun ecd4035daf Api Diff Report CI (#11236) 2023-05-10 15:04:32 -07:00
Mou Sun 8efafcb340 API Diff Report tools (fix python format) (#11235) 2023-05-05 13:42:24 -07:00
Paul Beusterien e7c5c9713b Revert "Api Diff Report Tools (#11184)" (#11234)
This reverts commit 8056cdacc0.
2023-05-05 12:07:33 -07:00
Mou Sun 8056cdacc0 Api Diff Report Tools (#11184) 2023-05-05 11:11:00 -07:00
Nick Cooke f22918d064 [Infra] Add sample app to test building SPM distro across supported platforms (#11150)
* Add client sample app

* Build script changes and workflow changes

* Style

* Add note about special analytics libraries

* Undo unintentional change

* Update spm.yml

* Update spm.yml

* Fix CI for now

* Workflow works locally- not on GHA?

* Disable xcpretty in build.sh

* Fix CI

* Get PR in passing state

* Fix CI for good
2023-04-24 07:00:06 -07:00
Paul Beusterien 9214b14f82 Analytics ObjC API coverage tests via CocoaPods and SPM (#11137) 2023-04-17 14:03:38 -07:00
Paul Beusterien 0b580021df Add AnalyticsSwiftUnit tests to SPM (#11131) 2023-04-17 08:06:19 -07:00
Andrew Heard 7d2ece61c7 [Tooling] Add FIR_CLANG_FORMAT_PATH env var to style.sh (#11097)
Added an environment variable to specify the path to the version of clang-format used by the style.sh script.
2023-04-11 10:00:14 -04:00
Nick Cooke 7452958df4 [Infra] Avoid subshells in test script (#11094) 2023-04-10 13:49:01 -04:00
Andrew Heard 98e218b686 [SPM] Require Xcode 13.3+ (Swift 5.6) (#11046)
Increased swift-tools-version to 5.6 in Package.swift to declare that that the Swift 5.6 toolchain (included in Xcode 13.3) is the minimum version required to build the Firebase package.

Replaced uses of initializers / methods / enums that were deprecated in SPM 5.6.

Note: Xcode 13.3.1+ has been the minimum supported since Firebase 9.0 but this enforces Xcode 13.3+ in Package.swift. However, this does not enforce Xcode 13.3.1 specifically since the Swift toolchain version did not change between Xcode 13.3 and 13.3.1.
2023-04-04 16:54:44 -04:00
wu-hui c1ae7d1733 make style.sh error checking more tolerable (#11074)
* Fix style.sh to check for mint availability

* Too strict

* remove set -e
2023-04-04 08:09:11 -07:00
wu-hui a150f0b6d2 Fix style.sh to check for mint availability (#11070) 2023-04-04 09:26:59 -04:00
Denver Coneybeare 92ac9fcf0f Scripts cleanup: remove python six usage and get ruby from PATH (#11039) 2023-03-30 13:55:16 -04:00
Nick Cooke 867697b8f3 [Infra] Upgrade to clang-format16 (#10973) 2023-03-20 12:47:43 -04:00
Nick Cooke 8c9d5464f6 [skip ci] Remove outdated TODO comment (#10922) 2023-03-09 09:05:09 -08:00
Nick Cooke e752c63501 [Infra] Add workflow for detecting unlinked Firestore symbols (#10901)
* [Infra] Add workflow for detecting unlinked Firestore symbols

* Exit if xcodebuild fails

* Add more documentation for script

* Enable script to work on current state of master

* Style

* Feedback pt. 1

* Feedback pt. 2

* Pipe to xcpretty to shorten logs

* Debug CI error code

* Attempt to fix CI error code

* Fix CI issue

* Fix pipe issue
2023-03-09 10:18:02 -05:00
Sam Edson 729eb40cb2 Merge sessions-main with master (#10787) 2023-02-07 16:02:19 -05:00
Visu c7e95996ff Propagate log environment variable to unit tests for the app. (#10718) 2023-01-19 18:24:24 -08:00
Visu 2f8664c9c5 Enable events to be generated for Autopush and Staging environments. (#10676) 2023-01-12 15:45:49 -08:00
Morgan Chen 8913a64682 Revert "Include subheaders in script output (#10212)" (#10652)
This reverts commit 11313da887.
2023-01-06 14:47:17 -08:00
Sam Edson 442efb874e [Sessions] Add Swift Package Manager tests for Sessions (#10572) 2022-12-15 13:55:31 -05:00
AashishandPeter Friese 67ae9555da [Messaging] Standalone Watch App Sample (#10552)
* [Messaging] Standalone Watch App Sample

* Add comment on disabling method swizzling

* Add dividers

* Rename to notificationCenter

* Add README with instructions

* Fix whitespace

* #no-changelog, build regression test

* fixes to yml and scripts for sample

* Add podfile

* podfile fixes

* podfile fixes

* Make project format xcode 13 compatible

* fix scheme in build.sh

* fix reference to service info file

* fix assets compile failure

* fix podfile linkage

Co-authored-by: Peter Friese <peter@peterfriese.de>
2022-12-07 11:00:51 -08:00
Mou Sun 257d948548 Add jobs to build quickstart apps and run tests on FTL (#10519) 2022-12-02 13:52:17 -08:00
themiswang 82a242f29d [Crashlytics] Adding unit test scheme to SPM (#10511) 2022-11-21 14:07:44 -05:00
Sam Edson 11229b59c6 Format nanopb generator scripts (#10448) 2022-11-07 14:01:41 -05:00
Sam Edson 74cc976f0b Update nanopb generator script to check for python and help (#10450) 2022-11-04 13:33:48 -04:00
Denver Coneybeare ec7ab4ba7c [Infra] Bump clang-format to v15 (#10451) 2022-11-03 11:36:54 -04:00
Sam Edson f5af4a98e2 Upgrade nanopb to 0.3.9.9 for collection of SDKs (#10447) 2022-11-02 15:32:44 -04:00
Sam Edson ba0f4f2693 Combine nanopb scripts into a single location (#10439) 2022-11-02 14:56:58 -04:00
Leo Zhan 9876601e14 [Sessions] Add Test App and Integration tests for the Sessions SDK (#10396) 2022-11-01 12:43:17 -04:00
Nick Cooke d1594ceb6a [Infra] Fix ignoring of Mint sources when checking style (#10425) 2022-10-31 15:12:40 -04:00
Nick Cooke d01cda5cbe [Infra] Bump actions used by repo's workflows (#10349) 2022-10-20 09:46:32 -07:00
Sam Edson bb4c6382cd [Sessions] Add Sessions SDK nanopb and proto (#10351) 2022-10-17 10:53:48 -04:00
Paul Beusterien fe9dfe8f9a Investigate watchOS CI (#10314) 2022-10-06 15:49:00 -07:00
Nick Cooke f97888edfa [Infra] Check for improper FirebaseCoreExtension imports (#10294)
* [skip ci] Check for improper FirebaseCoreExtension imports

* This commit should fail because of the invalid import

* [skip ci] Update FirebaseStorage/Sources/Storage.swift

* [skip ci] Update FirebaseStorage/Sources/Storage.swift (2)
2022-09-30 15:25:33 -04:00
Rodrigo Lazo 11313da887 Include subheaders in script output (#10212)
* Include subheaders in script output

When selecting a specific version, we want to include all its
subheaders in the generated output.

* Line too long.

* Fix indentation
2022-09-26 15:53:50 -07:00
Nick Cooke 43c62f0526 [Infra] Remove CoreDiagnostics library and references (#10259)
* [Infra] Remove CoreDiagnostics library and references

* Style localize_podfile.swift

* Add GDT to SharedTestUtils

* Update GoogleUtilities.cmake config

* Run all CI

* Update GoogleUtilities.cmake config (2)

* Resolve FIRApp.m TODO

* [skip ci] Revert Gemfile
2022-09-26 00:03:55 -04:00
Paul Beusterien ce3b40a56b Remove FirebaseStorageInternal (#10118) 2022-09-21 16:32:33 -07:00
wu-hui 84a8b5030c Count from server (#10193)
* Proto serialization

* Wire up api

* End to end functional

* Linting

* Add aggregate source

* Fix cmake and style

* Comments, emulators and lints

* Feedback.

* More feedback.
2022-09-14 15:43:35 -07:00
Nick Cooke e6ed2b3917 [Infra] Use watchOS device when using scripts/build.sh for watchOS (#10082)
* [Infra] Use watchOS device when using `scripts/build.sh` for watchOS

* Run all CI

* Undo Gemfile change and finish fix
2022-08-08 20:09:21 -04:00