Commit Graph
69 Commits
Author SHA1 Message Date
Daniel Lee 92fde99ed5 Fix bug in genStream function impl. (#14379) 2025-01-24 10:17:32 -08:00
Daniel Lee ff3acfb6c1 Update functions sample to latest sdk version and add streaming samples. (#14357) 2025-01-16 16:40:26 -08:00
Yakov Manshin 56d4c18387 Refactored Functions’s Result Handling (#14086) 2024-11-18 10:20:38 -05: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 865535fda7 Async FunctionsContextProvider.context(options:) (#13900) 2024-10-29 12:47:34 -04:00
Yakov Manshin 84f28c12ef Fixed DispatchGroup’s Excessive Wait in FunctionsContext (#13887) 2024-10-14 08:14:38 -07:00
Danni Stjernegård ae484d3016 Correct documentation for Callable default timeout (#13869) 2024-10-10 06:50:09 -07:00
Yakov Manshin 995c9339f9 Refactored Duplicate Methods in Functions (#13771) 2024-10-03 16:07:46 -04:00
Yakov Manshin 9384b9fb8a FunctionsError (#13601) 2024-09-10 14:27:09 -04:00
Yakov Manshin 7700b58836 Updated Functions Errors (#13535) 2024-09-03 09:46:00 -04:00
Yakov Manshin 8f335d6974 FunctionsContext Updates (#13531) 2024-08-22 08:48:48 -07:00
Yakov Manshin e76d7460aa Refactored Function Calling (#13476) 2024-08-09 08:18:28 -07:00
Yakov Manshin f0fdd5b22d Functions Cleanup (#13449) 2024-08-02 17:13:09 -04:00
Yakov Manshin 8ac886d045 Consistent Collections Coding in FunctionsSerializer (#13419) 2024-07-31 11:11:03 -04:00
Yakov Manshin 26dab2702e Renamed FUNSerializer to FunctionsSerializer (#13410) 2024-07-27 11:40:16 -07:00
Yakov Manshin 81b2451f5c Functions Serializer Updates (#13409) 2024-07-27 10:06:14 -07:00
Seyed Mojtaba Hosseini Zeidabadi c0a952ed0a Fix typo of the FirebaseFunctions files (#13329) 2024-07-21 07:02:04 -07:00
Paul Beusterien 0ab171c52b [v11] Update to SwiftFormat 0.54.0 (#13222) 2024-07-03 07:01:29 -07:00
Paul Beusterien 8719e5a9bc [v11] Simplify Component System Usage (#13047) 2024-06-03 15:45:09 -07: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 b7d6209e5c Require at least CocoaPods version 1.12.0 (#12322) 2024-01-26 13:38:44 -08:00
Andrew Heard 7db032cbfb Update async/await availability comments to "iOS 13+" (#12261) 2024-01-10 14:38:36 -05: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
Yakov Manshin 732c1ceb09 [#11736] Tests Housekeeping (#11737) 2023-08-29 12:01:31 -04: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
Nick Cooke ffc697be0e [Functions] Fix typo in HTTPSCallableOptions initializer (#11318) 2023-05-23 07:43:08 -07: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
Paul Beusterien e73e86abbe Add missing unowned specifiers (#11248) 2023-05-10 07:57:20 -07:00
Paul Beusterien 2d89f55be6 Remove unnecessary, unused parameters from API (#10232) 2022-09-19 12:21:42 -07:00
Paul Beusterien 0678d64cf1 Changelog for Functions Error code fix (#9956) 2022-06-27 19:03:31 -04:00
Tito Ciuro 0535f6fb73 alreadyExists returns the wrong code (#9955)
- is an alias for HTTP 409 Conflict. This can be confirmed via any HTTP query tool (e.g. Postman)
- value "ALREADY_EXISTS" should return .alreadyExists, not .notFound.
2022-06-27 15:20:07 -07:00
Ryan Wilson 878f885828 Use @_implementationOnly import for FirebaseCoreExtension (#9887)
Using a regular import caused internal Core APIs to be surfaced to end
users.
2022-06-08 10:09:55 -04:00
Paul Beusterien 1658c4051e Fix 9.0.0 Functions Error Code Regressions (#9862) 2022-05-31 08:09:10 -07:00
Paul Beusterien a71dbaf436 Verify localizedDescription with FunctionsInvalid Argument error (#9857) 2022-05-27 19:44:50 -04:00
Paul Beusterien 8d65537335 Fix typos (#9802) 2022-05-13 15:38:03 -07:00
Nick Cooke ced8b554a0 [Infra] Standardize CHANGELOG header format (#9777) 2022-05-10 17:54:58 -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
Ryan Wilson 46956d23e5 Fix warnings in Functions tests (#9679) 2022-04-20 18:14:18 -07:00
Ryan Wilson 408e0564c0 Refactor to remove __ APIs in Swift (#9678) 2022-04-20 16:30:06 -04:00
Thomas BouldinandRyan Wilson 694059f5fe Remove url label. add Codable test (#9667)
* Remove url label. ad Codable test

* Fix compilation failures

Co-authored-by: Ryan Wilson <wilsonryan@google.com>
2022-04-19 20:57:38 -04: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
Paul Beusterien 1793deb8b7 Update C++/Obj C++ support for Firebase 9 (#9644) 2022-04-13 14:28:53 -07:00
Paul Beusterien 86919fb705 Restore StorageErrorDomain and error tests (#9628) 2022-04-11 07:20:22 -07:00
Ryan Wilson 121f6480b8 Remove Objective-C Error APIs for Functions (#9619)
* Remove Objective-C Error APIs

* Style
2022-04-08 13:50:35 -04:00
Paul Beusterien 289d639548 Functions/Storage 9.0.0 release notes updates (#9615) 2022-04-08 09:57:17 -07:00
Paul Beusterien 99275370a2 Merge remote-tracking branch 'origin/master' into v9b 2022-04-06 09:56:33 -07:00
Paul Beusterien 111d8d6ad1 Functions and Storage deprecated Error variables (#9569)
* Functions and Storage deprecated Error variables

* Test build fixes

* one more test build issue

* Review

* style
2022-04-06 08:56:09 -04:00