Commit Graph
27 Commits
Author SHA1 Message Date
Nick Cooke e28a1a1a84 refactor(misc): remove obsolete OS availability checks (#16313) 2026-07-09 16:40:30 -04:00
Yakov Manshin 37b1ad64df Functions Cleanup (#15119) 2025-07-16 17:03:13 -04:00
Nick Cooke e3110da07b [Infra] Rename 'FIRAllocatedUnfairLock' to 'UnfairLock' (#15090) 2025-07-08 16:09:40 -04:00
Nick Cooke 8543e7ec75 [Functions] Update HTTPSCallableOptions.swift (#15075) 2025-07-07 17:23:34 -04:00
Nick Cooke 32c3c739c7 [Infra] Clean up 'AtomicBox' usage in favor of 'FIRAllocatedUnfairLock' (#15082) 2025-07-07 12:21:09 -04:00
Nick Cooke 053e6fc3aa [Functions] Remove completion-handler based internal logic (#15058) 2025-07-01 12:07:56 -04:00
Seyed Mojtaba Hosseini Zeidabadi 3a3e8ec193 docs: fix auxiliary in firebaseFunctions sources (#14964) 2025-06-12 07:16:11 -07:00
Nick Cooke dbecea06dc [Functions] Complete Swift 6 support (#14838) 2025-05-13 11:07:39 -04:00
Nick Cooke 8eb500eba1 [Functions] More Swift 6 improvements (#14788) 2025-05-09 11:59:06 -04:00
Paul Beusterien 6efa753a5f Investigate swiftformat on Linux CI (#14808) 2025-05-02 14:31:48 -07:00
Nick Cooke 5113cfd4f9 [Functions] 'call' API's completion handler should be called on the main thread (#14667) 2025-04-08 17:31:09 -04:00
baf60edf13 [Functions] Add support for streamable cloud functions (#14395)
Co-authored-by: Eblen Macari <eblenmacari@gmail.com>
Co-authored-by: Eblen M <joseeblen@xwf.google.com>
Co-authored-by: Rodrigo Lazo <rlazo@users.noreply.github.com>
2025-03-10 14:37:52 -04:00
Yakov Manshin 15caf49aad Switched HTTPSCallable to Async Method (#14085) 2024-11-18 10:13:07 -05:00
Yakov Manshin 0ac8bbbe2b Async Function Calling (#13901) 2024-10-29 18:44:26 -04:00
Yakov Manshin 995c9339f9 Refactored Duplicate Methods in Functions (#13771) 2024-10-03 16:07:46 -04:00
Sheikh Bayazid e8a12e04c2 Improve/use shorthand syntax for unwrapping optionals and fix typos (#12369) 2024-05-03 08:50:20 -07:00
Paul Beusterien 6b0cc0276c Several minor doc fixes for Functions (#12323) 2024-01-29 09:43:20 -08:00
Paul Beusterien 0fe8385fe6 Remove unnecessary compiler checks for Concurrency support (#12232) 2024-01-03 07:04:02 -08:00
Paul Beusterien 4d2b60dc75 Updated to SwiftFormat 0.52.10 (#12125) 2023-11-21 12:12:05 -08:00
0cbe4f2920 Firebase App Check One-time Use Tokens for Callable Functions SDK (#11270)
* draft pr for callable functions

* Adjust Functions podspec dependency on AppCheckInterop

* Add 'HTTPSCallableOptions' class

* Re-implement with new HTTPSCallableOptions type

* Revert and update Objective-C API tests

* Mark new AppCheckInterop API optional for backwards compatibility

* Preserve existing codable Functions API

* Revert integration tests

* Style

* Fix some test build breakages

* Add changelog entry

* Style

* Fix AppCheck tests

* Cleanup current approach

* Re-organize tests

* Add 'options' param to 'getContext' call

* Add success case unit test

* Shorten expectation waiting timeout

* Add remaining unit tests

* Amend current test

* Rename 'limitedUseTokens' to 'requireLimitedUseTokens'

* Fix build and tests

* Fix some renaming misses

* Fix some renaming misses (1)

* Update FirebaseFunctions/CHANGELOG.md

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/Functions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* Update FirebaseFunctions/Sources/HTTPSCallableOptions.swift

Co-authored-by: Andrew Heard <andrewheard@google.com>

* [App Check] Always return fresh limitedUseToken (#11298)

Updated `limitedUseTokenWithCompletion:` to always return a fresh limited-used token in every invocation (removed the `ongoingLimitedUseTokenPromise` property).

---------

Co-authored-by: Nick Cooke <nickcooke@google.com>
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
Co-authored-by: Andrew Heard <andrewheard@google.com>
2023-05-16 18:33:15 -04:00
Morgan ChenandNick Cooke 96984a0554 Update Storage and Functions header comments to Swift markdown (#9706)
* Update Storage header comments to Swift markdown

* Update functions headers to use swift markdown

* Update FirebaseStorage/Sources/AsyncAwait.swift

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

* Update FirebaseStorage/Sources/AsyncAwait.swift

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

* Update FirebaseStorage/Sources/AsyncAwait.swift

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

* Update FirebaseStorage/Sources/Storage.swift

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

* Update FirebaseStorage/Sources/Storage.swift

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

* Update FirebaseStorage/Sources/StorageObservableTask.swift

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

* Update FirebaseStorage/Sources/StorageObservableTask.swift

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

* run style

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2022-04-26 11:04:38 -07:00
Thomas Bouldin a2b3758d4d Add callableWithURL (#9664)
* Add support for htpsCallableWithURL

* Add missing API

* Run formatter

* PR feedback; tests

* Formatter

* Fix URL constructor

* Fix compiler error

* Run formatter

* More PR feedback

* Use enums to encode invariant that endpoints are name or url

* Add codable API test

* Fix codable samples

* One more try... I don't know how to run these tests locally

* Whoops. Got that one wrong

* Am I doing it right now?
2022-04-19 14:19:55 -07:00
Ryan Wilson 73279db127 Enable async/await APIs for iOS 13, etc. (#9540)
* Enable async/await APIs for iOS 13, etc.

This bumps the required compiler version to 5.5.2 which was included in
Xcode 13.2, where backporting was first introduced.

This breaks less developers and enables developers who aren't using
these APIs to still compile using Xcode 13.0 and 13.1.

As far as I can tell, the only breakage this includes now is developers
who are using Xcode 13.0 or 13.1, targeting iOS 15 and using one of
these 7 APIs. It will result in a compiler error and they'll have to
either use the completion handler version or upgrade to Xcode 13.2+ to
fix the compilation error.

* Missed checks, CHANGELOG

* Fixed avialability, added watchOS for RTDB

* Moved to watchOS 7 for all async/await APIs to match platform support
2022-04-01 09:56:33 -04:00
Paul Beusterien 223afa5aec Better Swift file structure (#9449) 2022-03-23 06:08:13 -07:00
Paul Beusterien 2b6abb690a Put all public APIs in a Public folder (#9410) 2022-03-23 06:08:13 -07:00
Paul Beusterien fb5ecd4ea3 ObjC API coverage for Functions (#9347) 2022-03-23 06:08:13 -07:00
Paul Beusterien 74fa16f236 Remove Functions ObjC (#9333) 2022-03-23 06:08:13 -07:00