Commit Graph
92 Commits
Author SHA1 Message Date
Paul Beusterien f5309bf45b [v11] Remove unused FIRDependency class (#13053) 2024-06-04 06:56:50 -07:00
Paul Beusterien 1198afd2ba Merge remote-tracking branch 'origin/main' into pb-merge-main-529 2024-05-29 15:09:57 -07:00
Nick Cooke 370f044e92 [Release] Prep changelogs for 10.27.0 / M148 (#13005) 2024-05-21 15:33:50 -04:00
Paul Beusterien d9f93829b9 Update FirebaseAppCheck's FirebaseCore dependency (#12925) 2024-05-09 07:38:01 -07:00
Paul Beusterien 1a0d39a329 Merge remote-tracking branch 'origin/main' into auth-swift 2024-05-08 13:59:34 -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 2cf218de25 Merge remote-tracking branch 'origin/main' into auth-swift 2024-04-30 09:49:16 -07:00
Andrew HeardandNick Cooke c9d013b624 Update unreleased changelog entries for 10.25.0 (#12839)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2024-04-23 15:19:02 -04:00
Paul Beusterien 2f70913391 Merge remote-tracking branch 'origin/main' into pb-merge-main 2024-04-17 11:40:52 -07:00
Nick Cooke 46b7c0d27f [Release] Update changelogs for user defaults migration PRs (#12774) 2024-04-12 14:41:12 -04:00
Nick Cooke b6e5270f75 [AppCheck] Migrate to GoogleUtilities's storage container (#12773) 2024-04-12 13:46:29 -04:00
Paul Beusterien 0b90011293 Merge remote-tracking branch 'origin/main' into auth-swift 2024-03-18 11:42:30 -07:00
Andrew Heard cd1ee8d2a4 Remove placeholder token constant from Firebase App Check (#12374) 2024-02-07 19:34:54 -05:00
Paul Beusterien f5cb55371b Merge remote-tracking branch 'origin/main' into auth-swift 2024-01-20 09:56:12 -08:00
Andrew Heard 7db032cbfb Update async/await availability comments to "iOS 13+" (#12261) 2024-01-10 14:38:36 -05:00
Paul Beusterien 20847a1577 [auth-swift] Fix heartbeats for SPM (#12237) 2024-01-04 08:11:58 -08:00
Paul Beusterien 0fe8385fe6 Remove unnecessary compiler checks for Concurrency support (#12232) 2024-01-03 07:04:02 -08:00
Nick Cooke 25fcae9321 [AppCheck] Fix AppCheck interference for apps using ARCore and Firebase (#12191) 2023-12-12 23:15:46 -05:00
Morgan Chen fc42195ad7 redeclare protocol method so it can be added to docs (#12142) 2023-11-28 17:29:22 -05:00
Paul Beusterien 4d2b60dc75 Updated to SwiftFormat 0.52.10 (#12125) 2023-11-21 12:12:05 -08:00
Andrew Heard e390f7dbba [App Check] Add CHANGELOG entry for 10.18.0 (#12068) 2023-11-07 19:00:45 -05:00
Andrew Heard a83297908d [App Check] Implement FirebaseAppCheck as a shim of AppCheckCore (#12067) 2023-11-07 18:54:45 -05:00
Andrew Heard 88d1530d30 Replace FIRDeviceCheckAPIServiceE2ETests with AppCheckE2ETests (#12031) 2023-11-01 10:38:57 -04:00
Nick Cooke 1e0055d308 [Release] Update AppCheck changelog (#11993) 2023-10-24 14:54:05 -07:00
Andrew Heard 1317f08326 [App Check] Reset App Attest key state if attestKey fails (#11986) 2023-10-24 13:30:40 -04:00
Andrew Heard 3e4b72180d [App Check] Fix warning due to NSUInteger length on watchOS (#11974) 2023-10-20 16:28:46 +00:00
Andrew Heard f73ca9532c [App Check] Add failure reasons for App Attest error cases (#11956) 2023-10-19 17:28:38 -04:00
Andrew HeardandNick Cooke f3a14c249e Add FirebaseAppCheckInterop umbrella header (#11860)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2023-10-11 18:39:18 -04:00
Andrew Heard 0e7e4f9821 Switch to #import <Foundation/Foundation.h> in FIRAppCheckProtocol.h (#11864) 2023-09-28 14:37:47 -04:00
Andrew Heard a885d5e023 [App Check] Remove usages of FIR_*_SUPPORTED_TARGETS macros (#11831) 2023-09-20 12:07:42 -04:00
Andrew Heard 00fd7c0829 Enable FIRAppCheckTests on CI (#11827) 2023-09-20 10:59:14 -04:00
Andrew Heard a471cc8120 Add FIRAppCheckProtocol to FirebaseAppCheckInterop SDK (#11660) 2023-09-14 17:11:28 -04:00
Andrew Heard 77fa63da55 [App Check] Add DeviceCheck isSupported check (#11663)
Added a DeviceCheck isSupported check and return a FIRAppCheckErrorCodeUnsupported error when not supported (e.g., when running on the simulator or older Macs). This was done to match the behaviour of the FIRAppAttestProvider.
2023-08-09 13:45:38 -04:00
Andrew Heard 4b9cbf6155 [App Check] Fix App Attest and DeviceCheck API availability (#11662)
- Updated the FIR_DEVICE_CHECK_PROVIDER_AVAILABILITY and FIR_APP_ATTEST_PROVIDER_AVAILABILITY API availability macros to reflect the set of supported platforms for DeviceCheck (iOS 11+, macOS 10.15+, macCatalyst 13+, tvOS 11+, watchOS 9+) and App Attest (iOS 14+, macOS 11.3+, macCatalyst 14.5+, tvOS 15+, watchOS 9+).

- Removed the extraneous check for the watchOS 9 SDK now that Xcode 14 is the minimum supported by Firebase.
Removed the #if TARGET_OS_IOS compiler directive in AppCheckAPITests.swift since TARGET_OS_IOS is only available in Objective-C and was always false.
2023-08-08 17:26:09 -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 1e040186a6 [Infra] Remove HeartbeatLoggingTestUtils.podspec (#11370)
* [Infra] Remove HeartbeatLoggingTestUtils.podspec

* Review
2023-06-01 13:31:39 -04: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 Chen 93dbf7df4c fix undocumented appcheck (#11224) 2023-05-03 14:10:33 -07:00
Andrew Heard cd0456ec23 [App Check] Split App Check Component into separate file (#11220)
Extracted the App Check Component (FIRLibrary) into a separate file.
2023-05-03 11:32:13 -04:00
Nick Cooke 62bb542a94 [Release] Update CHANGELOGs for 10.9.0 release (#11146)
* [Release] Update CHANGELOGs for 10.9.0 release

* Review
2023-04-18 18:24:30 -04:00
Yvonne ChengandAndrew Heard 87b07e2d36 Add limited use token to FirAppeCheck Interface (#11086)
* Add limited use token to FirAppeCheck Interface

* revise some naming

* remove extra promise and clean the logic for limitedUseToken

* ADD UNIT tests

* suppress style error

* style the file

* Fixed comments and still need to add one more test

* change testLimitedUseToken to uncached test and add error test too

* test in FIRAppCheckTestFile to make sure limited-use token is working

* style the file to pass checks

* style swift file to pass checks

* style swift file to pass checks

* style swift file to pass checks

* style swift file to pass checks

* Run scripts/style.sh to format AppDelegate.swift

Script updated in https://github.com/firebase/firebase-ios-sdk/pull/11097

* comments typo fixed

* Fixed typos and add desciption to changelog.md

* solve comments

* remove extra space

* add a spce in the title

---------

Co-authored-by: Andrew Heard <andrewheard@google.com>
2023-04-17 13:55:59 -07:00
Andrew Heard 52f246ce87 [AppCheck] Fix unused isTokenAutoRefreshEnabled ivar warning (#10818)
Stopped synthesizing a backing instance variable for the `isTokenAutoRefreshEnabled` property in `FIRAppCheckSettings` because it is unused, resulting in a warning when "-Wunused-property-ivar" is enabled.

This resolves the error "FIRAppCheckSettings.m:92:1: error: ivar '_isTokenAutoRefreshEnabled' which backs the property is not referenced in this property's accessor [-Werror,-Wunused-property-ivar]" when building in google3 (where this warning is treated as an error).
2023-02-14 12:00:38 -05:00
Mike Hardy 16124731d2 Fix typo in error message (#10766) 2023-02-01 11:20:21 -08:00
Nick Cooke a6164a8f18 [AppCheck] Refine public docs (#10265)
skip ci
2022-09-26 17:27:15 -07:00
Nick Cooke f233d5b6a5 [Cleanup] Follow-up to #10259 (#10262)
* [Cleanup] Follow-up to 10259

* [skip ci] Resolve TODO

In an effort to resolve this TODO, I marked the protocol as @optional to clean
up some of the duplicate test code. While it cleaned up the test code, it did
clutter up the actual usage of the API so I decided against doing so.
2022-09-26 19:04:16 -04: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
Nick Cooke 16304ea7eb [AppCheck] Disable tests that use keychain (#10146) 2022-08-26 23:39:56 -04:00
Nick Cooke c105a0de10 [AppCheck] App Attest provider is supported by watchOS 9.0+ (#10098)
* [AppCheck] App Attest provider is supported by watchOS 9.0+

* Style

* Add TODO

* [skip ci] Review
2022-08-12 14:43:23 -04:00
Nick Cooke 0373d0bf40 [AppCheck] App Attest provider is supported by tvOS 15.0+ (#10093)
* [AppCheck] Update supported targets for AppAttestProvider

* CHANGELOG update
2022-08-12 12:06:15 -04:00
Nick Cooke 62c77523de [AppCheck] DeviceCheck provider is supported by watchOS 9.0+ (#10094)
* [AppCheck] DeviceCheck provider is supported by watchOS 9.0+

* Update CHANGELOG

* trailing whitespace

* Review
2022-08-12 00:49:32 -04:00