Commit Graph
33 Commits
Author SHA1 Message Date
Seyed Mojtaba Hosseini Zeidabadi c0a952ed0a Fix typo of the FirebaseFunctions files (#13329) 2024-07-21 07:02:04 -07:00
Sheikh Bayazid e8a12e04c2 Improve/use shorthand syntax for unwrapping optionals and fix typos (#12369) 2024-05-03 08:50:20 -07: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
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 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
Ryan Wilson 46956d23e5 Fix warnings in Functions tests (#9679) 2022-04-20 18:14:18 -07: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 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
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
Nick Cooke a09083f9d0 [v9] Reorganize FirebaseCore* modules (#9482)
* [skip ci] [will revert] Add debug printing to `pod_lib_lint.rb`

* Reorganize FirebaseCore libraries for SPM and CP

* [skip ci] Revert "[skip ci] [will revert] Add debug printing to `pod_lib_lint.rb`"

This reverts commit 2a837e39708c21b0a324743ab226bd6c01047de7.

* Review and fix CI

* Remove `heartbeat_logging.yml` and add `core_internal.yml`

* Remove trailing whitespace

* Fix more whitespace 😞

* Fix `core_internal.yml` scheme name

* Update `check_imports.swift` and TODO

* Review

* Add FirebaseCoreInternal pod to Firestore example's Podfile

* [skip ci] Review - remove TODOs

* [skip ci] Remove duplicate `XCTest` import
2022-03-23 06:08:14 -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
Paul Beusterien bba0e3468d Combine tests ported to depend on Swift Functions (#9332) 2022-03-23 06:08:13 -07:00
Paul Beusterien 4f793064da Set up Core Internal for SPM (#9298) 2022-03-23 06:07:17 -07:00
Paul Beusterien 816752d983 Start porting unit tests (#9296) 2022-03-23 06:07:17 -07:00
Paul Beusterien f80e467c44 Review updates 2021-12-15 14:11:53 -08:00
Nick Cooke d6e7bb7d38 Update async-related directives in Swift build tests (#9063)
* Update directives in Swift build tests

* Fix CoreAPITests

* Fix CoreAPITests 2

* Fix installations and style
2021-12-09 14:30:43 -05:00
Paul Beusterien 10f4285892 Public API build test coverage and public header cleanup (#8960) 2021-11-12 12:17:38 -05:00
Paul Beusterien d1bb76f01a Add Async/await tests for Functions (#8959) 2021-11-12 08:21:11 -08:00
Paul Beusterien f023aa5b5c Port Functions integration tests to Swift (#8957) 2021-11-11 08:34:26 -08:00
Paul Beusterien e74765ae08 Canonical directory structure for Functions (#8918) 2021-11-02 16:38:55 -07:00